Fix off-by-one by pmap
Merge request 15
This commit is contained in:
commit
c937826137
2
pmap.c
2
pmap.c
@ -591,7 +591,7 @@ static int one_proc(proc_t * p)
|
|||||||
unsigned long long file_offset, inode;
|
unsigned long long file_offset, inode;
|
||||||
unsigned dev_major, dev_minor;
|
unsigned dev_major, dev_minor;
|
||||||
unsigned long long smap_value;
|
unsigned long long smap_value;
|
||||||
char smap_key[20];
|
char smap_key[21];
|
||||||
|
|
||||||
/* hex values are lower case or numeric, keys are upper */
|
/* hex values are lower case or numeric, keys are upper */
|
||||||
if (mapbuf[0] >= 'A' && mapbuf[0] <= 'Z') {
|
if (mapbuf[0] >= 'A' && mapbuf[0] <= 'Z') {
|
||||||
|
Loading…
Reference in New Issue
Block a user