Bug 279108
| Summary: | Fix possible integer overflow when calculating the image frame size in bytes | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Said Abou-Hallawa <sabouhallawa> |
| Component: | Images | Assignee: | Said Abou-Hallawa <sabouhallawa> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | sabouhallawa, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Said Abou-Hallawa
To calculate the image frame size in bytes, IntSize::areas() is called for the image frame size. The result of IntSize::areas() is multiplied by bytesPerPixel which is usually 4. The IntSize::area() might overflow if the width and the height are both two large integer such that their product is larger than the maximum unsigned number.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Said Abou-Hallawa
rdar://134343651
Said Abou-Hallawa
Pull request: https://github.com/WebKit/WebKit/pull/33105
EWS
Committed 283179@main (0ed1220736b8): <https://commits.webkit.org/283179@main>
Reviewed commits have been landed. Closing PR #33105 and removing active labels.