* path.sgml (func-cygwin-conv-path): Document returning EINVAL if
"from" is NULL.
+2013-06-21 Corinna Vinschen <corinna@vinschen.de>
+
+ * path.cc (cygwin_conv_path): Handle NULL "from" path gracefully.
+ * path.sgml (func-cygwin-conv-path): Document returning EINVAL if
+ "from" is NULL.
+
2013-06-19 Christopher Faylor <me.cygwin2013@cgf.cx>
* winf.h (av::unshift): Make __reg2.
bool relative = !!(what & CCP_RELATIVE);
what &= CCP_CONVTYPE_MASK;
+ if (!from)
+ {
+ set_errno (EINVAL);
+ return -1;
+ }
+
switch (what)
{
case CCP_POSIX_TO_WIN_A:
error and errno is set to one of the below values.</para>
<programlisting>
- EINVAL what has an invalid value.
+ EINVAL what has an invalid value or from is NULL.
EFAULT from or to point into nirvana.
ENAMETOOLONG the resulting path is longer than 32K, or, in case
of what == CCP_POSIX_TO_WIN_A, longer than MAX_PATH.