Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Pull in fix for out-of-bounds array write in xine_demux_sputext.cpp f…
…rom upstream. Coverity 746831
  • Loading branch information
stuartm committed May 29, 2013
1 parent 7a1e896 commit 7030916
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mythtv/libs/libmythtv/xine_demux_sputext.cpp
Expand Up @@ -887,7 +887,10 @@ static subtitle_t *sub_read_line_jacobsub(demux_sputext_t *demuxstr, subtitle_t
}
}
*q = '\0';
current->text[current->lines] = strdup(line1);
if (current->lines < SUB_MAX_TEXT)
current->text[current->lines] = strdup(line1);
else
printf ("Too many lines in a subtitle\n");
}
current->lines++;
return current;
Expand Down

0 comments on commit 7030916

Please sign in to comment.