From fa43e7c2d9dc5e2df70acd2019bdd24023c1d333 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Fri, 8 Oct 2021 15:51:55 +0200 Subject: bitcoin-tx: Avoid treating overflow as OP_0 --- test/util/data/bitcoin-util-test.json | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/util') diff --git a/test/util/data/bitcoin-util-test.json b/test/util/data/bitcoin-util-test.json index a648c0287a..20684f0f76 100644 --- a/test/util/data/bitcoin-util-test.json +++ b/test/util/data/bitcoin-util-test.json @@ -294,6 +294,12 @@ "output_cmp": "txcreatescript4.json", "description": "Create a new transaction with a single output script (OP_DROP) in a P2SH, wrapped in a P2SH (output as json)" }, + { "exec": "./bitcoin-tx", + "args": ["-create", "outscript=0:999999999999999999999999999999"], + "return_code": 1, + "error_txt": "error: script parse error: decimal numeric value only allowed in the range -0xFFFFFFFF...0xFFFFFFFF", + "description": "Try to parse an output script with a decimal number above the allowed range" + }, { "exec": "./bitcoin-tx", "args": ["-create", "outscript=0:9999999999"], "return_code": 1, -- cgit v1.2.3