Pascal Massimino 3c49178f7d prevent 32b overflow for very large canvas_width / height
some multiplies here and there needed some extra checks
and error reporting. Even if width * height is guaranteed
to be < 2**32, we were multiplying by num_channels and
triggering a 32b overflow.
Some multiplies were not using size_t or uint64_t, additionally.

Change-Id: If2a35b94c8af204135f4b88a7fd63850aa381bbf
(cherry picked from commit 1c36440094c7a34ae315035e16b8ed2275247556)
2016-12-08 15:27:51 -08:00
..
2013-06-06 23:09:14 -07:00
2013-12-16 20:16:02 -08:00
2015-12-08 12:45:41 +01:00
2014-10-22 17:25:41 +02:00
2010-11-17 20:09:47 -08:00
2015-12-08 12:45:41 +01:00
2015-12-08 12:45:41 +01:00