mirror of
https://github.com/mpv-player/mpv
synced 2025-01-13 00:06:25 +01:00
psm longer than 1018 bytes is not allowed, thus invalid
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18550 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
0bba411fed
commit
fab6247393
@ -45,7 +45,7 @@ static int parse_psm(demuxer_t *demux, int len) {
|
||||
mpg_demuxer_t *priv = (mpg_demuxer_t *) demux->priv;
|
||||
|
||||
mp_dbg(MSGT_DEMUX,MSGL_V, "PARSE_PSM, len=%d\n", len);
|
||||
if(! len)
|
||||
if(! len || len > 1018)
|
||||
return 0;
|
||||
|
||||
c = stream_read_char(demux->stream);
|
||||
|
Loading…
Reference in New Issue
Block a user