Repository navigation
Commit 5b0d79e
committed
Fix bugs A, B, C, D, E, F [merging from test repo]
A: file_read rejects non-number/negative size before the size_t cast (was: std::length_error escaping as Fatal Error).
B: json_stringify tracks visited lists/dicts, errors on cycles (was: stack overflow segfault).
C: json_parse parse_val takes a depth param, caps at 1000 (was: stack overflow segfault on deep input).
D: std_db_query_rows bind loop uses a separate bind counter (was: explicit db handle shifted all later params, silent null).
E: Chunk::deserialize / ObjFunction::deserialize take a depth param, cap at 1000 (was: stack overflow segfault on nested .shbc).
F: OP_CLOSURE checks upvalue index against the frame stack window (is_local) or the enclosing closure's upvalue count (was: OOB read / wild capture segfault).1 parent 31c4450 commit 5b0d79e
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
0 commit comments