Commit 68ef84e5 authored by Albert Astals Cid's avatar Albert Astals Cid
Browse files

JPXStream::init: ignore dict Length if clearly broken

Fixes issue #805
parent b224e2f5
Pipeline #48950 passed with stages
in 26 minutes and 58 seconds
......@@ -219,7 +219,7 @@ void JPXStream::init()
}
int bufSize = BUFFER_INITIAL_SIZE;
if (oLen.isInt()) bufSize = oLen.getInt();
if (oLen.isInt() && oLen.getInt() > 0) bufSize = oLen.getInt();
bool indexed = false;
if (cspace.isArray() && cspace.arrayGetLength() > 0) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment