projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
More fixes for memory access violations exposed by fuzzed binaries.
[deliverable/binutils-gdb.git]
/
bfd
/
elf32-visium.c
diff --git
a/bfd/elf32-visium.c
b/bfd/elf32-visium.c
index a77b677f26fd946c370981bd3b2773c0b8def2d6..eae67097d1882b2833bb3cc6c8d9b3a63eef2454 100644
(file)
--- a/
bfd/elf32-visium.c
+++ b/
bfd/elf32-visium.c
@@
-501,6
+501,11
@@
visium_info_to_howto_rela (bfd *abfd ATTRIBUTE_UNUSED, arelent *cache_ptr,
break;
default:
+ if (r_type >= (unsigned int) R_VISIUM_max)
+ {
+ _bfd_error_handler (_("%A: invalid Visium reloc number: %d"), abfd, r_type);
+ r_type = 0;
+ }
cache_ptr->howto = &visium_elf_howto_table[r_type];
break;
}
This page took
0.024958 seconds
and
4
git commands to generate.