Mercurial > mplayer.hg
changeset 18549:845f94a75729
psm longer than 1018 bytes is not allowed, thus invalid
author | nicodvb |
---|---|
date | Thu, 18 May 2006 18:05:10 +0000 |
parents | d73877c6bb54 |
children | 1b8c3861dbd3 |
files | libmpdemux/demux_mpg.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_mpg.c Thu May 18 17:45:20 2006 +0000 +++ b/libmpdemux/demux_mpg.c Thu May 18 18:05:10 2006 +0000 @@ -45,7 +45,7 @@ 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);