Article View: comp.arch
Article #499Re: Another Kick at Concertina III
From: John Levine
Date: Sat, 31 Oct 2026 20:56
Date: Sat, 31 Oct 2026 20:56
27 lines
2209 bytes
2209 bytes
According to MitchAlsup <user5857@newsgrouper.org.invalid>: >> >> Variable-width lines, either 0-255 characters or 0-65535 characters. >> >> And 32-bit line numbers may be used instead. >> > >> > What is wrong with <cr><lf> terminated lines ?? >> >> People might use gets() :-) (See the BUGS section in the Linux >> manpage). > >Gets the whole file into 1 buffer.....whiich is why my C code just used >getc() and I parsed strings/lines/keywords by myself. Uh, no, gets() reads one line. I suppose it might read the whole file if the file doesn't contain any \n characters. It's not exactly beyond the state of the art to process C strings securely. You use routines that know the length of intermediate buffers and expand them if needed. I use a package called bglibs but there are plenty of others. -- Regards, John Levine, johnl@taugh.com, Primary Perpetrator of "The Internet for Dummies", Please consider the environment before reading this e-mail. https://jl.ly
Technical Details
Message-ID:
<11c5kmh$dj8$1@gal.iecc.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder9.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mailReferences:
<1793295922-5857@newsgrouper.org> <1793471343-5857@newsgrouper.org> <11c5e1q$1ca6a$1@dont-email.me> <1793478800-5857@newsgrouper.org>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder9.news.weretis.net!news.misty.com!news.iecc.com!.POSTED.news.iecc.com!not-for-mail From: John Levine <johnl@taugh.com> Newsgroups: comp.arch Subject: Re: Another Kick at Concertina III Date: Sat, 31 Oct 2026 20:56:49 -0000 (UTC) Organization: Taughannock Networks Message-ID: <11c5kmh$dj8$1@gal.iecc.com> References: <1793295922-5857@newsgrouper.org> <1793471343-5857@newsgrouper.org> <11c5e1q$1ca6a$1@dont-email.me> <1793478800-5857@newsgrouper.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 31 Oct 2026 20:56:49 -0000 (UTC) Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="13928"; mail-complaints-to="abuse@iecc.com" In-Reply-To: <1793295922-5857@newsgrouper.org> <1793471343-5857@newsgrouper.org> <11c5e1q$1ca6a$1@dont-email.me> <1793478800-5857@newsgrouper.org> Cleverness: some X-Newsreader: trn 4.0-test77 (Sep 1, 2010) Originator: johnl@iecc.com (John Levine)