This change deals with the following CIDs:
1503889,
1503901,
1503908,
1503916,
1503936,
1504024,
1504280,
1504282,
1503894,
1503899,
1504013
Most of these are sbuff/dbuff operations that can only fail if
the buffers can't be reallocated or have reached their specified
maximum size.
In
1503899, we know, but Coverity doesn't, that no log_keyword
passed to _make_vlog() will overrun the fixed-size buffer it uses.
1503894 is what Coverity thinks is a copy/paste error that clearly
makes sense as written.
* to aggregate it, then look for new line chars
* as an indication we need to print the line.
*/
+ /* coverity[checked_return] */
fr_sbuff_in_bstrncpy(&lb->sbuff, in, len);
/*
* to aggregate it, then look for new line chars
* as an indication we need to print the line.
*/
+ /* coverity[checked_return] */
fr_sbuff_in_bstrncpy(&lb->sbuff, in, len);
/*
fr_sbuff_in_vsprintf(&sbuff, fmt, aq);
va_end(aq);
+ /* coverity[checked_return] */
fr_sbuff_in_strcpy(&sbuff, ": ");
+ /* coverity[checked_return] */
fr_sbuff_in_strcpy(&sbuff, error); /* may not be talloced with const */
error = fr_sbuff_start(&sbuff);
}
fr_sbuff_set_to_start(&sbuff);
if (f_rules->subsq_prefix) {
+ /* coverity[checked_return] */
fr_sbuff_in_strcpy(&sbuff, f_rules->subsq_prefix);
fr_sbuff_marker(&prefix_m, &sbuff);
}
while ((error = fr_strerror_pop())) {
if (f_rules->subsq_prefix) {
fr_sbuff_set(&sbuff, &prefix_m);
+ /* coverity[checked_return] */
fr_sbuff_in_strcpy(&sbuff, error); /* may not be talloced with const */
error = fr_sbuff_start(&sbuff);
}
}
/* Copy the filename into the buffer */
+ /* coverity[checked_return] */
fr_sbuff_in_bstrncpy(path_buffer, str, len);
/* Add the file attachment as a mime encoded part */
(void) fr_sbuff_in_strcpy(&sbuff, from);
/* Copy the envelope address as the FROM: source */
+ /* coverity[checked_return] */
fr_sbuff_in_bstrncpy(&sbuff, inst->envelope_address, strlen(inst->envelope_address));
*out = curl_slist_append(*out, sbuff.buff);
}
/* Format the conf item to be a valid SMTP header */
+ /* coverity[checked_return] */
fr_sbuff_in_bstrncpy(&conf_buffer, conf_map->lhs->name, conf_map->lhs->len);
fr_sbuff_in_strcpy(&conf_buffer, ": ");
fr_sbuff_in_bstrncpy(&conf_buffer, expanded_rhs, strlen(expanded_rhs));