roconnor-blockstream
8fe63e5654
Increase robustness against UB.
...
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.
While 'scalar_low_impl''s 'secp256k1_scalar_cadd_bit' is only used for testing purposes and currently the 'bit' parameter is only 0 or 1, it is better to avoid undefined behaviour in case the used domain of 'secp256k1_scalar_cadd_bit' expands.
2019-07-04 22:35:28 -04:00
..
2019-05-07 22:37:35 +03:00
2018-05-17 00:38:58 +03:00
2019-05-26 10:28:49 +00:00
2019-05-26 22:32:36 +02:00
2018-05-17 00:38:58 +03:00
2019-05-25 22:59:50 +00:00
2019-05-14 11:43:54 +02:00
2017-12-18 18:22:09 -08:00
2017-09-27 15:03:20 -07:00
2015-11-15 15:47:49 +01:00
2017-12-07 20:13:04 +00:00
2019-05-23 15:22:29 +02:00
2017-08-26 18:44:21 +03:00
2018-10-09 15:40:41 +09:00
2017-08-26 18:44:21 +03:00
2019-05-22 04:44:29 +00:00
2019-06-04 01:52:44 +00:00
2019-05-26 10:28:49 +00:00
2019-05-25 14:01:09 +02:00
2019-05-26 01:05:09 +00:00
2019-05-25 22:59:50 +00:00
2017-08-26 18:44:21 +03:00
2018-07-06 08:40:35 -04:00
2018-07-06 08:40:35 -04:00
2018-07-06 08:40:35 -04:00
2018-07-06 08:40:35 -04:00
2018-07-06 08:40:35 -04:00
2019-02-21 04:23:50 +00:00
2017-08-26 18:44:21 +03:00
2019-05-25 14:01:09 +02:00
2019-02-21 04:26:40 +00:00
2018-11-09 00:20:51 +00:00
2019-05-23 15:22:29 +02:00
2017-09-27 15:03:20 -07:00
2017-08-26 18:44:21 +03:00
2017-08-26 18:44:21 +03:00
2017-08-26 18:44:21 +03:00
2017-08-26 18:44:21 +03:00
2019-03-10 22:52:12 +00:00
2017-08-26 18:44:21 +03:00
2017-08-26 18:44:21 +03:00
2017-08-26 18:44:21 +03:00
2017-08-26 18:44:21 +03:00
2019-07-04 22:35:28 -04:00
2017-08-26 18:44:21 +03:00
2017-08-26 18:44:21 +03:00
2019-05-26 01:05:09 +00:00
2019-05-26 01:05:09 +00:00
2019-05-29 21:47:45 +00:00
2017-09-27 15:03:20 -07:00
2017-08-26 18:44:21 +03:00
2019-05-25 22:59:50 +00:00
2019-05-29 14:24:42 +00:00
2019-05-25 13:58:09 +02:00