[PATCH] access: Hook in abort if we find no matching pixel/scanline accessors.

Chris Wilson chris at chris-wilson.co.uk
Sun May 30 08:03:57 PDT 2010


Some paranoid defense to more easily catch should not happen conditions
from within gdb.

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)
 	
 	info++;
     }
+
+    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
-- 
1.7.1



More information about the xorg-devel mailing list