From 61d84b9644fe875a9d8bb3b1b2b70c4fe45fbab2 Mon Sep 17 00:00:00 2001 From: Jeremy Koritzinsky Date: Tue, 16 Apr 2019 20:13:29 -0700 Subject: [PATCH] Remove limits on IVT public key lengths. (#24042) --- src/binder/textualidentityparser.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/binder/textualidentityparser.cpp b/src/binder/textualidentityparser.cpp index 7cd4545..1e2711b 100644 --- a/src/binder/textualidentityparser.cpp +++ b/src/binder/textualidentityparser.cpp @@ -61,9 +61,6 @@ namespace BINDER_SPACE { const int iPublicKeyTokenLength = 8; - const int iPublicKeyMinLength = 0; - const int iPublicKeyMaxLength = 2048; - const int iVersionMax = 65535; const int iVersionParts = 4; @@ -143,10 +140,7 @@ namespace BINDER_SPACE inline BOOL ValidatePublicKey(SString &publicKey) { - - return ((publicKey.GetCount() >= (iPublicKeyMinLength * 2)) && - (publicKey.GetCount() <= (iPublicKeyMaxLength * 2)) && - ValidateHex(publicKey)); + return ValidateHex(publicKey); } const struct { -- 2.7.4