diff options
author | Petri Hintukainen <phintuka@users.sourceforge.net> | 2012-07-12 17:56:08 +0300 |
---|---|---|
committer | Petri Hintukainen <phintuka@users.sourceforge.net> | 2012-07-12 17:56:08 +0300 |
commit | f26c4bb84d272309dcdd65f804625d120f3157aa (patch) | |
tree | ae079084fceb5ee935ab2b6b44d220cf61c8908d /src | |
parent | 2054ac1e6fb27e9c62b77dded8178cba7cf38bdd (diff) | |
download | xine-lib-f26c4bb84d272309dcdd65f804625d120f3157aa.tar.gz xine-lib-f26c4bb84d272309dcdd65f804625d120f3157aa.tar.bz2 |
sanity check for memcpy method config value
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-utils/memcpy.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 ); |