unidoc / unipdf

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

Prevent panics #305

Closed adrg closed 4 years ago

adrg commented 4 years ago

Related to https://github.com/unidoc/unipdf/issues/302 and https://github.com/unidoc/unipdf/issues/304.


This change is Reviewable

codecov[bot] commented 4 years ago

Codecov Report

Merging #305 into development will decrease coverage by 5.86%. The diff coverage is 34.14%.

Impacted file tree graph

@@               Coverage Diff               @@
##           development     #305      +/-   ##
===============================================
- Coverage        62.24%   56.37%   -5.87%     
===============================================
  Files              235      235              
  Lines            45395    45430      +35     
===============================================
- Hits             28256    25612    -2644     
- Misses           16498    16519      +21     
- Partials           641     3299    +2658     
Impacted Files Coverage Δ
core/security/crypt/filter_aesv2.go 23.07% <0.00%> (-4.93%) :arrow_down:
core/security/crypt/filter_aesv3.go 25.00% <0.00%> (-7.40%) :arrow_down:
core/security/crypt/filter_v2.go 80.30% <0.00%> (-8.93%) :arrow_down:
core/security/ecb.go 56.25% <0.00%> (-15.18%) :arrow_down:
internal/cmap/bcmaps/cmaps.go 82.40% <ø> (-7.92%) :arrow_down:
internal/textencoding/differences.go 57.14% <0.00%> (-2.68%) :arrow_down:
render/internal/context/imagerender/path.go 0.00% <0.00%> (ø)
core/security/standard_r6.go 71.14% <44.00%> (-13.80%) :arrow_down:
extractor/text.go 63.56% <45.45%> (-8.11%) :arrow_down:
model/internal/fonts/ttfparser.go 68.00% <100.00%> (-6.94%) :arrow_down:
... and 154 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 86a0336...20c3245. Read the comment docs.