Artur Adib 13 years ago
parent
commit
775290d698
  1. 8
      src/obj.js

8
src/obj.js

@ -319,8 +319,8 @@ var XRef = (function XRefClosure() {
entry.uncompressed = true; entry.uncompressed = true;
// Validate entry obj // Validate entry obj
if ( !isInt(entry.offset) || !isInt(entry.gen) || if (!isInt(entry.offset) || !isInt(entry.gen) ||
!(entry.free || entry.uncompressed) ) { !(entry.free || entry.uncompressed)) {
error('Invalid entry in XRef subsection: ' + first + ', ' + count); error('Invalid entry in XRef subsection: ' + first + ', ' + count);
} }
@ -330,8 +330,8 @@ var XRef = (function XRefClosure() {
} }
// Sanity check: as per spec, first object must have these properties // Sanity check: as per spec, first object must have these properties
if ( this.entries[0] && if (this.entries[0] &&
!(this.entries[0].gen === 65535 && this.entries[0].free) ) !(this.entries[0].gen === 65535 && this.entries[0].free))
error('Invalid XRef table: unexpected first object'); error('Invalid XRef table: unexpected first object');
// Sanity check // Sanity check

Loading…
Cancel
Save