Clip path is not working in x64

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
SeverinP
Posts: 2
Joined: 2012-08-08T22:25:53-07:00
Authentication code: 67789

Clip path is not working in x64

Post by SeverinP » 2012-08-08T22:29:13-07:00

I'v build VisualDynamicMT project in x64 configuration. ClipImagePath method returns null for 8BIM:1999,2998:#1 path name. But in x32 configuration it returns valid svg xml. The same thing happens with x64 and win32 distributives of IM.

SeverinP
Posts: 2
Joined: 2012-08-08T22:25:53-07:00
Authentication code: 67789

Re: Clip path is not working in x64

Post by SeverinP » 2012-08-09T20:14:27-07:00

I'v found a bug. The property.c file has a code:

if (~(1UL*count) >= (MaxTextExtent-1))

On x64 this code runs to false because 1UL is unsigned long and has size = 4, count is __int64 and has size 8, 1UL*count will be casted to signed __int64... So ~(1UL*count) will be negative!

User avatar
magick
Site Admin
Posts: 11066
Joined: 2003-05-31T11:32:55-07:00

Re: Clip path is not working in x64

Post by magick » 2012-08-10T04:00:57-07:00

Thanks for the bug report. We'll get a patch into ImageMagick by sometime tomorrow.

Post Reply