eina_tiler: use int size matching Eina_Rectangle internally to avoid overflow
authorMike Blumenkrantz <zmike@osg.samsung.com>
Fri, 21 Apr 2017 20:14:57 +0000 (16:14 -0400)
committerMike Blumenkrantz <zmike@osg.samsung.com>
Fri, 21 Apr 2017 20:16:12 +0000 (16:16 -0400)
commitab6721743407e6eb502a41bc6302ab65e735d1be
tree1f29dbf611722a3bd7b45a355bcbc513a62b9568
parentea0a3d304ae60b7dba874f0bf2b2d6035aed9aeb
eina_tiler: use int size matching Eina_Rectangle internally to avoid overflow

since this code's creation it seems that the internal int size was set to use
short in order to micro-optimize memory usage, while the api function parameters
used Eina_Rectangle which had a larger int size. when initializing the internal
rect struct, this would lead to overflows which resulted in broken tilers which
returned iterators with no valid rects after having valid rects added

test case: run weston-subsurfaces

@fix
src/lib/eina/eina_tiler.c