update buildroot to 2017.02.11
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
From 7e0793e15e21f68337e130c67b031ca38edf055f Mon Sep 17 00:00:00 2001
|
||||
From: Aymeric Moizard <amoizard@gmail.com>
|
||||
Date: Mon, 5 Sep 2016 15:01:53 +0200
|
||||
Subject: [PATCH] * fix bug report: sr #109133: Heap buffer overflow in
|
||||
utility function *osip_clrncpy* https://savannah.gnu.org/support/?109133
|
||||
|
||||
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
|
||||
---
|
||||
src/osipparser2/osip_port.c | 4 +++-
|
||||
1 file changed, 3 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/src/osipparser2/osip_port.c b/src/osipparser2/osip_port.c
|
||||
index 0e64147..d8941b0 100644
|
||||
--- a/src/osipparser2/osip_port.c
|
||||
+++ b/src/osipparser2/osip_port.c
|
||||
@@ -1291,8 +1291,10 @@ osip_clrncpy (char *dst, const char *src, size_t len)
|
||||
char *p;
|
||||
size_t spaceless_length;
|
||||
|
||||
- if (src == NULL)
|
||||
+ if (src == NULL || len == 0) {
|
||||
+ *dst = '\0';
|
||||
return NULL;
|
||||
+ }
|
||||
|
||||
/* find the start of relevant text */
|
||||
pbeg = src;
|
||||
--
|
||||
2.11.0
|
||||
|
||||
10
bsp/buildroot-2017.02.11/package/libosip2/Config.in
Normal file
10
bsp/buildroot-2017.02.11/package/libosip2/Config.in
Normal file
@@ -0,0 +1,10 @@
|
||||
config BR2_PACKAGE_LIBOSIP2
|
||||
bool "libosip2"
|
||||
help
|
||||
GNU SIP (Session Initiation Protocol)
|
||||
This library aims to provide multimedia and telecom software
|
||||
developers an easy and powerful interface to initiate and
|
||||
control SIP based sessions in their applications.
|
||||
SIP is a open standard replacement from IETF for H323.
|
||||
|
||||
http://www.gnu.org/software/osip/
|
||||
2
bsp/buildroot-2017.02.11/package/libosip2/libosip2.hash
Normal file
2
bsp/buildroot-2017.02.11/package/libosip2/libosip2.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated after checking pgp signature
|
||||
sha256 c9a18b0c760506d150017cdb1fa5c1cefe12b8dcbbf9a7e784eb75af376e96cd libosip2-3.6.0.tar.gz
|
||||
21
bsp/buildroot-2017.02.11/package/libosip2/libosip2.mk
Normal file
21
bsp/buildroot-2017.02.11/package/libosip2/libosip2.mk
Normal file
@@ -0,0 +1,21 @@
|
||||
################################################################################
|
||||
#
|
||||
# libosip2
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBOSIP2_VERSION = 3.6.0
|
||||
LIBOSIP2_SITE = $(BR2_GNU_MIRROR)/osip
|
||||
LIBOSIP2_INSTALL_STAGING = YES
|
||||
LIBOSIP2_LICENSE = LGPLv2.1+
|
||||
LIBOSIP2_LICENSE_FILES = COPYING
|
||||
|
||||
ifeq ($(BR2_arc),y)
|
||||
# toolchain __arc__ define conflicts with libosip2 source
|
||||
LIBOSIP2_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -U__arc__"
|
||||
endif
|
||||
|
||||
LIBOSIP2_CONF_OPTS = \
|
||||
--enable-mt=$(if $(BR2_TOOLCHAIN_HAS_THREADS),yes,no)
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user