Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Possible UB in secp256k1_scalar_cadd_bit
Avoid possible, but unlikely undefined behaviour in 'scalar_low_impl''s 'secp256k1_scalar_cadd_bit'. Thanks to elichai2 who noted that the literal '1' is a signed integer, and that shifting a signed 32-bit integer by 31 bits causes an overflow and yields undefined behaviour. Using the unsigned literal '1u' addresses the issue.
- Loading branch information