From 3b8404ce48edd58ac66ac5fa3c0bf1d47efc5ac4 Mon Sep 17 00:00:00 2001 From: Paul Cornett Date: Sun, 17 Feb 2019 22:32:40 -0800 Subject: [PATCH] Avoid potential buffer overrun Need to allow for terminating nul --- src/unix/dlunix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/dlunix.cpp b/src/unix/dlunix.cpp index cf51417a25..79fd2a6cbd 100644 --- a/src/unix/dlunix.cpp +++ b/src/unix/dlunix.cpp @@ -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: