--- origsrc/libgd/src/gdhelpers.c	2018-11-10 15:34:10.000000000 -0500
+++ src/libgd/src/gdhelpers.c	2018-11-11 14:27:52.396640200 -0500
@@ -72,7 +72,10 @@ void * gdCalloc (size_t nmemb, size_t si
 void *
 gdMalloc (size_t size)
 {
-	return malloc (size);
+	void *ptr = NULL;
+	if (posix_memalign (&ptr, 16, size))
+	  return NULL;
+	return ptr;
 }
 
 void *
