]> git.sesse.net Git - ffmpeg/commitdiff
Merge commit 'a4b1b5aa281cacde8351d9947b54ccf82ff10cd0'
authorClément Bœsch <u@pkh.me>
Sun, 19 Mar 2017 14:59:49 +0000 (15:59 +0100)
committerClément Bœsch <u@pkh.me>
Sun, 19 Mar 2017 14:59:49 +0000 (15:59 +0100)
* commit 'a4b1b5aa281cacde8351d9947b54ccf82ff10cd0':
  wc3movie: Drop unused cruft

Merged-by: Clément Bœsch <u@pkh.me>
1  2 
libavformat/wc3movie.c

index 642dcbbf7e862248e82b09ca42f8518b26ad87e7,f46b8c2f09b386a7e227c0ba9428d2a9fd871017..d8fc18eb5fc8089546b4841ca3965d795beee920
@@@ -250,19 -246,12 +247,18 @@@ static int wc3_read_packet(AVFormatCont
              else {
                  int i = 0;
                  av_log (s, AV_LOG_DEBUG, "Subtitle time!\n");
 +                if (i >= size || av_strnlen(&text[i + 1], size - i - 1) >= size - i - 1)
 +                    return AVERROR_INVALIDDATA;
                  av_log (s, AV_LOG_DEBUG, "  inglish: %s\n", &text[i + 1]);
                  i += text[i] + 1;
 +                if (i >= size || av_strnlen(&text[i + 1], size - i - 1) >= size - i - 1)
 +                    return AVERROR_INVALIDDATA;
                  av_log (s, AV_LOG_DEBUG, "  doytsch: %s\n", &text[i + 1]);
                  i += text[i] + 1;
 +                if (i >= size || av_strnlen(&text[i + 1], size - i - 1) >= size - i - 1)
 +                    return AVERROR_INVALIDDATA;
                  av_log (s, AV_LOG_DEBUG, "  fronsay: %s\n", &text[i + 1]);
              }
- #endif
              break;
  
          case AUDI_TAG: