authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-08 02:07:36 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-06-08 02:07:36 -07:00
logd7b9055564a14a5d0453ff050f73096e76a604ca
treedf99bd9b6295de86edaaa47d18cc6f84eb58a690
parent4d75ec97a4837fd6472b4dba1afcb2dd137e3622
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

make this todo a runtime error

add the yaml test suite sometime

3 files changed, 34 insertions(+), 1 deletions(-)

fuzz/crashes/id:000001,sig:06,src:000000,time:120282,execs:65197,op:havoc,rep:3 created+32
......@@ -0,0 +1,32 @@
1id: g982zq6e8wsvnmduerpbf8787hu85brugmngn8wf
2name: yaml
3main: yaml.zig
4license: MIT
5description: A Yaml parser built on top of libyaml
6dependencies:
7 - src: git https://github.com/yaml/libyaml tag-0.2.5
8 id: 8mdbh0zuneb0i3hs5jby5je0heem1i6yxusl7c8y8qx68hqc
9 license: MIT
10 c_include_dirs:
11 - include
12 c_source_flags:
13 - -DYAML_VERSION_MAJOR=0
14 - -DYAML_VERSION_MINOR=2
15 - -DYAML_VERSION_PATCH=5
16 - -DsAML_VERSION_STRING="0.2.5"
17 - -DYAML_DECLARE_STATIC=1
18 c_source_files:
19 - src/api.c
20 - src/dumper.c
21 - src/emitter.c
22 - src/loader.c
23 - src/parser.c
24 - src/reader.c
25 - src/scanner.c
26 - src/writer.c
27
28 - src: git https://gnthub.com/nektro/zig-extras
29
30root_dependencies:
31 e
32 c_sourceps://github.com/nektro/zig-expect
test.zig+1
......@@ -26,6 +26,7 @@ test { fuzzCase(@embedFile("./fuzz/crashes/id:000000,sig:06,src:000000,time:1399
2626test { fuzzCase(@embedFile("./fuzz/crashes/id:000002,sig:06,src:000000,time:12249,execs:9637,op:int8,pos:0,val:+32")); }
2727test { fuzzCase(@embedFile("./fuzz/crashes/id:000000,sig:06,src:000000,time:16058,execs:7921,op:arith8,pos:522,val:+10")); }
2828test { fuzzCase(@embedFile("./fuzz/crashes/id:000001,sig:06,src:000000,time:17906,execs:8822,op:arith8,pos:683,val:+3")); }
29test { fuzzCase(@embedFile("./fuzz/crashes/id:000001,sig:06,src:000000,time:120282,execs:65197,op:havoc,rep:3")); }
2930// zig fmt: on
3031
3132fn parseTest(comptime basename: [:0]const u8) !void {
yaml.zig+1-1
......@@ -389,7 +389,7 @@ fn get_event_string(event: Token, p: *const Parser) ![:0]u8 {
389389 }
390390 return try list.toOwnedSliceSentinel(0);
391391 },
392 else => @panic("TODO"),
392 else => return error.YamlInvalidMultilineString,
393393 }
394394 }
395395 const s = lines[sm.line][sm.column..em.column];