=================================================================== RCS file: /cvs/mandoc/TODO,v retrieving revision 1.220 retrieving revision 1.221 diff -u -p -r1.220 -r1.221 --- mandoc/TODO 2016/07/31 09:29:13 1.220 +++ mandoc/TODO 2016/08/02 11:09:46 1.221 @@ -1,6 +1,6 @@ ************************************************************************ * Official mandoc TODO. -* $Id: TODO,v 1.220 2016/07/31 09:29:13 schwarze Exp $ +* $Id: TODO,v 1.221 2016/08/02 11:09:46 schwarze Exp $ ************************************************************************ Many issues are annotated for difficulty as follows: @@ -619,6 +619,13 @@ Several areas can be cleaned up to make mandoc even fa ************************************************************************ * structural issues ************************************************************************ + +- POSIX says in the documentation of sysconf(3) that PATH_MAX + is allowed to be so large that it is a bad idea to use it + for sizing static buffers. So use dynamic buffers throughout. + See the file test-PATH_MAX.c for details. + Found by Aaron M. Ucko in the GNU Hurd via Bdale Garbee, + https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=829624 - We use the input line number at several places to distinguish same-line from different-line input. That plainly doesn't work