Description: Unset MALLOC_PERTURB_ for the /pixbuf/cve-2015-4491/original
 as it fails with OOM, or gets OOM killed.
Author: Dimitri John Ledkov <xnox@ubuntu.com>

--- a/tests/cve-2015-4491.c
+++ b/tests/cve-2015-4491.c
@@ -18,6 +18,8 @@
  * Author: Benjamin Otte
  */
 
+#include <malloc.h>
+
 #include <gdk-pixbuf.h>
 
 #include "test-common.h"
@@ -28,11 +30,23 @@
   GdkPixbuf* buf;
   int size = 32;
   GError* err = NULL;
+  gint64 perturbv = 0;
+  
+  const gchar * perturb = NULL;
+  perturb = g_getenv("MALLOC_PERTURB_");
+  if (perturb != NULL) {
+	  perturbv = g_ascii_strtoll (perturb, NULL, 0);
+	  mallopt(M_PERTURB, 0);
+  }
 
   buf = gdk_pixbuf_new_from_resource_at_scale ("/test/resource/cve-2015-4491.bmp", size, size, FALSE, &err);
   if (skip_if_insufficient_memory (&err))
     return;
 
+  if (perturbv > 0) {
+	  mallopt(M_PERTURB, perturbv);
+  }
+
   g_assert_no_error (err);
 
   g_object_unref (buf);
