[DragonFlyBSD - Bug #2996] (Closed) dragonfly/usr.bin/gcore/elfcore.c:487: off by one error ?

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Thu Mar 30 14:02:15 PDT 2017


Issue #2996 has been updated by dillon.

Status changed from New to Closed

committed

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

* Author: dcb
* Status: Closed
* 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



More information about the Bugs mailing list