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
1 file changed
tree: b2d62de3e09a84f0954e3dd450612b745a0d026f
  1. host/
  2. shared/
  3. system/
  4. tests/
  5. Android.mk
  6. common.mk
  7. README