summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_srvr.c
diff options
context:
space:
mode:
authorcheloha <>2021-12-07 04:01:45 +0000
committercheloha <>2021-12-07 04:01:45 +0000
commitcfc78852fcba382d04261ab49ed38b22e811e417 (patch)
treefb01e229aaae158bfbe4d7b52b61fa7fc95e523c /src/lib/libssl/ssl_srvr.c
parent036164e800dded700d72e343b440ebe3a04af264 (diff)
downloadopenbsd-cfc78852fcba382d04261ab49ed38b22e811e417.tar.gz
openbsd-cfc78852fcba382d04261ab49ed38b22e811e417.tar.bz2
openbsd-cfc78852fcba382d04261ab49ed38b22e811e417.zip
lsearch(3): append key to array with memmove(3) instead of memcpy(3)
If the key overlaps the end of the array, memcpy(3) mutates the key and copies a corrupted value into the end of the array. If we use memmove(3) instead we at least end up with a clean copy of the key at the end of the array. This is closer to the intended behavior. With input from millert@ and deraadt@. Thread: https://marc.info/?l=openbsd-tech&m=163880307403606&w=2 ok millert@
Diffstat (limited to 'src/lib/libssl/ssl_srvr.c')
0 files changed, 0 insertions, 0 deletions