mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-23 15:00:34 +01:00
pubkey_from_hexstr() was failing, which we didn't notice because we weren't checking the return value. The problem was that we were passing it a strlen that was half the actual length. Relevant error: [libsecp256k1] illegal argument: !secp256k1_fe_is_zero(&ge->x) ==417723== ERROR: libFuzzer: deadly signal #7 0x7f5deaacc7fb in abort #8 0x51b0b0 in secp256k1_default_illegal_callback_fn secp256k1.c #9 0x51bd8e in secp256k1_ec_pubkey_serialize #10 0x4e235b in pubkey_to_der bitcoin/pubkey.c:29:7 #11 0x4e2941 in pubkey_cmp bitcoin/pubkey.c:89:2 #12 0x4e333d in bitcoin_redeem_2of2 bitcoin/script.c:144:6 #13 0x4f1396 in run tests/fuzz/fuzz-close_tx.c:78:19 |
||
---|---|---|
.. | ||
fuzz-addr.c | ||
fuzz-amount.c | ||
fuzz-base32-64.c | ||
fuzz-bech32.c | ||
fuzz-bigsize.c | ||
fuzz-bip32.c | ||
fuzz-channel_id.c | ||
fuzz-close_tx.c | ||
fuzz-descriptor_checksum.c | ||
fuzz-hsm_encryption.c | ||
fuzz-initial_channel.c | ||
libfuzz.c | ||
libfuzz.h | ||
Makefile | ||
run.py |