[tex-live] [Fwd: pdflatex segmentation fault and patch to fix]

Udo Zallmann cantaro at gmail.com
Wed Jan 12 14:29:02 CET 2005


On Wed, 12 Jan 2005 10:35:07 +0100, Taco Hoekwater <taco at elvenkind.com> wrote:

>    if (line >= (char *)file + len) {

Is this type of pointer arithmetic (in the ifs and the while loop
above, too) safe on all platforms?

>      return NULL; /* TH: perhaps NULL is not equal to 0 on Mac? */

IIRC, C++ has a 0 that is compatible to any type, thus making the NULL
definition known from C obsolete. If NULL is not defined as 0, this
could cause errors.

udo
-- 
Error accessing BRAIN v1.0...



More information about the tex-live mailing list