]> git.ipfire.org Git - thirdparty/samba.git/commit
s3:lib:util_tdb: use NUMERIC_CMP() in tdb_data_cmp()
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 4 Apr 2024 01:01:24 +0000 (14:01 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 10 Apr 2024 22:56:33 +0000 (22:56 +0000)
commitdd4a0c276813b2c8516061110a7e580aa9afcf40
tree2d4d8ced82b7194d35e2011db9e90814142bb196
parent4641a97151783c2ae825582e91b4676d66dcb713
s3:lib:util_tdb: use NUMERIC_CMP() in tdb_data_cmp()

Although these are size_t, in practice TDB data is limited to 32 bit.
Even so, overflow of a signed int is possible.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15625

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/lib/util_tdb.c