Skip to content

Commit

Permalink
Added extra policy check.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Sep 11, 2021
1 parent a39da2b commit 899d06f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion coders/svg.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
#include "magick/option.h"
#include "magick/pixel-accessor.h"
#include "magick/pixel-private.h"
#include "magick/policy.h"
#include "magick/property.h"
#include "magick/quantum-private.h"
#include "magick/resource_.h"
Expand Down Expand Up @@ -3731,7 +3732,11 @@ static Image *ReadSVGImage(const ImageInfo *image_info,ExceptionInfo *exception)
return(image);
#endif
}
image=RenderMSVGImage(image_info,image,exception);
status=IsRightsAuthorized(CoderPolicyDomain,ReadPolicyRights,"MSVG");
if (status == MagickFalse)
image=DestroyImageList(image);
else
image=RenderMSVGImage(image_info,image,exception);
return(image);
}

Expand Down

0 comments on commit 899d06f

Please sign in to comment.