Mercurial > mplayer.hg
changeset 27839:9a46fffef0fc
vobsub: add sanity check
author | aurel |
---|---|
date | Sat, 01 Nov 2008 13:51:39 +0000 |
parents | 13738bdebf9a |
children | 0073bd183787 |
files | vobsub.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/vobsub.c Fri Oct 31 18:44:45 2008 +0000 +++ b/vobsub.c Sat Nov 01 13:51:39 2008 +0000 @@ -852,7 +852,8 @@ char *line = NULL; do { line_size = vobsub_getline(&line, &line_reserve, fd); - if (line_size < 0) { + if (line_size < 0 || line_size > 1000000 || + vob->extradata_len+line_size > 10000000) { break; }