bitcoin-core / secp256k1

Optimized C library for EC operations on curve secp256k1
MIT License
2.06k stars 1k forks source link

tests: call `secp256k1_ecmult_multi_var` with a non-`NULL` error callback #1528

Closed niooss-ledger closed 4 months ago

niooss-ledger commented 4 months ago

Hello, This Pull Request fixes the issue reported in https://github.com/bitcoin-core/secp256k1/issues/1527. Function secp256k1_ecmult_multi_var expects to be called with a non-NULL error_callback parameter. Fix the invocation in test_ecmult_accumulate to do this. While at it, wrap the call in a CHECK macro to ensure it succeeds.