Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
5.6.0
-
None
-
Mac OS X 10.11.4 Qt 5.6.0
Not sure if this happens in earlier versions of Qt.
-
3a45458b96bdcbccc189aabf668e998ea03be46f
Description
If you attempt to use call or apply on Array.prototype.join and use an invalid object as the this argument, Qt will segfault.
Example:
// Works fine with a normal array Array.prototype.join.call([0, 1]); // Works fine with this array-like object: Array.prototype.join.call({ "length": 2, "0": 0, "1": 1 }); // Invalid, but will not cause a segfault Array.prototype.join.call(function(){}); // Will cause a segfault Array.prototype.join.call(0); Array.prototype.join.call(null); Array.prototype.join.call(true); Array.prototype.join.call();