Dirk Mueller
44bc099863
- Refresh patches and remove the visibility patch that I upstreamed few releases ago in a different form. OBS-URL: https://build.opensuse.org/request/show/161841 OBS-URL: https://build.opensuse.org/package/show/Base:System/file?expand=0&rev=75
25 lines
674 B
Plaintext
25 lines
674 B
Plaintext
Index: src/readelf.c
|
|
===================================================================
|
|
--- src/readelf.c.orig
|
|
+++ src/readelf.c
|
|
@@ -677,7 +677,7 @@ core:
|
|
|
|
default:
|
|
if (xnh_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
|
|
@@ -689,7 +689,9 @@ core:
|
|
* 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;
|