Fix T37826: Opening a new image in the image editor
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 16 Dec 2013 10:42:48 +0000 (16:42 +0600)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 16 Dec 2013 10:51:27 +0000 (16:51 +0600)
commitc193dbe30b40beb435d6edde7117469f4706f98e
tree8df263e9d706f9a8f47d9b0210597d6ad33c22e4
parenta2543ee43dc6a35b36a8feda83679bf3e22e218d
Fix T37826: Opening a new image in the image editor

Cast dimensions to size_t before multiplication.
Also made add_ibuf_size survive cases when image
buffer allocation failed.
source/blender/blenkernel/intern/image.c
source/blender/imbuf/intern/allocimbuf.c