mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 22:48:57 +08:00
Re: objdump read_section_stabs
Also fix ubsan "applying zero offset to null pointer". * objdump.c (print_section_stabs): Avoid ubsan warning.
This commit is contained in:
@ -4499,7 +4499,7 @@ print_section_stabs (bfd *abfd,
|
||||
bfd_byte *stabp, *stabs_end;
|
||||
|
||||
stabp = stabs;
|
||||
stabs_end = stabp + stab_size;
|
||||
stabs_end = PTR_ADD (stabp, stab_size);
|
||||
|
||||
printf (_("Contents of %s section:\n\n"), sanitize_string (stabsect_name));
|
||||
printf ("Symnum n_type n_othr n_desc n_value n_strx String\n");
|
||||
|
Reference in New Issue
Block a user