Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checkpolicy: return YYerror on invalid character
Inform bison about an invalid character by returning YYerror, so the parser can cleanup internal state and return the failure via yyparse(). Currently the error is only observable via the global variable policydb_errors, which needs to be checked separately. Reported-by: oss-fuzz (issue #67270) Signed-off-by: Christian Göttsche <[email protected]> Acked-by: James Carter <[email protected]>
- Loading branch information