tryFastCalloc just calls through to fastCalloc, which crashes when allocation fails.
Created attachment 246297 [details] proposed fix I saw this cause crashes on fast/canvas/webgl/webgl-compressed-texture-size-limit.html
Comment on attachment 246297 [details] proposed fix Clearing flags on attachment: 246297 Committed r179855: <http://trac.webkit.org/changeset/179855>
All reviewed patches have been landed. Closing bug.
Comment on attachment 246297 [details] proposed fix View in context: https://bugs.webkit.org/attachment.cgi?id=246297&action=review > Source/WTF/wtf/FastMalloc.cpp:326 > + return tryFastZeroedMalloc(numElements * elementSize); Wait a second, what about overflow checking for the multiplication?
I think that both fastCalloc and tryFastCalloc are missing checking on overflow in the multiplication in the USE_BMALLOC case.
Great catch, I copied the existing code mindlessly. Darin has a fix in bug 141434.