From f26c4bb84d272309dcdd65f804625d120f3157aa Mon Sep 17 00:00:00 2001 From: Petri Hintukainen Date: Thu, 12 Jul 2012 17:56:08 +0300 Subject: sanity check for memcpy method config value --- src/xine-utils/memcpy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/xine-utils/memcpy.c b/src/xine-utils/memcpy.c index 55b376dce..22f79cc07 100644 --- a/src/xine-utils/memcpy.c +++ b/src/xine-utils/memcpy.c @@ -499,6 +499,7 @@ void xine_probe_fast_memcpy(xine_t *xine) /* check if function is configured and valid for this machine */ if( best != 0 && + best < sizeof(memcpy_methods)/sizeof(memcpy_method[0]) && (config_flags & memcpy_method[best].cpu_require) == memcpy_method[best].cpu_require ) { lprintf("using %s memcpy()\n", memcpy_method[best].name ); -- cgit v1.2.3