|
Fixed more fuzzer issues
- Added the "isAvailable" function to check how much bytes are remaining in the stream before doing potentially large mallocs. That way, we can signal a bad stream instead of crashing.
- Added data validation in SkImageInfo.cpp
- Added NULL pointer check in displacement
- Modified the fuzzer for randomized bitmap types
BUG= 328934, 329254
Committed: http://code.google.com/p/skia/source/detail?r=12723
Total comments: 6
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+90 lines, -23 lines) |
Patch |
|
M |
include/core/SkFlattenableBuffers.h
|
View
|
1
|
2 chunks |
+15 lines, -2 lines |
0 comments
|
Download
|
|
M |
samplecode/SampleFilterFuzz.cpp
|
View
|
|
3 chunks |
+19 lines, -9 lines |
0 comments
|
Download
|
|
M |
src/core/SkColorTable.cpp
|
View
|
1
|
1 chunk |
+9 lines, -2 lines |
1 comment
|
Download
|
|
M |
src/core/SkImageInfo.cpp
|
View
|
|
2 chunks |
+10 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/core/SkMallocPixelRef.cpp
|
View
|
1
|
1 chunk |
+7 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/core/SkValidatingReadBuffer.h
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/core/SkValidatingReadBuffer.cpp
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
src/effects/SkDashPathEffect.cpp
|
View
|
1
|
1 chunk |
+7 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/effects/SkDisplacementMapEffect.cpp
|
View
|
|
1 chunk |
+1 line, -1 line |
1 comment
|
Download
|
|
M |
src/effects/SkMergeImageFilter.cpp
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
src/effects/SkTableColorFilter.cpp
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
src/effects/gradients/SkGradientShader.cpp
|
View
|
1
|
1 chunk |
+7 lines, -2 lines |
0 comments
|
Download
|
|
M |
src/images/SkImageRef.cpp
|
View
|
1
|
1 chunk |
+6 lines, -2 lines |
0 comments
|
Download
|
Total messages: 16 (0 generated)
|