Thanks to visit codestin.com
Credit goes to github.com

Skip to content

there is a bug in http_get function #3

@Nutchies

Description

@Nutchies

int rsp_code;
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &rsp_code);
curl_easy_cleanup(curl);

This code causes the stack to overflow in x64,because the type of rsp_code, It should be amended as follows.
long rsp_code;
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &rsp_code);
curl_easy_cleanup(curl);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions