mirror of
https://github.com/curl/curl.git
synced 2026-05-30 06:47:28 +03:00
content_encoding: change return code to typedef'ed enum
... to work around a clang ubsan warning. Fixes #12618 Closes #12622
This commit is contained in:
parent
941b56d790
commit
8558647613
1 changed files with 5 additions and 2 deletions
|
|
@ -365,11 +365,14 @@ static CURLcode gzip_do_init(struct Curl_easy *data,
|
|||
|
||||
#ifdef OLD_ZLIB_SUPPORT
|
||||
/* Skip over the gzip header */
|
||||
static enum {
|
||||
typedef enum {
|
||||
GZIP_OK,
|
||||
GZIP_BAD,
|
||||
GZIP_UNDERFLOW
|
||||
} check_gzip_header(unsigned char const *data, ssize_t len, ssize_t *headerlen)
|
||||
} gzip_status;
|
||||
|
||||
static gzip_status check_gzip_header(unsigned char const *data, ssize_t len,
|
||||
ssize_t *headerlen)
|
||||
{
|
||||
int method, flags;
|
||||
const ssize_t totallen = len;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue