Commit a90b08f
authored
Add validation for trailing single colon in IPv6 address parsing (#1232)
- Added check in `scn_cnt_define_in6addr_shorten_impl` to return `parse_code::invalid` when buffer ends with single colon
- Prevents accepting malformed IPv6 addresses ending with ":" instead of "::" or valid hex digit
- Split compound condition to validate buffer bounds before checking for double colon1 parent 23636e9 commit a90b08f
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
518 | | - | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
519 | 523 | | |
520 | 524 | | |
521 | 525 | | |
| |||
0 commit comments