These asserts aren't expected to trigger with current code.
{
i_assert(offset < sizeof(t->pre_hdr_change));
i_assert(size <= sizeof(t->pre_hdr_change) - offset);
+ i_assert(size > 0);
t->log_updates = TRUE;
struct mail_index_transaction_ext_hdr_update *hdr;
size_t new_size;
+ i_assert(size > 0);
i_assert(offset <= (uint32_t)-1 && size <= (uint32_t)-1 &&
offset + size <= (uint32_t)-1);
i_assert(index->set.ext_hdr_init_data == NULL ||
index->set.ext_hdr_init_id == ext_id);
+ i_assert(size > 0);
rext = array_idx(&index->extensions, ext_id);
i_assert(rext->hdr_size == size);
const char *
message_header_strdup(pool_t pool, const unsigned char *data, size_t size)
{
+ i_assert(data != NULL);
+
if (memchr(data, '\0', size) == NULL) {
/* fast path */
char *dest = p_malloc(pool, size+1);
unsigned char *bits;
unsigned int first_page, last_page;
+ i_assert(size > 0);
i_assert(page_size > 0);
i_assert(UOFF_T_MAX - offset > size);
{
struct replicator_connection *conn;
+ i_assert(ips_count > 0);
+
conn = replicator_connection_create();
conn->callback = callback;
conn->ips = i_new(struct ip_addr, ips_count);