Blame SOURCES/0017-curl-7.64.0-CVE-2019-5436.patch

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