]> 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 06:52:56 +0000 (17:52 +1100)
commit349c23dbb7a4f3ffe29f3c9deff418aab6266fd0
tree617a19faf9ca8d385220b89d1f631a351d28a1bd
parenta14946817ead5a30eca2e658b35bd09b02f2d302
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.
lib/isc/siphash.c