diff --git a/coders/djvu.c b/coders/djvu.c
index 424618d..7b31ff1 100644
--- a/coders/djvu.c
+++ b/coders/djvu.c
@@ -794,7 +794,7 @@
   /*
    * Allocate a LoadContext structure.
    */
-  lc = (LoadContext *) AcquireMagickMemory(sizeof(*lc));
+  lc = (LoadContext *) AcquireAlignedMemory(1,sizeof(*lc));
   if (lc == NULL)
     ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
 
diff --git a/coders/gif.c b/coders/gif.c
index 8dde617..bc65fab 100644
--- a/coders/gif.c
+++ b/coders/gif.c
@@ -194,7 +194,7 @@
   register long
     i;
 
-  lzw_info=(LZWInfo *) AcquireMagickMemory(sizeof(*lzw_info));
+  lzw_info=(LZWInfo *) AcquireAlignedMemory(1,sizeof(*lzw_info));
   if (lzw_info == (LZWInfo *) NULL)
     return((LZWInfo *) NULL);
   (void) ResetMagickMemory(lzw_info,0,sizeof(*lzw_info));
@@ -225,7 +225,7 @@
   lzw_info->code_info.bit=8*lzw_info->code_info.count;
   lzw_info->code_info.eof=MagickFalse;
   lzw_info->genesis=MagickTrue;
