delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
X-Trace-PostClient-IP: | 68.147.131.211 |
From: | Brian Inglis <Brian DOT Inglis AT SystematicSw DOT Invalid> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: strange comparison error |
Organization: | Systematic Software |
Message-ID: | <p1j270ldcc2pnrbqhg8884hqdru6rms265@4ax.com> |
References: | <opr49vxpzbwfff31 AT news DOT mad DOT ttd DOT net> <200403221712 DOT i2MHCeik004358 AT envy DOT delorie DOT com> <opr5a5opiiwfff31 AT news DOT mad DOT ttd DOT net> <200403231337 DOT i2NDbwaw006048 AT envy DOT delorie DOT com> <opr5zcplh9wfff31 AT news DOT mad DOT ttd DOT net> |
X-Newsreader: | Forte Agent 1.93/32.576 English (American) |
MIME-Version: | 1.0 |
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 <rafael-no_spam_please_ AT geninfor DOT com> wrote: >En Tue, 23 Mar 2004 08:37:58 -0500, DJ Delorie <dj AT delorie DOT com> 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |