← Commit list

c4cb67692d

Daniel Stenberg
Daniel Stenberg
2026-06-14
SUCCESS Duration: 226s

Subject

smb: integer overflow proof a size check

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/smb.c+2 -2
@@ -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;