From 404fc0abf4f2e738659923f4b09b35eb7b6435d4 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 9 Apr 2000 09:20:49 +0000 Subject: [PATCH] be more tolerant in ranges git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@8153 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/asn1/parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/asn1/parse.y b/lib/asn1/parse.y index 1b3a3dc15..5d6f7121d 100644 --- a/lib/asn1/parse.y +++ b/lib/asn1/parse.y @@ -116,7 +116,7 @@ type : INTEGER { $$ = new_type(TInteger); } | INTEGER '(' constant DOTDOT constant ')' { if($3 != 0) error_message("Only 0 supported as low range"); - if($5 != INT_MIN && $5 != UINT_MAX) + if($5 != INT_MIN && $5 != UINT_MAX && $5 != INT_MAX) error_message("Only %u supported as high range", UINT_MAX); $$ = new_type(TUInteger);