]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libbacktrace: it's OK if zstd decompressor sees no backward bits
authorIan Lance Taylor <iant@golang.org>
Sun, 16 Jun 2024 22:39:53 +0000 (15:39 -0700)
committerIan Lance Taylor <iant@golang.org>
Sun, 16 Jun 2024 22:44:36 +0000 (15:44 -0700)
* elf.c (elf_fetch_bits_backward) Don't fail if no bits are
available.

libbacktrace/elf.c

index 3cd87020b031530b46a5eff79ef51598562554c8..735f8752500897e39dfd8ab37c04cfc3237f9da2 100644 (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;