Failed assertion in path.cc (path_conv::check)

Corinna Vinschen corinna-cygwin@cygwin.com
Fri Jun 21 08:30:00 GMT 2013


On Jun 21 03:26, Charles Wilson wrote:
> The following statement:
> 
> char * tmp_path =
>    (char *) cygwin_create_path (CCP_POSIX_TO_WIN_A, newargz[0]);
> 
> Results in this error popup (and a coredump), when newargz[0] is
> NULL. Sure, it's a bug in my program to do that...but shouldn't it
> be handled more gracefully?  Like...return a NULL, rather than
> SIGABRT?

I changed the underlying cygwin_conv_path to handle NULL gracefully
by returning -1 and setting errno to EINVAL.  This results in a NULL
return from cygwin_create_path.


HTH,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list