diff options
author | Jeremy Koritzinsky <jkoritzinsky@gmail.com> | 2019-04-16 20:13:29 -0700 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2019-04-16 20:13:29 -0700 |
commit | 61d84b9644fe875a9d8bb3b1b2b70c4fe45fbab2 (patch) | |
tree | 9305fbd5e351f99d2be512f9827fe2fbcd6a796e /src/binder | |
parent | c5b2e71106b1a8d2480e1f08bffcb09358f0a45a (diff) | |
download | coreclr-61d84b9644fe875a9d8bb3b1b2b70c4fe45fbab2.tar.gz coreclr-61d84b9644fe875a9d8bb3b1b2b70c4fe45fbab2.tar.bz2 coreclr-61d84b9644fe875a9d8bb3b1b2b70c4fe45fbab2.zip |
Remove limits on IVT public key lengths. (#24042)
Diffstat (limited to 'src/binder')
-rw-r--r-- | src/binder/textualidentityparser.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/binder/textualidentityparser.cpp b/src/binder/textualidentityparser.cpp index 7cd4545187..1e2711b388 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 { |