ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Bug in TIEImageEnAnnot.LoadFromStream
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

codedcolor

Germany
8 Posts

Posted - Mar 24 2015 :  09:14:38  Show Profile  Reply
There seems to be a bug in TIEImageEnAnnot.LoadFromStream that prevents loading previously saved ImageEnIOParams from stream.

procedure TIEImageEnAnnot.LoadFromStream(Stream: TStream);
//[...]
  Stream.Read(dataLen, sizeof(dword));
  if datalen > 0 then //@@@ SZ added this line
    IECopyFrom(fData, Stream, dataLen);  
end;


If dataLen = 0, then IECopyFrom copies the entire stream, and then we'll crash with an out of memory.

xequte

38610 Posts

Posted - Mar 24 2015 :  12:14:29  Show Profile  Reply
Hi

Thanks for the report. Fixed for v6.0.1.



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: