Article View: alt.privacy.anon-server
Article #47014The triumph of Richard Heathfield, was: The demise of Richard Heathfield
From: Bryan Olson
Date: Wed, 13 Nov 2002 18:24
Date: Wed, 13 Nov 2002 18:24
47 lines
3008 bytes
3008 bytes
Thomas J. Boschloo wrote:
> Richard Heathfield wrote:
>>int GetWord(string &word, FILE *fp)
>>{
>> int result = 0;
>>
>> int ch;
>>
>> word = "";
>>
>> /* skip leading spaces */
>> do
>> {
>> ch = fgetc(fp);
>> } while(ch != EOF && isspace((unsigned char)ch));
>>
>> if(ch != EOF)
>> {
>> do
>> {
>> word += ch;
>> ch = fgetc(fp);
>> } while(ch != EOF &&
>> (isalpha((unsigned char)ch) ||
>> '\'' == ch ||
>> '-' == ch));
>> }
>>
>> if(EOF == ch)
>> {
>> result = 1;
>> }
>>
>> return result;
>>}
>
>
> I think I see an unchecked buffer here, so I assume the whole post is a
> nut post to paraphrase your own words.
You think wrong. Perhaps you are unaware how the string class in
the C++ standard library works. Chalk another one up for Richard.
--
--Bryan
Technical Details
Message-ID:
<KNwA9.1284$pg4.27042958@newssvr14.news.prodigy.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.security.pgp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!prodigy.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr14.news.prodigy.com.POSTED!0ac03f2d!not-for-mailReferences:
<3DC1596C.6D2B55BD@hccnet.nl.invalid> <3DC526FC.CBCFE9B6@hccnet.nl.invalid> <3DC5451F.DBF3CDDA@eton.powernet.co.uk> <pan.2002.11.03.17.05.02.482162@yahoo.co.uk> <3DC81975.45915377@hccnet.nl.invalid> <3DC85EA2.2C8E26DA@earthlink.net> <3DC95533.512AB0A3@hccnet.nl.invalid> <3DC976DA.32815A18@earthlink.net> <3DCBC0A8.F3785708@hccnet.nl.invalid> <3DCC0E5A.4C70F9F@eton.powernet.co.uk> <3DCD229B.1F302611@hccnet.nl.invalid> <3DCD3356.EBE0DD11@eton.powernet.co.uk> <3DD2955F.61C2149@hccnet.nl.invalid>Show Full Headers
Complete Article Headers
Message-ID: <KNwA9.1284$pg4.27042958@newssvr14.news.prodigy.com> Subject: The triumph of Richard Heathfield, was: The demise of Richard Heathfield Date: Wed, 13 Nov 2002 18:24:42 GMT From: Bryan Olson <fakeaddress@nowhere.org> References: <3DC1596C.6D2B55BD@hccnet.nl.invalid> <3DC526FC.CBCFE9B6@hccnet.nl.invalid> <3DC5451F.DBF3CDDA@eton.powernet.co.uk> <pan.2002.11.03.17.05.02.482162@yahoo.co.uk> <3DC81975.45915377@hccnet.nl.invalid> <3DC85EA2.2C8E26DA@earthlink.net> <3DC95533.512AB0A3@hccnet.nl.invalid> <3DC976DA.32815A18@earthlink.net> <3DCBC0A8.F3785708@hccnet.nl.invalid> <3DCC0E5A.4C70F9F@eton.powernet.co.uk> <3DCD229B.1F302611@hccnet.nl.invalid> <3DCD3356.EBE0DD11@eton.powernet.co.uk> <3DD2955F.61C2149@hccnet.nl.invalid> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.security.pgp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!prodigy.com!prodigy.com!newsmst01.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr14.news.prodigy.com.POSTED!0ac03f2d!not-for-mail User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: alt.privacy.anon-server,sci.crypt,alt.fan.cult-dead-cow,alt.security.pgp Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 48 NNTP-Posting-Host: 64.173.24.97 X-Complaints-To: abuse@prodigy.net X-Trace: newssvr14.news.prodigy.com 1037211882 ST000 64.173.24.97 (Wed, 13 Nov 2002 13:24:42 EST) NNTP-Posting-Date: Wed, 13 Nov 2002 13:24:42 EST Organization: Prodigy Internet http://www.prodigy.com X-UserInfo1: OXYWSRCE[ZWMBFH[OZK@_TDAYZOZ@GXOXR]ZMVMHQAVTUZ]CLNTCPFK[WDXDHV[K^FCGJCJLPF_D_NCC@FUG^Q\DINVAXSLIFXYJSSCCALP@PB@\OS@BITWAH\CQZKJMMD^SJA^NXA\GVLSRBD^M_NW_F[YLVTWIGAXAQBOATKBBQRXECDFDMQ\DZFUE@\JM