Files
openwrt/tools/patch/Makefile
T
Josef Schlehofer 1356b3ab32 tools/patch: update to 2.8.1
This fixes creating files outside of the working directory with a
crafted patch, a NULL pointer dereference on bad hunks and an infinite
loop on null ranges.

Fixes: CVE-2026-56288
Fixes: CVE-2026-56289
Fixes: CVE-2026-115207

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/26210
Signed-off-by: Jonas Jelonek <jonas@jonasjelonek.de>
2026-11-03 12:30:15 +01:00

31 lines
652 B
Makefile

#
# Copyright (C) 2013 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=patch
PKG_VERSION:=2.8.1
PKG_RELEASE:=1
PKG_CPE_ID:=cpe:/a:gnu:patch
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@GNU/patch
PKG_HASH:=0f7b43c7ea450c5d3e9eaf8301177628bc0171d580b2bd6a72822409767144ff
HOST_BUILD_PARALLEL := 1
HOST_CONFIGURE_CACHE:=1
include $(INCLUDE_DIR)/host-build.mk
HOSTCC := $(HOSTCC_NOCACHE)
HOSTCXX := $(HOSTCXX_NOCACHE)
define Host/Uninstall
-$(call Host/Compile/Default,uninstall)
endef
$(eval $(call HostBuild))