Repository navigation
Reject IPv4 components before compressed IPv6 groups - #3837
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📜 Recent review details
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3837 +/- ##
============================================
- Coverage 81.08% 81.03% -0.06%
Complexity 776 776
============================================
Files 726 726
Lines 26323 26325 +2
Branches 4470 4471 +1
============================================
- Hits 21344 21332 -12
- Misses 2768 2783 +15
+ Partials 2211 2210 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Hey @PHJ2000 thanks for this PR! Looks great, merging as-is. Let me know if you need a new release cut, I usually wait at least a week between releases. |
ParseUtil.parseIpv6AddressToBytes("1.2.3.4::")currently returns sixteen bytes, even though a dotted IPv4 component must occupy the final 32 bits of an IPv6 address (RFC 4291 section 2.2). The same problem accepts a dotted quad on both sides of::.Reject dotted quads in the portion before
::. The shared parser covers both native backends. Add regression cases for invalid positions and preserve valid compressed and uncompressed mixed addresses.Validation on Linux, JDK 25:
TestFileUtil; the full aggregate-coverage run also reports three hardware comparison failures (diskStores,processorIdentifier,processorFrequencies). All four failures reproduce on an unmodified checkout. Native implementations on other operating systems were not run locally.Reference: https://www.rfc-editor.org/rfc/rfc4291.html#section-2.2
Summary by CodeRabbit