summaryrefslogtreecommitdiff
path: root/accel-pppd/cli/std_cmd.c
diff options
context:
space:
mode:
authorDenys Fedoryshchenko <denys.f@collabora.com>2026-07-12 23:12:03 +0300
committerDenys Fedoryshchenko <denys.f@collabora.com>2026-07-12 23:12:03 +0300
commitefa4cea1beec1fa758ac94f350dfa7bdfa6d472f (patch)
tree93d73d7c4727dc4858a645302f69c230260b3dda /accel-pppd/cli/std_cmd.c
parent1c43c26d5c87df722141ad6a37f068968a9a6b5b (diff)
downloadaccel-ppp-efa4cea1beec1fa758ac94f350dfa7bdfa6d472f.tar.gz
accel-ppp-efa4cea1beec1fa758ac94f350dfa7bdfa6d472f.zip
ipdb: fix undefined shift in build_ip6_addr() host-bits mask
For prefix lengths 65..127 the mask for the host bits was built with (1 << (128 - prefix_len)) - 1 using a plain int literal, which is undefined behavior for shift counts of 31 and above, i.e. for any prefix length from 65 to 97. Use a 64-bit constant for the shift.
Diffstat (limited to 'accel-pppd/cli/std_cmd.c')
0 files changed, 0 insertions, 0 deletions