mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 00:07:36 +08:00
* dcrt0.cc (insert_file): Fix potential buffer overflow.
This commit is contained in:
parent
0c273f5ac3
commit
023266aac8
@ -1,3 +1,7 @@
|
|||||||
|
2008-04-03 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
|
* dcrt0.cc (insert_file): Fix potential buffer overflow.
|
||||||
|
|
||||||
2008-04-03 Corinna Vinschen <corinna@vinschen.de>
|
2008-04-03 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* path.cc (mount_info::from_fstab): Get module path name of the Cygwin
|
* path.cc (mount_info::from_fstab): Get module path name of the Cygwin
|
||||||
|
@ -165,7 +165,7 @@ insert_file (char *name, char *&cmd)
|
|||||||
tmp_pathbuf tp;
|
tmp_pathbuf tp;
|
||||||
|
|
||||||
PWCHAR wname = tp.w_get ();
|
PWCHAR wname = tp.w_get ();
|
||||||
sys_mbstowcs (wname, NT_MAX_PATH + 1, name + 1);
|
sys_mbstowcs (wname, NT_MAX_PATH, name + 1);
|
||||||
f = CreateFileW (wname,
|
f = CreateFileW (wname,
|
||||||
GENERIC_READ, /* open for reading */
|
GENERIC_READ, /* open for reading */
|
||||||
FILE_SHARE_READ, /* share for reading */
|
FILE_SHARE_READ, /* share for reading */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user