mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-06-02 10:08:24 +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:
|
||
|---|---|---|
| .. | ||
| Android.bp | ||
| Android.sources.bp | ||
| common.h | ||
| format.c | ||
| format.h | ||
| kms.c | ||
| kms.h | ||
| meson.build | ||
| pattern.c | ||
| pattern.h | ||