Avoid inexact read with 'Stream.Read' (#6847)

This commit is contained in:
Marco Carvalho authored and GitHub committed 2024-06-02 22:16:48 +02:00
1 parent 971d24aef0
commit 888402ecaf
7 files changed
+8 -8

No files matched your search

@@ -237,7 +237,7 @@ namespace ARMeilleure.CodeGen.Arm64
long originalPosition = _stream.Position;
_stream.Seek(0, SeekOrigin.Begin);
_stream.Read(code, 0, code.Length);
_stream.ReadExactly(code, 0, code.Length);
_stream.Seek(originalPosition, SeekOrigin.Begin);
RelocInfo relocInfo;