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

Issue 11304010: Fix type punning error in (de)serializing audio frames. (Closed)

Created:
8 years, 1 month ago by xhwang
Modified:
8 years, 1 month ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Fix type punning error in (de)serializing audio frames. *(reinterpret_cast<Foo*>(pointer_of_type_bar)) is not safe. Replace it with memcpy. TBR=viettrungluu@chromium.org BUG=none TEST=CDM decrypt-and-decode audio is still working. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=164555

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebase only #

Patch Set 3 : use vector::resize() #

Patch Set 4 : rebase #

Patch Set 5 : rebase only #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -8 lines) Patch
M webkit/media/crypto/ppapi/clear_key_cdm.cc View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download
M webkit/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc View 1 2 3 1 chunk +3 lines, -3 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
xhwang
PTAL, Thanks!
8 years, 1 month ago (2012-10-26 18:53:50 UTC) #1
Ami GONE FROM CHROMIUM
LGTM % nit http://codereview.chromium.org/11304010/diff/1/webkit/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc File webkit/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc (right): http://codereview.chromium.org/11304010/diff/1/webkit/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc#newcode336 webkit/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc:336: memcpy(data, &value, sizeof(value)); You could alternatively ...
8 years, 1 month ago (2012-10-26 21:48:44 UTC) #2
xhwang
http://codereview.chromium.org/11304010/diff/1/webkit/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc File webkit/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc (right): http://codereview.chromium.org/11304010/diff/1/webkit/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc#newcode336 webkit/media/crypto/ppapi/ffmpeg_cdm_audio_decoder.cc:336: memcpy(data, &value, sizeof(value)); On 2012/10/26 21:48:44, Ami Fischman wrote: ...
8 years, 1 month ago (2012-10-26 22:28:12 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/11304010/7001
8 years, 1 month ago (2012-10-26 22:30:53 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/11304010/7001
8 years, 1 month ago (2012-10-27 06:21:34 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/11304010/5003
8 years, 1 month ago (2012-10-27 06:31:17 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/11304010/5003
8 years, 1 month ago (2012-10-27 12:24:26 UTC) #7
commit-bot: I haz the power
Failed to apply patch for webkit/media/crypto/ppapi/clear_key_cdm.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years, 1 month ago (2012-10-27 12:25:47 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/11304010/2004
8 years, 1 month ago (2012-10-27 16:34:49 UTC) #9
commit-bot: I haz the power
8 years, 1 month ago (2012-10-27 18:35:12 UTC) #10
Change committed as 164555

Powered by Google App Engine
This is Rietveld 408576698