Page 1 of 1

libMagickWand.so.1.0.0 calling exit()

Posted: 2008-12-21T13:06:18-07:00
by naoliv
Hi!

While running a Debian package checker, I saw this:

Code: Select all

X: libmagickwand1: shlib-calls-exit usr/lib/libMagickWand.so.1.0.0
N: 
N:    The listed shared library calls the C library exit() or _exit()
N:    functions.
N:    
N:    In the case of an error, the library should instead return an
N:    appropriate error code to the calling program which can then determine
N:    how to handle the error, including performing any required clean-up.
N:    
N:    In most cases, removing the call should be discussed with upstream,
N:    particularly as it may produce an ABI change.
The same message is given for:

usr/lib/ImageMagick-6.4.8/modules-Q16/coders/jpeg.so
usr/lib/ImageMagick-6.4.8/modules-Q16/coders/msl.so
usr/lib/ImageMagick-6.4.8/modules-Q16/coders/png.so
usr/lib/ImageMagick-6.4.8/modules-Q16/coders/svg.so

Is it valid? If yes, do you plan to fix this?

Thank you!

Re: libMagickWand.so.1.0.0 calling exit()

Posted: 2008-12-21T15:21:41-07:00
by magick
The exit() calls are not problematic. They, for example, are only used in methods used exclusively by the ImageMagick command line utilities (i.e. ImportUsage()). However, its certainly simple enough to remove them. We'll have patch for the problem by sometime tomorrow.

And thanks for the problem / bug reports. The entire ImageMagick user community benefits from your efforts.