2015-01-20 09:00:50 +01:00
|
|
|
---
|
|
|
|
src/readelf.c | 6 ++++--
|
|
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
|
2013-09-30 16:29:55 +02:00
|
|
|
--- src/readelf.c
|
2019-02-21 08:19:34 +01:00
|
|
|
+++ src/readelf.c 2019-02-21 06:41:38.598573505 +0000
|
2021-04-06 09:42:26 +02:00
|
|
|
@@ -824,7 +824,7 @@ do_core_note(struct magic_set *ms, unsig
|
2014-03-28 11:32:53 +01:00
|
|
|
|
2006-12-19 00:15:53 +01:00
|
|
|
default:
|
2015-01-20 09:00:50 +01:00
|
|
|
if (type == NT_PRPSINFO && *flags & FLAGS_IS_CORE) {
|
2006-12-19 00:15:53 +01:00
|
|
|
- size_t i, j;
|
|
|
|
+ size_t i, j, m = 0;
|
|
|
|
unsigned char c;
|
|
|
|
/*
|
|
|
|
* Extract the program name. We assume
|
2021-04-06 09:42:26 +02:00
|
|
|
@@ -836,7 +836,9 @@ do_core_note(struct magic_set *ms, unsig
|
2006-12-19 00:15:53 +01:00
|
|
|
* 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++) {
|
2008-04-14 19:32:36 +02:00
|
|
|
unsigned char *cname, *cp;
|
2006-12-19 00:15:53 +01:00
|
|
|
size_t reloffset = prpsoffsets(i);
|
|
|
|
size_t noffset = doff + reloffset;
|