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

Code cleanup and PDF parser fix #280

Merged
merged 5 commits into from
Oct 27, 2017
Merged

Conversation

david-russo
Copy link
Member

@david-russo david-russo commented Oct 24, 2017

  • Removed obsolete md5.pl and userhome scripts
  • Removed .gitignore rules specific to developers' individual environments
  • Removed exception handling for an exception type which is never thrown
  • Fixed parsing of #-escaped characters in PDF name objects

Name object names can contain characters escaped by `#` signs, where
the `#` is followed by two hexadecimal values denoting the escaped
character's binary representation.

Prior to this change, the code would shift the first hex. value outside
the range of the byte in which it belonged, and would then also attempt
to interpret the decoded value as being outside of the name object,
possibly delimiting the next PDF object in the file.
@codecov
Copy link

codecov bot commented Oct 24, 2017

Codecov Report

Merging #280 into integration will increase coverage by 0.03%.
The diff coverage is 25%.

Impacted file tree graph

@@                Coverage Diff                @@
##             integration     #280      +/-   ##
=================================================
+ Coverage          42.99%   43.02%   +0.03%     
  Complexity          3425     3425              
=================================================
  Files                394      394              
  Lines              31708    31679      -29     
  Branches            6176     6176              
=================================================
- Hits               13632    13631       -1     
+ Misses             15642    15614      -28     
  Partials            2434     2434
Impacted Files Coverage Δ Complexity Δ
...va/edu/harvard/hul/ois/jhove/module/iff/Chunk.java 50% <ø> (ø) 1 <0> (ø) ⬇️
...harvard/hul/ois/jhove/module/wave/FormatChunk.java 53.01% <ø> (ø) 7 <0> (ø) ⬇️
...rvard/hul/ois/jhove/module/wave/ListInfoChunk.java 22.35% <0%> (+2.35%) 4 <0> (ø) ⬇️
...a/edu/harvard/hul/ois/jhove/module/AiffModule.java 13.58% <0%> (+0.25%) 2 <0> (ø) ⬇️
...a/edu/harvard/hul/ois/jhove/module/WaveModule.java 51.4% <0%> (+0.48%) 30 <0> (ø) ⬇️
.../hul/ois/jhove/module/wave/AssocDataListChunk.java 0% <0%> (ø) 0 <0> (ø) ⬇️
...du/harvard/hul/ois/jhove/module/pdf/Tokenizer.java 76.94% <100%> (+0.06%) 91 <0> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4a4b6bb...119c599. Read the comment docs.

@carlwilson carlwilson merged commit f0e9222 into openpreserve:integration Oct 27, 2017
@david-russo david-russo deleted the review branch October 28, 2017 00:01
@carlwilson carlwilson added this to the Release v1.18 milestone Nov 6, 2017
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.

2 participants