23 lines
599 B
Plaintext
23 lines
599 B
Plaintext
--- src/readelf.c
|
|
+++ src/readelf.c 2006-11-22 15:54:30.000000000 +0100
|
|
@@ -621,7 +621,7 @@ core:
|
|
|
|
default:
|
|
if (xnh_type == NT_PRPSINFO) {
|
|
- size_t i, j;
|
|
+ size_t i, j, m = 0;
|
|
unsigned char c;
|
|
/*
|
|
* Extract the program name. We assume
|
|
@@ -633,7 +633,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++) {
|
|
size_t reloffset = prpsoffsets(i);
|
|
size_t noffset = doff + reloffset;
|
|
for (j = 0; j < 16; j++, noffset++,
|