View Issue Details

IDProjectCategoryView StatusLast Update
0000014file[All Projects] Generalpublic2018-08-01 13:44
ReportercbiedlAssigned Tochristos 
PrioritynormalSeverityminorReproducibilityhave not tried
Status feedbackResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0000014: Issues with flif magic
DescriptionDebian bug: https://bugs.debian.org/864023

The current state of flif (Free Lossless Image Format) detection is fairly broken. Things don't getter by looking at the spec┬╣ as apparently implementation is somewhat different.

As far as I can tell from the flif sources and images I've created using the flif tool:

The dimension (width, height) information is at offset 6 (spec says: 7). They are certainly not short but "varint", a dynamic format that can hold arbitrary values without wasting space (more or less the way, a length information is stored in ASN.1).

And a minor issue: The trailing comma as in "8-bit/color," leads to doubled comma in the output.

No idea how to proceed from here. Maybe ask the original submitter for review, assuming they have a bigger collection of flif files?

Cheers,
    Christoph

┬╣ http://flif.info/spec.html
TagsNo tags attached.
Attach Tags

Activities

christos

2018-08-01 13:44

manager   ~0000035

Hmm, I wrote code to parse varint, but it seems that all the image examples I have work fine with the non-varint magic...

Add Note

View Status
Note
Upload Files
Maximum size: 2,097 KB

Drop files here to upload (or click)

Issue History

Date Modified Username Field Change
2018-07-22 12:50 cbiedl New Issue
2018-08-01 13:43 christos Assigned To => christos
2018-08-01 13:43 christos Status new => assigned
2018-08-01 13:44 christos Status assigned => feedback
2018-08-01 13:44 christos Note Added: 0000035