Changeset View
Changeset View
Standalone View
Standalone View
head/multimedia/mythtv/files/patch-CVE-2018-6621
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
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; | |||||
} |