[packages/liblo] - updated to 0.32

qboosh qboosh at pld-linux.org
Mon Feb 19 19:11:53 CET 2024


commit 35f0a356aa4c2386bc5611087ab8f6dd64a9f521
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Mon Feb 19 18:49:45 2024 +0100

    - updated to 0.32

 liblo-strncpy.patch | 16 ++++++++++++++++
 liblo.spec          | 11 +++++++----
 2 files changed, 23 insertions(+), 4 deletions(-)
---
diff --git a/liblo.spec b/liblo.spec
index 04ca50c..b79dcb2 100644
--- a/liblo.spec
+++ b/liblo.spec
@@ -5,17 +5,19 @@
 Summary:	Open Sound Control library
 Summary(pl.UTF-8):	Biblioteka Open Sound Control
 Name:		liblo
-Version:	0.31
+Version:	0.32
 Release:	1
 License:	LGPL v2.1+
 Group:		Libraries
-Source0:	http://downloads.sourceforge.net/liblo/%{name}-%{version}.tar.gz
-# Source0-md5:	14378c1e74c58e777fbb4fcf33ac5315
-URL:		http://liblo.sourceforge.net/
+Source0:	https://downloads.sourceforge.net/liblo/%{name}-%{version}.tar.gz
+# Source0-md5:	a93a7a9da084e6a0937bde6fc324a52a
+Patch0:		%{name}-strncpy.patch
+URL:		https://liblo.sourceforge.net/
 BuildRequires:	autoconf >= 2.69
 BuildRequires:	automake
 BuildRequires:	doxygen
 BuildRequires:	libtool
+BuildRequires:	rpm-build >= 4.6
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -64,6 +66,7 @@ Dokumentacja API biblioteki liblo.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
diff --git a/liblo-strncpy.patch b/liblo-strncpy.patch
new file mode 100644
index 0000000..5f6c844
--- /dev/null
+++ b/liblo-strncpy.patch
@@ -0,0 +1,16 @@
+tmp buffer size is allocated so that it holds whole string (and nothing more)
+so we can simplify code and avoid gcc stringop-overflow warning
+--- liblo-0.32/src/server.c.orig	2024-02-16 22:51:21.000000000 +0100
++++ liblo-0.32/src/server.c	2024-02-19 18:39:35.889219149 +0100
+@@ -2063,9 +2063,8 @@ static void dispatch_method(lo_server s,
+                     char *sec;
+ 
+                     int tmplen = (int) strlen(it->path + len) + 1;
+-                    tmp = (char*) malloc(strlen(it->path + len) + 1);
+-                    strncpy(tmp, it->path + len, tmplen);
+-                    tmp[tmplen-1]=0;
++                    tmp = (char*) malloc(tmplen);
++                    strcpy(tmp, it->path + len);
+                     sec = strchr(tmp, '/');
+                     if (sec)
+                         *sec = '\0';
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/liblo.git/commitdiff/35f0a356aa4c2386bc5611087ab8f6dd64a9f521



More information about the pld-cvs-commit mailing list