Blame SOURCES/0070-curl-7.29.0-CVE-2019-5436.patch

1ec381
From 55a27027d5f024a0ecc2c23c81ed99de6192c9f3 Mon Sep 17 00:00:00 2001
1ec381
From: Daniel Stenberg <daniel@haxx.se>
1ec381
Date: Fri, 3 May 2019 22:20:37 +0200
1ec381
Subject: [PATCH] tftp: use the current blksize for recvfrom()
1ec381
1ec381
bug: https://curl.haxx.se/docs/CVE-2019-5436.html
1ec381
Reported-by: l00p3r on hackerone
1ec381
CVE-2019-5436
1ec381
1ec381
Upstream-commit: 2576003415625d7b5f0e390902f8097830b82275
1ec381
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
1ec381
---
1ec381
 lib/tftp.c | 2 +-
1ec381
 1 file changed, 1 insertion(+), 1 deletion(-)
1ec381
1ec381
diff --git a/lib/tftp.c b/lib/tftp.c
1ec381
index 269b3cd..4f2a131 100644
1ec381
--- a/lib/tftp.c
1ec381
+++ b/lib/tftp.c
1ec381
@@ -985,7 +985,7 @@ static CURLcode tftp_connect(struct connectdata *conn, bool *done)
1ec381
   state->sockfd = state->conn->sock[FIRSTSOCKET];
1ec381
   state->state = TFTP_STATE_START;
1ec381
   state->error = TFTP_ERR_NONE;
1ec381
-  state->blksize = TFTP_BLKSIZE_DEFAULT;
1ec381
+  state->blksize = blksize;
1ec381
   state->requested_blksize = blksize;
1ec381
 
1ec381
   ((struct sockaddr *)&state->local_addr)->sa_family =
1ec381
-- 
1ec381
2.20.1
1ec381