From 4a12773f269742d2c655beb1b3f5ffe98e9beadb Mon Sep 17 00:00:00 2001 From: ViniciusCestarii Date: Fri, 21 Aug 2026 11:17:25 -0300 Subject: [PATCH] test: cover DERSIG rejects a non-compound signature type https://bitcoincore.space/src/script/interpreter.cpp#3808 --- src/test/data/script_tests.json | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/data/script_tests.json b/src/test/data/script_tests.json index 1b0d7c6906d..2eb02c40ca8 100644 --- a/src/test/data/script_tests.json +++ b/src/test/data/script_tests.json @@ -1292,6 +1292,7 @@ ["0x17 0x3014020002107777777777777777777777777777777701", "0 CHECKSIG NOT", "DERSIG", "SIG_DER", "Zero-length R is incorrectly encoded for DERSIG"], ["0x17 0x3014021077777777777777777777777777777777020001", "0 CHECKSIG NOT", "DERSIG", "SIG_DER", "Zero-length S is incorrectly encoded for DERSIG"], ["0x27 0x302402107777777777777777777777777777777702108777777777777777777777777777777701", "0 CHECKSIG NOT", "DERSIG", "SIG_DER", "Negative S is incorrectly encoded for DERSIG"], +["0x27 0x312402107777777777777777777777777777777702107777777777777777777777777777777701", "0 CHECKSIG NOT", "DERSIG", "SIG_DER", "Non-compound type is incorrectly encoded for DERSIG"], ["Some basic segwit checks"], [["00", 0.00000000 ], "", "0 0x206e340b9cffb37a989ca544e6bb780a2c78901d3fb33738768511a30617afa01d", "P2SH,WITNESS", "EVAL_FALSE", "Invalid witness script"],