Article View: news.software.nntp
Article #79305Re: 64-bit highmarks in active files
From: Curt Welch
Date: Thu, 21 Aug 2008 05:41
Date: Thu, 21 Aug 2008 05:41
45 lines
3424 bytes
3424 bytes
Xavier Roche <xroche@free.fr.NOSPAM.invalid> wrote: > 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) It's only a problem if the newsreader actually tries to do something with the number which most probably won't as long as the user doesn't try to subscribe to the group. At least that's what I'm thinking. If the user subscribes to the group, any decent newsreader will deal with "bad numbers" in an intelligent way meaning it won't core dump or the like - it will just not be able to show articles correctly. Only if a very popular but not likely to be fixed any time soon newsreader (like OE) has a problem where these invalid numbers cause it to core dump, or cause it to corrupt it's data files (causing all other groups to be corrupted) will it be a big issue. Once some of the big guys like giganews lets their numbers roll past the 31 bit limit all the current popular and supported newsreaders will get changed to deal with it in short order and the problem will pass. Any newsreader which isn't fixed (which has a user base which wants to access boneless), will stop being popular. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com http://NewsReader.Com/
Technical Details
Message-ID:
<20080821014153.285$ge@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!nx01.iad01.newshosting.com!newshosting.com!198.186.194.250.MISMATCH!news-xxxfer.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr2.newsreader.com.POSTED!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> <g8erpq$bsk$1@news.httrack.net>Show Full Headers
Complete Article Headers
Message-ID: <20080821014153.285$ge@newsreader.com>
Subject: Re: 64-bit highmarks in active files
Date: Thu, 21 Aug 2008 05:41:49 +0000
From: curt@kcwc.com (Curt Welch)
References: <g8dlk2$f2u$1@news.trigofacile.com> <87wsid4lbj.fsf@windlord.stanford.edu> <g8dnd1$h15$1@news.trigofacile.com> <20080819115615.443$wk@newsreader.com> <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!nx01.iad01.newshosting.com!newshosting.com!198.186.194.250.MISMATCH!news-xxxfer.readnews.com!news-out.readnews.com!postnews3.readnews.com!nr2.newsreader.com.POSTED!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-NRC-Trace: NewsReader.Com NjjyMXtSpLKEDrcN9w@Xs+6i+FCOk7pbuGYm@syeGP7r4qG8s-
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,
?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 45
NNTP-Posting-Host: bc1c2b88.nr2.newsreader.com
X-Trace: DXC=4:G5``NZWGF@fIdfJJ>SFKOA8_@f\K_iBe=1IYIm`AYJ`?HlJB; Q?hIiJ;
iV2YAoGE6Qg<bEjo>OL; 2PP]XVESnM
X-Complaints-To: abuse@newsreader.com