mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 05:39:19 +02:00
* committed fix for unaligned access from id 12079
git-svn-id: trunk@11751 -
This commit is contained in:
parent
39fb51dff3
commit
0d9bf5addb
@ -951,7 +951,9 @@ begin
|
|||||||
Move(OldBuf^, FCharBuf^, Remainder);
|
Move(OldBuf^, FCharBuf^, Remainder);
|
||||||
BytesRead := FStream.Read(FAllocated[Slack-4], FCapacity);
|
BytesRead := FStream.Read(FAllocated[Slack-4], FCapacity);
|
||||||
FCharBufEnd := FAllocated + (Slack-4) + BytesRead;
|
FCharBufEnd := FAllocated + (Slack-4) + BytesRead;
|
||||||
PWideChar(FCharBufEnd)^ := #0;
|
// fcharbufend can be unaligned, split.
|
||||||
|
Pchar(FCharBufEnd)^ := #0;
|
||||||
|
Pchar(FCharBufEnd+1)^ := #0;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{ TXMLFileInputSource }
|
{ TXMLFileInputSource }
|
||||||
|
Loading…
Reference in New Issue
Block a user