PR #23146 opened by michaelni URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23146 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23146.patch
Found-by: iceray-Li Signed-off-by: Michael Niedermayer <[email protected]> >From c7ae367eb0d4a6d80fcd18b17e04a1104498d18d Mon Sep 17 00:00:00 2001 From: Michael Niedermayer <[email protected]> Date: Mon, 18 May 2026 21:40:45 +0200 Subject: [PATCH] avformat/soxdec: Check sample_rate for nan Found-by: iceray-Li Signed-off-by: Michael Niedermayer <[email protected]> --- libavformat/soxdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/soxdec.c b/libavformat/soxdec.c index c710b9a152..2f16a2a437 100644 --- a/libavformat/soxdec.c +++ b/libavformat/soxdec.c @@ -88,7 +88,7 @@ static int sox_read_header(AVFormatContext *s) return AVERROR_INVALIDDATA; } - if (sample_rate <= 0 || sample_rate > INT_MAX) { + if (sample_rate <= 0 || sample_rate > INT_MAX || isnan(sample_rate)) { av_log(s, AV_LOG_ERROR, "invalid sample rate (%f)\n", sample_rate); return AVERROR_INVALIDDATA; } -- 2.52.0 _______________________________________________ ffmpeg-devel mailing list -- [email protected] To unsubscribe send an email to [email protected]
