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

Issue 8501023: Fix two pointer arithmetic errors. (Closed)

Created:
9 years, 1 month ago by dgarrett
Modified:
9 years, 1 month ago
Reviewers:
sra1
CC:
chromium-reviews, Paweł Hajdan Jr., Michael Krebs, adlr
Visibility:
Public.

Description

Fix two pointer arithmetic errors. In the heuristic for detecting relative references, we had two non-fatal, but sub-optimal mistakes with pointer arithmetic. This fixes them for both ELF 32 and Win 32. BUG=chromiumos:22677 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109172

Patch Set 1 #

Total comments: 3

Patch Set 2 : Fix another < versus <= #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -7 lines) Patch
M courgette/disassembler_elf_32_x86.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M courgette/disassembler_elf_32_x86_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M courgette/disassembler_win32_x86.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
dgarrett
This fixes two issues pointed out in the previous code review. It DOES introduce version ...
9 years, 1 month ago (2011-11-08 21:05:04 UTC) #1
sra1
On 2011/11/08 21:05:04, dgarrett wrote: > This fixes two issues pointed out in the previous ...
9 years, 1 month ago (2011-11-08 21:18:20 UTC) #2
sra1
lgtm http://codereview.chromium.org/8501023/diff/1/courgette/disassembler_elf_32_x86.cc File courgette/disassembler_elf_32_x86.cc (right): http://codereview.chromium.org/8501023/diff/1/courgette/disassembler_elf_32_x86.cc#newcode575 courgette/disassembler_elf_32_x86.cc:575: if (p + 6 < end_pointer) { <= ...
9 years, 1 month ago (2011-11-08 21:18:45 UTC) #3
sra1
On 2011/11/08 21:05:04, dgarrett wrote: > This fixes two issues pointed out in the previous ...
9 years, 1 month ago (2011-11-08 21:20:49 UTC) #4
dgarrett
Yes, Chrome should be safe against the compatibility problem. We're debating something similar for ChromeOS, ...
9 years, 1 month ago (2011-11-08 21:32:43 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgarrett@chromium.org/8501023/2002
9 years, 1 month ago (2011-11-08 22:15:43 UTC) #6
commit-bot: I haz the power
Try job failure for 8501023-2002 (retry) on win_rel for step "chrome_frame_net_tests". It's a second try, ...
9 years, 1 month ago (2011-11-09 00:39:26 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgarrett@chromium.org/8501023/2002
9 years, 1 month ago (2011-11-09 00:44:39 UTC) #8
commit-bot: I haz the power
9 years, 1 month ago (2011-11-09 02:15:49 UTC) #9
Change committed as 109172

Powered by Google App Engine
This is Rietveld 408576698