OSDN Git Service

minigbm: add validation during import
authorGurchetan Singh <gurchetansingh@chromium.org>
Fri, 29 Sep 2017 17:18:59 +0000 (10:18 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Tue, 10 Oct 2017 05:23:52 +0000 (22:23 -0700)
commitc26fd1e5f7f54f42326f3e5f03551e93b3b84604
tree4980cb0ce5ec2625c01910f52b507d79890c8efb
parent3122213d9a5570e5b7dfbfab496d7c8da0721efb
minigbm: add validation during import

A common cause of bugs and security exploits are out-of-bounds
memory accesses. Let's add some validation when importing the
buffer to protect against this.

BUG=b:65566935
TEST=Boot Android and play games on Eve

Change-Id: I557f9b9849f267f5c87bb29648119b1c29695cd3
Reviewed-on: https://chromium-review.googlesource.com/692624
Commit-Ready: Gurchetan Singh <gurchetansingh@chromium.org>
Tested-by: Gurchetan Singh <gurchetansingh@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
drv.c