I was just describing cygwin_conv_path on a rust issue (https://github.com/rust-lang/backtrace-rs/pull/704). I was saying that the pointer `to` is not accessed when `size` is 0, but it turns out on circa line 4022 in path.cc
to = (void *) wcpcpy ((wchar_t *) to, ro_u_globalroot.Buffer); This is before `size` is checked and lsiz returned if it was zero, or ENOSPC set if size is too small, circa line 4060. This seems like a bug to me. -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple