Sourceware Bugzilla – Attachment 7966 Details for
Bug 17531
readelf crashes on fuzzed samples
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Possible fix for asan problems in comment #39
0001-Possible-fix-for-ASAN-problems-in-comment-39.patch (text/plain), 907 bytes, created by
Espen Grindhaug
on 2014-11-23 15:07:09 UTC
(
hide
)
Description:
Possible fix for asan problems in comment #39
Filename:
MIME Type:
Creator:
Espen Grindhaug
Created:
2014-11-23 15:07:09 UTC
Size:
907 bytes
patch
obsolete
>From 74f197f45ccf0d9c019bd71f995377c49922fae8 Mon Sep 17 00:00:00 2001 >From: Espen Grindhaug <egrindha@cisco.com> >Date: Sun, 23 Nov 2014 16:05:30 +0100 >Subject: [PATCH] Possible fix for ASAN problems in comment #39 > >--- > binutils/readelf.c | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/binutils/readelf.c b/binutils/readelf.c >index e8ce279..38637d4 100644 >--- a/binutils/readelf.c >+++ b/binutils/readelf.c >@@ -4760,6 +4760,12 @@ get_32bit_elf_symbols (FILE * file, > _("symbol table section indicies")); > if (shndx == NULL) > goto exit_point; >+ /* PR17531: file: heap-buffer-overflow */ >+ else if (symtab_shndx_hdr->sh_size / sizeof(Elf_External_Sym_Shndx) < number) >+ { >+ error (_("Invalid sh_size\n")); >+ goto exit_point; >+ } > } > > isyms = (Elf_Internal_Sym *) cmalloc (number, sizeof (Elf_Internal_Sym)); >-- >2.1.0 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 17531
:
7882
|
7883
|
7884
|
7889
|
7890
|
7892
|
7895
|
7901
|
7906
|
7911
|
7915
|
7916
|
7920
|
7921
|
7922
|
7927
|
7942
|
7945
|
7954
|
7957
|
7963
|
7964
|
7966
|
7967
|
7968
|
7975
|
7991
|
7994
|
7995
|
8019
|
8037
|
8038
|
8060
|
8061
|
8095
|
8102
|
8107
|
8108
|
8119
|
8124
|
8127