Source-Changes archive

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

CVS commit: src/usr.bin/make



Module Name:    src
Committed By:   rillig
Date:           Sun Jan  9 12:43:52 UTC 2022

Modified Files:
        src/usr.bin/make: for.c nonints.h parse.c

Log Message:
make: fix use-after-free in -dp mode (since yesterday)

In a .for loop that contains an unclosed .if directive,
Cond_restore_depth generates an error message.  If stack traces are
enabled using the option '-dp', the details of the .for loop are added
to the stack trace, but at that point, the ForLoop had already been
freed.  To reproduce:

make-2022.01.09.00.33.57 -r -f unit-tests/directive-for.mk -dp


To generate a diff of this commit:
cvs rdiff -u -r1.162 -r1.163 src/usr.bin/make/for.c
cvs rdiff -u -r1.235 -r1.236 src/usr.bin/make/nonints.h
cvs rdiff -u -r1.646 -r1.647 src/usr.bin/make/parse.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index