• Chris Adams's avatar
    Fix crash caused by dereferencing collected v8 data · 25793276
    Chris Adams authored
    If a var property of a QObject is read after the v8 data associated
    with the qobject has been deleted but prior to the DeferredDelete
    event being processed, the varProperties array will be null and
    a crash will occur.
    
    This patch ensures that we check for this condition in both the
    access and set codepaths for var properties, and also ensures
    that an object which has previously been queued for deletion cannot
    be referenced in JS.
    
    Finally, it adds a unit test to ensure that we don't regress.
    
    Task-number: QTBUG-24748
    Change-Id: Idde384ca01e18f4dcf9e376e9379f2c5eb410e14
    Reviewed-by: default avatarMichael Brasser <michael.brasser@nokia.com>
    25793276
Name
Last commit
Last update
..
auto Loading commit data...
benchmarks Loading commit data...
global Loading commit data...
manual/accessibility Loading commit data...
system Loading commit data...
testapplications Loading commit data...
README Loading commit data...
tests.pro Loading commit data...