Skip to content

null pointer dereference in GetOpenCLCacheDirectory #790

Closed
@bestshow

Description

@bestshow

Here is the critical code: (in GetOpenCLCacheDirectory)

                  temp=(char*) AcquireMagickMemory(strlen(path)+1);        //326
                  CopyMagickString(temp,path,strlen(path)+1);

AcquireMagickMemory(...) may return NULL, so the following operations on the "temp" will dereference null pointer to cause memory error.

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