[vlc-devel] commit: Fixed invalid access in file_select (lua). (Laurent Aimar )

Antoine Cellerier dionoea at videolan.org
Mon Feb 8 21:47:06 CET 2010


On Mon, Feb 08, 2010, git version control wrote:
>          int l = strlen( ppsz_lua_exts[j] );
> -        if( !strcmp( file+i-l, ppsz_lua_exts[j] ) )
> +        if( i >= l && !strcmp( file+i-l, ppsz_lua_exts[j] ) )

Nice catch. Thanks.

-- 
Antoine Cellerier
dionoea



More information about the vlc-devel mailing list