Hanno Becker
0af25e71ab
Add parentheses about parameter of MBEDTLS_X509_ID_FLAG
...
The `id` parameter of the public `MBEDTLS_X509_ID_FLAG` macro was
used in a subtraction without being surrounded by parentheses.
Since some operators bind less strongly than subtraction, this
could lead to erroneous evaluation of `MBEDTLS_X509_ID_FLAG`.
For example, `MBEDTLS_X509_ID_FLAG( 1 << 2 )` would evaluate
evaluate to
`1 << ( 1 << 2 - 1 ) == 1 << ( 1 << 1 ) == 4`
instead of the intended
`1 << ( ( 1 << 2 ) - 1 ) == 1 << ( 4 - 1 ) == 8`.
This commit fixes this by adding parentheses about the `id`
parameter in the definition of `MBEDTLS_X509_ID_FLAG`.
2018-10-15 12:13:38 +01:00
..
2018-01-30 16:22:04 +00:00
2018-01-23 15:44:39 +00:00
2018-01-30 14:40:10 +00:00
2018-03-08 18:18:34 +01:00
2018-01-23 15:44:39 +00:00
2018-01-23 15:44:39 +00:00
2018-01-23 18:20:09 +00:00
2018-01-26 17:56:38 +01:00
2018-07-23 13:41:33 +01:00
2018-01-26 17:56:38 +01:00
2018-02-07 10:29:27 +01:00
2018-01-23 15:44:39 +00:00
2018-02-22 16:07:32 +01:00
2018-06-28 08:46:23 +03:00
2018-06-28 08:46:23 +03:00
2018-06-24 17:23:16 +03:00
2018-01-23 15:44:39 +00:00
2018-06-24 17:23:16 +03:00
2018-06-24 17:23:16 +03:00
2018-01-23 15:44:39 +00:00
2018-01-30 14:40:10 +00:00
2018-02-08 14:29:14 +00:00
2018-01-30 16:22:05 +00:00
2018-03-30 18:43:16 +02:00
2018-01-24 10:36:22 +00:00
2018-06-08 11:14:43 +01:00
2018-03-30 18:43:16 +02:00
2018-01-23 15:44:39 +00:00
2018-01-25 14:47:39 +00:00
2018-01-26 20:57:38 +00:00
2018-06-07 15:06:02 +02:00
2018-01-23 15:44:39 +00:00
2018-06-24 17:23:16 +03:00
2018-02-22 08:20:42 +00:00
2018-02-22 08:20:42 +00:00
2018-02-22 08:20:42 +00:00
2018-01-25 14:47:39 +00:00
2018-01-30 17:28:31 +00:00
2018-01-23 15:44:39 +00:00
2018-03-29 11:02:52 +01:00
2018-06-24 17:23:16 +03:00
2018-02-08 17:18:15 +08:00
2018-01-23 15:44:39 +00:00
2018-01-23 15:44:39 +00:00
2018-01-23 15:44:39 +00:00
2018-03-30 18:43:16 +02:00
2018-01-23 15:44:39 +00:00
2018-01-23 15:44:39 +00:00
2018-01-23 15:44:39 +00:00
2018-01-23 15:44:39 +00:00
2018-06-24 17:23:16 +03:00
2018-02-22 08:20:42 +00:00
2018-04-03 18:28:46 +01:00
2018-03-09 10:47:30 +00:00
2018-02-22 08:20:42 +00:00
2018-02-22 08:20:42 +00:00
2018-02-22 08:20:42 +00:00
2018-01-23 15:44:39 +00:00
2018-06-08 11:14:43 +01:00
2018-01-23 15:44:39 +00:00
2018-05-25 14:58:33 +01:00
2018-01-23 15:44:39 +00:00
2018-07-24 13:16:25 +01:00
2018-03-21 15:13:08 +00:00
2018-01-23 15:44:39 +00:00
2018-08-31 16:07:23 +01:00
2018-01-23 15:44:39 +00:00
2018-10-15 12:13:38 +01:00
2018-01-23 15:44:39 +00:00
2018-01-23 15:44:39 +00:00
2018-01-26 17:56:38 +01:00