Skip to content

Commit

Permalink
suppress coverity suspicious sizeof
Browse files Browse the repository at this point in the history
in CURLOPT_WRITEDATA and CURLOPT_HEADERDATA

Signed-off-by: Hans Zandbelt <[email protected]>
  • Loading branch information
zandbelt committed Dec 16, 2024
1 parent a0064ce commit 6d56bd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/http.c
Original file line number Diff line number Diff line change
Expand Up @@ -752,12 +752,12 @@ static apr_byte_t oidc_http_request(request_rec *r, const char *url, const char
/* setup the buffer where the response data will be written to */
OIDC_HTTP_CURL_SETOPT(CURLOPT_WRITEFUNCTION, oidc_http_response_data);
// coverity[suspicious_sizeof]
OIDC_HTTP_CURL_SETOPT(CURLOPT_WRITEDATA, &d_buf);
OIDC_HTTP_CURL_SETOPT(CURLOPT_WRITEDATA, (void *)&d_buf);

/* setup the buffer where the response headers will be written to */
OIDC_HTTP_CURL_SETOPT(CURLOPT_HEADERFUNCTION, oidc_http_response_header);
// coverity[suspicious_sizeof]
OIDC_HTTP_CURL_SETOPT(CURLOPT_HEADERDATA, &h_buf);
OIDC_HTTP_CURL_SETOPT(CURLOPT_HEADERDATA, (void *)&h_buf);

#ifndef LIBCURL_NO_CURLPROTO
#if LIBCURL_VERSION_NUM >= 0x075500
Expand Down

0 comments on commit 6d56bd8

Please sign in to comment.