Fix broken duration logic in MediaResourceGetter for non-video media.

Also closes a security hole: the filesystem checks did not properly canonicalize the path, with the result that paths such as "/mnt/sdcard/../../data/data/yourdata" would have been accepted.

BUG=278117
NOPRESUBMIT=true

Review URL: https://codereview.chromium.org/23684004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262766 0039d316-1c4b-4281-b951-d872f2087c98
parent eb8c216a
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment