Closed
Bug 1104970
Opened 10 years ago
Closed 10 years ago
[EME] GMPStorage can't handle long record names
Categories
(Core :: Audio/Video, defect)
Tracking
()
RESOLVED
FIXED
mozilla37
People
(Reporter: cpearce, Assigned: cpearce)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 3 obsolete files)
9.82 KB,
patch
|
cpearce
:
review+
|
Details | Diff | Splinter Review |
12.83 KB,
patch
|
cpearce
:
review+
|
Details | Diff | Splinter Review |
Bug 1100499 changed our GMPStorage API to base64encode the record name and uses that as the file name. If a long record name is put through this, it can hit the max path size of a file on Windows, resulting in I/O failure.
Assignee | ||
Comment 1•10 years ago
|
||
We should really detect failures in GMPStorage reads/writes in our gtests, instead of assuming that reads/writes always succeed...
Attachment #8528754 -
Flags: review?(edwin)
Assignee | ||
Comment 2•10 years ago
|
||
* Revert to using Mozilla::HashString(recordName) as the filename for records. * Write the length of the recordName and then the recordName into the start of the record's file, before the actual record data. * Treat files which aren't in this format as empty records; so they can be overwritten.
Attachment #8528757 -
Flags: review?(rjesup)
Assignee | ||
Comment 3•10 years ago
|
||
With WAE compile fixes on for GCC, and test tweaked to pass...
Attachment #8528757 -
Attachment is obsolete: true
Attachment #8528757 -
Flags: review?(rjesup)
Attachment #8528787 -
Flags: review?(rjesup)
Assignee | ||
Comment 4•10 years ago
|
||
https://treeherder.mozilla.org/ui/#/jobs?repo=try&revision=d5124979a26c https://tbpl.mozilla.org/?tree=Try&rev=d5124979a26c
Attachment #8528754 -
Flags: review?(edwin) → review+
Comment 5•10 years ago
|
||
Comment on attachment 8528787 [details] [diff] [review] Patch: Store GMP record name in record file on disk Review of attachment 8528787 [details] [diff] [review]: ----------------------------------------------------------------- Looks good... spent a while looking over the size/offset stuff; looks good
Attachment #8528787 -
Flags: review?(rjesup) → review+
Assignee | ||
Comment 6•10 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=2c9a925932dd
Assignee | ||
Updated•10 years ago
|
Attachment #8528754 -
Attachment is obsolete: true
Assignee | ||
Comment 8•10 years ago
|
||
Commit message updated to reflect r+
Attachment #8528787 -
Attachment is obsolete: true
Attachment #8531712 -
Flags: review+
Assignee | ||
Updated•10 years ago
|
Keywords: checkin-needed
Comment 9•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/5fc3ea149549 https://hg.mozilla.org/integration/mozilla-inbound/rev/8d18f4965871
Keywords: checkin-needed
Comment 10•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/5fc3ea149549 https://hg.mozilla.org/mozilla-central/rev/8d18f4965871
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla37
Assignee | ||
Comment 11•9 years ago
|
||
Mass update firefox-status to track EME uplift.
You need to log in
before you can comment on or make changes to this bug.
Description
•