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

Issue 1437433002: Fix a 64-bit pointer truncation bug found by VC++ 2015 (Closed)

Created:
5 years, 1 month ago by brucedawson
Modified:
5 years, 1 month ago
CC:
webrtc-reviews_webrtc.org, yujie_mao (webrtc), Andrew MacDonald, tterriberry_mozilla.com, qiang.lu, niklas.enbom, peah-webrtc, henrika_webrtc
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fix a 64-bit pointer truncation bug found by VC++ 2015 When converting from void* to unsigned long long it is dangerous to go through unsigned long because for VC++ 64-bit builds this will be 32 bits. When casting a pointer to an integral type the safest type to choose for the integral cast is always intptr_t or uintptr_t. BUG=440500 NOPRESUBMIT=true Committed: https://crrev.com/952892a28a06a4ced120d4683d930699b9d730de Cr-Commit-Position: refs/heads/master@{#10569}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed .gitignore alphabetization. #

Patch Set 3 : Removed codereview.settings change #

Patch Set 4 : Remove .gitignore change #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M webrtc/base/trace_event.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 33 (15 generated)
brucedawson
PTAL. Note that this currently includes a change to codereview.settings.
5 years, 1 month ago (2015-11-07 01:17:44 UTC) #2
henrika_webrtc
kjellander@: could you check this one. You know these parts better.
5 years, 1 month ago (2015-11-09 09:02:38 UTC) #6
kjellander_webrtc
Thanks for helping out with VS2015. I'm adding another webrtc/base/OWNERS reviewer (henrikg) for the trace ...
5 years, 1 month ago (2015-11-09 09:26:07 UTC) #8
Henrik Grunell WebRTC
webrtc/base/trace_event.h lgtm
5 years, 1 month ago (2015-11-09 09:37:58 UTC) #9
brucedawson
On 2015/11/09 09:26:07, kjellander (webrtc) wrote: > https://codereview.webrtc.org/1437433002/diff/1/webrtc/.gitignore#newcode5 > webrtc/.gitignore:5: *.vcxproj.filters > This looks correct, ...
5 years, 1 month ago (2015-11-09 18:36:14 UTC) #10
brucedawson
Oh wait, Henrik explained the problem I was in the wrong directory. It might be ...
5 years, 1 month ago (2015-11-09 18:40:42 UTC) #11
kjellander_webrtc
On 2015/11/09 18:36:14, brucedawson wrote: > On 2015/11/09 09:26:07, kjellander (webrtc) wrote: > > https://codereview.webrtc.org/1437433002/diff/1/webrtc/.gitignore#newcode5 ...
5 years, 1 month ago (2015-11-09 18:56:27 UTC) #12
brucedawson
I'll do a separate CL for .gitignore changes and commit the bug fix.
5 years, 1 month ago (2015-11-09 19:07:30 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1437433002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1437433002/60001
5 years, 1 month ago (2015-11-09 19:08:24 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: presubmit on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/presubmit/builds/1635)
5 years, 1 month ago (2015-11-09 19:10:52 UTC) #18
kjellander_webrtc
On 2015/11/09 19:10:52, commit-bot: I haz the power wrote: > Try jobs failed on following ...
5 years, 1 month ago (2015-11-09 19:41:55 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1437433002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1437433002/60001
5 years, 1 month ago (2015-11-09 19:42:11 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
5 years, 1 month ago (2015-11-09 21:08:39 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1437433002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1437433002/60001
5 years, 1 month ago (2015-11-09 21:33:12 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_rel on tryserver.webrtc (JOB_TIMED_OUT, no build URL)
5 years, 1 month ago (2015-11-09 23:33:33 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1437433002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1437433002/60001
5 years, 1 month ago (2015-11-10 06:51:45 UTC) #31
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 1 month ago (2015-11-10 06:51:56 UTC) #32
commit-bot: I haz the power
5 years, 1 month ago (2015-11-10 06:52:11 UTC) #33
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/952892a28a06a4ced120d4683d930699b9d730de
Cr-Commit-Position: refs/heads/master@{#10569}

Powered by Google App Engine
This is Rietveld 408576698