delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/24/08:08:44

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
Delivered-To: mailing list cygwin AT cygwin DOT com
From: KRISTOF DOT DOFFING AT lhsystems DOT com
Message-ID: <4FBF09C6D88BD011A5B74000611400100669ACE2@XNT-FRABASE-2>
To: cygwin AT cygwin DOT com
Subject: AW: STATUS+-AF8-ACCESS+-AF8-VIOLATION Exception
Date: Thu, 24 Jan 2002 14:01:41 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)

Of course it crashes.
writing to a string literal +ACo-is+ACo- an access violation.
BTW: This piece of code is a violation of any good taste
and should crash on any system.

(depends on whether the string constant is stored on the data segment or in
the code segment).

Nevertheless, this is not really a cygwin topic (ASAIK).

Kristof Doffing
Lufthansa Systems
Airline Services GmbH, FRA AS/S
FAC, Hugo-Eckener-Ring A.8.02
60549 Frankfurt/Main
Tel.: +-49 69 / 696 92630
Fax : +-49 69 / 696 92062


-----Urspr+APw-ngliche Nachricht-----
Von: Amos +AFs-mailto:tirtsab+AEA-inter.net.il+AF0-
Gesendet am: Donnerstag, 24. Januar 2002 14:01
An: cygwin+AEA-cygwin.com
Betreff: STATUS+-AF8-ACCESS+-AF8-VIOLATION Exception

Hi,

Any simple c program that uses a string function crashes with the
STATUS+AF8-ACCESS+AF8-VIOLATION exception.

+ACM-include +ADw-string.h+AD4-
main()
+AHs-    char +ACo-abc +AD0- +ACI-a b c+ACIAOw-
    strcpy(abc, +ACI-hello+ACI-)+ADs-
    printf(+ACIAJQ-s+AFw-n+ACI-, abc)+ADs-
+AH0-

Can you please help me. I use Windows2000.

Thanks,

Amos


--
Unsubscribe info:      http://cygwin.com/ml/+ACM-unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019