st/va: Fix potential buffer overread
authorDrew Davenport <ddavenport@chromium.org>
Tue, 24 Apr 2018 23:01:32 +0000 (17:01 -0600)
committerLeo Liu <leo.liu@amd.com>
Thu, 26 Apr 2018 15:16:05 +0000 (11:16 -0400)
commit893808006a6f48c1efd8e8101a58ab2dac8dc370
treefc27f935808fa7bcef445738a18ca864421c1416
parentdeba56accf4e1f8fc025f34f6cbc069285f76838
st/va: Fix potential buffer overread

VASurfaceAttribExternalBuffers.pitches is indexed by
plane. Current implementation only supports single plane layout.

Reviewed-by: Kristian H. Kristensen <hoegsberg@chromium.org>
Reviewed-by: Leo Liu <leo.liu@amd.com>
src/gallium/state_trackers/va/surface.c