Coverity flags log_message_size += l as a potential overflow, but l
is bounded by the read() count parameter which is
sizeof(log_message) - log_message_size. Add an assert to make this
invariant explicit.
CID#
1548062
Follow-up for
3d7415f43f0fe6a821d7bc4a341ba371e8a30ef3
return 0;
}
+ /* Silence static analyzers, l is bounded by read() count: sizeof - log_message_size */
+ assert((size_t) l <= sizeof(t->log_message) - t->log_message_size);
t->log_message_size += l;
transfer_send_logs(t, false);