D20145: Fix RGBHandler::canRead

Albert Astals Cid noreply at phabricator.kde.org
Sun Mar 31 18:25:47 BST 2019


aacid created this revision.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
aacid requested review of this revision.

REVISION SUMMARY
  As one can see in SGIImage::readImage the accepted images are
  
    _stream >> u16;
    if (u16 != 0x01da) {
        return false;
    }
    
    _stream >> _rle;
    if (_rle > 1) {
        return false;
    }
  
  so not only \x01\xda\x01 but also \x01\xda\x00

REPOSITORY
  R287 KImageFormats

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D20145

AFFECTED FILES
  src/imageformats/rgb.cpp

To: aacid
Cc: kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190331/781fa79f/attachment.html>


More information about the Kde-frameworks-devel mailing list