aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authortravisstaloch <twostepted@gmail.com>2022-12-23 13:10:04 -0800
committerGitHub <noreply@github.com>2022-12-23 23:10:04 +0200
commit581d292381157464ae6f2c88c8a628314f005742 (patch)
tree1d67f07416fb6d45e54267e459ebda5c7581e1d0 /src/Compilation.zig
parentbb62d5105ca02a8b1c959ccf79b9f2861505a150 (diff)
downloadzig-581d292381157464ae6f2c88c8a628314f005742.tar.gz
zig-581d292381157464ae6f2c88c8a628314f005742.zip
fix overflow found while fuzzing
* allow file level `union {}` to parse as tuple field this was found while fuzzing zls. * before this patch the input `union {}` crashed the parser. after this, it parses correctly just like `struct {}`. * adds behavior tests for both inputs `struct {}` and `union {}`, checking that each becomes a file level tuple field.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions