diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2014-06-23 10:52:44 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2014-06-23 10:52:44 +0000 |
commit | 686f560ece247fdff45feff6c6efd0520db0d4ca (patch) | |
tree | 7e6196bacb86b0671225021ec24b71bd3032fec9 /winsup/cygwin/dll_init.cc | |
parent | a1fd4b1a03d6f0af38fd1e1d9cc250f446bb0483 (diff) | |
download | newlib-686f560ece247fdff45feff6c6efd0520db0d4ca.zip newlib-686f560ece247fdff45feff6c6efd0520db0d4ca.tar.gz newlib-686f560ece247fdff45feff6c6efd0520db0d4ca.tar.bz2 |
* dll_init.cc (dll_list::alloc): Fix buffer overrun (CID 59940).
Diffstat (limited to 'winsup/cygwin/dll_init.cc')
-rw-r--r-- | winsup/cygwin/dll_init.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/dll_init.cc b/winsup/cygwin/dll_init.cc index c61bbdb..637f1cc 100644 --- a/winsup/cygwin/dll_init.cc +++ b/winsup/cygwin/dll_init.cc @@ -179,7 +179,7 @@ dll * dll_list::alloc (HINSTANCE h, per_process *p, dll_type type) { WCHAR buf[NT_MAX_PATH]; - GetModuleFileNameW (h, buf, sizeof (buf)); + GetModuleFileNameW (h, buf, NT_MAX_PATH); PWCHAR name = buf; if (!wcsncmp (name, L"\\\\?\\", 4)) { |