progs/util: Exit RawImageGetData early if malloc fails.
authorVinson Lee <vlee@vmware.com>
Fri, 20 Nov 2009 20:11:55 +0000 (12:11 -0800)
committerVinson Lee <vlee@vmware.com>
Fri, 4 Dec 2009 01:14:08 +0000 (17:14 -0800)
commita0ac8fc7d8d946183ba0506a8134a6e55819e151
treedf3ba604291eb46aedf005047809e78993a2363b
parent0a6acecb35aa5701ee82cf17c2561c172612cb6e
progs/util: Exit RawImageGetData early if malloc fails.

Prevents a null pointer deference later on.
(cherry picked from commit e26135a744f740430e3dc341fa692544ba99c11e)
progs/util/readtex.c