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

Issue 317003003: Fixing another clusterfuzz issue (Closed)

Created:
6 years, 6 months ago by sugoi1
Modified:
6 years, 6 months ago
Reviewers:
mtklein, sugoi, reed1
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Fixing another clusterfuzz issue This was introduced by removing SkValidatingReadBuffer::readBitmap in https://codereview.chromium.org/295793002/ Since SkReadBuffer::skip wasn't virtual, it was using the unsafe SkReadBuffer::skip within SkReadBuffer::readBitmap rather than using SkValidatingReadBuffer::skip. I also removed direct uses of fReader within SkReadBuffer::readBitmap so that it can use the virtual readInt / readFixed functions that have a version in SkValidatingReadBuffer. Also, I changed SkReadBuffer::readPoint so that it uses the virtual readScalar, that way, it becomes redundant with SkValidatingReadBuffer::readPoint, which can then be removed. BUG=380723 Committed: https://skia.googlesource.com/skia/+/0951fe12984944406e0f1bb105b9fa4c54fcdcdd

Patch Set 1 #

Total comments: 2

Patch Set 2 : Removed changes to readPoint #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -6 lines) Patch
M include/core/SkReadBuffer.h View 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkReadBuffer.cpp View 1 2 chunks +4 lines, -4 lines 0 comments Download
M src/core/SkValidatingReadBuffer.h View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
sugoi1
6 years, 6 months ago (2014-06-04 18:58:11 UTC) #1
reed1
What is the minimal change needed to fix the fuzzer? Is it just making skip ...
6 years, 6 months ago (2014-06-05 12:33:05 UTC) #2
sugoi
On 2014/06/05 12:33:05, reed1 wrote: > What is the minimal change needed to fix the ...
6 years, 6 months ago (2014-06-05 12:42:56 UTC) #3
sugoi
https://codereview.chromium.org/317003003/diff/1/src/core/SkReadBuffer.cpp File src/core/SkReadBuffer.cpp (right): https://codereview.chromium.org/317003003/diff/1/src/core/SkReadBuffer.cpp#newcode226 src/core/SkReadBuffer.cpp:226: const int32_t xOffset = this->readFixed(); On 2014/06/05 12:33:05, reed1 ...
6 years, 6 months ago (2014-06-05 12:43:15 UTC) #4
mtklein
It does seem we've gotten ourselves into a fragile state if we're having to worry ...
6 years, 6 months ago (2014-06-05 13:06:06 UTC) #5
sugoi1
On 2014/06/05 13:06:06, mtklein wrote: > It does seem we've gotten ourselves into a fragile ...
6 years, 6 months ago (2014-06-05 14:00:37 UTC) #6
sugoi1
Ping.
6 years, 6 months ago (2014-06-06 12:57:53 UTC) #7
reed1
where is the impl for validatingbuffer::skip() ?
6 years, 6 months ago (2014-06-06 13:01:26 UTC) #8
sugoi1
On 2014/06/06 13:01:26, reed1 wrote: > where is the impl for validatingbuffer::skip() ? It's in ...
6 years, 6 months ago (2014-06-06 13:03:09 UTC) #9
sugoi1
On 2014/06/06 13:03:09, sugoi1 wrote: > On 2014/06/06 13:01:26, reed1 wrote: > > where is ...
6 years, 6 months ago (2014-06-06 13:04:25 UTC) #10
reed1
On 2014/06/06 13:03:09, sugoi1 wrote: > On 2014/06/06 13:01:26, reed1 wrote: > > where is ...
6 years, 6 months ago (2014-06-06 13:05:03 UTC) #11
sugoi1
The CQ bit was checked by sugoi@chromium.org
6 years, 6 months ago (2014-06-06 13:05:55 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/sugoi@chromium.org/317003003/20001
6 years, 6 months ago (2014-06-06 13:06:56 UTC) #13
commit-bot: I haz the power
6 years, 6 months ago (2014-06-06 13:44:20 UTC) #14
Message was sent while issue was closed.
Change committed as 0951fe12984944406e0f1bb105b9fa4c54fcdcdd

Powered by Google App Engine
This is Rietveld 408576698