mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-28 23:13:18 +08:00
Properly check length of flac metadata.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25917 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
@@ -229,6 +229,8 @@ get_flac_metadata (demuxer_t* demuxer)
|
||||
ptr += 4;
|
||||
|
||||
comment = ptr;
|
||||
if (&comment[length] < comments || &comment[length] >= &comments[blk_len])
|
||||
return;
|
||||
c = comment[length];
|
||||
comment[length] = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user