bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re : "Pointer arithmetic using Null pointer in gawk-3.1.0 testsuite"


From: Olatunji Oluwabukunmi Ruwase
Subject: Re : "Pointer arithmetic using Null pointer in gawk-3.1.0 testsuite"
Date: Mon, 14 Apr 2003 20:36:34 -0700 (PDT)

Hello,
 I am working on a bounds checking patch to gcc. While testing my patch on
gawk-3.1.0 using the testsuite my compiler halts with an error message
that indicating the attempt to use a null pointer in an arithmetic
operation. In investigating the problem I ddecided to use only one of the
test programs "basic" using the following command line

address@hidden gawk-3.1.0]$ cd test
address@hidden test]$ make basic
io.c:2116:Bounds error: NULL or ILLEGAL pointer used in pointer
arithmetic.
io.c:2116:  Pointer value: NULL
make: *** [addcomma] Error 134

I verified this error message by modifying io.c (using the attached diff),
and found out that the variable iop->buf is used in pointer arithmetic
even when it is NULL. This situation exists even when compiling with the
default gcc compiler.
So I will like to find out if this is a bug or it is some deliberate non
standard hack.

Thank you

tunji


Attachment: iodiff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]