kellyethridge / VBCorLib

The VBCorLib framework brings many of the powerful .NET classes to VB6.
http://www.kellyethridge.com/vbcorlib/
MIT License
112 stars 28 forks source link

All Encoding GetMaxCharCount and GetMaxByteCount should perform upper limit validation. #77

Closed kellyethridge closed 3 years ago

kellyethridge commented 3 years ago

Right now the methods check for a parameter value less than zero. There should also be a check if the resulting value should be larger than the max 32-bit value and throw an ArgumentOutOfRangeException if necessary.