[Top][All Lists]

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

Null-termination bug in gmake

From: John Fowler
Subject: Null-termination bug in gmake
Date: Wed, 14 Mar 2001 15:09:52 -0700 (MST)

I found another problem in variable.c for GNU Make 3.79.1.

Line 222-234 replace $ signs in variable values with double $$.  The problem
is, the result is not null-terminated before being passed to define_variable
on line 236.  This can be fixed by inserting the line:

*nptr = '\0';

immediately prior to the define_variable call on line 236.  (Don't touch
the define_variable call on line 240!)


John Fowler

reply via email to

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