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 21:57:41 +0000 (14:57 -0700)
commitaa4041f70a4068a7ce9df8bea3cda8aaf94a62f6
tree9569efa492007262e6f8f6612bd94b7d9843a7e8
parent84f1d9c288f35fa399f97207b6af43a261d5989a
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
(cherry picked from commit ab79e33ef3a21a2b14bf15bc4c85aef247b4ad95)
services/surfaceflinger/RenderEngine/Mesh.cpp