1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00
Gary Lockyer a77fda0cd4 lib tdb: memcmp ubsan warning
Fix the ubsan warning

lib/tdb/common/tdb.c:184:9: runtime error: null pointer passed as
argument 2, which is declared to never be null"

memcmp call now guarded by a length check.

memcmp returns zero when called with a zero length parameter.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Noel Power <npower@samba.org>

Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Mon Jul  1 14:50:54 UTC 2019 on sn-devel-184
2019-07-01 14:50:53 +00:00
..
2019-05-17 08:21:52 +00:00
2019-07-01 14:50:53 +00:00
2019-05-23 16:56:17 +00:00
2017-04-22 09:16:16 +02:00
2018-11-30 03:35:13 +01:00
2009-05-05 19:04:39 -04:00
2019-02-26 10:39:24 +01:00
2019-05-17 08:21:52 +00:00