OSDN Git Service

Guard against negative width and height
authorbohu <bohu@google.com>
Fri, 17 Oct 2014 20:48:06 +0000 (13:48 -0700)
committerbohu <bohu@google.com>
Fri, 17 Oct 2014 20:48:06 +0000 (13:48 -0700)
commitbd119bf2e3faa06751b1e5e65b59f0321bb7a998
treeb2d62de3e09a84f0954e3dd450612b745a0d026f
parent52371ec4383b7654497e9f0a0994bae68a6899e9
Guard against negative width and height

When negative width or height passes into pixelDataSize, some bogus
values are returned. This commit checks both width and height to make
sure they are valid.

Change-Id: Ia49a9f464e6bb4894207ca4e07bbfdf34fbe741d
shared/OpenglCodecCommon/GLClientState.cpp