summaryrefslogtreecommitdiff
path: root/src/cairo-damage.c
Commit message (Collapse)AuthorAgeFilesLines
* Use _cairo_malloc instead of mallocAdrian Johnson2018-05-071-3/+3
| | | | | | | | | | _cairo_malloc(0) always returns NULL, but has not been used consistently. This patch replaces many calls to malloc() with _cairo_malloc(). Fixes: fdo# 101547 CVE: CVE-2017-9814 Heap buffer overflow at cairo-truetype-subset.c:1299 Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* xlib/shm: Discard damage upon shm finishChris Wilson2013-01-081-0/+7
| | | | | | | | | Both to make sure we do not leak the memory, but to also prevent _cairo_xlib_surface_put_shm() from operating upon the finished shm surface after the display is closed. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=58253 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
* xlib: Implement SHM fallbacks and fast upload pathsChris Wilson2012-08-171-1/+0
| | | | Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
* damage: Update tail pointer after allocating new chunkChris Wilson2012-08-111-1/+2
| | | | | | | Reported and based on a patch by fmot.fics Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=53384 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
* damage: Prevent reducing an error objectChris Wilson2012-05-101-1/+1
| | | | Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
* damage: Prevent accumulating damage to an error objectChris Wilson2012-05-101-0/+3
| | | | Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
* damage: Avoid freeing the NIL error objectChris Wilson2012-05-101-0/+3
| | | | Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
* damage: Fix memcpy sizeChris Wilson2012-03-211-2/+16
| | | | Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
* Add preliminary damage trackingChris Wilson2012-02-151-0/+214
This is initially based around the requirements for handling internal fallbacks to the image compositor and reducing the number of pixels required to be transferred. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>