diff options
author | Erik Hovland <erik@hovland.org> | 2008-04-14 21:19:36 +0100 |
---|---|---|
committer | Erik Hovland <erik@hovland.org> | 2008-04-14 21:19:36 +0100 |
commit | a795b2039b013f4ccfca2de76bd892ac77e49be1 (patch) | |
tree | 41d7764542d81db02cd1c0086ce9a97afe14003e /src | |
parent | 1dde93f3dfd535813c291ff22ea678f47a455590 (diff) | |
download | xine-lib-a795b2039b013f4ccfca2de76bd892ac77e49be1.tar.gz xine-lib-a795b2039b013f4ccfca2de76bd892ac77e49be1.tar.bz2 |
Title array has only five entries. It can be overrun.
Diffstat (limited to 'src')
-rw-r--r-- | src/libsputext/demux_sputext.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libsputext/demux_sputext.c b/src/libsputext/demux_sputext.c index ee7f6122e..c80e2b496 100644 --- a/src/libsputext/demux_sputext.c +++ b/src/libsputext/demux_sputext.c @@ -902,7 +902,10 @@ static subtitle_t *sub_read_line_jacobsub(demux_sputext_t *this, subtitle_t *cur } } *q = '\0'; - current->text[current->lines] = strdup(line1); + if (current->lines < SUB_MAX_TEXT) + current->text[current->lines] = strdup(line1); + else + xprintf (this->stream->xine, XINE_VERBOSITY_DEBUG, "Too many lines in a subtitle\n"); } current->lines++; return current; |