Projects
Essentials
A_tw-ffmpeg-4
ffmpeg-4-CVE-2026-66039.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ffmpeg-4-CVE-2026-66039.patch of Package A_tw-ffmpeg-4
From aafb5c655edc76a753275c383ebb139feb032718 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <michael@niedermayer.cc> Date: Mon, 29 Jun 2026 01:16:44 +0200 Subject: [PATCH] avcodec/mace: reject sample counts that overflow int Fixes: heap buffer overflow Fixes: FmXBI2dbgvgD Fixes: 0eea212943544d40f99b05571aa7159d78667154 (Add avcodec_decode_audio4().) Found-by: Adrian Junge (vurlo) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> --- libavcodec/mace.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) Index: ffmpeg-4.4.8/libavcodec/mace.c =================================================================== --- ffmpeg-4.4.8.orig/libavcodec/mace.c +++ ffmpeg-4.4.8/libavcodec/mace.c @@ -252,7 +252,10 @@ static int mace_decode_frame(AVCodecCont } /* get output buffer */ - frame->nb_samples = 3 * (buf_size << (1 - is_mace3)) / avctx->channels; + int64_t nb_samples = 3 * ((int64_t)buf_size << (1 - is_mace3)) / avctx->channels; + if (nb_samples > INT_MAX) + return AVERROR_INVALIDDATA; + frame->nb_samples = nb_samples; if ((ret = ff_get_buffer(avctx, frame, 0)) < 0) return ret; samples = (int16_t **)frame->extended_data;
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.