Unicode error in the TdwsStrings.LoadFromStream() method uses an invalid buffer size

Issue #243 resolved
Josef Kučera created an issue

Hello,
today I have discovered, that the TdwsStrings.LoadFromStream() method calculates the Size in the wrong way. It causes the buffer string size to be twice the size needed, the following Stream.Read() fills only the first half of the string, leaving the other half with random data. I think the fix is fairly simple, the patch is attached.

Best regards,
Joe

Comments (5)

  1. Log in to comment