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

Issue 2566623003: Fixed google::FindSymbol reading past end of a section (Closed)

Created:
4 years ago by bjornr
Modified:
3 years, 7 months ago
CC:
chromium-reviews, vmpstr+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fixed google::FindSymbol reading past end of a section The symbol reading logic of google::FindSymbol was reading symbols in blocks of N, not accounting for that a section might not have a multiple of N symbols in it. This makes it read in blocks of N or the number of symbols remaining, whichever is smallest. BUG=672481 Review-Url: https://codereview.chromium.org/2566623003 Cr-Commit-Position: refs/heads/master@{#443571} Committed: https://chromium.googlesource.com/chromium/src/+/3dae0a2d7da309159a301e40a592692ec8431a38

Patch Set 1 #

Total comments: 1

Patch Set 2 : Use std::min #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -2 lines) Patch
M base/third_party/symbolize/symbolize.cc View 1 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 31 (15 generated)
bjornr
@satorux1 does this look ok to you?
4 years ago (2016-12-09 10:16:17 UTC) #3
satorux1
+hamaji sorry for the belated response. +hamaji could you take a look? though I wrote ...
4 years ago (2016-12-16 06:54:21 UTC) #5
hamaji
LGTM. Apparently internal version does the same https://codereview.chromium.org/2566623003/diff/1/base/third_party/symbolize/symbolize.cc File base/third_party/symbolize/symbolize.cc (right): https://codereview.chromium.org/2566623003/diff/1/base/third_party/symbolize/symbolize.cc#newcode299 base/third_party/symbolize/symbolize.cc:299: int num_symbols_to_read ...
4 years ago (2016-12-16 07:21:14 UTC) #7
bjornr
4 years ago (2016-12-16 10:34:02 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2566623003/20001
4 years ago (2016-12-21 12:44:41 UTC) #12
commit-bot: I haz the power
No L-G-T-M from a valid reviewer yet. CQ run can only be started by full ...
4 years ago (2016-12-21 12:44:43 UTC) #14
bjornr
On 2016/12/16 07:21:14, hamaji wrote: > LGTM. Apparently internal version does the same > > ...
4 years ago (2016-12-21 12:53:19 UTC) #16
hamaji
lgtm LGTM. Sorry I confused you. I LGTM-ed from @google.com account, not from @chromium.org.
4 years ago (2016-12-23 08:57:24 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2566623003/20001
4 years ago (2016-12-23 08:57:35 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/332133)
4 years ago (2016-12-23 09:02:53 UTC) #21
bjornr
@mark Does this look ok? (alrdy reviewed by authors, need approval from owner)
3 years, 11 months ago (2017-01-02 10:23:11 UTC) #23
Mark Mentovai
LGTM. But the README.chromium says that symbolize.cc is an as-is copy of something upstream. That’s ...
3 years, 11 months ago (2017-01-03 17:39:16 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2566623003/20001
3 years, 11 months ago (2017-01-13 15:33:11 UTC) #26
bjornr
On 2017/01/03 17:39:16, Mark Mentovai wrote: > LGTM. But the README.chromium says that symbolize.cc is ...
3 years, 11 months ago (2017-01-13 15:37:59 UTC) #27
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/3dae0a2d7da309159a301e40a592692ec8431a38
3 years, 11 months ago (2017-01-13 16:30:37 UTC) #30
Nico
3 years, 7 months ago (2017-05-02 15:15:10 UTC) #31
Message was sent while issue was closed.
On 2017/01/13 15:37:59, bjornr wrote:
> On 2017/01/03 17:39:16, Mark Mentovai wrote:
> > LGTM. But the README.chromium says that symbolize.cc is an as-is copy of
> > something upstream. That’s no longer true, so README.chromium should be
fixed.
> > 
> > Better yet, get this fix committed upstream and update our copy.
> 
> I'll land this first as I don't have much time, and the README.chromium was
> already wrong before this patch (not saying it's good, but at least I'm not
> breaking it by landing this).

Can you at least fix the readme?

Powered by Google App Engine
This is Rietveld 408576698