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

Fixes off-by-one error when finding missing endstream #4404

Merged
merged 1 commit into from
Mar 6, 2014

Conversation

timvandermeij
Copy link
Contributor

Fixes #4387. Also removed unused variable ii.

Short explanation: we start with i=0 and j=0. Assume we find the e of endstream immediately. Then j becomes 1, but i is still 0. i will be 1 in the next iteration, but when the n from endstream is then found j becomes 2, et cetera. In the end we will make j equal 9 and then stop, but i will then be 8. Therefore this patch increases i by 1 to make them equal.

@timvandermeij
Copy link
Contributor Author

/botio test

@pdfjsbot
Copy link

pdfjsbot commented Mar 6, 2014

From: Bot.io (Windows)


Received

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

Live output at: http://107.22.172.223:8877/a0bae576605d244/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Mar 6, 2014

From: Bot.io (Linux)


Received

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

Live output at: http://107.21.233.14:8877/427abca574f8ebb/output.txt

@pdfjsbot
Copy link

pdfjsbot commented Mar 6, 2014

From: Bot.io (Linux)


Success

Full output at http://107.21.233.14:8877/427abca574f8ebb/output.txt

Total script time: 25.30 mins

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

@pdfjsbot
Copy link

pdfjsbot commented Mar 6, 2014

From: Bot.io (Windows)


Failed

Full output at http://107.22.172.223:8877/a0bae576605d244/output.txt

Total script time: 35.50 mins

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

Image differences available at: http://107.22.172.223:8877/a0bae576605d244/reftest-analyzer.html#web=eq.log

yurydelendik added a commit that referenced this pull request Mar 6, 2014
Fixes off-by-one error when finding missing endstream
@yurydelendik yurydelendik merged commit 3e93104 into mozilla:master Mar 6, 2014
@yurydelendik
Copy link
Contributor

thanks

@timvandermeij timvandermeij deleted the invalid-number-e branch March 6, 2014 23:39
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.

stack trace at XRef_fetchUncompressed
3 participants