]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: mdbox_map_append_assign_map_uids() - Drop redundant code.
authorMarco Bettini <marco.bettini@open-xchange.com>
Mon, 25 Aug 2025 15:09:47 +0000 (15:09 +0000)
committeraki.tuomi <aki.tuomi@open-xchange.com>
Wed, 27 Aug 2025 10:37:31 +0000 (10:37 +0000)
Found by Coverity, 41955, 41956  Operands don't affect result
The comparison with UOFF_T_MAX is always true.

src/lib-storage/index/dbox-multi/mdbox-map.c

index a2f3c862abc125cc62d0825630d0636e705d9d12..a5d7e8e158c362b08f40fd176aa9eaacd5a04864 100644 (file)
@@ -1310,9 +1310,6 @@ int mdbox_map_append_assign_map_uids(struct mdbox_map_append_context *ctx,
                struct mdbox_file *mfile =
                        (struct mdbox_file *)appends[i].file_append->file;
 
-               i_assert(appends[i].offset <= UOFF_T_MAX);
-               i_assert(appends[i].size <= UOFF_T_MAX);
-
                rec.file_id = mfile->file_id;
                rec.offset = appends[i].offset;
                /* A mail that exceeds 4GB is the final mail in the record and