Skip to content

Harden document parsing security defaults#1934

Merged
PrzemyslawKlys merged 18 commits into
masterfrom
codex/security-posture-hardening
Jun 17, 2026
Merged

Harden document parsing security defaults#1934
PrzemyslawKlys merged 18 commits into
masterfrom
codex/security-posture-hardening

Address security review bounds checks

e508095
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Jun 17, 2026 in 1s

73.33% (-0.03%) compared to e41b6e5

View this Pull Request on Codecov

73.33% (-0.03%) compared to e41b6e5

Details

Codecov Report

❌ Patch coverage is 63.66366% with 242 lines in your changes missing coverage. Please review.
✅ Project coverage is 73.33%. Comparing base (e41b6e5) to head (e508095).

Files with missing lines Patch % Lines
OfficeIMO.Pdf/Rendering/Writer/PdfWriter.Images.cs 51.58% 34 Missing and 27 partials ⚠️
OfficeIMO.Pdf/Reading/Filters/FlateDecoder.cs 44.44% 25 Missing and 5 partials ⚠️
OfficeIMO.Pdf/Reading/Filters/Ascii85Decoder.cs 55.26% 9 Missing and 8 partials ⚠️
OfficeIMO.Pdf/Reading/Filters/StreamDecoder.cs 60.00% 7 Missing and 9 partials ⚠️
...rd.Pdf/WordPdfConverterExtensions.Native.Charts.cs 72.41% 10 Missing and 6 partials ⚠️
...IMO.Pdf/Core/PdfDocument.Blocks.ImageValidation.cs 13.33% 13 Missing ⚠️
...Pdf/Rendering/Writer/PdfWriter.Images.Interlace.cs 45.83% 8 Missing and 5 partials ⚠️
OfficeIMO.Pdf/Reading/Font/ToUnicodeCMap.cs 33.33% 5 Missing and 7 partials ⚠️
...fficeIMO.Html/Rtf/Internal/RtfHtmlReader.Fields.cs 85.89% 2 Missing and 9 partials ⚠️
...rdPdfConverterExtensions.Native.FootnotesImages.cs 21.42% 10 Missing and 1 partial ⚠️
... and 10 more
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1934      +/-   ##
==========================================
- Coverage   73.35%   73.33%   -0.03%     
==========================================
  Files        2521     2521              
  Lines      283393   283933     +540     
  Branches    60640    60803     +163     
==========================================
+ Hits       207882   208221     +339     
- Misses      47871    47986     +115     
- Partials    27640    27726      +86     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.