From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ffbox0-bg.ffmpeg.org (ffbox0-bg.ffmpeg.org [79.124.17.100]) by master.gitmailbox.com (Postfix) with ESMTPS id CE2A44DA74 for ; Tue, 23 Dec 2025 03:20:26 +0000 (UTC) Authentication-Results: ffbox; dkim=fail (body hash mismatch (got b'wWk0ko2vqJGs/owl8gHjbrXIEaPTNPfdyUs10CtOHV8=', expected b'Fl8xu1zr3MBvmMpRsrbeaU5r41hF/y86zSpoD6TwuTA=')) header.d=ffmpeg.org header.i=@ffmpeg.org header.a=rsa-sha256 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1766460023; h=mime-version : to : date : message-id : reply-to : subject : list-id : list-archive : list-archive : list-help : list-owner : list-post : list-subscribe : list-unsubscribe : from : cc : content-type : content-transfer-encoding : from; bh=wWk0ko2vqJGs/owl8gHjbrXIEaPTNPfdyUs10CtOHV8=; b=LAQBI2mqRuKeNzH96bvg4u/rZ8JhUxTLLJEfc6aueOXpttbHAZYjTWLTV6AoRzd9XNLAP 2VG7DLbAmmlHcuDmS5ZZeKUNqaZt3t1F6lBNyYvkSXV2Z6UVX5z69Oda3uTIF6HESjlcjaG LOJRHP39oW8MFipp/ueNzYuR8HL2iAohXEMJe2Q8hmanzOBW+2cRUBxGGNq1BjdQwMnQsTa zNPvrYFSkqJOGMBUkJvNapG68iDiXyiGNO3C9Q8F819pDXdzUlU5eyPnTT6eQvFWOba5/Cy z0DFTu3D7tb75+niuOmbZE3cwhfVSBTJLttH/Xq4IlOr7pptgsptgnPEbqbg== Received: from [172.20.0.2] (unknown [172.19.0.4]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTP id 2F45C690ACB; Tue, 23 Dec 2025 05:20:23 +0200 (EET) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=ffmpeg.org; s=arc; t=1766460015; b=ekyqnehcThZwmCDPkM9Uu+KZJhrUQKFwx9cR6KUh0tem7JpDH97+pE/sm7UFL2n1STmdH b5M4JnJBNqKZmStNo8OBgBHoV3mNFcjGieqXE8hofBUUZ7xJNdn95MA8JfeoG459RIlaUvJ oOJDnM6+oNovoTzT4Gd39yXho/fJX7IP5p6dLJsw0H6p15R2PGs4CJSgrfFON3uKbh0XJDb B1Dptz2SR8vAqCAoOFOPrUdy+4lNsNVsRk98gvh1DTecgp1UK9XliplL3q3geu42LYBWl0V 5M4S9vlgwxYj38SMYz3+C8//oxvipCCHiNi02Am6iRLA791uGr5uv8v830kA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=ffmpeg.org; s=arc; t=1766460015; h=from : sender : reply-to : subject : date : message-id : to : cc : mime-version : content-type : content-transfer-encoding : content-id : content-description : resent-date : resent-from : resent-sender : resent-to : resent-cc : resent-message-id : in-reply-to : references : list-id : list-help : list-unsubscribe : list-subscribe : list-post : list-owner : list-archive; bh=5lcQfvMEugHT9Y5EdeACSxRh/iz/n3/Vbxdj1T904tc=; b=tvevAdcmoDsiKeT4hAA7qCsVXI3IP5w4yj7TigZn67LzekeYsDkusAboqoLLZvx5J3s2O gRIobIlX9mcGlCqjNsTyTdf/8YmXJDmtcfW5NmWtnCCBCaLmIKp21GQ7eA9ggfVukfmTJvV LLtTTqTtnh2ycynBx/ham2wlfveCS0EjCcJse9/6oVz1VdsKMvh60DekRwLh2slcgh1avUT QFiDwUxkYNgueuOW/lPiVC0INHOPULEoZcqzn2SuglLpPwteUSHG3zQpWw26frHWPi6rGZJ B1jOGhUbk9g806n93HWEAe/ybteZwytgMzx+4arrPu+hG9crISLzEuc5OMJA== ARC-Authentication-Results: i=1; ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none; dmarc=pass header.from=ffmpeg.org policy.dmarc=quarantine Authentication-Results: ffmpeg.org; dkim=pass header.d=ffmpeg.org header.i=@ffmpeg.org; arc=none (Message is not ARC signed); dmarc=pass (Used From Domain Record) header.from=ffmpeg.org policy.dmarc=quarantine DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ffmpeg.org; i=@ffmpeg.org; q=dns/txt; s=mail; t=1766460006; h=content-type : mime-version : content-transfer-encoding : from : to : reply-to : subject : date : from; bh=Fl8xu1zr3MBvmMpRsrbeaU5r41hF/y86zSpoD6TwuTA=; b=SBJ5s2GC8YjXu60ucYqMSYadEALZKGRZV/ybtIgyyohdkI8wQfUcpVHGCB0pUa0BNKdUq 8w8i/wMdfpnxQs6u5pVY5hGJ4DHp465X6MZWk8yCMmwEVeLdP68wYg9Kme0OjGl6oJ0ojLS pve6IDyw8g0XiA3ROU0d7Fnw4s6mBYnI+L7gwAebQJS9z09LqPbu/g1tTrmlnoEz+gXzDWB O654HV1D2+xMfQNfEvnXo2migI48ReZhZns07NaI2GKlaJ/4EOrhNArVfrJHbFYUt2MEgMk iaAYDX/P4to2Fo02vNXs3uV1BVhIxUs4v2yXyuK7RPv+SCL3VdKqBwYyj50g== Received: from 55ca25703178 (code.ffmpeg.org [188.245.149.3]) by ffbox0-bg.ffmpeg.org (Postfix) with ESMTPS id 8C4BB690ABB for ; Tue, 23 Dec 2025 05:20:06 +0200 (EET) MIME-Version: 1.0 To: ffmpeg-devel@ffmpeg.org Date: Tue, 23 Dec 2025 03:20:06 -0000 Message-ID: <176646000670.60.12566238849052751275@2cb04c0e5124> Message-ID-Hash: U74RZFB3VJ6HFMY6WADM4NO4DAWAOABD X-Message-ID-Hash: U74RZFB3VJ6HFMY6WADM4NO4DAWAOABD X-MailFrom: code@ffmpeg.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-ffmpeg-devel.ffmpeg.org-0; header-match-ffmpeg-devel.ffmpeg.org-1; header-match-ffmpeg-devel.ffmpeg.org-2; header-match-ffmpeg-devel.ffmpeg.org-3; emergency; member-moderation X-Mailman-Version: 3.3.10 Precedence: list Reply-To: FFmpeg development discussions and patches Subject: [FFmpeg-devel] [PATCH] swscale/output: Use 64bit in addition in yuv2gbrp16_full_X_c() for RGB + Y (PR #21280) List-Id: FFmpeg development discussions and patches Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: michaelni via ffmpeg-devel Cc: michaelni Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Archived-At: List-Archive: List-Post: PR #21280 opened by michaelni URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21280 Patch URL: https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/21280.patch Fixes: signed integer overflow: -1159988356 + -1082982400 cannot be represented in type 'int' Fixes: 461519938/clusterfuzz-testcase-minimized-ffmpeg_SWS_fuzzer-4777382021234688 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer >>From 44d9bb0714f298966484dfe1a601bdd834ea44f1 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 22 Dec 2025 23:44:54 +0100 Subject: [PATCH] swscale/output: Use 64bit in addition in yuv2gbrp16_full_X_c() for RGB + Y Fixes: signed integer overflow: -1159988356 + -1082982400 cannot be represented in type 'int' Fixes: 461519938/clusterfuzz-testcase-minimized-ffmpeg_SWS_fuzzer-4777382021234688 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer --- libswscale/output.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libswscale/output.c b/libswscale/output.c index 4b3aab3109..a3b8da54bf 100644 --- a/libswscale/output.c +++ b/libswscale/output.c @@ -2513,9 +2513,9 @@ yuv2gbrp16_full_X_c(SwsInternal *c, const int16_t *lumFilter, G = V * c->yuv2rgb_v2g_coeff + U * c->yuv2rgb_u2g_coeff; B = U * c->yuv2rgb_u2b_coeff; - dest16[2][i] = av_clip_uintp2(((Y + R) >> 14) + (1<<15), 16); - dest16[0][i] = av_clip_uintp2(((Y + G) >> 14) + (1<<15), 16); - dest16[1][i] = av_clip_uintp2(((Y + B) >> 14) + (1<<15), 16); + dest16[2][i] = av_clip_uintp2(((Y + (int64_t)R) >> 14) + (1<<15), 16); + dest16[0][i] = av_clip_uintp2(((Y + (int64_t)G) >> 14) + (1<<15), 16); + dest16[1][i] = av_clip_uintp2(((Y + (int64_t)B) >> 14) + (1<<15), 16); if (hasAlpha) dest16[3][i] = av_clip_uintp2(A, 30) >> 14; -- 2.49.1 _______________________________________________ ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org