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

Issue 571583002: Cast pointer to uintptr_t instead of ULONG (Closed)

Created:
6 years, 3 months ago by Xing
Modified:
6 years, 3 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Cast pointer to uintptr_t instead of ULONG NPEvent::lParam is defined as uintptr_t which has same width with ULONG on Win32, but they are of different sizes on WIN64. uintptr_t is 8-byte long, while ULONG is still 4-byte long, so it corrupts a 64-bit pointer if casting it to a 32-bit type. BUG=413535 TEST=square.html (attached in the bug), http://pbskids.org/video (it uses wmode="opaque") R=ananta@chromium.org, bauerb@chromium.org Committed: https://crrev.com/8f3f93deca6710d7001415afb3b0822ad91708d1 Cr-Commit-Position: refs/heads/master@{#294917}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix incorrect comments and add myself to AUTHORS #

Patch Set 3 : After rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -3 lines) Patch
M AUTHORS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/child/npapi/webplugin_delegate_impl_win.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
Xing
6 years, 3 months ago (2014-09-12 18:21:44 UTC) #1
ananta
lgtm
6 years, 3 months ago (2014-09-12 18:25:56 UTC) #2
Xing
This is 64-bit Chrome + NPAPI flash specific issue. It was originally reported by Adobe ...
6 years, 3 months ago (2014-09-12 18:28:12 UTC) #3
Will Harris
thanks for finding this and fixing it. https://codereview.chromium.org/571583002/diff/1/content/child/npapi/webplugin_delegate_impl_win.cc File content/child/npapi/webplugin_delegate_impl_win.cc (right): https://codereview.chromium.org/571583002/diff/1/content/child/npapi/webplugin_delegate_impl_win.cc#newcode1054 content/child/npapi/webplugin_delegate_impl_win.cc:1054: // NOTE: ...
6 years, 3 months ago (2014-09-12 22:22:25 UTC) #5
Xing
On 2014/09/12 22:22:25, Will Harris wrote: > thanks for finding this and fixing it. > ...
6 years, 3 months ago (2014-09-15 16:57:57 UTC) #6
Bernhard Bauer
On 2014/09/15 16:57:57, Xing wrote: > On 2014/09/12 22:22:25, Will Harris wrote: > > thanks ...
6 years, 3 months ago (2014-09-15 17:12:48 UTC) #7
Xing
Updated the incorrect comment according to Will; Added myself into AUTHORS file
6 years, 3 months ago (2014-09-15 21:20:58 UTC) #10
Xing
Patch 3 is rebase-only, according to Chromium code review process.
6 years, 3 months ago (2014-09-15 21:22:03 UTC) #11
Xing
checked "commit" checkbox, according to Bernhard's comments
6 years, 3 months ago (2014-09-15 21:24:00 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/571583002/40001
6 years, 3 months ago (2014-09-15 21:27:21 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 54bacd7623e2caa11d862f0f3c50b531b8df66ef
6 years, 3 months ago (2014-09-15 23:27:16 UTC) #15
commit-bot: I haz the power
6 years, 3 months ago (2014-09-15 23:32:20 UTC) #16
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/8f3f93deca6710d7001415afb3b0822ad91708d1
Cr-Commit-Position: refs/heads/master@{#294917}

Powered by Google App Engine
This is Rietveld 408576698