Skip to content

Commit bb363e5

Browse files
author
Patrick Soquet
committed
XS: secaudit issue #23
1 parent c109439 commit bb363e5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

xs/sources/xsNumber.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,8 @@ void fx_Number_prototype_toString(txMachine* the)
451451
else
452452
minus = 0;
453453
do {
454+
if (string == buffer)
455+
fxAbort(the, XS_STACK_OVERFLOW_EXIT);
454456
*(--string) = c_read8(gxDigits + (txInteger)c_fmod(value, radix));
455457
value = value / radix;
456458
} while (value >= 1);

0 commit comments

Comments
 (0)