]> git.ipfire.org Git - thirdparty/krb5.git/commit
Use memmove() in Unicode functions
authorGreg Hudson <ghudson@mit.edu>
Tue, 18 Oct 2022 20:17:55 +0000 (16:17 -0400)
committerGreg Hudson <ghudson@mit.edu>
Thu, 3 Nov 2022 05:01:36 +0000 (01:01 -0400)
commit5c52ab2252953055e64d9b9855ad64b27eda060e
tree869c4205d4381d161bdf535f6ec871fc74480c7b
parentea92d2f0fcceb54a70910fa32e9a0d7a5afc3583
Use memmove() in Unicode functions

Where the upstream OpenLDAP code uses AC_MEMCPY(), use memmove()
instead of memcpy() as the copies frequently involve overlapping
memory regions.  Credit to OSS-Fuzz for discovering one instance of
the issue.

ticket: 9076 (new)
src/lib/krb5/unicode/ucdata/ucdata.c
src/lib/krb5/unicode/ucdata/ucgendat.c
src/lib/krb5/unicode/ure/ure.c