| delorie.com/archives/browse.cgi | search | 
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm | 
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> | 
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> | 
| List-Post: | <mailto:cygwin AT cygwin DOT com> | 
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> | 
| Sender: | cygwin-owner AT cygwin DOT com | 
| Mail-Followup-To: | cygwin AT cygwin DOT com | 
| Delivered-To: | mailing list cygwin AT cygwin DOT com | 
| Date: | Fri, 21 Jun 2002 22:04:29 -0400 | 
| From: | Christopher Faylor <cgf-noweply AT cygwin DOT com> | 
| To: | cygwin AT cygwin DOT com | 
| Subject: | Re: gcc 2.95.3-5 (NT4) STATUS_ACCESS_VIOLATION in case of a specific filename | 
| Message-ID: | <20020622020429.GC5750@redhat.com> | 
| Reply-To: | cygwin AT cygwin DOT com | 
| Mail-Followup-To: | cygwin AT cygwin DOT com | 
| References: | <F005CD411D18D3119C8F00508B08748004B3DE2F AT ehubunt100 DOT eth DOT ericsson DOT se> | 
| Mime-Version: | 1.0 | 
| In-Reply-To: | <F005CD411D18D3119C8F00508B08748004B3DE2F@ehubunt100.eth.ericsson.se> | 
| User-Agent: | Mutt/1.3.23.1i | 
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/
| webmaster | delorie software privacy | 
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |