JPEGWarningHandler() bringing down site?

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
SpringsTea
Posts: 3
Joined: 2014-07-03T07:07:53-07:00
Authentication code: 6789

JPEGWarningHandler() bringing down site?

Post by SpringsTea »

Hi all.

I didn't implement ImageMagick on our site, so I don't know much about it, but hopefully I can give enough relevant information.
My site has been going down periodically every week, and my hosting provider hasn't been able to give me a straight answer as to why.

The error logs seem to point to our ImageMagick code:

convert: Corrupt JPEG data: premature end of data segment `/home/wwwtrend/public_html/uploads/c41756aa2124727ffc48e68382a70477-72016939?ts=1402016939130-2a.jpg' @ warning/jpeg.c/JPEGWarningHandler/348.
convert: Premature end of JPEG file `/home/wwwtrend/public_html/uploads/c41756aa2124727ffc48e68382a70477-72016939?ts=1402016939130-2a.jpg' @ warning/jpeg.c/JPEGWarningHandler/348.
convert: Corrupt JPEG data: premature end of data segment `/home/wwwtrend/public_html/uploads/c41756aa2124727ffc48e68382a70477-72016939?ts=1402016939130-2a.jpg' @ warning/jpeg.c/JPEGWarningHandler/348.


I looked for information about JPEGWarningHandler and this page: http://xforce.iss.net/xforce/xfdb/74658
Which say something about a vulnerability that causes memory exaustion. I dont know if this is related to my problem, if this can happen on accedent, or if some one out there is making a concious effort.

Please help.
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: JPEGWarningHandler() bringing down site?

Post by dlemstra »

What is your ImageMagick version?
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
SpringsTea
Posts: 3
Joined: 2014-07-03T07:07:53-07:00
Authentication code: 6789

Re: JPEGWarningHandler() bringing down site?

Post by SpringsTea »

ImageMagick 6.7.9-10
SpringsTea
Posts: 3
Joined: 2014-07-03T07:07:53-07:00
Authentication code: 6789

Re: JPEGWarningHandler() bringing down site?

Post by SpringsTea »

Does anyone have any information on what could be causing this??
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: JPEGWarningHandler() bringing down site?

Post by fmw42 »

What was the exact command used when this failed? What platform?

Can you post a link to an example JPEG file that fails or is this failing upon creation of a jpeg file?

This may have been fixed by later releases of IM. Your version of IM is almost 200 versions old. You should probably upgrade you delegate libraries, especially, libjpeg and then upgrade IM.

I do not know if this is related, but there was vulnerability issue that I believe has a patch. See viewtopic.php?f=4&t=20629
Post Reply