unidoc / unipdf

Golang PDF library for creating and processing PDF files (pure go)
https://unidoc.io
Other
2.54k stars 250 forks source link

Fix for crash in CCITT decoder. Resolves #314. #315

Closed gunnsth closed 4 years ago

gunnsth commented 4 years ago

Resolves #314


This change is Reviewable

codecov[bot] commented 4 years ago

Codecov Report

Merging #315 into development will increase coverage by 4.08%. The diff coverage is 0.00%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development     #315      +/-   ##
===============================================
+ Coverage        52.29%   56.37%   +4.08%     
===============================================
  Files              235      235              
  Lines            45434    45436       +2     
===============================================
+ Hits             23758    25613    +1855     
+ Misses           18610    16522    -2088     
- Partials          3066     3301     +235     
Impacted Files Coverage Δ
internal/ccittfax/encoder.go 95.14% <0.00%> (-0.72%) :arrow_down:
internal/jbig2/document/segments/text-region.go 41.05% <0.00%> (+0.22%) :arrow_up:
...ernal/jbig2/document/segments/symbol-dictionary.go 38.49% <0.00%> (+0.23%) :arrow_up:
internal/jbig2/bitmap/bitmap.go 76.76% <0.00%> (+0.28%) :arrow_up:
model/writer.go 75.67% <0.00%> (+0.42%) :arrow_up:
internal/jbig2/document/segments/generic-region.go 47.75% <0.00%> (+1.18%) :arrow_up:
fdf/parser.go 40.27% <0.00%> (+1.38%) :arrow_up:
internal/jbig2/document/segments/kind.go 11.59% <0.00%> (+1.44%) :arrow_up:
model/reader.go 46.41% <0.00%> (+1.67%) :arrow_up:
contentstream/contentstream.go 76.36% <0.00%> (+1.81%) :arrow_up:
... and 47 more

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 61ff519...64434c3. Read the comment docs.