-  lzw_info->stack=(LZWStack *) AcquireMagickMemory(sizeof(*lzw_info->stack));
+  lzw_info->stack=(LZWStack *) AcquireAlignedMemory(1,sizeof(*lzw_info->stack));
   if (lzw_info->stack == (LZWStack *) NULL)
     {
       lzw_info=RelinquishLZWInfo(lzw_info);
diff --git a/coders/msl.c b/coders/msl.c
index e8dc984..d2346db 100644
--- a/coders/msl.c
+++ b/coders/msl.c
@@ -7590,7 +7590,7 @@
   msl_info.draw_info=(DrawInfo **) AcquireMagickMemory(
     sizeof(*msl_info.draw_info));
   /* top of the stack is the MSL file itself */
-  msl_info.image=(Image **) AcquireMagickMemory(sizeof(*msl_info.image));
+  msl_info.image=(Image **) AcquireAlignedMemory(1,sizeof(*msl_info.image));
   msl_info.attributes=(Image **) AcquireMagickMemory(
     sizeof(*msl_info.attributes));
   msl_info.group_info=(MSLGroupInfo *) AcquireMagickMemory(
diff --git a/coders/png.c b/coders/png.c
index 11f34e1..69ed1d9 100644
--- a/coders/png.c
+++ b/coders/png.c
@@ -2801,7 +2801,7 @@
             create a new object buffer.
           */
           mng_info->ob[object_id]=(MngBuffer *)
-            AcquireMagickMemory(sizeof(MngBuffer));
+            AcquireAlignedMemory(1,sizeof(MngBuffer));
           if (mng_info->ob[object_id] != (MngBuffer *) NULL)
             {
               mng_info->ob[object_id]->image=(Image *) NULL;
@@ -2944,7 +2944,7 @@
     Allocate a MngInfo structure.
   */
   have_mng_structure=MagickFalse;
-  mng_info=(MngInfo *) AcquireMagickMemory(sizeof(MngInfo));
+  mng_info=(MngInfo *) AcquireAlignedMemory(1,sizeof(MngInfo));
   if (mng_info == (MngInfo *) NULL)
     ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
   /*
@@ -3241,7 +3241,7 @@
                open alpha_blob, attached to alpha_image
         */
 
-        color_image_info=(ImageInfo *)AcquireMagickMemory(sizeof(ImageInfo));
+        color_image_info=(ImageInfo *)AcquireAlignedMemory(1,sizeof(ImageInfo));
         if (color_image_info == (ImageInfo *) NULL)
           ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
         GetImageInfo(color_image_info);
@@ -3261,7 +3261,7 @@
         if ((image_info->ping == MagickFalse) && (jng_color_type >= 12))
           {
             alpha_image_info=(ImageInfo *)
-              AcquireMagickMemory(sizeof(ImageInfo));
+              AcquireAlignedMemory(1,sizeof(ImageInfo));
             if (alpha_image_info == (ImageInfo *) NULL)
               ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
             GetImageInfo(alpha_image_info);
@@ -3709,7 +3709,7 @@
     Allocate a MngInfo structure.
   */
   have_mng_structure=MagickFalse;
-  mng_info=(MngInfo *) AcquireMagickMemory(sizeof(*mng_info));
+  mng_info=(MngInfo *) AcquireAlignedMemory(1,sizeof(*mng_info));
   if (mng_info == (MngInfo *) NULL)
     ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
   /*
@@ -3881,7 +3881,7 @@
   /*
     Allocate a MngInfo structure.
   */
-  mng_info=(MngInfo *) AcquireMagickMemory(sizeof(MngInfo));
+  mng_info=(MngInfo *) AcquireAlignedMemory(1,sizeof(MngInfo));
   if (mng_info == (MngInfo *) NULL)
     ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
   /*
@@ -7981,7 +7981,7 @@
     Allocate a MngInfo structure.
   */
   have_mng_structure=MagickFalse;
-  mng_info=(MngInfo *) AcquireMagickMemory(sizeof(MngInfo));
+  mng_info=(MngInfo *) AcquireAlignedMemory(1,sizeof(MngInfo));
   if (mng_info == (MngInfo *) NULL)
     ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed");
   /*
@@ -8629,7 +8629,7 @@
     Allocate a MngInfo structure.
   */
   have_mng_structure=MagickFalse;
-  mng_info=(MngInfo *) AcquireMagickMemory(sizeof(MngInfo));
+  mng_info=(MngInfo *) AcquireAlignedMemory(1,sizeof(MngInfo));
   if (mng_info == (MngInfo *) NULL)
     ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed");
   /*
@@ -8725,7 +8725,7 @@
     Allocate a MngInfo structure.
   */
   have_mng_structure=MagickFalse;
-  mng_info=(MngInfo *) AcquireMagickMemory(sizeof(MngInfo));
+  mng_info=(MngInfo *) AcquireAlignedMemory(1,sizeof(MngInfo));
   if (mng_info == (MngInfo *) NULL)
     ThrowWriterException(ResourceLimitError,"MemoryAllocationFailed");
   /*
diff --git a/coders/svg.c b/coders/svg.c
index 413d5af..eb9224f 100644
--- a/coders/svg.c
+++ b/coders/svg.c
@@ -259,12 +259,12 @@
   SVGInfo
     *svg_info;
 
-  svg_info=(SVGInfo *) AcquireMagickMemory(sizeof(*svg_info));
+  svg_info=(SVGInfo *) AcquireAlignedMemory(1,sizeof(*svg_info));
   if (svg_info == (SVGInfo *) NULL)
     return((SVGInfo *) NULL);
   (void) ResetMagickMemory(svg_info,0,sizeof(*svg_info));
   svg_info->text=AcquireString("");
-  svg_info->scale=(double *) AcquireMagickMemory(sizeof(*svg_info->scale));
+  svg_info->scale=(double *) AcquireAlignedMemory(1,sizeof(*svg_info->scale));
   if (svg_info->scale == (double *) NULL)
     ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
   GetAffineMatrix(&svg_info->affine);
diff --git a/coders/vid.c b/coders/vid.c
index 68cd0d0..60a62ee 100644
--- a/coders/vid.c
+++ b/coders/vid.c
@@ -139,7 +139,7 @@
   assert(exception != (ExceptionInfo *) NULL);
   assert(exception->signature == MagickSignature);
   image=AcquireImage(image_info);
-  filelist=(char **) AcquireMagickMemory(sizeof(*filelist));
+  filelist=(char **) AcquireAlignedMemory(1,sizeof(*filelist));
   if (filelist == (char **) NULL)
     ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
   filelist[0]=ConstantString(image_info->filename);
diff --git a/coders/xwd.c b/coders/xwd.c
index b8deaf4..6d53ba3 100644
--- a/coders/xwd.c
+++ b/coders/xwd.c
@@ -255,7 +255,7 @@
   /*
     Initialize the X image.
   */
-  ximage=(XImage *) AcquireMagickMemory(sizeof(*ximage));
+  ximage=(XImage *) AcquireAlignedMemory(1,sizeof(*ximage));
   if (ximage == (XImage *) NULL)
     ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
   ximage->depth=(int) header.pixmap_depth;