|
Fixed bad bitmap size crashes
There were 2 issues :
1 ) If the size of an SkBitmap's underlying SkPixelRef's alocated memory is too small to fit the bitmap, then the deserialization will now check this and set an error appropriately.
2 ) If a device fails to allocate its pixels, the device will be deleted and NULL will be returned to avoid attempting to draw on a bad device.
BUG=
Committed: http://code.google.com/p/skia/source/detail?r=12484
Total comments: 1
Total comments: 1
Total comments: 5
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+237 lines, -22 lines) |
Patch |
|
M |
include/core/SkMallocPixelRef.h
|
View
|
1
2
3
4
5
|
2 chunks |
+3 lines, -2 lines |
1 comment
|
Download
|
|
M |
include/core/SkPixelRef.h
|
View
|
1
2
3
4
5
|
1 chunk |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
samplecode/SampleFilterFuzz.cpp
|
View
|
1
2
3
4
|
7 chunks |
+39 lines, -10 lines |
0 comments
|
Download
|
|
M |
src/core/SkBitmap.cpp
|
View
|
1
2
3
4
5
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/core/SkBitmapDevice.cpp
|
View
|
|
3 chunks |
+16 lines, -4 lines |
0 comments
|
Download
|
|
M |
src/core/SkPixelRef.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/effects/SkBlurImageFilter.cpp
|
View
|
1
2
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/effects/SkColorFilterImageFilter.cpp
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/effects/SkDropShadowImageFilter.cpp
|
View
|
1
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/effects/SkLightingImageFilter.cpp
|
View
|
1
2
|
3 chunks |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/effects/SkMagnifierImageFilter.cpp
|
View
|
1
2
|
4 chunks |
+14 lines, -6 lines |
0 comments
|
Download
|
|
M |
src/effects/SkMatrixConvolutionImageFilter.cpp
|
View
|
1
2
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/effects/SkMorphologyImageFilter.cpp
|
View
|
1
2
|
2 chunks |
+6 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/effects/SkOffsetImageFilter.cpp
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/effects/SkRectShaderImageFilter.cpp
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/effects/SkTileImageFilter.cpp
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/effects/SkXfermodeImageFilter.cpp
|
View
|
|
1 chunk |
+3 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/image/SkDataPixelRef.h
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/image/SkDataPixelRef.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
tests/SerializationTest.cpp
|
View
|
1
|
5 chunks |
+103 lines, -0 lines |
0 comments
|
Download
|
Total messages: 26 (0 generated)
|