The OpenBlob function cuts off '%' from a file path.

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
wizard29
Posts: 58
Joined: 2014-03-21T00:40:16-07:00
Authentication code: 6789
Location: Russia, Saint Petersburg
Contact:

The OpenBlob function cuts off '%' from a file path.

Post by wizard29 »

Hi.

I have a problem with a file saving. When a file path contains something like this: "c:\tmp\%%\somefile.png" I catch an exception like this: "WriteBlob Failed `c:\tmp\%\somefile.png' @ error/png.c/MagickPNGErrorHandler/1630".

I traced inside the library and found the problem here: blob.c lines 2542-2560.

I use the 6.9.3-7 IM version under the Windows 7,8,10.

Does a workaround exist?
Last edited by wizard29 on 2016-06-10T01:51:20-07:00, edited 1 time in total.
wizard29
Posts: 58
Joined: 2014-03-21T00:40:16-07:00
Authentication code: 6789
Location: Russia, Saint Petersburg
Contact:

Re: The OpenBlob function cuts off '%' from a file path.

Post by wizard29 »

The workaround: to replace each '%' symbol by "%%" in a file path.
Post Reply