Menu

#13 TByteArray is being used to access buffers which limits Node values to less than 32KB

New
nobody
None
Medium
Defect
2014-06-09
2014-06-09
Anonymous
No

Originally created by: nz.mark....@gmail.com

What steps will reproduce the problem?
1. When create an XML with a large node value, 32KB or greater, function TsdBufferWriter.Write(const Buffer; Count: Integer): Longint;
is failing as TByteArray has a 32KB limit.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
Trunk [r71], Windows 7 Professional, Delphi XE2

Please provide any additional information below.

As a quick work around I have added the following to my local NativeXML.pas
type
  TBigByteArray = array[0..2147483646] of byte; // 2GB - 2, This should never be instantiated, it's used as TByteArray indexing is limited to <32KB

and renamed all instances of TByteArray to TBigByteArray

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.