Module Name: src Committed By: rillig Date: Wed Jul 29 20:33:38 UTC 2020
Modified Files: src/usr.bin/make: var.c src/usr.bin/make/unit-tests: moderrs.exp moderrs.mk Log Message: make(1): fix segfault when evaluating ${::=value} The bug had been in the handling of the SysV modifier for many years, but it had not been triggered since the "parsing position for the next modifier" had been initialized to a non-NULL pointer. In var.v r1.350, this pointer had been initialized to NULL instead since every ApplyModifier function must set it in every case where it returns anything except "default_case". There might have been a slight chance of tricking make to output a wrong error message, but nothing worse. To generate a diff of this commit: cvs rdiff -u -r1.354 -r1.355 src/usr.bin/make/var.c cvs rdiff -u -r1.8 -r1.9 src/usr.bin/make/unit-tests/moderrs.exp cvs rdiff -u -r1.7 -r1.8 src/usr.bin/make/unit-tests/moderrs.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.