diff options
author | jsing <> | 2021-09-23 15:49:48 +0000 |
---|---|---|
committer | jsing <> | 2021-09-23 15:49:48 +0000 |
commit | bb080a758b26689122e28d80215b720e5058a6ec (patch) | |
tree | 668d7fc9b9f7b69884289a083e0fe9bde29cac9b /src/lib/libc/net | |
parent | edfd994450b5e0617f6ab9d30f8e083f90bc3f86 (diff) | |
download | openbsd-bb080a758b26689122e28d80215b720e5058a6ec.tar.gz openbsd-bb080a758b26689122e28d80215b720e5058a6ec.tar.bz2 openbsd-bb080a758b26689122e28d80215b720e5058a6ec.zip |
Avoid a potential overread in x509_constraints_parse_mailbox()
The length checks need to be >= rather than > in order to ensure the string
remains NUL terminated. While here consistently check wi before using it
so we have the same idiom throughout this function.
Issue reported by GoldBinocle on GitHub.
ok deraadt@ tb@
Diffstat (limited to 'src/lib/libc/net')
0 files changed, 0 insertions, 0 deletions