Closed
Bug 1742559
Opened 4 years ago
Closed 4 years ago
Parsing invalid MIDI messages crashes the content process
Categories
(Core :: DOM: Device Interfaces, defect)
Core
DOM: Device Interfaces
Tracking
()
RESOLVED
FIXED
98 Branch
People
(Reporter: gsvelto, Assigned: gsvelto)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
48 bytes,
text/x-phabricator-request
|
RyanVM
:
approval-mozilla-beta+
|
Details | Review |
I stumbled upon this by testing my implementation. I tried sending some junk messages (e.g. "foo") and discovered that we'd crash here accessing a NULL pointer. The invalid message meant that we'd never reach this point where the pointer is initialized. I'll write a test-case for this.
Assignee | ||
Comment 1•4 years ago
|
||
Chromium has a nice test for this kind of stuff. I should write a similar one.
Assignee | ||
Comment 2•4 years ago
|
||
Depends on D131351
Updated•4 years ago
|
Assignee: nobody → gsvelto
Status: NEW → ASSIGNED
Pushed by gsvelto@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f557e1c37091
Adjust MIDI message validation and add relevant tests r=padenot
Comment 4•4 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox98:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
Assignee | ||
Comment 5•4 years ago
|
||
Comment on attachment 9255909 [details]
Bug 1742559 - Adjust MIDI message validation and add relevant tests r=padenot
Beta/Release Uplift Approval Request
- User impact if declined: Firefox will crash if invalid MIDI messages are sent to a device
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): Web MIDI is still pref'd off
- String changes made/needed: none
Attachment #9255909 -
Flags: approval-mozilla-beta?
Comment 6•4 years ago
|
||
Comment on attachment 9255909 [details]
Bug 1742559 - Adjust MIDI message validation and add relevant tests r=padenot
Approved for 97.0b3.
Attachment #9255909 -
Flags: approval-mozilla-beta? → approval-mozilla-beta+
Comment 7•4 years ago
|
||
bugherder uplift |
status-firefox97:
--- → fixed
Flags: in-testsuite+
You need to log in
before you can comment on or make changes to this bug.
Description
•