From a792eb06cd45f9990de62d2b48db519928eadee5 Mon Sep 17 00:00:00 2001 From: kenzok8 Date: Tue, 26 Mar 2024 19:58:19 +0800 Subject: [PATCH] update 2024-03-26 19:58:19 --- ddns-go/Makefile | 4 ++-- .../patches/104-fix-use-after-free.patch | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 shadowsocksr-libev/patches/104-fix-use-after-free.patch diff --git a/ddns-go/Makefile b/ddns-go/Makefile index cc63e74cf..5b1d5a418 100644 --- a/ddns-go/Makefile +++ b/ddns-go/Makefile @@ -8,12 +8,12 @@ include $(TOPDIR)/rules.mk PKG_NAME:=ddns-go -PKG_VERSION:=6.2.2 +PKG_VERSION:=6.3.0 PKG_RELEASE:=1 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://codeload.github.com/jeessy2/ddns-go/tar.gz/v$(PKG_VERSION)? -PKG_HASH:=9c1ccfe60ea1e6fc81d2905b5ef7c7bd403a1858de4f0d3aed81e57bce8cfaa0 +PKG_HASH:=307a0b045f3631b0f67d566903b80d0ecdd47c8159000ee0d93debe3c59097a0 PKG_LICENSE:=MIT PKG_LICENSE_FILES:=LICENSE diff --git a/shadowsocksr-libev/patches/104-fix-use-after-free.patch b/shadowsocksr-libev/patches/104-fix-use-after-free.patch new file mode 100644 index 000000000..d00d549e3 --- /dev/null +++ b/shadowsocksr-libev/patches/104-fix-use-after-free.patch @@ -0,0 +1,15 @@ +--- a/server/server.c ++++ b/server/server.c +@@ -1942,11 +1942,11 @@ main(int argc, char **argv) + text = (char*)malloc(strlen(protocol) - 11); + memcpy(text, protocol, strlen(protocol) - 11); + int length = strlen(protocol) - 11; +- free(protocol); + obfs = (char*)malloc(length); + memset(protocol, 0x00, length); + memcpy(protocol, text, length); + LOGI("protocol compatible enable, %s", protocol); ++ free(protocol); + free(text); + protocol_compatible = 1; + }