diff options
author | Jessica Clarke <jrtc27@FreeBSD.org> | 2022-05-22 08:31:42 +0000 |
---|---|---|
committer | Kristof Provost <kp@FreeBSD.org> | 2022-05-22 08:31:42 +0000 |
commit | 298663855015c1eba7ccf5b88168f433653eb609 (patch) | |
tree | 31b3be28fbbfb99cb04d2d438879aa871c06a4e6 /lib/libc/stdio/glue.h | |
parent | d94358e29d1eacab17e9992ad91decb1b84b9449 (diff) | |
download | src-298663855015c1eba7ccf5b88168f433653eb609.tar.gz src-298663855015c1eba7ccf5b88168f433653eb609.zip |
pfctl: fix out-of-bounds access
If pfctl is called with "pfctl -a ''" we read outside of the anchoropt
buffer. Check that the buffer is sufficiently long to avoid that.
Maintain the existing (and desired, because it's used as such in
/etc/periodic/security/520.pfdenied) behaviour of treating "-a ''" as a
request for the root anchor (or no anchor specified).
PR: 264128
Reviewed by: kp
Diffstat (limited to 'lib/libc/stdio/glue.h')
0 files changed, 0 insertions, 0 deletions