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

Issue 203343004: Fixed an assert related to MediaQuerytokenizer code points table (Closed)

Created:
6 years, 9 months ago by Yoav Weiss
Modified:
6 years, 9 months ago
Reviewers:
eseidel
CC:
blink-reviews, ed+blinkwatch_opera.com, dglazkov+blink, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Fixed an assert related to MediaQuerytokenizer code points table The assert was a result of an off-by-one error in both the array's definition and the assert itself. BUG=353577 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=169494

Patch Set 1 #

Patch Set 2 : Fix memset as well #

Patch Set 3 : Added test #

Total comments: 1

Patch Set 4 : A better test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -1 line) Patch
M Source/core/css/parser/MediaQueryTokenizer.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/parser/MediaQueryTokenizerTest.cpp View 1 2 3 1 chunk +42 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Yoav Weiss
6 years, 9 months ago (2014-03-18 19:26:38 UTC) #1
eseidel
Needs a test. Also, why the +1?
6 years, 9 months ago (2014-03-18 19:27:49 UTC) #2
eseidel
Are codepoints 1-indexed instead of zero indexed somehow?
6 years, 9 months ago (2014-03-18 19:28:17 UTC) #3
Yoav Weiss
On 2014/03/18 19:27:49, eseidel wrote: > Needs a test. > > Also, why the +1? ...
6 years, 9 months ago (2014-03-18 19:49:42 UTC) #4
eseidel
Still need a test, but OK.
6 years, 9 months ago (2014-03-18 19:53:00 UTC) #5
Yoav Weiss
On 2014/03/18 19:53:00, eseidel wrote: > Still need a test, but OK. Added a test.
6 years, 9 months ago (2014-03-18 21:19:20 UTC) #6
eseidel
This is not a good test. It's just copy/paste from the implementation. Better would be ...
6 years, 9 months ago (2014-03-18 21:23:33 UTC) #7
Yoav Weiss
On 2014/03/18 21:23:33, eseidel wrote: > This is not a good test. It's just copy/paste ...
6 years, 9 months ago (2014-03-18 21:29:02 UTC) #8
eseidel
Oh sorry. I misread your test. This is great actually.
6 years, 9 months ago (2014-03-18 21:29:07 UTC) #9
eseidel
https://codereview.chromium.org/203343004/diff/40001/Source/core/css/parser/MediaQueryTokenizerTest.cpp File Source/core/css/parser/MediaQueryTokenizerTest.cpp (right): https://codereview.chromium.org/203343004/diff/40001/Source/core/css/parser/MediaQueryTokenizerTest.cpp#newcode64 Source/core/css/parser/MediaQueryTokenizerTest.cpp:64: testToken(1098, IdentToken); So everything above SCHAR_MAX is an IdentToken, ...
6 years, 9 months ago (2014-03-18 21:29:52 UTC) #10
Yoav Weiss
On 2014/03/18 21:29:52, eseidel wrote: > https://codereview.chromium.org/203343004/diff/40001/Source/core/css/parser/MediaQueryTokenizerTest.cpp > File Source/core/css/parser/MediaQueryTokenizerTest.cpp (right): > > https://codereview.chromium.org/203343004/diff/40001/Source/core/css/parser/MediaQueryTokenizerTest.cpp#newcode64 > ...
6 years, 9 months ago (2014-03-18 21:31:41 UTC) #11
eseidel
This test is fine. I just read it too quickly the first pass. This is ...
6 years, 9 months ago (2014-03-18 21:32:10 UTC) #12
eseidel
lgtm
6 years, 9 months ago (2014-03-18 21:32:23 UTC) #13
Yoav Weiss
On 2014/03/18 21:32:10, eseidel wrote: > This test is fine. I just read it too ...
6 years, 9 months ago (2014-03-18 21:54:08 UTC) #14
Yoav Weiss
The CQ bit was checked by yoav@yoav.ws
6 years, 9 months ago (2014-03-18 21:55:02 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yoav@yoav.ws/203343004/60001
6 years, 9 months ago (2014-03-18 21:55:15 UTC) #16
commit-bot: I haz the power
6 years, 9 months ago (2014-03-18 22:57:20 UTC) #17
Message was sent while issue was closed.
Change committed as 169494

Powered by Google App Engine
This is Rietveld 408576698