| author | |
| committer | |
| log | d7b9055564a14a5d0453ff050f73096e76a604ca |
| tree | df99bd9b6295de86edaaa47d18cc6f84eb58a690 |
| parent | 4d75ec97a4837fd6472b4dba1afcb2dd137e3622 |
| signature |
add the yaml test suite sometime3 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 @@ | ||
| 1 | id: g982zq6e8wsvnmduerpbf8787hu85brugmngn8wf | ||
| 2 | name: yaml | ||
| 3 | main: yaml.zig | ||
| 4 | license: MIT | ||
| 5 | description: A Yaml parser built on top of libyaml | ||
| 6 | dependencies: | ||
| 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 | |||
| 30 | root_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 | ... | @@ -26,6 +26,7 @@ test { fuzzCase(@embedFile("./fuzz/crashes/id:000000,sig:06,src:000000,time:1399 |
| 26 | test { fuzzCase(@embedFile("./fuzz/crashes/id:000002,sig:06,src:000000,time:12249,execs:9637,op:int8,pos:0,val:+32")); } | 26 | test { fuzzCase(@embedFile("./fuzz/crashes/id:000002,sig:06,src:000000,time:12249,execs:9637,op:int8,pos:0,val:+32")); } |
| 27 | test { fuzzCase(@embedFile("./fuzz/crashes/id:000000,sig:06,src:000000,time:16058,execs:7921,op:arith8,pos:522,val:+10")); } | 27 | test { fuzzCase(@embedFile("./fuzz/crashes/id:000000,sig:06,src:000000,time:16058,execs:7921,op:arith8,pos:522,val:+10")); } |
| 28 | test { fuzzCase(@embedFile("./fuzz/crashes/id:000001,sig:06,src:000000,time:17906,execs:8822,op:arith8,pos:683,val:+3")); } | 28 | test { fuzzCase(@embedFile("./fuzz/crashes/id:000001,sig:06,src:000000,time:17906,execs:8822,op:arith8,pos:683,val:+3")); } |
| 29 | test { fuzzCase(@embedFile("./fuzz/crashes/id:000001,sig:06,src:000000,time:120282,execs:65197,op:havoc,rep:3")); } | ||
| 29 | // zig fmt: on | 30 | // zig fmt: on |
| 30 | 31 | ||
| 31 | fn parseTest(comptime basename: [:0]const u8) !void { | 32 | fn 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 { | ... | @@ -389,7 +389,7 @@ fn get_event_string(event: Token, p: *const Parser) ![:0]u8 { |
| 389 | } | 389 | } |
| 390 | return try list.toOwnedSliceSentinel(0); | 390 | return try list.toOwnedSliceSentinel(0); |
| 391 | }, | 391 | }, |
| 392 | else => @panic("TODO"), | 392 | else => return error.YamlInvalidMultilineString, |
| 393 | } | 393 | } |
| 394 | } | 394 | } |
| 395 | const s = lines[sm.line][sm.column..em.column]; | 395 | const s = lines[sm.line][sm.column..em.column]; |