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:
32168ca
)
PR26506 UBSAN: elf32-xtensa.c:3203 null pointer memcpy
author
Alan Modra
<amodra@gmail.com>
Wed, 26 Aug 2020 10:50:11 +0000
(20:20 +0930)
committer
Alan Modra
<amodra@gmail.com>
Wed, 26 Aug 2020 13:53:45 +0000
(23:23 +0930)
PR 26506
* elf32-xtensa.c (elf_xtensa_combine_prop_entries): Return early
when section is empty.
bfd/ChangeLog
patch
|
blob
|
history
bfd/elf32-xtensa.c
patch
|
blob
|
history
diff --git
a/bfd/ChangeLog
b/bfd/ChangeLog
index 1cd7943abc39da92746c00d5491c8967b675f60f..765188d303c2380d7f8362352a1c35bddf4e4e53 100644
(file)
--- a/
bfd/ChangeLog
+++ b/
bfd/ChangeLog
@@
-1,3
+1,9
@@
+2020-08-26 Alan Modra <amodra@gmail.com>
+
+ PR 26506
+ * elf32-xtensa.c (elf_xtensa_combine_prop_entries): Return early
+ when section is empty.
+
2020-08-26 Alan Modra <amodra@gmail.com>
PR 26498
diff --git
a/bfd/elf32-xtensa.c
b/bfd/elf32-xtensa.c
index 65c6ceb37942b9d8849efc4ea460a34156415ad9..5184fbf1be7646638b157cf5dbe746a25851c113 100644
(file)
--- a/
bfd/elf32-xtensa.c
+++ b/
bfd/elf32-xtensa.c
@@
-3117,6
+3117,9
@@
elf_xtensa_combine_prop_entries (bfd *output_bfd,
int n, m, num;
section_size = sxtlit->size;
+ if (section_size == 0)
+ return 0;
+
BFD_ASSERT (section_size % 8 == 0);
num = section_size / 8;