mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-07-23 23:48:22 +02:00
* Backport fallout fix for libpcre2 port * Backport fix for use-after-free * Backport fix for POP3 servers w/ UTF8 Signed-off-by: Sam James <sam@gentoo.org>
26 lines
757 B
Diff
26 lines
757 B
Diff
https://github.com/nicm/fdm/commit/028f59bef0ea9435fb8fbe095b2939652ce63479
|
|
|
|
From 028f59bef0ea9435fb8fbe095b2939652ce63479 Mon Sep 17 00:00:00 2001
|
|
From: Nicholas Marriott <nicholas.marriott@gmail.com>
|
|
Date: Mon, 3 Apr 2023 08:54:28 +0100
|
|
Subject: [PATCH] Fix use-after-free, GitHub issue 126.
|
|
|
|
---
|
|
connect.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/connect.c b/connect.c
|
|
index 1dc5db9..da8013e 100644
|
|
--- a/connect.c
|
|
+++ b/connect.c
|
|
@@ -550,8 +550,8 @@ httpproxy(struct server *srv,
|
|
if (strlen(line) < 12 ||
|
|
strncmp(line, "HTTP/", 5) != 0 ||
|
|
strncmp(line + 8, " 200", 4) != 0) {
|
|
- xfree(line);
|
|
xasprintf(cause, "unexpected data: %s", line);
|
|
+ xfree(line);
|
|
return (-1);
|
|
}
|
|
header = 1;
|
|
|