ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2009/12/04/07:15:20.1

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: RayeR <glaux AT centrum DOT cz>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Does DJGPP GCC support SSP stack protection?
Date: Fri, 4 Dec 2009 04:08:05 -0800 (PST)
Organization: http://groups.google.com
Lines: 17
Message-ID: <4dbf08a9-ce15-4b9f-aff8-1a324972318b@v25g2000yqk.googlegroups.com>
References: <8a4f755b-e150-4b60-99a5-71151b54ff9b AT m38g2000yqd DOT googlegroups DOT com>
<83bpkoq38g DOT fsf AT gnu DOT org> <42f2c9ab-efdf-407f-86ba-63bb28692fea AT e34g2000vbc DOT googlegroups DOT com>
<4ADE1631 DOT 9020003 AT iki DOT fi>
NNTP-Posting-Host: 90.181.199.10
Mime-Version: 1.0
X-Trace: posting.google.com 1259928485 31291 127.0.0.1 (4 Dec 2009 12:08:05 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Fri, 4 Dec 2009 12:08:05 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: v25g2000yqk.googlegroups.com; posting-host=90.181.199.10;
posting-account=Q0wMHAoAAADjYrghh94FTf6YnbpTqZgp
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21)
Gecko/20090403 SeaMonkey/1.1.16,gzip(gfe),gzip(gfe)
Bytes: 1554
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Well here's an example that standard memory protection will not catch
but SSP will.
I think it is a good think for debugging.

int pokus(int x)
{
  char buffer[10];
  int moo=0x55AA;
  buffer[10]='J';
  return(x+moo);
}

int main()
{
  pokus(1);
  return(0);
}

- Raw text -


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