- changed title to Unicode error in the TdwsStrings.LoadFromStream() method uses an invalid buffer size
Unicode error in the TdwsStrings.LoadFromStream() method uses an invalid buffer size
Issue #243
resolved
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)
-
reporter -
repo owner - changed status to resolved
Fixed issue
#243in TdwsStrings.LoadFromStream - patch by Josef Kučera - removed redundant Begin/EndUpdate & exception frame→ <<cset 2cb2c89095d1>>
-
Error compiling under 10.3 after new modification: Stream.characterSize
-
[dcc32 Error] dwsClasses.pas(457): E2003 Undeclared identifier: 'characterSize'
-
repo owner Oops, fixed by b06a3967f9e9a8cd2c74f2f89ff6ee6197c1c29a
- Log in to comment