Build a debug package for open62541 library. Backport an use-after-free

fix from upstream.
OK sthen@
This commit is contained in:
bluhm 2020-02-13 13:26:20 +00:00
parent 31899c07c1
commit fd872f920f
2 changed files with 19 additions and 1 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.1.1.1 2020/02/11 10:35:25 bluhm Exp $
# $OpenBSD: Makefile,v 1.2 2020/02/13 13:26:20 bluhm Exp $
COMMENT = library implementation of OPC UA
VERSION = 1.0.1
REVISION = 0
PKGNAME = open62541-${VERSION}
GH_ACCOUNT = open62541
@ -44,6 +45,8 @@ CONFIGURE_ARGS = -DCMAKE_BUILD_TYPE=RelWithDebInfo \
-DUA_BUILD_TOOLS=ON \
-DUA_BUILD_UNIT_TESTS=ON
DEBUG_PACKAGES = ${BUILD_PACKAGES}
WRKDIST = ${WRKDIR}/${GH_PROJECT}-${GH_TAGNAME}
ALL_TARGET = all doc_pdf

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-plugins_ua_accesscontrol_default_c,v 1.1 2020/02/13 13:26:20 bluhm Exp $
https://github.com/open62541/open62541/commit/f05bafc25d332d4571b2e42fb42221c2ec3cc98c
Index: plugins/ua_accesscontrol_default.c
--- plugins/ua_accesscontrol_default.c.orig
+++ plugins/ua_accesscontrol_default.c
@@ -210,6 +210,7 @@ static void deleteMembers_default(UA_AccessControl *ac
if(context->usernamePasswordLoginSize > 0)
UA_free(context->usernamePasswordLogin);
UA_free(ac->context);
+ ac->context = NULL;
}
}