commit | 397fae3d418ce705d6143afe709598e57a6a25a1 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Fri Aug 28 06:40:23 2015 -0700 |
committer | Nick Kralevich <nnk@google.com> | Fri Aug 28 06:40:23 2015 -0700 |
tree | eab0b7bfc934e0fa93028a65a353cafa0834123c | |
parent | 6fc0905112037dbebaf3d94b621ba4ab5e80b760 [diff] |
VectorImpl.cpp: fix benign multiplication overflow j is a ssize_t, which can go negative. If it goes negative, the resulting multiplication of mItemSize*j doesn't make any sense. Since the value is never used, just don't perform the calculation if j < 0. Bug: 23607865 Change-Id: I14f6f6506645d582f7d67a2e2d60ead3cb18b957