From 804f5ab334fdb8ffe0540e424cadab9329f31b14 Mon Sep 17 00:00:00 2001 From: liljencrantz Date: Wed, 16 Jan 2008 11:05:48 +1000 Subject: [PATCH] Add an extra input validation check darcs-hash:20080116010548-75c98-e6f198bb1eb5a456ce830c42f061428a9c6f755d.gz --- function.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/function.c b/function.c index 830624d39..246974dfc 100644 --- a/function.c +++ b/function.c @@ -341,6 +341,10 @@ void function_set_desc( const wchar_t *name, const wchar_t *desc ) static int al_contains_str( array_list_t *list, const wchar_t * str ) { int i; + + CHECK( list, 0 ); + CHECK( str, 0 ); + for( i=0; i