Closed
Bug 1216081
Opened 9 years ago
Closed 9 years ago
OscillatorNodeEngine::mFinalFrequency is used uninitialised
Categories
(Core :: Web Audio, defect)
Core
Web Audio
Tracking
()
RESOLVED
FIXED
mozilla44
Tracking | Status | |
---|---|---|
firefox44 | --- | fixed |
People
(Reporter: jseward, Unassigned)
Details
Attachments
(2 files)
3.68 KB,
text/plain
|
Details | |
761 bytes,
patch
|
padenot
:
review+
|
Details | Diff | Splinter Review |
This might be fallout from bug 1209904. That introduces the following fragment + if (finalFrequency != mFinalFrequency) { + mFinalFrequency = finalFrequency; + return true; + } but the problem is that OscillatorNodeEngine::OscillatorNodeEngine doesn't give an initial value for mFinalFrequency, so the |if| condition is undefined. Comparing OscillatorNodeEngine::OscillatorNodeEngine with the list of fields starting at OscillatorNode.cpp:382, it seems as if it has been the intention of the constructor to initialise all fields, but that both mFinalFrequency and mPhaseIncrement were forgotten about.
Reporter | ||
Comment 1•9 years ago
|
||
STR: with an --enable-valgrind --disable-jemalloc build, run ./mach mochitest --valgrind=/usr/bin/valgrind \ dom/media/webaudio/test/test_delayNodeTailWithDisconnect.html
Reporter | ||
Comment 2•9 years ago
|
||
Reporter | ||
Comment 3•9 years ago
|
||
Attachment #8675590 -
Flags: review?(padenot)
Comment 4•9 years ago
|
||
Comment on attachment 8675590 [details] [diff] [review] Initialise all fields in the constructor of OscillatorNodeEngine Review of attachment 8675590 [details] [diff] [review]: ----------------------------------------------------------------- Thanks !
Attachment #8675590 -
Flags: review?(padenot) → review+
Comment 6•9 years ago
|
||
backout bugherder merge |
https://hg.mozilla.org/mozilla-central/rev/4aa9e709ddf7
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla44
You need to log in
before you can comment on or make changes to this bug.
Description
•