diff options
author | Ian Lance Taylor <iant@golang.org> | 2024-06-16 15:39:53 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2024-06-16 15:44:36 -0700 |
commit | 8348f8c22ff1ac61df45d63739e1028f87d6ef88 (patch) | |
tree | 3c56decc9610d9b0db977340df47e5a395a8f258 | |
parent | 33caee556c130b2dcf311480314e942a43d6b368 (diff) |
libbacktrace: it's OK if zstd decompressor sees no backward bits
* elf.c (elf_fetch_bits_backward) Don't fail if no bits are
available.
-rw-r--r-- | libbacktrace/elf.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/libbacktrace/elf.c b/libbacktrace/elf.c index 3cd87020b03..735f8752500 100644 --- a/libbacktrace/elf.c +++ b/libbacktrace/elf.c @@ -1182,14 +1182,7 @@ elf_fetch_bits_backward (const unsigned char **ppin, val = *pval; if (unlikely (pin <= pinend)) - { - if (bits == 0) - { - elf_uncompress_failed (); - return 0; - } - return 1; - } + return 1; pin -= 4; |