diff options
author | Matt Caswell <matt@openssl.org> | 2022-06-10 15:58:58 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-06-28 17:16:11 +0200 |
commit | 30532e59f475e0066c030693e4d614311a9e0cae (patch) | |
tree | bb3cfa94be7737e4bf0ab37f7b04ba897eeb79cf /crypto/aes/asm | |
parent | e1c153d31d4f913ebe2202a4bc20305919274d1f (diff) |
Fix range_should_be_prefix() to actually return the correct result
range_should_be_prefix() was misidentifying whether an IP address range
should in fact be represented as a prefix. This was due to a bug introduced
in commit 42d7d7dd which made this incorrect change:
- OPENSSL_assert(memcmp(min, max, length) <= 0);
+ if (memcmp(min, max, length) <= 0)
+ return -1;
This error leads to incorrect DER being encoded/accepted.
Reported by Theo Buehler (@botovq)
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18524)
Diffstat (limited to 'crypto/aes/asm')
0 files changed, 0 insertions, 0 deletions