commit | e2affacc35f1df6cc3b1a9fa0ceff5ce2d0cce83 | [log] [tgz] |
---|---|---|
author | Pascal Massimino <pascal.massimino@gmail.com> | Mon Oct 10 09:48:39 2016 |
committer | Pascal Massimino <pascal.massimino@gmail.com> | Mon Oct 10 11:55:46 2016 |
tree | 56b4be1ce73336cf4d86a66bb4ec77f271ac4a2f | |
parent | aaf2a6a69884d0f9abfa2f97d252e6d568e9c191 [diff] |
fix potential overflow when width * height * 4 >= (1<<32) Mostly: avoid doing calculation like: ptr + j * stride when stride is 'int'. Rather use size_t, or pointer increments (ptr += stride) when possible. BUG=webp:314 Change-Id: I81c684b515dd1ec4f601f32d50a6e821c4e46e20