Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(999)

Issue 61913002: Adding error checks to SkRBuffer (Closed)

Created:
7 years, 1 month ago by sugoi1
Modified:
7 years, 1 month ago
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Adding error checks to SkRBuffer BUG= Committed: http://code.google.com/p/skia/source/detail?r=12202

Patch Set 1 #

Patch Set 2 : Changed fix to single check where the valgrind error occurs #

Patch Set 3 : Added success checks to SkRBuffer #

Patch Set 4 : Fixed serialization tests #

Total comments: 10

Patch Set 5 : Added doc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -54 lines) Patch
M include/core/SkFlattenableBuffers.h View 1 2 3 4 1 chunk +9 lines, -1 line 0 comments Download
M src/core/SkBuffer.h View 1 2 2 chunks +18 lines, -10 lines 0 comments Download
M src/core/SkBuffer.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M src/core/SkFlattenableBuffers.cpp View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M src/core/SkPath.cpp View 1 2 3 4 3 chunks +14 lines, -6 lines 0 comments Download
M src/core/SkPathRef.cpp View 1 2 2 chunks +22 lines, -10 lines 0 comments Download
M src/core/SkRegion.cpp View 1 2 1 chunk +3 lines, -6 lines 0 comments Download
M src/core/SkValidatingReadBuffer.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkValidatingReadBuffer.cpp View 1 2 3 4 chunks +5 lines, -4 lines 0 comments Download
M src/ports/SkFontConfigInterface_direct.cpp View 1 2 1 chunk +10 lines, -7 lines 0 comments Download
M tests/SerializationTest.cpp View 1 2 3 1 chunk +8 lines, -8 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
robertphillips
lgtm. How much of a perf hit are we going to take for this though?
7 years, 1 month ago (2013-11-06 13:07:25 UTC) #1
sugoi1
On 2013/11/06 13:07:25, robertphillips wrote: > lgtm. How much of a perf hit are we ...
7 years, 1 month ago (2013-11-06 13:36:06 UTC) #2
sugoi1
Adding Mike as a reviewer to get his opinion on the matter.
7 years, 1 month ago (2013-11-06 15:32:01 UTC) #3
reed1
What gets better with this change? Are zeros some how secure, where random bytes are ...
7 years, 1 month ago (2013-11-06 15:39:26 UTC) #4
robertphillips
We are getting the following valgrind complaint on the bots: [02:44:23.773820] ==2823== Thread 8: [02:44:23.773925] ...
7 years, 1 month ago (2013-11-06 15:42:52 UTC) #5
sugoi1
On 2013/11/06 15:39:26, reed1 wrote: > What gets better with this change? Are zeros some ...
7 years, 1 month ago (2013-11-06 15:46:45 UTC) #6
sugoi1
Here's the new fix. It should only solve the current issue and let valgrind signal ...
7 years, 1 month ago (2013-11-06 15:56:42 UTC) #7
robertphillips
lgtm. Do we need to run your fuzzer locally with valgrind? Will Chromium be doing ...
7 years, 1 month ago (2013-11-06 16:46:57 UTC) #8
sugoi1
On 2013/11/06 16:46:57, robertphillips wrote: > lgtm. Do we need to run your fuzzer locally ...
7 years, 1 month ago (2013-11-06 18:31:42 UTC) #9
reed1
wow, if we need to solve just the current valgrind complaint, then fine. But... If ...
7 years, 1 month ago (2013-11-06 22:04:43 UTC) #10
sugoi1
On 2013/11/06 22:04:43, reed1 wrote: > wow, if we need to solve just the current ...
7 years, 1 month ago (2013-11-07 13:05:48 UTC) #11
sugoi1
On 2013/11/07 13:05:48, sugoi1 wrote: > I'll give it a try. I'm not sure if ...
7 years, 1 month ago (2013-11-07 16:42:30 UTC) #12
sugoi1
Found and fixed a few issues. https://codereview.chromium.org/61913002/diff/280001/src/core/SkPath.cpp File src/core/SkPath.cpp (right): https://codereview.chromium.org/61913002/diff/280001/src/core/SkPath.cpp#newcode2127 src/core/SkPath.cpp:2127: // If the ...
7 years, 1 month ago (2013-11-08 16:20:06 UTC) #13
bsalomon
public header lgtm
7 years, 1 month ago (2013-11-08 18:05:11 UTC) #14
reed1
https://codereview.chromium.org/61913002/diff/280001/include/core/SkFlattenableBuffers.h File include/core/SkFlattenableBuffers.h (right): https://codereview.chromium.org/61913002/diff/280001/include/core/SkFlattenableBuffers.h#newcode147 include/core/SkFlattenableBuffers.h:147: virtual bool validate(bool isValid) { return true; } Lets ...
7 years, 1 month ago (2013-11-08 18:15:39 UTC) #15
sugoi1
https://codereview.chromium.org/61913002/diff/280001/include/core/SkFlattenableBuffers.h File include/core/SkFlattenableBuffers.h (right): https://codereview.chromium.org/61913002/diff/280001/include/core/SkFlattenableBuffers.h#newcode147 include/core/SkFlattenableBuffers.h:147: virtual bool validate(bool isValid) { return true; } On ...
7 years, 1 month ago (2013-11-08 18:40:55 UTC) #16
reed1
lgtm
7 years, 1 month ago (2013-11-08 19:08:38 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/sugoi@chromium.org/61913002/290005
7 years, 1 month ago (2013-11-08 19:15:02 UTC) #18
commit-bot: I haz the power
7 years, 1 month ago (2013-11-08 19:23:01 UTC) #19
Message was sent while issue was closed.
Change committed as 12202

Powered by Google App Engine
This is Rietveld 408576698