Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(350)

Issue 6355066: WebGL spec specifies maximum length of all types of tokens - not just identifier tokens. And it als… (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 9 months ago by Alok Priyadarshi
Modified:
13 years, 9 months ago
Reviewers:
kbr1
CC:
angleproject-review_googlegroups.com
Base URL:
http://angleproject.googlecode.com/svn/trunk/
Visibility:
Public.

Description

WebGL spec specifies maximum length of all types of tokens - not just identifier tokens. And it also means preprocessing-tokens, not compiler tokens. Note that this implies that non-compliant tokens even inside excluded #if blocks will trigger error. TODO: This behavior should be implemented as a preprocessor option, so that a GLES2 compiler can choose to disable it. Committed: https://code.google.com/p/angleproject/source/detail?r=1193

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -27 lines) Patch
M src/compiler/preprocessor/new/Diagnostics.h View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/preprocessor/new/Diagnostics.cpp View 1 chunk +2 lines, -2 lines 2 comments Download
M src/compiler/preprocessor/new/DirectiveParser.cpp View 1 chunk +0 lines, -6 lines 0 comments Download
M src/compiler/preprocessor/new/Preprocessor.cpp View 1 chunk +0 lines, -13 lines 0 comments Download
M src/compiler/preprocessor/new/Token.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/compiler/preprocessor/new/Token.cpp View 1 chunk +0 lines, -4 lines 0 comments Download
M src/compiler/preprocessor/new/Tokenizer.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/compiler/preprocessor/new/Tokenizer.cpp View 2 chunks +11 lines, -0 lines 0 comments Download
M src/compiler/preprocessor/new/Tokenizer.l View 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 3
Alok Priyadarshi
13 years, 9 months ago (2012-07-03 21:23:16 UTC) #1
kbr1
LGTM with one naming comment. http://codereview.appspot.com/6355066/diff/1/src/compiler/preprocessor/new/Diagnostics.cpp File src/compiler/preprocessor/new/Diagnostics.cpp (right): http://codereview.appspot.com/6355066/diff/1/src/compiler/preprocessor/new/Diagnostics.cpp#newcode56 src/compiler/preprocessor/new/Diagnostics.cpp:56: return "token buffer overflow"; ...
13 years, 9 months ago (2012-07-03 22:19:27 UTC) #2
Alok Priyadarshi
13 years, 9 months ago (2012-07-09 15:51:19 UTC) #3
http://codereview.appspot.com/6355066/diff/1/src/compiler/preprocessor/new/Di...
File src/compiler/preprocessor/new/Diagnostics.cpp (right):

http://codereview.appspot.com/6355066/diff/1/src/compiler/preprocessor/new/Di...
src/compiler/preprocessor/new/Diagnostics.cpp:56: return "token buffer
overflow";
On 2012/07/03 22:19:27, kbr1 wrote:
> Could we consider naming this something like "TOKEN_TOO_LONG"? "Buffer
overflow"
> sounds like a security bug.

Good suggestion. Should I rename INTEGER_OVERFLOW and FLOAT_OVERFLOW to
INTEGER_TOO_LARGE and FLOAT_TOO_LARGE as well?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b