Bug 1301226 - Test 0xFFFFFFFF WAV data chunk length - r=cpearce
authorGerald Squelart <gsquelart@mozilla.com>
Mon, 07 Nov 2016 16:09:22 +1100
changeset 321575 cea9d0937e3bf55318cbbf6be0ab67dd82cd1e29
parent 321574 3c31fd9a18b009621fb65a91d7e585b2e962163c
child 321576 c7a47678290a380324b9bc9704b21c9f3c116af3
push id83647
push userkwierso@gmail.com
push dateTue, 08 Nov 2016 22:08:41 +0000
treeherdermozilla-inbound@1d0b02250149 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscpearce
bugs1301226
milestone52.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1301226 - Test 0xFFFFFFFF WAV data chunk length - r=cpearce Test that a WAV file with 0xFFFFFFFF data chunk length does not overflow, by playing it; If it did overflow, its duration would be 0, and therefore would not play. MozReview-Commit-ID: EiWLb5otSnh
dom/media/test/bug1301226.wav
dom/media/test/bug1301226.wav^headers^
dom/media/test/manifest.js
dom/media/test/mochitest.ini
new file mode 100644
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0128486f07b4c6cd3821d123df5aa23f3bac9970
GIT binary patch
literal 240
zc$^)Ly$ZrW5QHZtf;N)cN_>D|3dL5?gM*-8LaYOl&Mx>=KAlK%<cD?kZs2ZrzTLUI
zHAZ+Ir}9$2noSHKptdD&{s1$?$ZTG$>D#Nh+1wN>)>-wg_lG1sCh2a6XVp}iLVysH
z3^Gw70Xub<h_GO)BN1_)D2x1WA|t0G_UZz<JyOoUU|uJ4x*fMh?+ntCIjU#XN=QHS
SNg_Ju<VVu88hp0iU(fyqMSkW0
new file mode 100644
--- /dev/null
+++ b/dom/media/test/bug1301226.wav^headers^
@@ -0,0 +1,1 @@
+Cache-Control: no-store
--- a/dom/media/test/manifest.js
+++ b/dom/media/test/manifest.js
@@ -160,16 +160,18 @@ var gPlayTests = [
   // file with 2 extra bytes of metadata
   { name:"16bit_wave_extrametadata.wav", type:"audio/x-wav", duration:1.108 },
   // 24-bit samples
   { name:"wavedata_s24.wav", type:"audio/x-wav", duration:1.0 },
   // aLaw compressed wave file
   { name:"wavedata_alaw.wav", type:"audio/x-wav", duration:1.0 },
   // uLaw compressed wave file
   { name:"wavedata_ulaw.wav", type:"audio/x-wav", duration:1.0 },
+  // Data length 0xFFFFFFFF
+  { name:"bug1301226.wav", type:"audio/x-wav", duration:0.003673 },
 
   // Ogg stream without eof marker
   { name:"bug461281.ogg", type:"application/ogg", duration:2.208 },
 
   // oggz-chop stream
   { name:"bug482461.ogv", type:"video/ogg", duration:4.34 },
   // Theora only oggz-chop stream
   { name:"bug482461-theora.ogv", type:"video/ogg", duration:4.138 },
--- a/dom/media/test/mochitest.ini
+++ b/dom/media/test/mochitest.ini
@@ -386,16 +386,18 @@ support-files =
   bug580982.webm^headers^
   bug603918.webm
   bug603918.webm^headers^
   bug604067.webm
   bug604067.webm^headers^
   bug883173.vtt
   bug1066943.webm
   bug1066943.webm^headers^
+  bug1301226.wav
+  bug1301226.wav^headers^
   can_play_type_dash.js
   can_play_type_ogg.js
   can_play_type_wave.js
   can_play_type_webm.js
   cancellable_request.sjs
   chain.ogg
   chain.ogg^headers^
   chain.ogv