diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-10-19 15:52:35 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-10-20 07:12:27 +0000 |
commit | cba6b5c3a1e30757c71b905f368d38c2b123f85e (patch) | |
tree | eec0d24386d42b3cbbac522f2831973519505dc1 /src | |
parent | 3c68f26c052b06da9b43bb775cbe5a539fccb0c3 (diff) | |
download | qtimageformats-cba6b5c3a1e30757c71b905f368d38c2b123f85e.tar.gz |
DDS: Bail out on failure to detect the format.
Task-number: QTBUG-48851
Change-Id: Iaf2c2b36539412a341edb721a135f36a97be4b83
Reviewed-by: aavit <eirik.aavitsland@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/imageformats/dds/qddshandler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/imageformats/dds/qddshandler.cpp b/src/plugins/imageformats/dds/qddshandler.cpp index 50ac67c..6c53420 100644 --- a/src/plugins/imageformats/dds/qddshandler.cpp +++ b/src/plugins/imageformats/dds/qddshandler.cpp @@ -1569,6 +1569,8 @@ bool QDDSHandler::ensureScanned() const return false; that->m_format = getFormat(m_header); + if (that->m_format == FormatUnknown) + return false; m_scanState = ScanSuccess; return true; |