[Pkg-kde-extras] Bug#351931: digikam confused : tries to open JPG files with dcraw

Anthony Jones debianbts at antjones.fastmail.fm
Wed Feb 8 21:48:03 UTC 2006


I'm also seeing this bug on PPC (digikam 0.8.1-2). It looks like it
might be an endianness bug in
digikam-0.8.1/digikam/utilities/imageeditor/imlibinterface.cpp:

int ImlibInterface::fileFormat(const QString& filePath)
{
...
    unsigned short jpegID    = 0xD8FF;
...
    if (memcmp(&header, &jpegID, 2) == 0)            // JPEG file ?
    
Comparing the value of an unsigned short with a char array doesn't look
right to me (but then it's been a while since I've programmed in C/C++!)

Anthony




More information about the pkg-kde-extras mailing list