This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: gcc 2.95.3-5 (NT4) STATUS_ACCESS_VIOLATION in case of a specific filename
On Thu, Jun 20, 2002 at 02:08:55PM +0200, Zsolt Kegyes-Brassai (ETH) wrote:
>I get a segmentation fault message (STATUS_ACCESS_VIOLATION) when I am
>using the following type of filename: LIN_TTR.31032002212303.0037
>
>But it's working well when I inserted an extra character before first
>dot in the filename: LIN1_TTR.31032002212303.0037
I didn't look too closely into this but you can't do this:
outfile_path = strcat(strdup(argv[1]), ".hex");
strdup only allocates enough space to hold a copy of argv[1]. That
statement, at least stands a good chance of producing a SEGV.
cgf
--
Please do not send me personal email with cygwin questions.
Use the resources at http://cygwin.com/ .
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/