Having 2 files containing ANSI text.
One is small and the other large.
The ANSI text is first loaded from disk to memory
Then the ANSI text is converted to UNICODE
Then the UNICODE string is compressed.
This compressed string can be uncompressed when the smaller file is used.
The larger file gives a FALSE on
So, is there a hard limit on the buffer size for
Could there be a 64k limitation?
Or is it caused by the buffer being UNICODE text?
PLease check why this fails.
Be sure the test files are correctly loaded from source.
See that the UNICODE string for the large file can not be uncompressed.
The source is in TD61 format so can be tested from there.
I have seen the issue on all TD versions.
Tested the limit:
The limit is 95,367431640625 Mb
This is in bytes: 100.000.000
That seems a hardcoded limit.
To my knowledge, the size value in the compression header can contain up to 2.1 Gb