Closed
Bug 1141386
Opened 10 years ago
Closed 10 years ago
[EME] gmp-clearkey's base64decode doesn't handle padding properly
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla39
People
(Reporter: cpearce, Assigned: cpearce)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
1.36 KB,
patch
|
eflores
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
9.84 KB,
patch
|
eflores
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
My last change to gmp-clearkey's base64 key/Id decode didn't handle padding properly. It assumed that the input key was always 22 bytes long, i.e. that JS always stripped the pading '=' characters from base64 encoded key/Ids. This is not always the case.
Assignee | ||
Comment 1•10 years ago
|
||
Strip trailing padding, and only then validate the length of the key/Id for base64 decode.
We should get this fix landed ASAP. I'm going to write a gtest so we don't regress...
Attachment #8574982 -
Flags: review?(edwin)
Attachment #8574982 -
Flags: review?(edwin) → review+
Assignee | ||
Comment 2•10 years ago
|
||
Add a gtest, so we don't regress this...
Attachment #8575028 -
Flags: review?(edwin)
Attachment #8575028 -
Flags: review?(edwin) → review+
Assignee | ||
Comment 3•10 years ago
|
||
Assignee | ||
Comment 4•10 years ago
|
||
Of course, WAE strikes again:
Backout.
https://hg.mozilla.org/integration/mozilla-inbound/rev/8c40f6146cb1
Assignee | ||
Comment 5•10 years ago
|
||
Assignee | ||
Comment 6•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/026d6fc9f516
https://hg.mozilla.org/integration/mozilla-inbound/rev/f98b2e123dce
Flags: needinfo?(cpearce)
Comment 7•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/6fdc1033f217
https://hg.mozilla.org/mozilla-central/rev/c2de53dd52d4
https://hg.mozilla.org/mozilla-central/rev/8c40f6146cb1
https://hg.mozilla.org/mozilla-central/rev/026d6fc9f516
https://hg.mozilla.org/mozilla-central/rev/f98b2e123dce
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Assignee | ||
Comment 8•10 years ago
|
||
Comment on attachment 8574982 [details] [diff] [review]
Patch
Approval Request Comment
[Feature/regressing bug #]: EME
[User impact if declined]: EME won't work on some EME sites
[Describe test coverage new/current, TreeHerder]: There's a test in the next patch. Performed local testing too.
[Risks and why]: Low; isolated to EME, and I've tested the target site.
[String/UUID change made/needed]: None.
Attachment #8574982 -
Flags: approval-mozilla-aurora?
Assignee | ||
Comment 9•10 years ago
|
||
Comment on attachment 8575028 [details] [diff] [review]
Patch 2: Add gtest for gmp-clearkey's base64 decode
Approval Request Comment
[Feature/regressing bug #]: EME
[User impact if declined]: EME won't work on some EME sites
[Describe test coverage new/current, TreeHerder]: This is the test for the fix to EME in the preceeding patch.
[Risks and why]: Low; isolated to EME, and I've tested the target site.
[String/UUID change made/needed]: None.
Attachment #8575028 -
Flags: approval-mozilla-aurora?
Assignee | ||
Updated•10 years ago
|
status-firefox38:
--- → affected
Flags: needinfo?(cpearce)
Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(cpearce)
Updated•10 years ago
|
Attachment #8575028 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Updated•10 years ago
|
Attachment #8574982 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 10•10 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/5a30ae259c1e
https://hg.mozilla.org/releases/mozilla-aurora/rev/1de2809cfcd6
Flags: in-testsuite+
Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(cpearce)
You need to log in
before you can comment on or make changes to this bug.
Description
•