Bug 1218567

Summary: Libtiff5 hangs with processing multi-page tif files, libtiff6 works OK
Product: [openSUSE] openSUSE Distribution Reporter: Nikolai Nikolaevskii <kaykaykay123>
Component: BasesystemAssignee: Michael Vetter <mvetter>
Status: RESOLVED WONTFIX QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Leap 15.5   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE Leap 15.5   
Whiteboard:
Found By: Community User Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: Multipage tif example

Description Nikolai Nikolaevskii 2024-01-05 11:28:47 UTC
Corner case. Not my problem, just informing.

Problems with converting multi-page tif files to png with ImageMagick:
----------------------------------------------------------------------
xxx@vm162:~> /usr/bin/convert fax000000132.tif test.png
*** stack smashing detected ***: terminated
Aborted (core dumped)
----------------------------------------------------------------------

Problem was solved by installing libtiff6 from Graphics repo:
----------------------------------------------------------------------
zypper addrepo https://download.opensuse.org/repositories/graphics/15.5/graphics.repo
zypper refresh
zypper install libtiff6
----------------------------------------------------------------------

According to user this issue doesn’t appear on Tumbleweed.

Forum thread: https://forums.opensuse.org/t/imagemagick-stack-smashing-detected-terminated/171274
Comment 1 Michael Vetter 2024-01-08 14:49:31 UTC
> Problems with converting multi-page tif files to png with ImageMagick

Please attach the file in question so we can reproduce it.

> https://forums.opensuse.org/t/imagemagick-stack-smashing-detected-terminated/171274
> -> "The file is a multipage TIFF (created by hylafax), single page files don’t produce issues."

Unsure whether related but I remember that last September Axel Braun wrote me that hylafax needs tiff < 4.6.0. That update of tiff removed a lot of binaries (that had plenty of CVEs over the last years) like fax2ps etc.
Might be interesting to know more about how the file was created.

tiff had plenty of (security) bugs since a long time so I'm not surprised something "hangs". Might be we have this fixed in recent versions.
As far as I see user `a017886` even sais:

> Issue is solved.
Comment 2 Nikolai Nikolaevskii 2024-01-11 16:35:30 UTC
Created attachment 871790 [details]
Multipage tif example

Created with IrfanView. Open with Okular or Xreader to see multi page.
Comment 3 Nikolai Nikolaevskii 2024-01-11 16:43:42 UTC
(In reply to Michael Vetter from comment #1)
> As far as I see user `a017886` even sais:
> 
> > Issue is solved.

Yes. You can close this bug as "Resolved Wontfix".
I've created this bug report only for saving info in the database.
Comment 4 Michael Vetter 2024-01-12 09:25:59 UTC
(In reply to Nikolai Nikolaevskii from comment #3)
> (In reply to Michael Vetter from comment #1)
> > As far as I see user `a017886` even sais:
> > 
> > > Issue is solved.
> 
> Yes. You can close this bug as "Resolved Wontfix".
> I've created this bug report only for saving info in the database.

ok