[fpc-devel] Memory Streams unable to handle reads past 2GB
Michael Van Canneyt
michael at freepascal.org
Wed Nov 7 00:50:07 CET 2012
On Tue, 6 Nov 2012, Andrew wrote:
> On 12-11-06 05:43 PM, Jeppe Græsdal Johansen wrote:
>>
>> It also generates a hint about that:
>> widen.lpr(44,12) Hint: Converting the operands to "Int64" before doing the
>> multiply could prevent overflow errors.
>
> Right, keep in mind this example was to simulate the read operation of the
> TMemoryStream when I traced into the problem. I'm on Ubuntu 12.10 x64. I
> just re-installed. So this is a real problem.
It is a problem with the implementation of TCustomMemoryStream.Read, I fixed it.
The other streams are unaffected by this error, and no change to the API is needed.
Thanks for persisting and pushing me to dig deeper :-)
Permission to go to sleep now ? It's 1 AM...
Michael.
More information about the fpc-devel
mailing list