Skip to content

Commit 6e530f4

Browse files
committed
Merged PR 159115: Small fix to avoid asserts later
haslineByteOffsetCacheBuffer was read from incorrect offset and as a result could have false positives.
2 parents a886606 + ec741b5 commit 6e530f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Runtime/ByteCode/ByteCodeSerializer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3169,7 +3169,7 @@ class ByteCodeBufferReader
31693169
string16IndexTable = (StringIndexRecord*)ReadInt32(string16s, &string16Count);
31703170
lineCharacterOffsetCacheBuffer = (charcount_t *)ReadInt32(lineInfoCaches, &lineInfoCacheCount);
31713171
byte haslineByteOffsetCacheBuffer;
3172-
current = ReadByte(lineInfoCaches + sizeof(charcount_t) * lineInfoCacheCount, &haslineByteOffsetCacheBuffer);
3172+
current = ReadByte((byte*)lineCharacterOffsetCacheBuffer + sizeof(charcount_t) * lineInfoCacheCount, &haslineByteOffsetCacheBuffer);
31733173
if (haslineByteOffsetCacheBuffer)
31743174
{
31753175
lineByteOffsetCacheBuffer = (charcount_t *)current;

0 commit comments

Comments
 (0)