Invalid PNGs crash Hugin

Bug #679605 reported by beanss
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Hugin
Fix Released
Medium
Unassigned

Bug Description

I came across some PNG images which would always crash hugin as soon as they are loaded.

Digging a little deeper I discovered that the PNG file had been truncated (specifically... the last PNG IDAT chunk wasn\'t the number of bytes it should have been).

Most image viewers I tried opened this file without a problem. Hugin should either load the image or (better still) give an error saying the image is invalid.

This was only tested on windows. I have attached an example truncated PNG file.

Tags: gsoc hugin
Revision history for this message
beanss (beanss) wrote :

The file truncated.png was added: truncated PNG file.

Revision history for this message
beanss (beanss) wrote :

I should add that I was using Hugin 2010.2.0

tmodes (tmodes)
Changed in hugin:
importance: Undecided → Medium
status: New → Confirmed
tags: added: hugin
Revision history for this message
Andreas Metzler (k-launchpad-downhill-at-eu-org) wrote :

Still applies to 2011.0.0 beta3.

Yuv (yuv)
tags: added: gsoc
Revision history for this message
tmodes (tmodes) wrote :

Fixed in repository. Reading of invalid images is caught now.

Changed in hugin:
milestone: none → 2016.4beta1
status: Confirmed → Fix Committed
tmodes (tmodes)
Changed in hugin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.