From 8b215df4454883b3733733af4f49f87eb0a2a46a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 30 May 2013 15:24:27 +0200 Subject: tdb: Make tdb_recovery_size overflow-safe Signed-off-by: Volker Lendecke Reviewed-by: Rusty Russell --- lib/tdb/common/tdb_private.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/tdb/common/tdb_private.h') 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 */ -- cgit