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

Issue 11826064: Enforce non-negative BitstreamBuffer id (Closed)

Created:
7 years, 11 months ago by sheu
Modified:
7 years, 11 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, raymes+watch_chromium.org, jam, apatrick_chromium, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, yzshen+watch_chromium.org, piman+watch_chromium.org, ihf+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Enforce non-negative BitstreamBuffer id There is some video decode accelerator code that assumes that a negative BitstreamBuffer id is never given, and uses it to mark error conditions. * Check for non-negative id when receving over IPC. * Make sure we don't send negative ids from our video decode pipeline (by handling wrapping) * Update PPAPI interface to document the fact that negative ids should not be used. BUG=chromium:168293 TEST=local build, run on snow Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=176816

Patch Set 1 #

Total comments: 2

Patch Set 2 : Avoid wrapping signed integers. #

Total comments: 2

Patch Set 3 : Documented the wrapping at 30 bits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -8 lines) Patch
M content/common/gpu/media/gpu_video_decode_accelerator.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M content/common/gpu/media/video_decode_accelerator_unittest.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M media/filters/gpu_video_decoder.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M media/filters/gpu_video_decoder.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M ppapi/api/dev/pp_video_dev.idl View 2 chunks +3 lines, -2 lines 0 comments Download
M ppapi/c/dev/pp_video_dev.h View 2 chunks +3 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppb_video_decoder_impl.cc View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
sheu
PTAL.
7 years, 11 months ago (2013-01-10 22:43:23 UTC) #1
Ami GONE FROM CHROMIUM
lgtm https://chromiumcodereview.appspot.com/11826064/diff/1/content/common/gpu/media/video_decode_accelerator_unittest.cc File content/common/gpu/media/video_decode_accelerator_unittest.cc (right): https://chromiumcodereview.appspot.com/11826064/diff/1/content/common/gpu/media/video_decode_accelerator_unittest.cc#newcode607 content/common/gpu/media/video_decode_accelerator_unittest.cc:607: next_bitstream_buffer_id_ = (next_bitstream_buffer_id_ + 1) & 0x7FFFFFFF; This ...
7 years, 11 months ago (2013-01-10 23:13:56 UTC) #2
scherkus (not reviewing)
[removing myself in lieu of fischman]
7 years, 11 months ago (2013-01-10 23:18:49 UTC) #3
sheu
https://chromiumcodereview.appspot.com/11826064/diff/1/content/common/gpu/media/video_decode_accelerator_unittest.cc File content/common/gpu/media/video_decode_accelerator_unittest.cc (right): https://chromiumcodereview.appspot.com/11826064/diff/1/content/common/gpu/media/video_decode_accelerator_unittest.cc#newcode607 content/common/gpu/media/video_decode_accelerator_unittest.cc:607: next_bitstream_buffer_id_ = (next_bitstream_buffer_id_ + 1) & 0x7FFFFFFF; On 2013/01/10 ...
7 years, 11 months ago (2013-01-10 23:34:48 UTC) #4
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/11826064/diff/3002/content/common/gpu/media/video_decode_accelerator_unittest.cc File content/common/gpu/media/video_decode_accelerator_unittest.cc (right): https://chromiumcodereview.appspot.com/11826064/diff/3002/content/common/gpu/media/video_decode_accelerator_unittest.cc#newcode607 content/common/gpu/media/video_decode_accelerator_unittest.cc:607: next_bitstream_buffer_id_ = (next_bitstream_buffer_id_ + 1) & 0x3FFFFFFF; lolololol https://chromiumcodereview.appspot.com/11826064/diff/3002/media/filters/gpu_video_decoder.cc ...
7 years, 11 months ago (2013-01-10 23:41:31 UTC) #5
sheu
PTAL
7 years, 11 months ago (2013-01-11 00:18:24 UTC) #6
Ami GONE FROM CHROMIUM
still lgtm
7 years, 11 months ago (2013-01-11 00:37:33 UTC) #7
sheu
Looking to get an OWNERS lgtm, thanks.
7 years, 11 months ago (2013-01-12 01:15:25 UTC) #8
sheu
On 2013/01/12 01:15:25, sheu wrote: > Looking to get an OWNERS lgtm, thanks. Specifically: brettw@ ...
7 years, 11 months ago (2013-01-12 01:17:02 UTC) #9
brettw
Please ask somebody specific. I will always assume somebody else will do it if it's ...
7 years, 11 months ago (2013-01-14 05:47:20 UTC) #10
yzshen1
.*ppapi.* LGTM
7 years, 11 months ago (2013-01-15 04:30:04 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/11826064/11001
7 years, 11 months ago (2013-01-15 04:33:07 UTC) #12
commit-bot: I haz the power
7 years, 11 months ago (2013-01-15 07:06:35 UTC) #13
Message was sent while issue was closed.
Change committed as 176816

Powered by Google App Engine
This is Rietveld 408576698