Projects
home:matwey:libfailure:backports
gcc48
gcc48-bsc1142649.patch
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gcc48-bsc1142649.patch of Package gcc48
From b1bc0f50350a568e67ed731c4fec2c72847f15fe Mon Sep 17 00:00:00 2001 From: Ren Kimura <rkx1209dev@gmail.com> Date: Tue, 23 Jul 2019 07:33:32 +0000 Subject: [PATCH] libiberty: Check zero value shstrndx in simple-object-elf.c To: gcc-patches@gcc.gnu.org From-SVN: r273718 --- libiberty/ChangeLog | 5 +++++ libiberty/simple-object-elf.c | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/libiberty/simple-object-elf.c b/libiberty/simple-object-elf.c index 502388991a0..bdee963634d 100644 --- a/libiberty/simple-object-elf.c +++ b/libiberty/simple-object-elf.c @@ -548,7 +548,15 @@ simple_object_elf_match (unsigned char header[SIMPLE_OBJECT_MATCH_HEADER_LEN], XDELETE (eor); return NULL; } - + + if (eor->shstrndx == 0) + { + *errmsg = "invalid ELF shstrndx == 0"; + *err = 0; + XDELETE (eor); + return NULL; + } + return (void *) eor; } -- 2.34.1
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.