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

Issue 5757054: fixes i#695 uninit read

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by zhaoqin
Modified:
5 months, 3 weeks ago
Reviewers:
adam2, bruening
CC:
dynamorio-devs_googlegroups.com
Visibility:
Public.

Description

Reviewer: bruening@google.com fixes i#695 uninit read fixes issue 695 - read uninit buffer.

Patch Set 1 #

Total comments: 3

Patch Set 2 : fixes i#695 uninit read #

Total comments: 6

Patch Set 3 : fixes i#695 uninit read #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -4 lines) Patch
M core/win32/os.c View 1 2 2 chunks +10 lines, -4 lines 2 comments Download

Messages

Total messages: 7
zhaoqin
12 years, 1 month ago (2012-03-06 21:32:49 UTC) #1
bruening
http://codereview.appspot.com/5757054/diff/1/core/win32/os.c File core/win32/os.c (right): http://codereview.appspot.com/5757054/diff/1/core/win32/os.c#newcode4562 core/win32/os.c:4562: ASSERT(buf != NULL && buf_len != 0); this should ...
12 years, 1 month ago (2012-03-06 21:49:23 UTC) #2
zhaoqin
12 years, 1 month ago (2012-03-06 22:41:29 UTC) #3
bruening
http://codereview.appspot.com/5757054/diff/3001/core/win32/os.c File core/win32/os.c (right): http://codereview.appspot.com/5757054/diff/3001/core/win32/os.c#newcode4564 core/win32/os.c:4564: is_UNC ? L"UNC" : L"", name); this makes me ...
12 years, 1 month ago (2012-03-07 00:54:08 UTC) #4
adam2
http://codereview.appspot.com/5757054/diff/3001/core/win32/os.c File core/win32/os.c (right): http://codereview.appspot.com/5757054/diff/3001/core/win32/os.c#newcode4564 core/win32/os.c:4564: is_UNC ? L"UNC" : L"", name); On 2012/03/07 00:54:08, ...
12 years, 1 month ago (2012-03-07 02:16:54 UTC) #5
zhaoqin
12 years, 1 month ago (2012-03-07 15:58:16 UTC) #6
bruening
12 years, 1 month ago (2012-03-07 16:25:24 UTC) #7
not sure why you keep putting in the every-iter check for null: once removed in
favor of proper loop bound, LGTM

http://codereview.appspot.com/5757054/diff/7001/core/win32/os.c
File core/win32/os.c (right):

http://codereview.appspot.com/5757054/diff/7001/core/win32/os.c#newcode4484
core/win32/os.c:4484: int  res;
has superfluous space

http://codereview.appspot.com/5757054/diff/7001/core/win32/os.c#newcode4571
core/win32/os.c:4571: if (buf[i] == L'\0')
wasteful: just change loop bound to res and avoid this check altogether
Sign in to reply to this message.

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