mirror of
https://github.com/unidoc/unipdf.git
synced 2025-05-09 19:29:34 +08:00
Handle improper usage of the array ending marker
This commit is contained in:
parent
a60d343750
commit
4d43867b1f
@ -1521,6 +1521,11 @@ func (parser *PdfParser) ParseIndirectObject() (PdfObject, error) {
|
||||
return &indirect, err
|
||||
}
|
||||
common.Log.Trace("Parsed object ... finished.")
|
||||
} else if bb[0] == ']' {
|
||||
// ']' not used as an array object ending marker, or array object
|
||||
// terminated multiple times. Discarding the character.
|
||||
common.Log.Debug("WARNING: ']' character not being used as an array ending marker. Skipping.")
|
||||
parser.reader.Discard(1)
|
||||
} else {
|
||||
if bb[0] == 'e' {
|
||||
lineStr, err := parser.readTextLine()
|
||||
|
Loading…
x
Reference in New Issue
Block a user