Avoid potential buffer overrun
Need to allow for terminating nul
This commit is contained in:
parent
36f742e2e7
commit
3b8404ce48
1 changed files with 1 additions and 1 deletions
|
|
@ -230,7 +230,7 @@ wxDynamicLibraryDetailsArray wxDynamicLibrary::ListLoaded()
|
|||
// format is: "start-end perm offset maj:min inode path", see proc(5)
|
||||
void *start,
|
||||
*end;
|
||||
switch ( sscanf(buf, "%p-%p %*4s %*p %*02x:%*02x %*d %1024s\n",
|
||||
switch ( sscanf(buf, "%p-%p %*4s %*p %*02x:%*02x %*d %1023s\n",
|
||||
&start, &end, path) )
|
||||
{
|
||||
case 2:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue