diff --git a/libbacktrace/elf.cpp b/libbacktrace/elf.cpp index 50715bf9..88de1f08 100644 --- a/libbacktrace/elf.cpp +++ b/libbacktrace/elf.cpp @@ -1803,7 +1803,7 @@ elf_zlib_inflate (const unsigned char *pin, size_t sin, uint16_t *zdebug_table, /* An uncompressed block. */ /* If we've read ahead more than a byte, back up. */ - while (bits > 8) + while (bits >= 8) { --pin; bits -= 8;