mirror of
https://github.com/curl/curl.git
synced 2026-06-18 12:55:38 +03:00
smb: integer overflow proof a size check
By using size_t for the vars instead of shorts. Pointed out by Zeropath Closes #22001
This commit is contained in:
parent
f1b1919bd0
commit
c4cb67692d
1 changed files with 2 additions and 2 deletions
|
|
@ -1007,8 +1007,8 @@ static CURLcode smb_request_state(struct Curl_easy *data, bool *done)
|
|||
struct smb_request *req = Curl_meta_get(data, CURL_META_SMB_EASY);
|
||||
struct smb_header *h;
|
||||
enum smb_req_state next_state = SMB_DONE;
|
||||
unsigned short len;
|
||||
unsigned short off;
|
||||
size_t len;
|
||||
size_t off;
|
||||
CURLcode result;
|
||||
void *msg = NULL;
|
||||
const struct smb_nt_create_response *smb_m;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue