diff options
author | Bernhard Übelacker <bernhardu@mailbox.org> | 2024-11-16 18:09:50 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2024-11-19 10:09:51 +0100 |
commit | dbb8069df56cb68ea1167b3bc0ceb66fa6c35d3f (patch) | |
tree | 557d0ccf62978efd0e2f5ad8a17a5e099f12f25e /winsup/cygwin/smallprint.cc | |
parent | 9da0ac405163466bafc404e2335ae7f23309c311 (diff) | |
download | newlib-dbb8069df56cb68ea1167b3bc0ceb66fa6c35d3f.zip newlib-dbb8069df56cb68ea1167b3bc0ceb66fa6c35d3f.tar.gz newlib-dbb8069df56cb68ea1167b3bc0ceb66fa6c35d3f.tar.bz2 |
Cygwin: check_dir_not_empty: Avoid leaving the allocated buffer.
The pointer pfni gets allocated the buffer at the begin,
and is used in the NtQueryDirectoryFile call before the loops.
In the loop the pointer pfni is also used as iterator.
Therefore it holds no longer the initial buffer at the call
to NtQueryDirectoryFile in the while conditition at the bottom.
Fixes: 28fa2a72f8106 ("* syscalls.cc (check_dir_not_empty): Check surplus directory entries")
Co-authored-by: Corinna Vinschen <corinna@vinschen.de>
Signed-off-by: Bernhard Übelacker <bernhardu@mailbox.org>
Diffstat (limited to 'winsup/cygwin/smallprint.cc')
0 files changed, 0 insertions, 0 deletions