diff options
author | Ken Brown <kbrown@cornell.edu> | 2021-12-26 16:42:26 -0500 |
---|---|---|
committer | Ken Brown <kbrown@cornell.edu> | 2021-12-26 18:29:23 -0500 |
commit | 0ce992c1e40f843d5f264e87908a6decfd6681d1 (patch) | |
tree | 4ed473575becd2bc74eff4e7e3a947b53363f6af /newlib/libc/include/stdio_ext.h | |
parent | 3328740799d7c229293f1fcbd26cbd1e4d268e70 (diff) | |
download | newlib-0ce992c1e40f843d5f264e87908a6decfd6681d1.zip newlib-0ce992c1e40f843d5f264e87908a6decfd6681d1.tar.gz newlib-0ce992c1e40f843d5f264e87908a6decfd6681d1.tar.bz2 |
Cygwin: fhandler_pipe::get_query_hdl_per_process: avoid a crash
NtQueryInformationProcess(ProcessHandleInformation) can return
STATUS_SUCCESS with invalid handle data for certain processes
("minimal" processes on Windows 10). This can cause a crash when
there's an attempt to access that data. Fix that by setting
NumberOfHandles to zero before calling NtQueryInformationProcess.
Addresses: https://cygwin.com/pipermail/cygwin-patches/2021q4/011611.html
Diffstat (limited to 'newlib/libc/include/stdio_ext.h')
0 files changed, 0 insertions, 0 deletions