Hi Vincent, On Tue, May 21, 2024 at 12:26:58AM GMT, Vincent Lefevre wrote: > On 2024-05-20 23:49:13 +0200, Alejandro Colomar wrote: > > I think I found a bug in POSIX.1-2017 (and probably, previous ones too, > > but didn't check). > > I already reported the issue in 2009 about the example: Thanks! > See thread "fgets/strtok and LINE_MAX" I started on 2009-09-21 > in the Austin Group mailing-list. It is available on gmane: > > Path: news.gmane.org!not-for-mail > From: Vincent Lefevre <vincent-opgr-opTGSl+ZDNkdnm+yROfE0A@xxxxxxxxxxxxxxxx> > Newsgroups: gmane.comp.standards.posix.austin.general > Subject: fgets/strtok and LINE_MAX > Date: Mon, 21 Sep 2009 01:03:13 +0200 > Lines: 31 > Approved: news@xxxxxxxxx > Message-ID: <20090920230313.GV657@xxxxxxxxxxxxxxxxxxx> > [...] Hmmm, how does that thing work? Any http link available? > > There's the issue with the missing "+1", but also whether > LINE_MAX < INT_MAX. I guess the LINE_MAX <? INT_MAX issue is not an actual issue as long as implementations do the Right Thing and don't set it to >= INT_MAX. > See also > https://www.austingroupbugs.net/view.php?id=182 Thanks! Have a lovely day! Alex -- <https://www.alejandro-colomar.es/>
Attachment:
signature.asc
Description: PGP signature