diff options
author | kp <kp@FreeBSD.org> | 2017-08-16 19:52:31 +0000 |
---|---|---|
committer | kp <kp@FreeBSD.org> | 2017-08-16 19:52:31 +0000 |
commit | f9ac1ee50cbb2e0b00a3254c9aaf012183e8aaa8 (patch) | |
tree | ba3e4bee3fbad802ac3956f5c85454ef0dc61b07 /usr.bin | |
parent | 288fba54f392d85c42af31d8bd5bb936be44ab15 (diff) | |
download | FreeBSD-src-f9ac1ee50cbb2e0b00a3254c9aaf012183e8aaa8.zip FreeBSD-src-f9ac1ee50cbb2e0b00a3254c9aaf012183e8aaa8.tar.gz |
MFC r322280:
pf_get_sport(): Prevent possible endless loop when searching for an unused nat port
This is an import of Alexander Bluhm's OpenBSD commit r1.60,
the first chunk had to be modified because on OpenBSD the
'cut' declaration is located elsewhere.
Upstream report by Jingmin Zhou:
https://marc.info/?l=openbsd-pf&m=150020133510896&w=2
OpenBSD commit message:
Use a 32 bit variable to detect integer overflow when searching for
an unused nat port. Prevents a possible endless loop if high port
is 65535 or low port is 0.
report and analysis Jingmin Zhou; OK sashan@ visa@
Quoted from: https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/net/pf_lb.c
PR: 221201
Submitted by: Fabian Keil <fk@fabiankeil.de>
Obtained from: OpenBSD via ElectroBSD
Diffstat (limited to 'usr.bin')
0 files changed, 0 insertions, 0 deletions