mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-04-11 21:30:39 +02:00
The chroma offset calculation resulted in the running beyond
the end of the buffer.
eg For ysub=2, y=0 and y=1 should result in writing the same U & V
line, but chroma_offset = (y + 1) / ysub; resulted in them going
to different lines, potentially running off the end of the buffer
and causing a seg fault.
Update the calculation so lines 0 to (ysub-1) all write the same
output line.
Fixes:
|
||
|---|---|---|
| .. | ||
| amdgpu | ||
| etnaviv | ||
| exynos | ||
| modeprint | ||
| modetest | ||
| nouveau | ||
| proptest | ||
| radeon | ||
| tegra | ||
| ttmtest | ||
| util | ||
| vbltest | ||
| Android.bp | ||
| drmdevice.c | ||
| drmsl.c | ||
| hash.c | ||
| meson.build | ||