diff options
Diffstat (limited to 'tests/jq.test')
-rw-r--r-- | tests/jq.test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/jq.test b/tests/jq.test index 60715f69..c8436f64 100644 --- a/tests/jq.test +++ b/tests/jq.test @@ -178,6 +178,11 @@ map(try .a[] catch ., try .a.[] catch ., .a[]?, .a.[]?) [{"a": [1,2]}, {"a": 123}] [1,2,1,2,1,2,1,2,"Cannot iterate over number (123)","Cannot iterate over number (123)"] +# oss-fuzz #66070: objects[] leaks if a non-last element throws an error +try ["OK", (.[] | error)] catch ["KO", .] +{"a":["b"],"c":["d"]} +["KO",["b"]] + # # Negative array indices # |