forked from len0rd/rockbox
Avoid possible memory corruption
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23666 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
84ca236c30
commit
ad9f554eb2
1 changed files with 3 additions and 2 deletions
|
@ -233,6 +233,7 @@ static bool read_chunk_stsd(qtmovie_t *qtmovie, size_t chunk_len)
|
|||
{
|
||||
DEBUGF("codecdata too large (%d) in stsd\n",
|
||||
(int)qtmovie->res->codecdata_len);
|
||||
return false;
|
||||
}
|
||||
|
||||
memset(qtmovie->res->codecdata, 0, qtmovie->res->codecdata_len);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue