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



  • Maybe you can throw some advice at me on where I should change something in the qtscript sources to achieve the memory limitation?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.