Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Frameworks
KImageFormats
Commits
a8a477ae
Commit
a8a477ae
authored
Sep 23, 2022
by
Aleix Pol Gonzalez
🐧
Browse files
pcx: Do not support sequential devices
We need QIODevice::pos() to work in QDataStream &operator>>.
BUG: 459541
parent
2f27dff4
Pipeline
#236416
passed with stage
in 3 minutes and 4 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
src/imageformats/pcx.cpp
View file @
a8a477ae
...
...
@@ -684,6 +684,12 @@ bool PCXHandler::canRead(QIODevice *device)
return
false
;
}
// We do not support sequential images
// We need to know the current position to properly read the header
if
(
device
->
isSequential
())
{
return
false
;
}
qint64
oldPos
=
device
->
pos
();
char
head
[
1
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment