]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
libdw: Don't dereference and assign values we are skipping
authorMark Wielaard <mark@klomp.org>
Thu, 3 Nov 2022 12:44:35 +0000 (13:44 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 3 Nov 2022 12:44:35 +0000 (13:44 +0100)
We don't use the FDE address encoding byte, so no reason
to read and store it. Just skip past it.

Signed-off-by: Mark Wielaard <mark@klomp.org>
libdw/ChangeLog
libdw/dwarf_next_cfi.c

index 3c595a3d24d350ab96f85abe2c847ea0cc0b3e7f..6cbf192d0248b9a4ab450ec130f1da3a5fe6d6d6 100644 (file)
@@ -1,3 +1,8 @@
+2022-11-03  Mark Wielaard  <mark@klomp.org>
+
+       * dwarf_next_cfi.c (dwarf_next_cfi): Don't dereference and assign
+       bytes.
+
 2022-10-21  Yonggang Luo  <luoyonggang@gmail.com>
 
        * dwarf_begin_elf.h: Don't include unistd.h and endian.h.
index 23b1688598329f0b770f0a8c9a841ea3f428e9bc..be08984f1a4375f88bf1c1246ac663c4502c094d 100644 (file)
@@ -226,7 +226,7 @@ dwarf_next_cfi (const unsigned char e_ident[],
              if (sized_augmentation)
                {
                  /* Skip FDE address encoding byte.  */
-                 encoding = *bytes++;
+                 bytes++;
                  continue;
                }
              break;