[packages/lib3ds] Rel 2
arekm
arekm at pld-linux.org
Mon Mar 9 22:43:41 CET 2026
commit 768b2e1bae158a4372ac1e7baee903f666dae74c
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Mar 9 22:43:28 2026 +0100
Rel 2
lib3ds.spec | 6 ++++--
mesh-face-index-bounds.patch | 17 +++++++++++++++++
2 files changed, 21 insertions(+), 2 deletions(-)
---
diff --git a/lib3ds.spec b/lib3ds.spec
index 51d5b50..0e951aa 100644
--- a/lib3ds.spec
+++ b/lib3ds.spec
@@ -6,12 +6,13 @@ Summary: The 3D Studio File Format Library
Summary(pl.UTF-8): Biblioteka obsługująca format plików 3D Studio
Name: lib3ds
Version: 1.3.0
-Release: 1
+Release: 2
License: LGPL v2.1+
Group: Libraries
Source0: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/lib3ds/%{name}-%{version}.zip
# Source0-md5: 2572f7b0f29b591d494c1a0658b35c86
-URL: http://lib3ds.sourceforge.net/
+Patch0: mesh-face-index-bounds.patch
+URL: https://lib3ds.sourceforge.net/
BuildRequires: autoconf
BuildRequires: automake >= 1.4
BuildRequires: libtool
@@ -60,6 +61,7 @@ Statyczna biblioteka lib3ds.
%prep
%setup -q
+%patch -P0 -p1
%build
%{__libtoolize}
diff --git a/mesh-face-index-bounds.patch b/mesh-face-index-bounds.patch
new file mode 100644
index 0000000..1455660
--- /dev/null
+++ b/mesh-face-index-bounds.patch
@@ -0,0 +1,17 @@
+diff -Naur lib3ds-1.3.0.orig/lib3ds/mesh.c lib3ds-1.3.0/lib3ds/mesh.c
+--- lib3ds-1.3.0.orig/lib3ds/mesh.c 2007-06-20 19:04:08.000000000 +0200
++++ lib3ds-1.3.0/lib3ds/mesh.c 2010-09-14 06:34:39.987807911 +0200
+@@ -87,8 +87,11 @@
+ faces=lib3ds_io_read_word(io);
+ for (i=0; i<faces; ++i) {
+ index=lib3ds_io_read_word(io);
+- ASSERT(index<mesh->faces);
+- strcpy(mesh->faceL[index].material, name);
++ if (index<mesh->faces) {
++ strncpy(mesh->faceL[index].material, name, 64);
++ } else {
++ // TODO warning
++ }
+ }
+ }
+ break;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/lib3ds.git/commitdiff/768b2e1bae158a4372ac1e7baee903f666dae74c
More information about the pld-cvs-commit
mailing list