summaryrefslogtreecommitdiffstats
path: root/vobsub.c
diff options
context:
space:
mode:
Diffstat (limited to 'vobsub.c')
-rw-r--r--vobsub.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vobsub.c b/vobsub.c
index 6749ee4067..85ca0a30c2 100644
--- a/vobsub.c
+++ b/vobsub.c
@@ -852,7 +852,8 @@ vobsub_parse_one_line(vobsub_t *vob, rar_stream_t *fd)
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;
}