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

Issue 4675068: Expand array bounds checking to work with pointer arithmetic and unary & and * (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 5 months ago by Kaelyn
Modified:
13 years, 4 months ago
Reviewers:
tkremenek, nlewycky1
Visibility:
Public.

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix pluralization in the warn_*_exceeds_bounds messages #

Patch Set 3 : Revised version to properly handle &array[size], etc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -38 lines) Patch
M include/clang/Basic/DiagnosticSemaKinds.td View 1 2 1 chunk +7 lines, -1 line 0 comments Download
M include/clang/Sema/Sema.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M lib/Sema/SemaChecking.cpp View 1 2 3 chunks +85 lines, -23 lines 0 comments Download
M lib/Sema/SemaExpr.cpp View 1 2 8 chunks +18 lines, -5 lines 0 comments Download
M lib/Sema/SemaExprCXX.cpp View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M test/SemaCXX/array-bounds.cpp View 1 2 5 chunks +21 lines, -6 lines 0 comments Download
A test/SemaCXX/array-bounds-ptr-arith.cpp View 1 2 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 5
nlewycky1
http://codereview.appspot.com/4675068/diff/1/include/clang/Basic/DiagnosticSemaKinds.td File include/clang/Basic/DiagnosticSemaKinds.td (right): http://codereview.appspot.com/4675068/diff/1/include/clang/Basic/DiagnosticSemaKinds.td#newcode4009 include/clang/Basic/DiagnosticSemaKinds.td:4009: "the pointer incremented by %0 refers past the end ...
13 years, 5 months ago (2011-07-09 00:13:39 UTC) #1
Kaelyn
Thanks. I'll also fix that for the existing array bounds message to keep both consistent. ...
13 years, 5 months ago (2011-07-09 03:12:59 UTC) #2
tkremenek
On 2011/07/09 03:12:59, rikka wrote: > Thanks. I'll also fix that for the existing array ...
13 years, 5 months ago (2011-07-11 22:29:35 UTC) #3
Kaelyn
On Mon, Jul 11, 2011 at 3:29 PM, <tkremenek@gmail.com> wrote: > On 2011/07/09 03:12:59, rikka ...
13 years, 5 months ago (2011-07-11 22:52:43 UTC) #4
Kaelyn
13 years, 4 months ago (2011-08-05 23:21:19 UTC) #5
This patch was submitted as r136997 after resolving merge conflicts and adding a
few more comments above the new calls to CheckArrayAccess().
Sign in to reply to this message.

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