An invalid substitution like ${var@} does not cause a parse error but is stored in the intermediate representation, to be written as part of the error message. If there is a CTL* byte in the stored part, this confuses some code such as the code to skip an unused alternative such as in ${var-alternative}. To keep things simple, do not store CTL* bytes. Found with afl-fuzz. MFC after: 1 week
35 lines
889 B
Makefile
35 lines
889 B
Makefile
# $FreeBSD$
|
|
|
|
TESTSDIR= ${TESTSBASE}/bin/sh/${.CURDIR:T}
|
|
|
|
.PATH: ${.CURDIR:H}
|
|
ATF_TESTS_SH= functional_test
|
|
|
|
FILESDIR= ${TESTSDIR}
|
|
|
|
FILES= assignment-error1.0
|
|
FILES+= assignment-error2.0
|
|
FILES+= backquote-error1.0
|
|
FILES+= backquote-error2.0
|
|
FILES+= bad-binary1.126
|
|
FILES+= bad-keyword1.0
|
|
FILES+= bad-parm-exp1.0
|
|
FILES+= bad-parm-exp2.2 bad-parm-exp2.2.stderr
|
|
FILES+= bad-parm-exp3.2 bad-parm-exp3.2.stderr
|
|
FILES+= bad-parm-exp4.2 bad-parm-exp4.2.stderr
|
|
FILES+= bad-parm-exp5.2 bad-parm-exp5.2.stderr
|
|
FILES+= bad-parm-exp6.2 bad-parm-exp6.2.stderr
|
|
FILES+= bad-parm-exp7.0
|
|
FILES+= bad-parm-exp8.0
|
|
FILES+= option-error.0
|
|
FILES+= redirection-error.0
|
|
FILES+= redirection-error2.2
|
|
FILES+= redirection-error3.0
|
|
FILES+= redirection-error4.0
|
|
FILES+= redirection-error5.0
|
|
FILES+= redirection-error6.0
|
|
FILES+= redirection-error7.0
|
|
FILES+= write-error1.0
|
|
|
|
.include <bsd.test.mk>
|