Skip to content

[graphicsmagick] Windows x64 static does not build correctly #53407

Description

@preoteasa

Is your feature request related to a problem? Please describe.

The Windows x64 static build does not define the type magick_uintptr_t properly. InitializeMagick(NULL)
crashes because of the statement

alligned_p=(void*) RoundUpToAlignment((magick_uintptr_t)alloc_p+sizeof(void *),alignment);

The the conversion to magick_uintptr_t of alloc_p removes the most significant bits.

Proposed solution

The definition of magick_uintptr_t should be fixed.

Describe alternatives you've considered

It seems enough to define WIN64 when compiling, but I do not know how to pass this when compiling via vcpkg.

Metadata

Metadata

Assignees

No one assigned

    Labels

    category:port-featureThe issue is with a library, which is requesting new capabilities that didn’t exist

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions