[gdk-pixbuf] tests: Fix unused variable in CVE-2015-4491 test



commit 60805b62cf06aaa8667ce1c2bd6a184b40c49450
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jul 27 12:20:29 2017 +0100

    tests: Fix unused variable in CVE-2015-4491 test

 tests/cve-2015-4491.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/tests/cve-2015-4491.c b/tests/cve-2015-4491.c
index f5454d0..a1d9431 100644
--- a/tests/cve-2015-4491.c
+++ b/tests/cve-2015-4491.c
@@ -32,6 +32,7 @@ test_original (void)
   buf = gdk_pixbuf_new_from_resource_at_scale ("/test/resource/cve-2015-4491.bmp", size, size, FALSE, &err);
   /* Image is corrupt because the rowstride * height mul overflows */
   g_assert_error (err, GDK_PIXBUF_ERROR, GDK_PIXBUF_ERROR_CORRUPT_IMAGE);
+  g_assert_null (buf);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]