Sourceware Bugzilla – Attachment 7968 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 problem in comment #40
0001-Possible-fix-for-problem-in-comment-40.patch (text/plain), 860 bytes, created by
Espen Grindhaug
on 2014-11-23 18:06:17 UTC
(
hide
)
Description:
Possible fix for problem in comment #40
Filename:
MIME Type:
Creator:
Espen Grindhaug
Created:
2014-11-23 18:06:17 UTC
Size:
860 bytes
patch
obsolete
>From 491b39773edc27c0cdeea86fb889f9a14e23fe17 Mon Sep 17 00:00:00 2001 >From: Espen Grindhaug <egrindha@cisco.com> >Date: Sun, 23 Nov 2014 19:05:40 +0100 >Subject: [PATCH] Possible fix for problem in comment #40 > >--- > binutils/readelf.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/binutils/readelf.c b/binutils/readelf.c >index 14669c4..02cc43b 100644 >--- a/binutils/readelf.c >+++ b/binutils/readelf.c >@@ -5160,7 +5160,8 @@ process_section_headers (FILE * file) > { > section = section_headers + elf_header.e_shstrndx; > >- if (section->sh_size != 0) >+ /* PR17531: file: 2917-12673-0.004 */ >+ if (section->sh_size != 0 && section->sh_size < elf_header.e_shentsize) > { > string_table = (char *) get_data (NULL, file, section->sh_offset, > 1, section->sh_size, >-- >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