Article View: news.software.nntp
Article #79297Re: 64-bit highmarks in active files
From: Xavier Roche
Date: Tue, 19 Aug 2008 16:18
Date: Tue, 19 Aug 2008 16:18
25 lines
2019 bytes
2019 bytes
Curt Welch a Γ©crit : > The only potential issue is if some popular but shitty newsreader that won't be > upgraded (like OE) happens to blow up I don't want to be pessimistic, but typically the C-function sscanf() will successfully return (unsigned int) 2^32 after 2^32 (ie. not a % 2^32 number, but the fixed UINT_MAX one) $ for i in $(seq 1 10) ; do ./fubar $[2**32-5+$i] ; done i == 4294967292 i == 4294967293 i == 4294967294 i == 4294967295 i == 4294967295 i == 4294967295 i == 4294967295 i == 4294967295 i == 4294967295 i == 4294967295 Which may clearly cause some problems. Something like an active client-side decision might be a good idea to decide whether or not you are advertising "id" or "id % 2^32" (or anything clever than that)
Technical Details
Message-ID:
<g8erpq$bsk$1@news.httrack.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!feeder.erje.net!porbandar.httrack.net!montbard.httrack.net!news.httrack.net!not-for-mailReferences:
<g8dlk2$f2u$1@news.trigofacile.com> <87wsid4lbj.fsf@windlord.stanford.edu> <g8dnd1$h15$1@news.trigofacile.com> <20080819115615.443$wk@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <g8erpq$bsk$1@news.httrack.net> Subject: Re: 64-bit highmarks in active files Date: Tue, 19 Aug 2008 18:18:50 +0200 From: Xavier Roche <xroche@free.fr.NOSPAM.invalid> References: <g8dlk2$f2u$1@news.trigofacile.com> <87wsid4lbj.fsf@windlord.stanford.edu> <g8dnd1$h15$1@news.trigofacile.com> <20080819115615.443$wk@newsreader.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!feeder.erje.net!porbandar.httrack.net!montbard.httrack.net!news.httrack.net!not-for-mail Newsgroups: news.software.nntp Organization: Nowhere Corp. Lines: 25 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.httrack.net 1219162746 12180 192.168.1.1 (19 Aug 2008 16:19:06 GMT) X-Complaints-To: usenet@httrack.com NNTP-Posting-Date: Tue, 19 Aug 2008 16:19:06 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr-FR; In-Reply-To: <20080819115615.443$wk@newsreader.com>