Wan-Teh Chang c98edcc8dc Don't coalesce rows if width*height would overflow
Audit all occurrences of "width *= height;" in the libyuv source code.
Make sure height > 0 and (ptrdiff_t)width * height <= INT_MAX before
executing width *= height.

Bug: chromium:517339758
Change-Id: I143a41c66492a6e4c48b6aa2a1c4a2ae974ceeb1
Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/7883816
Commit-Queue: Wan-Teh Chang <wtc@google.com>
Reviewed-by: Frank Barchard <fbarchard@google.com>
2026-05-29 11:57:47 -07:00
..
basic_types.h Disable old int types by default. 2018-07-09 21:16:47 +00:00
compare_row.h Deprecate MIPS and MSA support. 2025-10-16 12:20:40 -07:00
compare.h Lint cleanup after C99 change CL 2018-01-24 19:16:03 +00:00
convert_argb.h Add ABGR versions of the ArgbConstants structures 2026-03-17 17:28:51 -07:00
convert_from_argb.h Unittests use ASSERT instead of EXPECT 2026-05-11 19:10:47 -07:00
convert_from.h Add 10/12 bit YUV To YUV functions 2021-02-25 23:16:54 +00:00
convert.h Unittests use ASSERT instead of EXPECT 2026-05-11 19:10:47 -07:00
cpu_id.h Experimental SVE FMMLA detect 2025-10-27 14:34:55 -07:00
cpu_support.h Disable Arm SME and SVE assmbly code under MSan 2025-04-03 11:27:31 -07:00
loongson_intrinsics.h RAWToJ400 faster version for ARM 2022-03-18 07:22:36 +00:00
mjpeg_decoder.h add YUV24 and AYUV formats 2019-03-05 02:53:56 +00:00
planar_functions.h Replace RAWToY/RGB24ToY with RGBToYMatrix 2026-04-21 17:11:14 -07:00
rotate_argb.h Switch to C99 types 2018-01-23 19:16:05 +00:00
rotate_row.h Deprecate MIPS and MSA support. 2025-10-16 12:20:40 -07:00
rotate.h Add 10 bit rotate methods. 2023-01-04 21:10:01 +00:00
row_sve.h RAWToARGB AVX512VBMI 2026-04-22 14:48:29 -07:00
row.h J400ToARGB switch from SSE2 to AVX2 2026-05-28 21:24:32 -07:00
scale_argb.h Switch to C99 types 2018-01-23 19:16:05 +00:00
scale_rgb.h RGBScale function using 3 steps: RGB24ToARGB, ARGBScale, ARGBToRGB24 2022-03-19 01:44:06 +00:00
scale_row.h Replace RAWToY/RGB24ToY with RGBToYMatrix 2026-04-21 17:11:14 -07:00
scale_uv.h add yuvconvstants util 2021-02-12 19:45:16 +00:00
scale.h Add NV24 scaling support to libyuv 2024-12-12 02:46:11 -08:00
version.h Don't coalesce rows if width*height would overflow 2026-05-29 11:57:47 -07:00
video_common.h Add support for AR64 format 2021-03-13 20:55:21 +00:00