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

Issue 1778083003: base: Add nullptr checks to logging.cc. (Closed)

Created:
4 years, 9 months ago by erikchen
Modified:
4 years, 9 months ago
Reviewers:
Mark Mentovai
CC:
chromium-reviews, vmpstr+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

base: Add nullptr checks to logging.cc. Avoid calling wstrlen() or strlen() on nullptrs, as that causes undefined behavior. BUG=593561 Committed: https://crrev.com/0c9fe71dfa3a702e9357835f5f144eb46314bf27 Cr-Commit-Position: refs/heads/master@{#380747}

Patch Set 1 #

Patch Set 2 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M base/logging.cc View 1 2 chunks +2 lines, -2 lines 1 comment Download

Messages

Total messages: 38 (18 generated)
erikchen
mark: Please review.
4 years, 9 months ago (2016-03-10 03:12:01 UTC) #3
Mark Mentovai
LGTM
4 years, 9 months ago (2016-03-10 18:06:26 UTC) #4
Mark Mentovai
https://codereview.chromium.org/1778083003/diff/20001/base/logging.cc File base/logging.cc (right): https://codereview.chromium.org/1778083003/diff/20001/base/logging.cc#newcode918 base/logging.cc:918: return out << (wstr ? base::WideToUTF8(wstr) : std::string()); Your ...
4 years, 9 months ago (2016-03-10 18:06:54 UTC) #5
erikchen
On 2016/03/10 18:06:54, Mark Mentovai wrote: > https://codereview.chromium.org/1778083003/diff/20001/base/logging.cc > File base/logging.cc (right): > > https://codereview.chromium.org/1778083003/diff/20001/base/logging.cc#newcode918 ...
4 years, 9 months ago (2016-03-10 18:10:27 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1778083003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1778083003/20001
4 years, 9 months ago (2016-03-10 18:10:59 UTC) #9
Mark Mentovai
It leaves the subject alone when you edit the description after an issue is initially ...
4 years, 9 months ago (2016-03-10 18:12:31 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/137782)
4 years, 9 months ago (2016-03-10 19:14:30 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1778083003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1778083003/20001
4 years, 9 months ago (2016-03-10 19:31:06 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/128809)
4 years, 9 months ago (2016-03-10 20:33:23 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1778083003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1778083003/20001
4 years, 9 months ago (2016-03-10 21:22:54 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/137999)
4 years, 9 months ago (2016-03-10 22:35:53 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1778083003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1778083003/20001
4 years, 9 months ago (2016-03-11 00:18:11 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/138247)
4 years, 9 months ago (2016-03-11 01:30:34 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1778083003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1778083003/20001
4 years, 9 months ago (2016-03-11 01:32:02 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/129311)
4 years, 9 months ago (2016-03-11 02:20:20 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1778083003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1778083003/20001
4 years, 9 months ago (2016-03-11 17:16:11 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/195597)
4 years, 9 months ago (2016-03-11 19:44:54 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1778083003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1778083003/20001
4 years, 9 months ago (2016-03-11 20:53:27 UTC) #34
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 9 months ago (2016-03-11 22:08:01 UTC) #36
commit-bot: I haz the power
4 years, 9 months ago (2016-03-11 22:09:15 UTC) #38
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/0c9fe71dfa3a702e9357835f5f144eb46314bf27
Cr-Commit-Position: refs/heads/master@{#380747}

Powered by Google App Engine
This is Rietveld 408576698