Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makes PDF files load when xrefEntry is undefined #4606

Merged
merged 1 commit into from
Apr 13, 2014

Conversation

timvandermeij
Copy link
Contributor

@@ -1100,7 +1100,8 @@ var XRef = (function XRefClosure() {

getEntry: function XRef_getEntry(i) {
var xrefEntry = this.entries[i];
if (xrefEntry !== null && !xrefEntry.free && xrefEntry.offset) {
if (xrefEntry !== undefined && xrefEntry !== null && !xrefEntry.free &&
xrefEntry.offset) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just if (xrefEntry && !xrefEntry.free && xrefEntry.offset) { instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. I have updated the commit.

@timvandermeij
Copy link
Contributor Author

/botio test

@pdfjsbot
Copy link

From: Bot.io (Windows)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://107.22.172.223:8877/2c1680e376f6696/output.txt

@pdfjsbot
Copy link

From: Bot.io (Linux)


Received

Command cmd_test from @timvandermeij received. Current queue size: 0

Live output at: http://107.21.233.14:8877/a428071a3f9ee00/output.txt

@pdfjsbot
Copy link

From: Bot.io (Windows)


Success

Full output at http://107.22.172.223:8877/2c1680e376f6696/output.txt

Total script time: 21.62 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

@pdfjsbot
Copy link

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/a428071a3f9ee00/output.txt

Total script time: 25.68 mins

  • Font tests: Passed
  • Unit tests: Passed
  • Regression tests: Passed

yurydelendik added a commit that referenced this pull request Apr 13, 2014
Makes PDF files load when xrefEntry is undefined
@yurydelendik yurydelendik merged commit bb739c0 into mozilla:master Apr 13, 2014
@timvandermeij timvandermeij deleted the xrefentry branch April 13, 2014 11:06
@bthorben
Copy link
Contributor

You are welcome :) It's great to see that this was useful and even better that some problems are already fixed. We will run the tests again after easter and publish an updated report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants