This is the mail archive of the
cygwin-developers
mailing list for the Cygwin project.
cygwin_create_path causes null pointer crashes
- From: Thomas Wolff <towo at towo dot net>
- To: cygwin-developers at cygwin dot com
- Date: Sat, 10 Dec 2016 03:03:21 +0100
- Subject: cygwin_create_path causes null pointer crashes
- Authentication-results: sourceware.org; auth=none
cygwin_create_path is supposed to call malloc itself,
however, it occasionally returns with null and errno == ENOSPC,
if it's provided with a network path, e.g.
cygwin_create_path(CCP_POSIX_TO_WIN_W, "/cygdrive/s/.config/mintty")
returns null in ~ 3 of 1000 cases, where /cygdrive/s exists but
/cygdrive/s/.config does not
------
Thomas