| Summary: | REGRESSION: tryFastCalloc is no longer "try" | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Alexey Proskuryakov <ap> | ||||
| Component: | Web Template Framework | Assignee: | Alexey Proskuryakov <ap> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | benjamin, cmarcelo, commit-queue, darin, ggaren, kling | ||||
| Priority: | P2 | Keywords: | Regression | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Attachments: |
|
||||||
|
Description
Alexey Proskuryakov
2015-02-09 15:24:05 PST
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. |