Actions
Bug #2996
closeddragonfly/usr.bin/gcore/elfcore.c:487: off by one error ?
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
03/29/2017
Due date:
% Done:
0%
Estimated time:
Description
usr.bin/gcore/elfcore.c:487]: (error) Width 16 given in format string (no. 4) is larger than destination buffer 'type16', use %15s to prevent overflowing it.
Source code is
n = sscanf(mapbuf + pos, "%lx lx %d %*d %*x %3[-rwx]"
" %*d %*d %*x %*s %*s %16s %*s[\n]%n",
&start, &end, prot, type, &len);
Actions