Commit c6f989c9 authored by Thomas Guillem's avatar Thomas Guillem

chroma: copy: fix heap-buffer-overflow from SSE_SplitUV

Avoid splitting too far. This generally don't cause any crashes since src and
dst are aligned.
parent ad3ceb94
......@@ -450,7 +450,7 @@ static void SSE_SplitPlanes(uint8_t *dstu, size_t dstu_pitch,
/* Copy from our cache to the destination */
SSE_SplitUV(dstu, dstu_pitch, dstv, dstv_pitch,
cache, w16, src_pitch, hblock, cpu);
cache, w16, src_pitch / 2, hblock, cpu);
/* */
src += src_pitch * hblock;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment