minor: coverity comments

personal/stbuehler/mod-csrf
Glenn Strauss 6 years ago
parent 23503883ba
commit 204df06814
  1. 1
      src/chunk.c
  2. 3
      src/mod_authn_gssapi.c

@ -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 {

@ -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));

Loading…
Cancel
Save