diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-11-01 00:48:57 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-11-01 00:48:57 +0100 |
commit | 26a95b35414d0d4b729f3fd5da010debb70b412b (patch) | |
tree | b407e920c6af7c55c5f35b9492114b485e7391cc | |
parent | 246b35d1612c6892ccfc9eada9b3d7de8d8f4e11 (diff) |
Fix check
-rw-r--r-- | src/work.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -126,7 +126,7 @@ process_file(const char *locl_filename, unsigned char **locl_buf) for (;;) { ptrdiff_t want = nw + st.st_blksize; if (want > basecap) { - if (want & ((ptrdiff_t)1 << (PTRDIFF_WIDTH - 1))) { + if (want & ((ptrdiff_t)1 << (PTRDIFF_WIDTH - 2))) { errno = EOVERFLOW; cerr(EXIT_FATAL, "%s:", __func__); } |