summaryrefslogtreecommitdiffstats
path: root/contrib/tools/python3/Python/future.c
diff options
context:
space:
mode:
authorbabenko <[email protected]>2026-04-23 02:11:15 +0300
committerbabenko <[email protected]>2026-04-23 02:32:29 +0300
commit893782fb5ba51b41a889bd3fcdb98fcef5354c18 (patch)
tree29fbb2919af2de9d9528cb011ef6440d5be64384 /contrib/tools/python3/Python/future.c
parente2ee3315eee8e6ea2316916f66adc31656a2ead9 (diff)
Fix npos+1 wraparound in IPv4 address:port parsing
In the else branch of ParseServiceAddress, closingBracketIndex is npos. Passing npos+1 as the search offset wraps to 0, which happens to work but is undefined behaviour. Use address.find(':') with no offset since there is no bracket to skip in the IPv4 path. commit_hash:247dec77d22f76c76bc32fa22e2ff3665988705f
Diffstat (limited to 'contrib/tools/python3/Python/future.c')
0 files changed, 0 insertions, 0 deletions