This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Failed assertion in path.cc (path_conv::check)
- From: Corinna Vinschen <corinna-cygwin at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 21 Jun 2013 10:21:55 +0200
- Subject: Re: Failed assertion in path.cc (path_conv::check)
- References: <51C40016 dot 3000409 at cwilson dot fastmail dot fm>
- Reply-to: cygwin at cygwin dot com
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