Commit 1b515ead authored by Jan Pavlinec's avatar Jan Pavlinec

mxml: update to version 2.11 (security fix)

CVE-2016-4570 - mxmlDelete could require large amounts of stack space depending on the file
CVE-2016-4571 - mxmlWrite* could require large amounts of stack space depending on the file

Issue #137
parent 0f68373f
#
# Copyright (C) 2006-2017 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:=mxml
PKG_VERSION:=2.11
PKG_RELEASE:=1
PKG_MD5SUM:=aaf68aac637dd06ba73ae5bb0537a3c4e89ca86f8c09a2d806a1f5b937e2ba8f
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://github.com/michaelrsweet/mxml/releases/download/v$(PKG_VERSION)/
PKG_FIXUP:=autoreconf
PKG_MAINTAINER:=Espen Jürgensen <espenjurgensen+openwrt@gmail.com>
PKG_LICENSE:=GPL-2.0
PKG_LICENSE_FILES:=COPYING
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
UNPACK_CMD=tar xzf "$(DL_DIR)/$(PKG_SOURCE)" -C $(PKG_BUILD_DIR)
include $(INCLUDE_DIR)/package.mk
define Package/mxml
SECTION:=libs
CATEGORY:=Libraries
TITLE:=Mini-XML
URL:=http://www.minixml.org/
endef
define Package/mxml/description
A small xml library.
endef
TARGET_CFLAGS += $(FPIC)
CONFIGURE_ARGS += \
--enable-shared \
--enable-static
define Build/InstallDev
mkdir -p $(1)/usr/include
$(CP) $(PKG_BUILD_DIR)/mxml.h $(1)/usr/include/
mkdir -p $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libmxml.so* $(1)/usr/lib/
mkdir -p $(1)/usr/lib/pkgconfig
$(CP) $(PKG_BUILD_DIR)/mxml.pc $(1)/usr/lib/pkgconfig/
endef
define Package/mxml/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_BUILD_DIR)/libmxml.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,mxml))
--- a/Makefile.in
+++ b/Makefile.in
@@ -86,6 +86,7 @@ OBJS = mmd.o mxmldoc.o testmxml.o zipc.
ALLTARGETS = $(LIBMXML) mxmldoc testmxml mxml.xml @MXML_EPUB@
CROSSTARGETS = $(LIBMXML) mxmldoc
TARGETS = $(@TARGETS@)
+TARGETS = $(LIBMXML)
#
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment