Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined types not handled properly in array literals #241

Closed
fuchsnj opened this issue May 13, 2023 · 0 comments · Fixed by #401
Closed

undefined types not handled properly in array literals #241

fuchsnj opened this issue May 13, 2023 · 0 comments · Fixed by #401
Labels
fuzz Issues found from fuzz testing type: bug A code related bug vrl: typedef Changes to the type system

Comments

@fuchsnj
Copy link
Member

fuchsnj commented May 13, 2023

If you create an array where one of the elements is undefined, the actual result is an array with a null element, but the type definition thinks that element won't exist (an empty array).

$ . = {}
{  }

$ [.x]
[null]

$ type_def([.x])
{ "array": {  } }
@fuchsnj fuchsnj added type: bug A code related bug vrl: typedef Changes to the type system fuzz Issues found from fuzz testing labels May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fuzz Issues found from fuzz testing type: bug A code related bug vrl: typedef Changes to the type system
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant