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)

defect

Tracking

()

RESOLVED FIXED
98 Branch
Tracking Status
firefox97 --- fixed
firefox98 --- fixed

People

(Reporter: gsvelto, Assigned: gsvelto)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

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.

Chromium has a nice test for this kind of stuff. I should write a similar one.

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
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch

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 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+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: