]> Git Repo - secp256k1.git/commit
Merge #568: Fix integer overflow in ecmult_multi_var when n is large
authorGregory Maxwell <[email protected]>
Mon, 25 Feb 2019 21:00:08 +0000 (21:00 +0000)
committerGregory Maxwell <[email protected]>
Mon, 25 Feb 2019 21:09:17 +0000 (21:09 +0000)
commitaa15154a4882a40227a238edef830b85a4942d4f
treed4ec2be7120ba42079ed922f8482f697258a411e
parent85d0e1bcce8cc61926e55cfd4984a95cc2c5bdd1
parent2277af5ff07322dca6efb0474aea863b21d82279
Merge #568: Fix integer overflow in ecmult_multi_var when n is large

2277af5 Fix integer overflow in ecmult_multi_var when n is large (Jonas Nick)

Pull request description:

  Without this PR ecmult_multi could return wrong results. If the number of points `n` is large enough then some or all multiplications could be skipped or the function could end up in an infinite loop. This PR adds two checks to prevent `n` from wrapping around.

Tree-SHA512: 342944369b24776fa3ec0694eee159259ff67e94d2d8176c1d3159875f387d943d5bfdff7cde59f058e13f07fd09bde1cbc609426e63c8a5b8040e382dd865d8
This page took 0.023854 seconds and 4 git commands to generate.