]> granicus.if.org Git - procps-ng/commit
Fix off-by-one in pmap
authorCristian Rodríguez <crrodriguez@opensuse.org>
Wed, 22 May 2013 22:22:37 +0000 (18:22 -0400)
committerCristian Rodríguez <crrodriguez@opensuse.org>
Wed, 22 May 2013 22:22:37 +0000 (18:22 -0400)
commit5a39544b215c99e93ba435aa4a671b0192329c08
tree521c5e0956aee59d382e7e01bf8ee92c2493ef00
parent39c6de4c8788fae91e008cc686db1d1e65b8bbc5
Fix off-by-one in pmap

When procps is built with gcc 4.8 address sanitizer

static int one_proc(proc_t * p)..
..
char smap_key[20];
...
(sscanf(mapbuf, "%20[^:]: %llu", smap_key..

rightfully results in an overflow and the program aborts.
pmap.c