]> sourceware.org Git - newlib-cygwin.git/commit - winsup/utils/strace.cc
* loadlib.h: New header implementing safe LoadLibrary calls.
authorCorinna Vinschen <corinna@vinschen.de>
Sat, 28 Aug 2010 11:22:37 +0000 (11:22 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Sat, 28 Aug 2010 11:22:37 +0000 (11:22 +0000)
commit71d8f118da24bb5a31f406e5fba222a324913b05
tree093f51ed610d7333e4a933f68a1ee8900f5438bb
parent893a8b78fca52a5474fbca9a0b881b622afc5044
* loadlib.h: New header implementing safe LoadLibrary calls.
Include throughout files using LoadLibrary function.
* cygcheck.cc (dump_sysinfo): Retrieve kernel32.dll handle via
GetModuleHandle, rather than using LoadLibrary.
* cygpath.cc (get_long_name): Ditto.
(do_sysfolders): Append .dll suffix in LoadLibrary call.
* ldh.cc (WinMain): Use LoadLibraryExW with DONT_RESOLVE_DLL_REFERENCES
to avoid loading malicious library code.
* locale.cc (print_locale_with_codeset): Change way to retrieve
kernel32.dll path.
13 files changed:
winsup/utils/ChangeLog
winsup/utils/cygcheck.cc
winsup/utils/cygpath.cc
winsup/utils/ldh.cc
winsup/utils/loadlib.h [new file with mode: 0644]
winsup/utils/locale.cc
winsup/utils/mkgroup.c
winsup/utils/mkpasswd.c
winsup/utils/module_info.cc
winsup/utils/path.cc
winsup/utils/ps.cc
winsup/utils/regtool.cc
winsup/utils/strace.cc
This page took 0.033903 seconds and 5 git commands to generate.