Summary: | Saving image surface to PNG SEGVs | ||
---|---|---|---|
Product: | pixman | Reporter: | Dom Lachowicz <domlachowicz> |
Component: | pixman | Assignee: | Carl Worth <cworth> |
Status: | RESOLVED FIXED | QA Contact: | cairo-bugs mailing list <cairo-bugs> |
Severity: | major | ||
Priority: | medium | ||
Version: | 0.1.3 | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | Protect pixel allocation from integer overflow. |
Description
Dom Lachowicz
2007-07-16 12:44:16 UTC
Created attachment 11155 [details] [review] Protect pixel allocation from integer overflow. (In reply to comment #1) > Created an attachment (id=11155) [details] > Protect pixel allocation from integer overflow. > Is this something that might benefit from Vlad's malloc wrappers that check for overflow? (In reply to comment #2) > (In reply to comment #1) > > Created an attachment (id=11155) [details] [details] > > Protect pixel allocation from integer overflow. > > > > Is this something that might benefit from Vlad's malloc wrappers that check for > overflow? No this is one was a call to calloc and was missed during the wrapping - I too had the same thought and had to double check my source tree! [Transferring to libpixman.] Fixed in: commit 958a650b8eb1b61143122c3ad1f9b637b6467984 Author: Chris Wilson <chris@chris-wilson.co.uk> Date: Thu Sep 27 12:40:59 2007 +0100 [pixman-image] Avoid integer overflow when allocating bits. Check for potential overflows at every step of the calculation of the buffer size required for the pixels. (Fixes https://bugs.freedesktop.org/show_bug.cgi?id=11627) |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.