23 lines
616 B
Plaintext
23 lines
616 B
Plaintext
--- src/readelf.c
|
|
+++ src/readelf.c 2014-03-28 10:12:22.094878811 +0000
|
|
@@ -737,7 +737,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
|
|
@@ -749,7 +749,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;
|