this is bug ?

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
onesoft

this is bug ?

Post by onesoft »

Core occurred during the execution
This issue is raised from the function below it.
(image.c)
MagickExport ImageInfo *AcquireImageInfo(void)
{
ImageInfo
*image_info;

image_info=(ImageInfo *) AcquireMagickMemory(sizeof(*image_info));
if (image_info == (ImageInfo *) NULL)
ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
GetImageInfo(image_info);
return(image_info);

}

Under the above functions are being modified as disagree?
Memory allocation fails, it still function despite calls by GetImageInfo
Core occurs
==>
MagickExport ImageInfo *AcquireImageInfo(void)
{
ImageInfo
*image_info;

image_info=(ImageInfo *) AcquireMagickMemory(sizeof(*image_info));
if (image_info == (ImageInfo *) NULL){
ThrowFatalException(ResourceLimitFatalError,"MemoryAllocationFailed");
return(image_info);
};
GetImageInfo(image_info);
return(image_info);

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

Re: this is bug ?

Post by magick »

ThrowFatalException() calls _exit(1) and the program should exit. You suggest it does not. Can you post a method to reliably reproduce the problem?
onesoft

Re: this is bug ?

Post by onesoft »

I did not even look at the function, did not see the mistakes ThrowFatalException handeut.

Sources from the core occurs on a particular image

Image *image;
ImageInfo *image_info;
image_info=CloneImageInfo((ImageInfo *) NULL); <- Core points raised
(void)strcpy(image_info->filename, src_path);
image=ReadImage(image_info, &exception); <- Core points raised

So source of concern mentioned above were found to function,
If the error until the end of the function ThrowFatalException once again he will not look like
The image is a TIFF format image information, we want to use it for more than libtiff without action.
But the program has occurred in coded on the Unix core,
Loading the image in the viewer window in the following warning message appears
unknown field with tag 292(0x124) encountered. 'TIFFReadDirectory'
TIFF image as a JPEG image resize operations due to difficulties of trying to form a variety of images
There are many. Recommendations worth asking if the solution is.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: this is bug ?

Post by magick »

We have not seen this exception before. Are you using a modern version of ImageMagick, the latest is 6.4.2-6? Do you have more than version of ImageMagick installed? What OS are you using? Did you build from source? If so, type
  • make check
and see if the validation tests pass.
Post Reply