diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/jq.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/jq.test b/tests/jq.test index eabf836f..bde6c0a3 100644 --- a/tests/jq.test +++ b/tests/jq.test @@ -2169,3 +2169,10 @@ try ltrimstr("x") catch "x", try rtrimstr("x") catch "x" | "ok" ["ko","endswith() requires string inputs"] ["ok",""] ["ko","endswith() requires string inputs"] + + +# oss-fuzz #66061: setpath/2 leaks when indexing array with array + +try ["OK", setpath([[1]]; 1)] catch ["KO", .] +[] +["KO","Cannot update field at array index of array"] |