mirror of
https://invent.kde.org/frameworks/kimageformats.git
synced 2025-05-28 00:30:23 -04:00
xcf: Return early if seek fails
BUGS: 498381
This commit is contained in:
parent
bda8487147
commit
f296c38daf
@ -900,7 +900,9 @@ bool XCFImageFormat::readXCF(QIODevice *device, QImage *outImage)
|
|||||||
while (!layer_offsets.isEmpty()) {
|
while (!layer_offsets.isEmpty()) {
|
||||||
qint64 layer_offset = layer_offsets.pop();
|
qint64 layer_offset = layer_offsets.pop();
|
||||||
|
|
||||||
xcf_io.device()->seek(layer_offset);
|
if (!xcf_io.device()->seek(layer_offset)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (!loadLayer(xcf_io, xcf_image)) {
|
if (!loadLayer(xcf_io, xcf_image)) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user