x86 BuildInsTabMemRefSizeInfoCache: don't read past end of instab

This commit is contained in:
Jonas Maebe 2022-07-02 15:33:40 +02:00
parent 6a485065ba
commit 2ce3656ed3

View File

@ -5033,7 +5033,8 @@ implementation
RegBCSTZMMSizeMask := 0;
ExistsMemRef := false;
while (insentry^.opcode=AsmOp) do
while (insentry<=@instab[high(instab)]) and
(insentry^.opcode=AsmOp) do
begin
MRefInfo := msiUnknown;