Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
python-magic.16612
file-5.22-elf.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File file-5.22-elf.dif of Package python-magic.16612
--- src/readelf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) --- src/readelf.c +++ src/readelf.c 2015-01-19 10:25:08.749519408 +0000 @@ -706,7 +706,7 @@ do_core_note(struct magic_set *ms, unsig default: if (type == NT_PRPSINFO && *flags & FLAGS_IS_CORE) { - size_t i, j; + size_t i, j, m = 0; unsigned char c; /* * Extract the program name. We assume @@ -718,7 +718,9 @@ do_core_note(struct magic_set *ms, unsig * If the characters aren't all printable, * reject it. */ - for (i = 0; i < NOFFSETS; i++) { + if (os_style == OS_STYLE_SVR4) + m = 1; + for (i = m; i < NOFFSETS; i++) { unsigned char *cname, *cp; size_t reloffset = prpsoffsets(i); size_t noffset = doff + reloffset;
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