Bug 797900 - Disable invalid-size-second-frame crashtest under AddressSanitizer. r=dbaron, a=nonlibxul

This commit is contained in:
Christian Holler 2013-01-22 00:46:40 +01:00
parent 79af26e432
commit 15342077ba
2 changed files with 8 additions and 1 deletions

View File

@ -7,7 +7,8 @@ load 89341-1.gif
# they have image sizes of 65535x65535 which is larger than we allow
load invalid-size.gif
# this image has a valid size for the first frame, but the second frame is 65535x65535
load invalid-size-second-frame.gif
# AddressSanitizer sometimes fails with a CHECK on an allocation caused by this.
skip-if(AddressSanitizer) load invalid-size-second-frame.gif
# Animated gifs with a very large canvas, but tiny actual content.
load delaytest.html?523528-1.gif

View File

@ -575,6 +575,12 @@ function BuildConditionSandbox(aURL) {
sandbox.qtWidget = xr.widgetToolkit == "qt";
sandbox.winWidget = xr.widgetToolkit == "windows";
#if MOZ_ASAN
sandbox.AddressSanitizer = true;
#else
sandbox.AddressSanitizer = false;
#endif
var hh = CC[NS_NETWORK_PROTOCOL_CONTRACTID_PREFIX + "http"].
getService(CI.nsIHttpProtocolHandler);
sandbox.http = { __exposedProps__: {} };