fix: validate file-derived lengths before allocation to prevent OOM on corruption #96
+63
−0
Codecov / codecov/project
failed
Apr 15, 2026 in 0s
76.57% (-0.11%) compared to cef9ae9
View this Pull Request on Codecov
76.57% (-0.11%) compared to cef9ae9
Details
Codecov Report
❌ Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 76.57%. Comparing base (cef9ae9) to head (fd744c4).
| Files with missing lines | Patch % | Lines |
|---|---|---|
| file.go | 66.66% | 1 Missing and 1 partial |
Additional details and impacted files
@@ Coverage Diff @@
## master #96 +/- ##
==========================================
- Coverage 76.68% 76.57% -0.11%
==========================================
Files 4 4
Lines 549 555 +6
==========================================
+ Hits 421 425 +4
- Misses 73 74 +1
- Partials 55 56 +1 ☔ View full report in Codecov by Sentry.
📢 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.
Loading