1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-20 14:20:55 +00:00

Add a sanity check to unsafe-looking code.

Does the memcpy to internal buffer here have any purpose besides
enabling more potential buffer overflows?


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21250 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
uau 2006-11-25 20:01:24 +00:00
parent 5572645334
commit 215b64156b

View File

@ -284,6 +284,8 @@ static void subcc_decode(void)
void subcc_process_data(unsigned char *inputdata,unsigned int len)
{
if (len > CC_INPUTBUFFER_SIZE)
return;
if(!subcc_enabled) return;
if(!inited) subcc_init();