mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1207750 - setting an environment variable will let us crash as Cairo errors happen. r=bschouten
This commit is contained in:
parent
5ab8f3755f
commit
909431f0be
@ -172,6 +172,15 @@ _cairo_error (cairo_status_t status)
|
||||
CAIRO_ENSURE_UNIQUE;
|
||||
assert (_cairo_status_is_error (status));
|
||||
|
||||
#ifdef MOZILLA_VERSION
|
||||
static int abort_on_error = -1;
|
||||
if (abort_on_error < 0) {
|
||||
abort_on_error = (getenv("MOZ_CAIRO_ERROR_ABORT") != NULL) ? 1 : 0;
|
||||
}
|
||||
if (abort_on_error) {
|
||||
*(int*)0x0 = 10;
|
||||
}
|
||||
#endif
|
||||
return status;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user