diff options
| author | travisstaloch <twostepted@gmail.com> | 2022-12-20 07:33:40 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-20 17:33:40 +0200 |
| commit | 4aa8462cc936820bc2c81ea1f3cfc613ff07a9f7 (patch) | |
| tree | c212d3075ca486bda7ff85dee8ab11208fb02828 /src/codegen | |
| parent | 3a1295cd6f53c47e3d4eb7bd11b7b177faa66386 (diff) | |
| download | zig-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/codegen')
0 files changed, 0 insertions, 0 deletions
