OSDN Git Service

Initialize to BUCKET_SIZE instead of 0
authorRussell Brenner <russellbrenner@google.com>
Thu, 29 Sep 2011 20:11:14 +0000 (13:11 -0700)
committerRussell Brenner <russellbrenner@google.com>
Fri, 30 Sep 2011 17:49:42 +0000 (10:49 -0700)
commit7ab7fecfa0a24fe9563c23a04148af77e11bf551
tree62a39d7489b0b03c65c5ace1f1736453fcf94b74
parent74523e723bc5677780989d6a5834adc5c72c3683
Initialize to BUCKET_SIZE instead of 0

Some execution path appears to be leaving mBucketSizeX and/or Y set
to 0, causing a divide-by-zero exception. This should only be
feasible when mWidth and mHeight are also 0, but, to keep things
safe, we'll initialize to BUCKET_SIZE instead.

Bug: 5391435
Change-Id: I4e01f980731619e6a6fb70a6eb315c44dd677c7b
Source/WebKit/android/jni/PictureSet.cpp