delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/02/05/08:24:01

Message-ID: <04cc01c2cd19$b66d2d40$0600000a@broadpark.no>
From: "Gisle Vanem" <giva AT bgnett DOT no>
To: <djgpp-workers AT delorie DOT com>
References: <Pine DOT OSF DOT 4 DOT 51 DOT 0302051407240 DOT 1814 AT sirppi DOT helsinki DOT fi>
Subject: Re: Checking for stack overflow
Date: Wed, 5 Feb 2003 14:23:03 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1123
X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1123
Reply-To: djgpp-workers AT delorie DOT com

"Esa A E Peuha" <peuha AT cc DOT helsinki DOT fi> said:

> Gcc apparently allows to define freely what instructions are used to
> allocate space from the stack.  Since we have a fixed stack size, it
> would be good to check esp againt the stack limit every time it's
> changed. 

Not by default IMHO (although many compiler do it by default). It would 
break lots of code that sets stack manually to some fixed block. 

But if it's easy to implement I'm all for it (option "-fcheck-stack" and accompanying
"#pragma check_stack .. " and  "__attribute__(..)").

Gisle V.

Not what you think it is;  http://www.nice-tits.org


- Raw text -


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