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.
This commit is contained in:
Ian Lance Taylor 2024-06-16 15:39:53 -07:00
parent 33caee556c
commit 8348f8c22f

View File

@ -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;