From: cristy Date: Tue, 14 Jan 2014 23:53:40 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~2872 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e47080a0c3fea8233d0ade908981b3c09cca422e;p=imagemagick --- diff --git a/MagickCore/policy.c b/MagickCore/policy.c index da37fe29b..c53151611 100644 --- a/MagickCore/policy.c +++ b/MagickCore/policy.c @@ -770,6 +770,7 @@ static MagickBooleanType LoadPolicyList(const char *xml,const char *filename, ResourceLimitError,"MemoryAllocationFailed","`%s'", policy_info->name); policy_info=(PolicyInfo *) NULL; + continue; } GetMagickToken(q,(const char **) NULL,token); if (*token != '=') @@ -928,7 +929,7 @@ static MagickBooleanType LoadPolicyLists(const char *filename, if (policy_info == (PolicyInfo *) NULL) { (void) ThrowMagickException(exception,GetMagickModule(), - ResourceLimitError,"MemoryAllocationFailed","`%s'",policy_info->name); + ResourceLimitError,"MemoryAllocationFailed","`%s'",p->name); continue; } (void) ResetMagickMemory(policy_info,0,sizeof(*policy_info)); diff --git a/MagickCore/type.c b/MagickCore/type.c index a79c27c3c..8e8f79d03 100644 --- a/MagickCore/type.c +++ b/MagickCore/type.c @@ -1094,6 +1094,7 @@ static MagickBooleanType LoadTypeList(const char *xml,const char *filename, (void) ThrowMagickException(exception,GetMagickModule(), ResourceLimitError,"MemoryAllocationFailed","`%s'",type_info->name); type_info=(TypeInfo *) NULL; + continue; } GetMagickToken(q,(const char **) NULL,token); if (*token != '=') diff --git a/MagickWand/drawing-wand.c b/MagickWand/drawing-wand.c index 273a5360f..ef8e5f366 100644 --- a/MagickWand/drawing-wand.c +++ b/MagickWand/drawing-wand.c @@ -5504,7 +5504,7 @@ WandExport MagickBooleanType DrawSetStrokeDashArray(DrawingWand *wand, { CurrentContext->dash_pattern=(double *) AcquireQuantumMemory((size_t) n_new+1UL,sizeof(*CurrentContext->dash_pattern)); - if (!CurrentContext->dash_pattern) + if (CurrentContext->dash_pattern == (double *) NULL) { ThrowDrawException(ResourceLimitError,"MemoryAllocationFailed", wand->name); diff --git a/coders/pcd.c b/coders/pcd.c index 62e16a98d..5be029184 100644 --- a/coders/pcd.c +++ b/coders/pcd.c @@ -191,7 +191,10 @@ static MagickBooleanType DecodeImage(Image *image,unsigned char *luma, bits=32; p=buffer+0x800; for (i=0; i < 3; i++) + { pcd_table[i]=(PCDTable *) NULL; + pcd_length=0; + } for (i=0; i < (image->columns > 1536 ? 3 : 1); i++) { PCDGetBits(8);