Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
cross-aarch64-gcc48-icecream-backend
gcc48-bsc1142649.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gcc48-bsc1142649.patch of Package cross-aarch64-gcc48-icecream-backend
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
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor