OSDN Git Service

minigbm: gralloc0: Fix invalid cast from integer to pointer
authorTomasz Figa <tfiga@chromium.org>
Tue, 11 Jul 2017 09:07:11 +0000 (18:07 +0900)
committerchrome-bot <chrome-bot@chromium.org>
Fri, 14 Jul 2017 02:45:56 +0000 (19:45 -0700)
commit23b85cb123d6a94323a09a6710c12273a22a9e30
tree55f8c0540533d9a4c76bfb14ef1a388854bfbc52
parentc869517c0d088c41c8023f7e304b8420db9a7fa6
minigbm: gralloc0: Fix invalid cast from integer to pointer

We should be casting a pointer to the fourcc to a char * pointer,
instead of casting the fourcc value itself (which unluckily happens to
be of the same size as pointer, so compilator fails to detect it).

BUG=b:62358788
TEST=Try to allocate with invalid usage

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