Commit 8c9f7104e32ef8c425623d12ef6825e26b99aec2

Simon McVittie 2022-05-10T10:33:54

video: Harden calculation of SDL_surface pitch and size against overflow If the width is sufficiently ludicrous, then the calculated pitch or the image size could conceivably be a signed integer overflow, which is undefined behaviour. Calculate in the unsigned size_t domain, with overflow checks. Signed-off-by: Simon McVittie <smcv@collabora.com>