projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45b3629
)
Re: objdump read_section_stabs
author
Alan Modra
<amodra@gmail.com>
Tue, 21 Feb 2023 23:27:53 +0000
(09:57 +1030)
committer
Alan Modra
<amodra@gmail.com>
Tue, 21 Feb 2023 23:31:10 +0000
(10:01 +1030)
Also fix ubsan "applying zero offset to null pointer".
* objdump.c (print_section_stabs): Avoid ubsan warning.
binutils/objdump.c
patch
|
blob
|
history
diff --git
a/binutils/objdump.c
b/binutils/objdump.c
index 40ed6882b453c2705b25ef8aa70d6dc33260bc61..d00eed054c4c81ecfdb9dbed5cf8559ff70e7c49 100644
(file)
--- a/
binutils/objdump.c
+++ b/
binutils/objdump.c
@@
-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");