]> git.ipfire.org Git - thirdparty/elfutils.git/commit
readelf: Use section_name instead of elf_strptr in print_debug_frame_section
authorMark Wielaard <mark@klomp.org>
Thu, 27 Feb 2025 20:22:49 +0000 (21:22 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 27 Feb 2025 20:23:01 +0000 (21:23 +0100)
commitdfa7b2c23ddabcba2a4972fa67d3c670ae31f1ee
tree17312ada89457e552f2c63d763e210019dfff472
parentd40e0808309babcf2c88864aa3acef23f1fd3a70
readelf: Use section_name instead of elf_strptr in print_debug_frame_section

All other print_debug_* functions use section_name (ebl, shdr) to get
the current section name. Be consistent and use the same method in
print_debug_frame_section to make static analyzers happy who might
think elf_strptr can return NULL in this case.

      * src/readelf.c (print_debug_frame_section): Use section_name
      instead of elf_strptr to get the section name.

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/readelf.c