diff options
author | Volker Lendecke <vl@samba.org> | 2013-05-30 15:24:27 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2013-06-03 10:21:31 +0200 |
commit | 8b215df4454883b3733733af4f49f87eb0a2a46a (patch) | |
tree | c6493a0cce6c8cf147df1c666ae6dcb483770388 /lib/tdb/common/tdb_private.h | |
parent | 7ae09a9695bcc5fad606441db3ab6e413b9d48ce (diff) | |
download | samba-8b215df4454883b3733733af4f49f87eb0a2a46a.tar.gz samba-8b215df4454883b3733733af4f49f87eb0a2a46a.tar.bz2 samba-8b215df4454883b3733733af4f49f87eb0a2a46a.zip |
tdb: Make tdb_recovery_size overflow-safe
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'lib/tdb/common/tdb_private.h')
-rw-r--r-- | lib/tdb/common/tdb_private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/tdb/common/tdb_private.h b/lib/tdb/common/tdb_private.h index c37246f150..ce92188688 100644 --- a/lib/tdb/common/tdb_private.h +++ b/lib/tdb/common/tdb_private.h @@ -283,4 +283,7 @@ void tdb_header_hash(struct tdb_context *tdb, unsigned int tdb_old_hash(TDB_DATA *key); size_t tdb_dead_space(struct tdb_context *tdb, tdb_off_t off); bool tdb_add_off_t(tdb_off_t a, tdb_off_t b, tdb_off_t *pret); + +/* tdb_off_t and tdb_len_t right now are both uint32_t */ +#define tdb_add_len_t tdb_add_off_t #endif /* TDB_PRIVATE_H */ |