Skip to content

Null Pointer Dereference at DistortImage of MagickCore/distort.c #780

Closed
@viennadd

Description

@viennadd

Hi all,

Another potential NPD at resample_filter=AcquireResampleFilterThreadSet(image of DistortImage, there is no null check after this acquiring, it then dereference the pointer in after. It could lead to process crash in acquiring when there is not enough available memory .

This seems a similar case of #775

    status=MagickTrue;
    progress=0;
    GetPixelInfo(distort_image,&zero);
    resample_filter=AcquireResampleFilterThreadSet(image,      // AcquireResampleFilterThreadSet is able to return NULL (when acquiring memory hitting oom)
      UndefinedVirtualPixelMethod,MagickFalse,exception);
    distort_view=AcquireAuthenticCacheView(distort_image,exception);

Regards,
Alex, SourceBrella Inc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions