Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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/