Add testcase for parser__advance assertion failure

The python testcase decodes to:
```
00000000  35 63 6f 6e 88 2c 29 33  2c 2c 2c 2c 63 6f 6e 88  |5con.,)3,,,,con.|
00000010  2c 2a 2c 3a 35 63 6f 6e  2c                       |,*,:5con,|
```

which triggers:
```
Assertion failed: ((uint32_t)0 < (&reduction.slices)->size), function parser__advance, file src/runtime/parser.c, line 1202.
```
This commit is contained in:
Phil Turnbull 2017-09-13 13:02:06 -04:00
parent 7d7e5f2c2c
commit d9a0fbc210

View file

@ -11,6 +11,10 @@ vector<pair<string, string>> examples({
// "javascript",
// "Bi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLXGK0i0vLS0tLS0tLS0tLS0tLS0tLS0tLS0tLXGK0i0vLS0tLS0tLS0tLS0tLS0xLS0tLTYtLfpZAA=="
// },
{
"python",
"NWNvbogsKTMsLCwsY29uiCwqLDo1Y29uLA=="
},
});
describe("examples found via fuzzing", [&]() {