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

Issue 11092099: Guard against buffer overflow in the x64 disassembler. (Closed)

Created:
8 years, 2 months ago by Kevin Millikin (Google)
Modified:
8 years, 2 months ago
Reviewers:
erikcorry, Erik Corry
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Guard against buffer overflow in the x64 disassembler. BUG= Committed: https://code.google.com/p/dart/source/detail?r=13598

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -5 lines) Patch
M runtime/vm/disassembler_x64.cc View 2 chunks +7 lines, -5 lines 2 comments Download

Messages

Total messages: 3 (0 generated)
Kevin Millikin (Google)
8 years, 2 months ago (2012-10-12 08:02:50 UTC) #1
Erik Corry
LGTM http://codereview.chromium.org/11092099/diff/1/runtime/vm/disassembler_x64.cc File runtime/vm/disassembler_x64.cc (right): http://codereview.chromium.org/11092099/diff/1/runtime/vm/disassembler_x64.cc#newcode431 runtime/vm/disassembler_x64.cc:431: if (available <= 1) return; // Space for ...
8 years, 2 months ago (2012-10-12 08:06:27 UTC) #2
Kevin Millikin (Google)
8 years, 2 months ago (2012-10-12 08:12:03 UTC) #3
Thanks for the review.

http://codereview.chromium.org/11092099/diff/1/runtime/vm/disassembler_x64.cc
File runtime/vm/disassembler_x64.cc (right):

http://codereview.chromium.org/11092099/diff/1/runtime/vm/disassembler_x64.cc...
runtime/vm/disassembler_x64.cc:431: if (available <= 1) return;  // Space for
'\0' terminator.
On 2012/10/12 08:06:27, Erik Corry wrote:
> Perhaps assert that the null char is there.

Done.

Powered by Google App Engine
This is Rietveld 408576698