aboutsummaryrefslogtreecommitdiff
path: root/src/value.zig
diff options
context:
space:
mode:
authortravisstaloch <twostepted@gmail.com>2022-12-20 07:33:40 -0800
committerGitHub <noreply@github.com>2022-12-20 17:33:40 +0200
commit4aa8462cc936820bc2c81ea1f3cfc613ff07a9f7 (patch)
treec212d3075ca486bda7ff85dee8ab11208fb02828 /src/value.zig
parent3a1295cd6f53c47e3d4eb7bd11b7b177faa66386 (diff)
downloadzig-4aa8462cc936820bc2c81ea1f3cfc613ff07a9f7.tar.gz
zig-4aa8462cc936820bc2c81ea1f3cfc613ff07a9f7.zip
std.zig: fix integer overflows during parsing
these were found while fuzzing zls. this patch prevents overflow for the following file contents and adds tests for them. * `enum(u32)` - causes overflow in std.zig.Ast.fullContainerDecl() * `*x` - causes overflow in std.zig.Ast.fullPtrType() * `**x` - causes overflow in std.zig.Ast.firstToken()
Diffstat (limited to 'src/value.zig')
0 files changed, 0 insertions, 0 deletions