Gecko engine for Wine
Go to file
Ralph Giles 0f21dd7253 [PATCH] Bug 812847 - Test Opus channel count validation - r=kinetik
From 49f5e33d79df3713bc510e611a5064858bf24e4a Mon Sep 17 00:00:00 2001
These files have specially crafted headers which should be
rejected by the new checks added to resolve this bug. If any
audio output is produced then this bug has re-occured.

The audio data is the phrase "invalid file", in one or six
channels, to make this more obvious.

The new mochitest test_invalid_reject.html tries to load
and play each of the new invalid files and verifies that
an error event is triggered. Since the invalid data is in
the file headers, this should happen after network load
but before metadata is ready, so the test also asserts
errors if loadedmetadata or a number of subsequent events
are triggered.

The test will time out if no error event is fired at all.

Thanks to Matthew Gregan for assistance writing the mochitest.
---
 content/media/test/Makefile.in              |  11 ++++++
 content/media/test/invalid-cmap-s0c0.opus   | Bin 0 -> 6835 bytes
 content/media/test/invalid-cmap-s0c2.opus   | Bin 0 -> 6834 bytes
 content/media/test/invalid-cmap-s1c2.opus   | Bin 0 -> 6848 bytes
 content/media/test/invalid-cmap-short.opus  | Bin 0 -> 6854 bytes
 content/media/test/invalid-m0c0.opus        | Bin 0 -> 2471 bytes
 content/media/test/invalid-m0c3.opus        | Bin 0 -> 2471 bytes
 content/media/test/invalid-m1c0.opus        | Bin 0 -> 6836 bytes
 content/media/test/invalid-m1c9.opus        | Bin 0 -> 6836 bytes
 content/media/test/invalid-m2c0.opus        | Bin 0 -> 2471 bytes
 content/media/test/invalid-m2c1.opus        | Bin 0 -> 2455 bytes
 content/media/test/manifest.js              |  14 ++++++++
 content/media/test/test_invalid_reject.html |  52 ++++++++++++++++++++++++++++
 13 files changed, 77 insertions(+)
 create mode 100644 content/media/test/invalid-cmap-s0c0.opus
 create mode 100644 content/media/test/invalid-cmap-s0c2.opus
 create mode 100644 content/media/test/invalid-cmap-s1c2.opus
 create mode 100644 content/media/test/invalid-cmap-short.opus
 create mode 100644 content/media/test/invalid-m0c0.opus
 create mode 100644 content/media/test/invalid-m0c3.opus
 create mode 100644 content/media/test/invalid-m1c0.opus
 create mode 100644 content/media/test/invalid-m1c9.opus
 create mode 100644 content/media/test/invalid-m2c0.opus
 create mode 100644 content/media/test/invalid-m2c1.opus
 create mode 100644 content/media/test/test_invalid_reject.html
