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

Issue 1888313002: Fix the issue of undefined-shift in VP8GetBit. (Closed)

Created:
4 years, 8 months ago by jackychen_
Modified:
4 years, 8 months ago
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Fix the issue of undefined-shift in VP8GetBit. BUG=chromium:603497 Committed: https://crrev.com/0a2c054f426104ed5364424d3ec88d6cffe203eb Cr-Commit-Position: refs/heads/master@{#12450}

Patch Set 1 #

Total comments: 6

Patch Set 2 : use RTC_CHECK_GE #

Total comments: 4

Patch Set 3 : Use error_ to save bitReader status. #

Total comments: 6

Patch Set 4 : Remove error_ #

Total comments: 2

Patch Set 5 : Check eof_ status. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M webrtc/modules/video_coding/utility/vp8_header_parser.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 30 (9 generated)
jackychen_
4 years, 8 months ago (2016-04-15 00:41:44 UTC) #3
jackychen_
4 years, 8 months ago (2016-04-15 00:45:47 UTC) #5
pbos-webrtc
I think you should move the error to where the packet is incorrect. https://codereview.webrtc.org/1888313002/diff/1/webrtc/modules/video_coding/utility/vp8_header_parser.cc File ...
4 years, 8 months ago (2016-04-15 08:58:58 UTC) #6
jackychen_
https://codereview.webrtc.org/1888313002/diff/1/webrtc/modules/video_coding/utility/vp8_header_parser.cc File webrtc/modules/video_coding/utility/vp8_header_parser.cc (right): https://codereview.webrtc.org/1888313002/diff/1/webrtc/modules/video_coding/utility/vp8_header_parser.cc#newcode83 webrtc/modules/video_coding/utility/vp8_header_parser.cc:83: pos = 0; On 2016/04/15 08:58:58, pbos-webrtc wrote: > ...
4 years, 8 months ago (2016-04-15 20:24:50 UTC) #8
pbos-webrtc
https://codereview.webrtc.org/1888313002/diff/60001/webrtc/modules/video_coding/utility/vp8_header_parser.cc File webrtc/modules/video_coding/utility/vp8_header_parser.cc (right): https://codereview.webrtc.org/1888313002/diff/60001/webrtc/modules/video_coding/utility/vp8_header_parser.cc#newcode12 webrtc/modules/video_coding/utility/vp8_header_parser.cc:12: #include "webrtc/base/logging.h" These should go below where they were, ...
4 years, 8 months ago (2016-04-18 15:10:14 UTC) #10
jackychen_
https://codereview.webrtc.org/1888313002/diff/60001/webrtc/modules/video_coding/utility/vp8_header_parser.cc File webrtc/modules/video_coding/utility/vp8_header_parser.cc (right): https://codereview.webrtc.org/1888313002/diff/60001/webrtc/modules/video_coding/utility/vp8_header_parser.cc#newcode12 webrtc/modules/video_coding/utility/vp8_header_parser.cc:12: #include "webrtc/base/logging.h" On 2016/04/18 15:10:14, pbos-webrtc wrote: > These ...
4 years, 8 months ago (2016-04-18 19:18:17 UTC) #11
pbos-webrtc
https://codereview.webrtc.org/1888313002/diff/80001/webrtc/modules/video_coding/utility/vp8_header_parser.cc File webrtc/modules/video_coding/utility/vp8_header_parser.cc (right): https://codereview.webrtc.org/1888313002/diff/80001/webrtc/modules/video_coding/utility/vp8_header_parser.cc#newcode69 webrtc/modules/video_coding/utility/vp8_header_parser.cc:69: br->error_ = false; Is this already covered by the ...
4 years, 8 months ago (2016-04-18 19:25:33 UTC) #12
jackychen_
https://codereview.webrtc.org/1888313002/diff/80001/webrtc/modules/video_coding/utility/vp8_header_parser.cc File webrtc/modules/video_coding/utility/vp8_header_parser.cc (right): https://codereview.webrtc.org/1888313002/diff/80001/webrtc/modules/video_coding/utility/vp8_header_parser.cc#newcode69 webrtc/modules/video_coding/utility/vp8_header_parser.cc:69: br->error_ = false; On 2016/04/18 19:25:33, pbos-webrtc wrote: > ...
4 years, 8 months ago (2016-04-18 20:49:47 UTC) #13
pbos-webrtc
https://codereview.webrtc.org/1888313002/diff/80001/webrtc/modules/video_coding/utility/vp8_header_parser.cc File webrtc/modules/video_coding/utility/vp8_header_parser.cc (right): https://codereview.webrtc.org/1888313002/diff/80001/webrtc/modules/video_coding/utility/vp8_header_parser.cc#newcode69 webrtc/modules/video_coding/utility/vp8_header_parser.cc:69: br->error_ = false; On 2016/04/18 20:49:47, jacky.chen wrote: > ...
4 years, 8 months ago (2016-04-18 20:52:02 UTC) #14
pbos-webrtc
https://codereview.webrtc.org/1888313002/diff/80001/webrtc/modules/video_coding/utility/vp8_header_parser.cc File webrtc/modules/video_coding/utility/vp8_header_parser.cc (right): https://codereview.webrtc.org/1888313002/diff/80001/webrtc/modules/video_coding/utility/vp8_header_parser.cc#newcode203 webrtc/modules/video_coding/utility/vp8_header_parser.cc:203: LOG(LS_WARNING) << "Failed to get QP, invalid bitstream."; Are ...
4 years, 8 months ago (2016-04-18 20:56:46 UTC) #15
jackychen_
4 years, 8 months ago (2016-04-19 14:54:43 UTC) #17
pbos-webrtc
lgtm
4 years, 8 months ago (2016-04-19 23:09:25 UTC) #18
pbos-webrtc
https://codereview.webrtc.org/1888313002/diff/120001/webrtc/modules/video_coding/utility/vp8_header_parser.cc File webrtc/modules/video_coding/utility/vp8_header_parser.cc (right): https://codereview.webrtc.org/1888313002/diff/120001/webrtc/modules/video_coding/utility/vp8_header_parser.cc#newcode59 webrtc/modules/video_coding/utility/vp8_header_parser.cc:59: br->eof_ = 1; Actually, does this happen from VP8LoadFinalBytes? ...
4 years, 8 months ago (2016-04-19 23:11:50 UTC) #19
jackychen_
On 2016/04/19 23:11:50, pbos-webrtc wrote: > https://codereview.webrtc.org/1888313002/diff/120001/webrtc/modules/video_coding/utility/vp8_header_parser.cc > File webrtc/modules/video_coding/utility/vp8_header_parser.cc (right): > > https://codereview.webrtc.org/1888313002/diff/120001/webrtc/modules/video_coding/utility/vp8_header_parser.cc#newcode59 > ...
4 years, 8 months ago (2016-04-20 00:26:50 UTC) #20
jackychen_
https://codereview.webrtc.org/1888313002/diff/120001/webrtc/modules/video_coding/utility/vp8_header_parser.cc File webrtc/modules/video_coding/utility/vp8_header_parser.cc (right): https://codereview.webrtc.org/1888313002/diff/120001/webrtc/modules/video_coding/utility/vp8_header_parser.cc#newcode59 webrtc/modules/video_coding/utility/vp8_header_parser.cc:59: br->eof_ = 1; On 2016/04/19 23:11:50, pbos-webrtc wrote: > ...
4 years, 8 months ago (2016-04-20 00:27:18 UTC) #21
pbos-webrtc
On 2016/04/20 00:27:18, jacky.chen wrote: > https://codereview.webrtc.org/1888313002/diff/120001/webrtc/modules/video_coding/utility/vp8_header_parser.cc > File webrtc/modules/video_coding/utility/vp8_header_parser.cc (right): > > https://codereview.webrtc.org/1888313002/diff/120001/webrtc/modules/video_coding/utility/vp8_header_parser.cc#newcode59 > ...
4 years, 8 months ago (2016-04-20 12:27:04 UTC) #22
jackychen_
On 2016/04/20 12:27:04, pbos-webrtc wrote: > On 2016/04/20 00:27:18, jacky.chen wrote: > > > https://codereview.webrtc.org/1888313002/diff/120001/webrtc/modules/video_coding/utility/vp8_header_parser.cc ...
4 years, 8 months ago (2016-04-20 17:52:36 UTC) #23
pbos-webrtc
lgtm woo
4 years, 8 months ago (2016-04-20 19:39:50 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1888313002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1888313002/140001
4 years, 8 months ago (2016-04-20 20:07:20 UTC) #26
commit-bot: I haz the power
Committed patchset #5 (id:140001)
4 years, 8 months ago (2016-04-20 20:24:19 UTC) #28
commit-bot: I haz the power
4 years, 8 months ago (2016-04-20 20:24:26 UTC) #30
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/0a2c054f426104ed5364424d3ec88d6cffe203eb
Cr-Commit-Position: refs/heads/master@{#12450}

Powered by Google App Engine
This is Rietveld 408576698