Issue #2996 has been reported by dcb.

----------------------------------------
Bug #2996: dragonfly/usr.bin/gcore/elfcore.c:487: off by one error ?
http://bugs.dragonflybsd.org/issues/2996

* Author: dcb
* Status: New
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
usr.bin/gcore/elfcore.c:487]: (error) Width 16 given in format string (no. 4) 
is larger than destination buffer 'type[16]', 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);




-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://bugs.dragonflybsd.org/my/account

Reply via email to