Temp files always created in current directory when image is read from stdin

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
djbcmp
Posts: 8
Joined: 2015-02-05T08:20:54-07:00
Authentication code: 6789

Temp files always created in current directory when image is read from stdin

Post by djbcmp »

Whenever I display an image from stdin, like this:

Code: Select all

$ cat myfile.jpg | display -
"display" creates temp files in the current directory, no matter how I set ImageMagick's environment variables MAGICK_TMPDIR, MAGICK_TEMPORARY_PATH, etc. This would appear to be a bug.

The temp files have names like "magickh9EMwm". I can see them getting created by monitoring the directory:

Code: Select all

$ inotifywait -m -e create mydirectory
This is on Ubuntu 14.04. Version info:

Code: Select all

$ display --version
Version: ImageMagick 6.7.7-10 2014-03-06 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP  
broucaries
Posts: 467
Joined: 2008-12-21T11:51:10-07:00

Re: Temp files always created in current directory when image is read from stdin

Post by broucaries »

If true this is a huge security bug
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Temp files always created in current directory when image is read from stdin

Post by fmw42 »

I see no such behavior in IM 6.9.1.10 Q16 Mac OSX Snow Leopard. No temp file is created in the current directory as far as I can tell. IM 6.7.7.10 is about 140 versions old. This issue has probably been long fixed. Try the command on a newer version of IM or perhaps upgrade.
Post Reply