m4-commit
[Top][All Lists]
Advanced

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

m4 ./ChangeLog m4/symtab.c


From: Gary V. Vaughan
Subject: m4 ./ChangeLog m4/symtab.c
Date: Mon, 15 Oct 2001 22:28:08 -0400

CVSROOT:        /cvsroot/m4
Module name:    m4
Changes by:     Gary V. Vaughan <address@hidden>        01/10/15 22:28:08

Modified files:
        .              : ChangeLog 
        m4             : symtab.c 

Log message:
        * m4/symtab.c (m4_symbol_destroy): This function calls
        m4_symbol_popdef, which recycles a symbols memory when the last
        definition is popped.  Since we were passing the address of the
        symbol name found in the symbol table, and it was being removed
        partway through m4_symbol_destroy() we were referencing freed
        memory for the balance of the function.  Now we take a copy of the
        symbol name tring and use that as a key into the symbol
        table... that way if the original symbol name is freed, the copy
        is still valid.

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/ChangeLog.diff?tr1=1.149&tr2=1.150&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/m4/m4/m4/symtab.c.diff?tr1=1.26&tr2=1.27&r1=text&r2=text




reply via email to

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