Skip to content

Panic during outline tree validation #798

@liron-l

Description

@liron-l

The following code panics:

if count == nil || *count == 0 {
			if xRefTable.ValidationMode == model.ValidationStrict {
				return errors.New("pdfcpu: validateOutlineTree: non-empty outline item dict needs \"Count\" <> 0")
			}
			*count = c
		}

count is nil hence *c will panic.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions