Closed mendsley closed 3 years ago
My current thinking is malformed (intentionally or not) application data packets could cause decrypted size to be negative if an application data packet is smaller than the GCM HMAC size.
Working on adding a unit test to verify this now
Actually while reviewing this more, I don't believe this could happen - and is not likely the cause of the crash we're debugging
I finally managed to create a test case to re-produce this
My current thinking is malformed (intentionally or not) application data packets could cause decrypted size to be negative if an application data packet is smaller than the GCM HMAC size.
Working on adding a unit test to verify this now