delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/03/22/12:13:23

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
Date: Mon, 22 Mar 2004 12:12:40 -0500
Message-Id: <200403221712.i2MHCeik004358@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <opr49vxpzbwfff31@news.mad.ttd.net> (message from
=?iso-8859-15?Q?Rafael_Garc=EDa?= on Mon, 22 Mar 2004 17:54:51 +0100)
Subject: Re: strange comparison error
References: <opr49vxpzbwfff31 AT news DOT mad DOT ttd DOT net>
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> if (pcampo>reg+MAXFIELDS) {     // intercept huge (bad) values

If integer overflow is the culprit, you'll find this a bit safer:

if (pcampo-reg > MAXFIELDS) {     // intercept huge (bad) values

- Raw text -


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