QScriptEngine memory limit
-
Hi!
I was wondering, is there a way to limit the memory allocated by some script.
A simple script
@
a = new Array;
for (var i = 0 ;; i++) a[i] = "ololo";
@
can do a lot of trouble...Another question: is there a way to measure the allocated by script memory (I believe it is stored in QScriptEngine object).
Cause if there is, I can achieve the memory limitation by implementing the positionChange method of QScriptEngineAgent class.
Thank you