[Qt-interest] QImageReader.... Can read strange images.
Guido Seifert
Wargand at gmx.de
Sat Aug 7 23:58:24 CEST 2010
Hi,
I just discovered something strange regarding QImageReader. In my ComicReader I have an option to add additional informations about the comic in an xml format to the archive. Filename always is meta.cml. The content is a normal xml format, starting with
<?xml version='1.1' encoding='UTF-8' standalone='yes'?>
So far so good. Lately I discovered a reproducible crash in my program. I found the reason was that QImageReader returned true for my .cml file in the archive. I don't know when this started, the oldest Qt version I use is 4.6.2, but it must be relatively new. The code is almost five years old and I doubt this crash would have been undetected that long.
Regression? Or could it be that QImageReader suddenly looks at the first line and decides...xml....must be an SVG format -> I can read.
Guido
--
GMX DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 für nur 19,99 ¿/mtl.!*
http://portal.gmx.net/de/go/dsl
More information about the Qt-interest-old
mailing list