OSDN Git Service

SurfaceFlinger: Fix integer overflow in Mesh ctor
authorDan Stoza <stoza@google.com>
Wed, 29 Apr 2015 20:30:31 +0000 (13:30 -0700)
committerDan Stoza <stoza@google.com>
Thu, 30 Apr 2015 19:44:03 +0000 (12:44 -0700)
commitab79e33ef3a21a2b14bf15bc4c85aef247b4ad95
treeeb7ae4d0a62e0ee2a224ce4ea2ead11fcdbd1ff9
parent8de71a2408f632407c25942a39c31f78c7f64ffd
SurfaceFlinger: Fix integer overflow in Mesh ctor

Performs range checking on the inputs to Mesh::Mesh() before allocating
the storage array.

Bug: 20674682
Change-Id: I4fc918a8c312d967dd6d9f91a098b2e0a7081027
services/surfaceflinger/RenderEngine/Mesh.cpp