2012-11-19 15:13:43 -08:00
accessible Bug 812844 - densify nsAccDocManager, r=tbsaunde 2012-11-20 23:15:32 +09:00
b2g Bug 813076 - Upgrade clang to 168304 in the 3.2 branch. r=rail. 2012-11-20 10:50:50 -05:00
browser Bug 813076 - Upgrade clang to 168304 in the 3.2 branch. r=rail. 2012-11-20 10:50:50 -05:00
build Bug 813076 - Upgrade clang to 168304 in the 3.2 branch. r=rail. 2012-11-20 10:51:56 -05:00
caps Bug 802366 - Prelude, part 4: Use and simplify nsScriptSecurityManager::GetDocShellCodebasePrincipal. r=bz 2012-11-10 10:32:36 -08:00
chrome Bug 788242: Implement and make use of void versions of NS_ENSURE_* macros; r=ehsan,bsmedberg 2012-09-14 14:30:31 +04:30
config Backout 9f8721399b14 (bug 812218) for Win PGO bustage 2012-11-20 10:57:43 +00:00
content [PATCH] Bug 812847 - Test Opus channel count validation - r=kinetik 2012-11-19 15:13:43 -08:00
db/sqlite3 Bug 801281 - Upgrade SQLite to version 3.7.14.1 (Mozilla changes). r=mak 2012-10-16 21:34:06 -04:00
dbm Backout the dbm/ portions of bug 795507 because that code is a read-only copy from the upstream NSS project 2012-10-09 16:38:15 -04:00
docshell Bug 764240 - Clamp window.sizeToContent() the same way we clamp other resizing methods. r=bz 2012-11-19 23:18:21 +00:00
dom Bug 813423. A bit more inlining for stuff that should really be inline. r=peterv 2012-11-20 11:36:06 -05:00
editor Bug 807437 - Eliminate redundant Traverse/Unlink CC macros - part 1: automatic changes - r=mccr8 2012-11-15 02:32:40 -05:00
embedding Bug 811449 part 1. Move everything from nsGenericElement.h to Element.h. r=peterv 2012-11-14 14:10:07 -08:00
extensions Fix an error in the UTF-8 state machine table, and clean up the table generally. Bug 811363, r=jfkthame. 2012-11-16 11:33:15 -08:00
gfx Bug 812957 - Follow-up: Replace void\n* with void*\n. r=oops DONTBUILD 2012-11-19 23:14:14 -05:00
hal Bug 806363 - Remove wake locks on content-shutdown. r=jlebar 2012-11-17 23:05:18 +08:00
image Bug 812932 - Have EndianMacros.h recognize __BIG_ENDIAN__ preprocessor macro - r=bbondy 2012-11-19 09:09:17 -08:00
intl Fix an error in the UTF-8 state machine table, and clean up the table generally. Bug 811363, r=jfkthame. 2012-11-16 11:33:15 -08:00
ipc Bug 811596 - Shrink the IPC message buffer after each message is processed. r=cjones. 2012-11-19 20:52:44 -08:00
js Bug 795104 - Sources with a custom charset can't be lazily loaded. r=bz 2012-11-20 11:30:03 -06:00
layout Bug 810796 - Fix invalid CSS in forms.css. r=bz 2012-11-20 18:21:39 +00:00
media Bug 812667 - Make soundtouch compile properly if cpuid.h is not present. r=khuey 2012-11-16 16:47:01 -08:00
memory Bug 805855 - Add an extra function to jemalloc to free dirty unused pages. r=glandium 2012-11-08 20:06:50 +01:00
mfbt Bug 793013 - Add EnumSet to replace 1 << n bit type bitfields. r=Waldo 2012-11-06 18:23:13 -05:00
mobile Bug 813616 - Ensure the reflow-on-zoom pref change is picked up even while the content document is not visible. r=jwir3 2012-11-20 12:51:39 -05:00
modules Bug 804852: Support for the hwc implementation of Composer2D. r=mattwoodrow,mwu,roc sr=roc 2012-11-19 09:58:38 -08:00
mozglue Bug 805855 - Add an extra function to jemalloc to free dirty unused pages. r=glandium 2012-11-08 20:06:50 +01:00
netwerk Back out fix for bug 405407 due to regressions. 2012-11-19 18:02:21 -05:00
nsprpub Bug 804806: Update NSPR to NSPR_4_9_4_BETA2. 2012-11-14 05:59:06 -08:00
other-licenses Bug 811646 - New VC6 InetBgDL DLL with range request support. r=rstrong 2012-11-16 21:39:17 -05:00
parser Bug 663291: Improve the SpecialPowers and SimpleTest APIs to make it easier to write mochitests that look at error console output. Update all tests that were using ad-hoc console inspection or the old SimpleTest console handler API. r=ted 2012-11-16 21:53:32 -05:00
probes Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted 2012-08-04 20:26:44 +02:00
profile Bug 773151: Convert nsCAutoString->nsAutoCString CLOSED TREE r=bsmedberg 2012-09-01 22:35:17 -04:00
python Bug 797471 - Handle mochitest failures gracefully in mach; r=Ms2ger 2012-11-14 12:56:02 -08:00
rdf Bug 807437 - Eliminate redundant Traverse/Unlink CC macros - part 1: automatic changes - r=mccr8 2012-11-15 02:32:40 -05:00
security Backed out changeset ef6db4ced917 (bug 804663) due to build bustage, a=bustage 2012-11-19 20:24:47 -08:00
services Merge mozilla-central into mozilla-inbound 2012-11-19 17:07:53 -05:00
startupcache Bug 579517 follow-up: Remove NSPR types that crept in 2012-11-07 20:34:50 -05:00
storage Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-31 09:13:28 -07:00
testing Bug 813105 - upload a new talos.zip to turn datazilla back on. r=Callek 2012-11-20 11:33:24 -05:00
toolkit Bug 808699 - Change the wire format for hang reports. r=vladan. 2012-11-20 09:45:14 -05:00
tools Bug 809317 - Part 1: Provide a pseudo stack implementation of SAMPLER_PRINT_LOCATION. r=ehsan 2012-11-19 18:13:28 -05:00
uriloader Bug 723005 - Remove all checks for global privacy status in history-related code, and add them to callers when appropriate. r=mak sr=gavin 2012-02-18 01:40:10 -05:00
view Bug 807472. Pass WILL_SEND_DID_PAINT when calling PresShell::Paint with PAINT_COMPOSITE. r=mattwoodrow 2012-11-02 23:42:59 +13:00
webapprt Bug 798233 - Don't search firefox executable in $exe/../../dist/bin. r=marco 2012-11-16 17:12:00 +01:00
widget Bug 812427 part.3 Remove NS_POPUP_EVENT r=roc+smaug 2012-11-20 15:05:56 +09:00
xpcom Bug 808699 - Change the wire format for hang reports. r=vladan. 2012-11-20 09:45:14 -05:00
xpfe Bug 764240 - Clamp window.sizeToContent() the same way we clamp other resizing methods. r=bz 2012-11-19 23:18:21 +00:00
xulrunner Bug 798491: Add an option to stick all chrome JSMs/JS components in the same compartment. r=mrbkap,philikon 2012-10-31 09:13:28 -07:00
.gdbinit
.gitignore Bug 751795 - Part 1: mach, the new frontend to mozilla-central; r=jhammel 2012-09-26 09:43:54 -07:00
.hgignore Bug 751795 - Part 1: mach, the new frontend to mozilla-central; r=jhammel 2012-09-26 09:43:54 -07:00
.hgtags Added tag FIREFOX_AURORA_19_BASE for changeset cf8750abee06 2012-11-19 11:56:01 -08:00
aclocal.m4 Bug 788276 - Properly check for broken (deprecated) compilers. r=gps. 2012-09-12 14:54:40 -04:00
allmakefiles.sh Bug 788955 - Without --enable-jemalloc detect and use jemalloc3 in libc. r=glandium 2012-10-17 16:36:49 +02:00
Android.mk Bug 794297: Block the android build system from looking in mozilla-central. r=mwu 2012-09-25 17:04:01 -07:00
AUTHORS Bug 763623 - Add AUTHORS file. 2012-09-17 10:47:50 +01:00
client.mk Backed out changeset 6b87b58ff491 (follow-up to bug 793953) because of make insanity 2012-09-26 15:47:11 -04:00
client.py Bug 782784 - client.py update_nss and update_nspr should toggle the trailing whitespace line, r=glandium 2012-08-16 08:28:57 +02:00
configure.in Bug 779997 - Disable build and linking of libsoundtouch as it is not used for now. r=glandium 2012-11-19 16:36:06 +00:00
LEGAL
LICENSE
mach Bug 808346 - Don't scan sys.path to discover mach commands; r=jhammel 2012-11-06 17:00:19 -08:00
Makefile.in Bug 788955 - Without --enable-jemalloc detect and use jemalloc3 in libc. r=glandium 2012-10-17 16:36:49 +02:00
mozilla-config.h.in Bug 774032 part 6 - Replace autoconf handling of config files and headers with our own. r=ted 2012-08-04 08:47:28 +02:00
README.txt

An explanation of the Mozilla Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://developer.mozilla.org/en/Mozilla_Source_Code_Directory_Structure

For information on how to build Mozilla from the source code, see:

    http://developer.mozilla.org/en/docs/Build_Documentation

To have your bug fix / feature added to Mozilla, you should create a patch and
submit it to Bugzilla (https://bugzilla.mozilla.org). Instructions are at:

    http://developer.mozilla.org/en/docs/Creating_a_patch
    http://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree

If you have a question about developing Mozilla, and can't find the solution
on http://developer.mozilla.org, you can try asking your question in a
mozilla.* Usenet group, or on IRC at irc.mozilla.org. [The Mozilla news groups
are accessible on Google Groups, or news.mozilla.org with a NNTP reader.]

You can download nightly development builds from the Mozilla FTP server.
Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy. Firefox nightlies, for example, can be found at:

    ftp://ftp.mozilla.org/pub/firefox/nightly/latest-trunk/
            - or -
    http://nightly.mozilla.org/