QScriptEngine memory limit
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.
Maybe you can throw some advice at me on where I should change something in the qtscript sources to achieve the memory limitation?