From 4855ab2bd85f876da027613e5cc435eedc95ea1e Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sun, 23 Jul 2006 04:37:27 +0000 Subject: Flag more prefix->range conversion errors svn path=/openssl/trunk/crypto/x509v3/v3_addr.c; revision=51 --- openssl/trunk/crypto/x509v3/v3_addr.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'openssl/trunk/crypto/x509v3/v3_addr.c') diff --git a/openssl/trunk/crypto/x509v3/v3_addr.c b/openssl/trunk/crypto/x509v3/v3_addr.c index 79cac30f..3bab7767 100644 --- a/openssl/trunk/crypto/x509v3/v3_addr.c +++ b/openssl/trunk/crypto/x509v3/v3_addr.c @@ -642,6 +642,7 @@ static int IPAddressOrRanges_canonize(IPAddressOrRanges *aors, * Comparing prefix a with prefix b. If they're adjacent, we need * to merge them into a range. */ +#error This may leave an ill-formed range, need to regenerate if (a->type == IPAddressOrRange_addressPrefix && b->type == IPAddressOrRange_addressPrefix && addr_cmp(a->u.addressPrefix, b->u.addressPrefix, @@ -667,6 +668,7 @@ static int IPAddressOrRanges_canonize(IPAddressOrRanges *aors, * Comparing prefix a with range b. If they overlap or are * adjacent, we merge them into a range. */ +#error This may leave an ill-formed range, need to regenerate if (a->type == IPAddressOrRange_addressPrefix && addr_cmp(a->u.addressPrefix, b->u.addressRange->min, 0xFF, 0x00, length, 1) >= 0) { @@ -686,6 +688,7 @@ static int IPAddressOrRanges_canonize(IPAddressOrRanges *aors, * Comparing range a with prefix b. If they overlap or are * adjacent, we merge them into a range. */ +#error This may leave an ill-formed range, need to regenerate if (b->type == IPAddressOrRange_addressPrefix && addr_cmp(a->u.addressRange->max, b->u.addressPrefix, 0xFF, 0x00, length, 1) >= 0) { -- cgit v1.2.3