Commit 80de4789 authored by Albert Astals Cid's avatar Albert Astals Cid

Fix assert on malformed documents

parent 498883b5
Pipeline #69274 passed with stages
in 15 minutes and 18 seconds
......@@ -1441,7 +1441,12 @@ FormFieldChoice::FormFieldChoice(PDFDoc *docA, Object &&aobj, const Ref refA, Fo
} else if (obj1.isArray()) {
for (int i = 0; i < numChoices; i++) {
for (int j = 0; j < obj1.arrayGetLength(); j++) {
Object obj2 = obj1.arrayGet(j);
const Object obj2 = obj1.arrayGet(j);
if (!obj2.isString()) {
error(errSyntaxError, -1, "FormWidgetChoice:: V array contains a non string object");
continue;
}
bool matches = false;
if (choices[i].exportVal) {
......
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