diff options
author | zoran.jovanovic <zoran.jovanovic@sonymobile.com> | 2015-04-16 11:03:16 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-16 11:03:16 -0700 |
commit | 9c798207b7c710148d7f2989e877a7ece62edd5e (patch) | |
tree | 3249a85b0a6287b0f36f8cd788104517f9f436ed /src/gpu/GrGpu.h | |
parent | 72badbd99e2321bfbcb22f78218bbafa71af4698 (diff) |
SkScaledBitmapSampler: fix memory overwritten
Memory will be overwritten while downsampling some
interlaced gif images, most commonly with odd sizes,
when index of destination row stores in the current
line computed from GifInterlaceIter meets:
X is an integer in [0..height-1]
and
(X < height)
&& ((X - sampleSize/2) % sampleSize == 0)
&& ((X - sampleSize/2)/sampleSize >= height/sampleSize)
Signed-off-by: Lu Tong <lu.x.tong@sonymobile.com>
BUG=skia:
Review URL: https://codereview.chromium.org/1085253002
Diffstat (limited to 'src/gpu/GrGpu.h')
0 files changed, 0 insertions, 0 deletions