mirror of https://github.com/prometheus/prometheus
Browse Source
Fixes #6649. The crash is fixed here, was caused because some AST sanity checks were performed on the syntax tree while assembling it. In case of previous parsing errors this could lead to undefined behaviour. The fix is to move the checks to the typechecking phase, which runs only when a syntax tree was assembled without there being parsing errors. There are other places, where similiar checks are performed while assembling the syntax tree. It might be a good idea to move those to the typechecking phase, too. Should I do this in the same or a separate PR? Signed-off-by: Tobias Guggenmos <tguggenm@redhat.com>pull/6658/head
Tobias Guggenmos
5 years ago
committed by
Brian Brazil
2 changed files with 35 additions and 31 deletions
Loading…
Reference in new issue