← Commit list

5cc2b83446

Daniel Stenberg
Daniel Stenberg
2025-09-18
FAILED Duration: 146s

Subject

smb: adjust buffer size checks

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
@@ -1104,7 +1104,7 @@ static CURLcode smb_request_state(struct Curl_easy *data, bool *done)
break;
case SMB_DOWNLOAD:
- if(h->status || smbc->got < sizeof(struct smb_header) + 14) {
+ if(h->status || smbc->got < sizeof(struct smb_header) + 15) {
req->result = CURLE_RECV_ERROR;
next_state = SMB_CLOSE;
break;
@@ -1133,7 +1133,7 @@ static CURLcode smb_request_state(struct Curl_easy *data, bool *done)
break;
case SMB_UPLOAD:
- if(h->status || smbc->got < sizeof(struct smb_header) + 6) {
+ if(h->status || smbc->got < sizeof(struct smb_header) + 7) {
req->result = CURLE_UPLOAD_FAILED;
next_state = SMB_CLOSE;
break;