minor: coverity comments

personal/stbuehler/mod-csrf
Glenn Strauss 2016-10-28 14:24:11 -04:00
parent 23503883ba
commit 204df06814
2 changed files with 3 additions and 1 deletions

View File

@ -468,6 +468,7 @@ static chunk *chunkqueue_get_append_tempfile(chunkqueue *cq) {
buffer_append_slash(template);
buffer_append_string_len(template, CONST_STR_LEN("lighttpd-upload-XXXXXX"));
/* coverity[secure_temp : FALSE] */
if (-1 != (fd = mkstemp(template->ptr))) break;
}
} else {

View File

@ -220,7 +220,8 @@ static int mod_authn_gssapi_create_krb5_ccache(server *srv, connection *con, plu
buffer * const kccname = buffer_init_string("FILE:/tmp/krb5cc_gssapi_XXXXXX");
char * const ccname = kccname->ptr + sizeof("FILE:")-1;
const size_t ccnamelen = buffer_string_length(kccname)-(sizeof("FILE:")-1);
/*(future: might consider using server.upload-dirs instead of /tmp)*/
/*(future: might consider using server.upload-dirs instead of /tmp)*/
/* coverity[secure_temp : FALSE] */
int fd = mkstemp(ccname);
if (fd < 0) {
log_error_write(srv, __FILE__, __LINE__, "ss", "mkstemp():", strerror(errno));