aboutsummaryrefslogtreecommitdiff
path: root/include/gcc-c-interface.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2024-12-10 13:55:54 +0100
committerCorinna Vinschen <corinna@vinschen.de>2024-12-10 16:50:11 +0100
commit815eba882e32ecadd6862c71c36fccdcb0842a76 (patch)
tree2822d4a6bf1afcd4e0b89141d3e86197289a2900 /include/gcc-c-interface.h
parent016ed8fba21e3fe880c95ecaf4df0df246c8d61c (diff)
downloadnewlib-815eba882e32ecadd6862c71c36fccdcb0842a76.zip
newlib-815eba882e32ecadd6862c71c36fccdcb0842a76.tar.gz
newlib-815eba882e32ecadd6862c71c36fccdcb0842a76.tar.bz2
Cygwin: path_conv: allow NULL handle in init_reopen_attr()
init_reopen_attr() doesn't guard against a NULL handle. However, there are scenarios calling functions deliberately with a NULL handle, for instance, av::setup() calling check_file_access() only if opening the file did NOT succeed. So check for a NULL handle in init_reopen_attr() and if so, use the name based approach filling the OBJECT_ATTRIBUTES struct, just as in the has_buggy_reopen() case. Fixes: 4c9d01fdad2a ("* mount.h (class fs_info): Add has_buggy_reopen flag and accessor methods.") Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'include/gcc-c-interface.h')
0 files changed, 0 insertions, 0 deletions