Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
M3, M4, 0.5, 0.6
-
None
Description
The TestUtils class method createTestMessageOfSize does not actually create messages of the requested size.
Requests for messages > 112 bytes will result in only 112 byte messages. Message size requests of less than 112 bytes will result in a message of up to 12Kbytes.
It can be fixed by either:
1) Fixing the erroneous div and mod calculations,
2) Replacing the complex for loops with a single for loop from 0 to size,
3) using an empty byte array : new byte[size].