tdb: Add overflow-checking tdb_add_off_t
[obnox/samba/samba-obnox.git] / lib / tdb / common / tdb_private.h
index 406fc5f7f2052eb3d457b60d098efa5b84e1dbdb..c37246f1503f779761251881fa27000156286a69 100644 (file)
@@ -282,4 +282,5 @@ void tdb_header_hash(struct tdb_context *tdb,
                     uint32_t *magic1_hash, uint32_t *magic2_hash);
 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);
 #endif /* TDB_PRIVATE_H */