Skip to content

Commit 1b53bc7

Browse files
author
Patrick Soquet
committed
XS: fuzzilli 12
1 parent 8d4d2f2 commit 1b53bc7

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

xs/sources/xsLockdown.c

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -550,10 +550,19 @@ void fxVerifyCode(txMachine* the, txSlot* list, txSlot* path, txByte* codeBuffer
550550
}
551551
if (flag) {
552552
txSlot* instance = fxGetInstance(the, mxVarv(1));
553-
txSlot* name = fxNewSlot(the);
553+
txSlot* item;
554+
txSlot* name;
555+
556+
mxTemporary(item);
557+
558+
item->value.list.first = name = fxNewSlot(the);
559+
item->value.list.last = C_NULL;
560+
item->kind = XS_LIST_KIND;
561+
554562
name->value.string = "GlobalEnvironment";
555563
name->kind = XS_STRING_X_KIND;
556564
name->next = path;
565+
557566
flags = fxGetHostChunk(the, mxVarv(0));
558567
id = 0;
559568
while (id < the->keyIndex) {
@@ -566,6 +575,8 @@ void fxVerifyCode(txMachine* the, txSlot* list, txSlot* path, txByte* codeBuffer
566575
}
567576
id++;
568577
}
578+
579+
mxPop();
569580
}
570581
}
571582

0 commit comments

Comments
 (0)