From: Paul Eggert Date: Tue, 2 Nov 2004 20:18:26 +0000 (+0000) Subject: xreadlink problems with SSIZE_MAX. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=738ef71cec083add9e820ce352b7a5cc183e360c;p=pspp xreadlink problems with SSIZE_MAX. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 540db17d65..46da8729eb 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,13 @@ +2004-11-02 Paul Eggert + + * xreadlink.c (MAXSIZE): New macro. + (xreadlink): Use it instead of SSIZE_MAX. Ensure initial buffer + size does not exceed MAXSIZE. Avoid cast. + As suggested by Mark D. Baushke in + , + if readlink fails with buffer size just under MAXSIZE, try again + with MAXSIZE. + 2004-11-02 Derek R. Price and Paul Eggert