[cairo] [PATCH] access: Hook in abort if we find no matching pixel/scanline accessors.
sandmann at daimi.au.dk
Mon May 31 10:00:43 PDT 2010
Chris Wilson <chris at chris-wilson.co.uk> writes:
> Some paranoid defense to more easily catch should not happen conditions
> from within gdb.
Makes sense to me. (But please also copy pixman at lists.freedesktop.org
on pixman patches).
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> pixman/pixman-access.c | 7 +++++++
> 1 files changed, 7 insertions(+), 0 deletions(-)
> diff --git a/pixman/pixman-access.c b/pixman/pixman-access.c
> index fa0a267..da5af81 100644
> --- a/pixman/pixman-access.c
> +++ b/pixman/pixman-access.c
> @@ -2876,6 +2876,13 @@ setup_accessors (bits_image_t *image)
> + image->fetch_scanline_raw_32 = (fetch_scanline_t) abort;
> + image->fetch_scanline_raw_64 = (fetch_scanline_t) abort;
> + image->fetch_pixel_raw_32 = (fetch_pixel_32_t) abort;
> + image->fetch_pixel_raw_64 = (fetch_pixel_64_t) abort;
> + image->store_scanline_raw_32 = (store_scanline_t) abort;
> + image->store_scanline_raw_64 = (store_scanline_t) abort;
> #ifndef PIXMAN_FB_ACCESSORS
More information about the cairo