X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Trace-PostClient-IP: 68.147.131.211 From: Brian Inglis Newsgroups: comp.os.msdos.djgpp Subject: Re: strange comparison error Organization: Systematic Software Message-ID: References: <200403221712 DOT i2MHCeik004358 AT envy DOT delorie DOT com> <200403231337 DOT i2NDbwaw006048 AT envy DOT delorie DOT com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Lines: 25 Date: Mon, 05 Apr 2004 12:08:50 GMT NNTP-Posting-Host: 24.71.223.147 X-Complaints-To: abuse AT shaw DOT ca X-Trace: pd7tw3no 1081166930 24.71.223.147 (Mon, 05 Apr 2004 06:08:50 MDT) NNTP-Posting-Date: Mon, 05 Apr 2004 06:08:50 MDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Mon, 05 Apr 2004 12:57:11 +0200 in comp.os.msdos.djgpp, Rafael García wrote: >En Tue, 23 Mar 2004 08:37:58 -0500, DJ Delorie escribió: > >> >>> Sorry, I don't understand. Could you please explain a bit more? We >>> are using 32 bit numbers, the size of the struct is around 100 >>> bytes. We should go to thousands of t_field's to reach >>> overflow. Right? I have 14 here. >> >> You don't know how close to the end of memory DJGPP put your >> structures, though. > >Ouch! So when I am running a 1Mb program on a 128Mb RAM machine I can get >pointers (from malloc, for example) with values near to 2Gb! If this is >true, I need to rewrite some code! 4GB is the number you need to worry about. -- Thanks. Take care, Brian Inglis Calgary, Alberta, Canada Brian DOT Inglis AT CSi DOT com (Brian dot Inglis at SystematicSw dot ab dot ca) fake address use address above to reply