lib/hexapdf/parser.rb in hexapdf-0.15.4 vs lib/hexapdf/parser.rb in hexapdf-0.15.5

- old
+ new

@@ -261,12 +261,12 @@ raise_malformed("Invalid cross-reference subsection start", pos: @tokenizer.pos) end @tokenizer.skip_whitespace start.upto(start + number_of_entries - 1) do |oid| - pos, gen, type = @tokenizer.next_xref_entry do |matched_size| + pos, gen, type = @tokenizer.next_xref_entry do |recoverable| maybe_raise("Invalid cross-reference entry", pos: @tokenizer.pos, - force: !matched_size) + force: !recoverable) end if xref.entry?(oid) next elsif type == 'n' if pos == 0 || gen > 65535