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

Issue 60863004: libwebp: cherry-pick some demux changes (Closed)

Created:
7 years, 1 month ago by jzern
Modified:
7 years, 1 month ago
CC:
chromium-reviews
Visibility:
Public.

Description

libwebp: cherry-pick some demux changes these make the demuxer more strict when parsing files with VP8X flags that don't match the data. e18e667 demux: strictly enforce the animation flag 61cb884 demux: (non-exp) fail if the fragmented flag is set BUG=317284 TBR=fbarchard

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -1 line) Patch
M third_party/libwebp/README.chromium View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/libwebp/demux/demux.c View 4 chunks +9 lines, -1 line 2 comments Download

Messages

Total messages: 9 (0 generated)
urvang
lgtm
7 years, 1 month ago (2013-11-15 19:57:36 UTC) #1
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
7 years, 1 month ago (2013-11-15 22:52:57 UTC) #2
urvang (Google)
lgtm LGTM stamp as a committer.
7 years, 1 month ago (2013-11-18 20:04:11 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jzern@chromium.org/60863004/1
7 years, 1 month ago (2013-11-18 20:06:38 UTC) #4
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=36836
7 years, 1 month ago (2013-11-18 20:25:37 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jzern@chromium.org/60863004/1
7 years, 1 month ago (2013-11-18 20:33:43 UTC) #6
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=226053
7 years, 1 month ago (2013-11-19 00:45:03 UTC) #7
jzern
On 2013/11/19 00:45:03, I haz the power (commit-bot) wrote: > Retried try job too often ...
7 years, 1 month ago (2013-11-21 23:24:41 UTC) #8
fbarchard
7 years, 1 month ago (2013-11-23 01:01:56 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/60863004/diff/1/third_party/libwebp/demux/dem...
File third_party/libwebp/demux/demux.c (right):

https://codereview.chromium.org/60863004/diff/1/third_party/libwebp/demux/dem...
third_party/libwebp/demux/demux.c:512: const int has_frames =
!!(dmux->feature_flags_ & ANIMATION_FLAG);
!! is obscure.  
const int has_frames = dmux->feature_flags_ & ANIMATION_FLAG;
will do, as long as you use boolean operators.  e.g. || has_frames.
or more conventional would be

(dmux->feature_flags_ & ANIMATION_FLAG) != 0;
or
(dmux->feature_flags_ & ANIMATION_FLAG) == ANIMATION_FLAG;

https://codereview.chromium.org/60863004/diff/1/third_party/libwebp/demux/dem...
third_party/libwebp/demux/demux.c:603: // TODO(jzern): this is insufficient in
the fragmented image case if the
Prefer comments start with uppercase.
This is insufficient.
Prefer a todo that indicates the action to be taken, not the problem.
A problem is best documented with a bug #.

Powered by Google App Engine
This is Rietveld 408576698