]> git.ipfire.org Git - thirdparty/bind9.git/commit
Accept 'in=NULL' with 'inlen=0' in isc_{half}siphash24
authorMark Andrews <marka@isc.org>
Tue, 10 Jan 2023 02:51:49 +0000 (13:51 +1100)
committerMark Andrews <marka@isc.org>
Tue, 10 Jan 2023 07:36:08 +0000 (18:36 +1100)
commitf99593a9cada9614928ed4f941d24259965d44d8
tree34c5b09a91bf83d4d5c257e3a79c1ee247fefe50
parent12de356ed6e0ca233c81e83f280ecc82540cc10f
Accept 'in=NULL' with 'inlen=0' in isc_{half}siphash24

Arthimetic on NULL pointers is undefined.  Avoid arithmetic operations
when 'in' is NULL and require 'in' to be non-NULL if 'inlen' is not zero.

(cherry picked from commit 349c23dbb7a4f3ffe29f3c9deff418aab6266fd0)
lib/isc/siphash.c