OSDN Git Service

minigbm: cros_gralloc/buffer: Initialize plane address array
authorTomasz Figa <tfiga@chromium.org>
Fri, 28 Jul 2017 08:19:44 +0000 (17:19 +0900)
committerchrome-bot <chrome-bot@chromium.org>
Wed, 2 Aug 2017 07:35:35 +0000 (00:35 -0700)
commit889b994fcd256a4a14ae0dc80d2104c4a5009151
tree7279ada10ed097c4950cead1a5bc2c4a3daf8660
parent4b5d0bf2ab4da0f475f01575fb369b7eb9415d7c
minigbm: cros_gralloc/buffer: Initialize plane address array

Before we return to userspace, we should clear the output array of
pointer values, so that it doesn't contain some spurious data.
Furthermore, if zero flags are given, the lock method itself
dereferences addr[0] before assigning any value there.

BUG=b:38250067
TEST=android.media.cts.DecoderTest on veyron_minnie

Change-Id: I58284477b3813265188f1714f00b1fb7003ed2a3
Reviewed-on: https://chromium-review.googlesource.com/592987
Commit-Ready: Tomasz Figa <tfiga@chromium.org>
Tested-by: Tomasz Figa <tfiga@chromium.org>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
cros_gralloc/cros_gralloc_buffer.cc