diff options
Diffstat (limited to 'multimedia/mythtv/files/patch-CVE-2018-6621')
-rw-r--r-- | multimedia/mythtv/files/patch-CVE-2018-6621 | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/multimedia/mythtv/files/patch-CVE-2018-6621 b/multimedia/mythtv/files/patch-CVE-2018-6621 new file mode 100644 index 000000000000..24ad9c45bec3 --- /dev/null +++ b/multimedia/mythtv/files/patch-CVE-2018-6621 @@ -0,0 +1,15 @@ +Fix for CVE-2018-6621 +https://security-tracker.debian.org/tracker/CVE-2018-6621 +https://git.ffmpeg.org/gitweb/ffmpeg.git/commit/118e1b0b3370dd1c0da442901b486689efd1654b + +--- external/FFmpeg/libavcodec/utvideodec.c.orig 2018-03-01 05:12:04 UTC ++++ external/FFmpeg/libavcodec/utvideodec.c +@@ -534,7 +534,7 @@ static int decode_frame(AVCodecContext *avctx, void *d + for (j = 0; j < c->slices; j++) { + slice_end = bytestream2_get_le32u(&gb); + if (slice_end < 0 || slice_end < slice_start || +- bytestream2_get_bytes_left(&gb) < slice_end) { ++ bytestream2_get_bytes_left(&gb) < slice_end + 1024LL) { + av_log(avctx, AV_LOG_ERROR, "Incorrect slice size\n"); + return AVERROR_INVALIDDATA; + } |