Describe the bug
In cel-java, the following expression '\udead' == '\ufffd' correctly errors on the invalid UTF-8 literal; however, cel-go permits the evaluation to proceed.
To Reproduce
Check which components this affects:
Sample expression and input that reproduces the issue:
Test setup:
env, err := cel.NewEnv()
if err != nil {
log.Exit(err)
}
ast, iss := env.Parse(`'\udead' == '\ufffd'`)
if iss.Err() == nil {
log.Exit("Expected invalid unicode error")
}
Expected behavior
Ensure the parser errors when parsing an invalid UTF-8 string literal.
Additional context
cel-expr/cel-spec#420
Describe the bug
In cel-java, the following expression
'\udead' == '\ufffd'correctly errors on the invalid UTF-8 literal; however, cel-go permits the evaluation to proceed.To Reproduce
Check which components this affects:
Sample expression and input that reproduces the issue:
Test setup:
Expected behavior
Ensure the parser errors when parsing an invalid UTF-8 string literal.
Additional context
cel-expr/cel-spec#420