Project

General

Profile

Actions

Bug #2996

closed

dragonfly/usr.bin/gcore/elfcore.c:487: off by one error ?

Added by dcb about 7 years ago. Updated about 7 years ago.

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 #1

Updated by dillon about 7 years ago

  • Status changed from New to Closed

committed

Actions

Also available in: Atom PDF