summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris White <chriswhite@gentoo.org>2004-09-20 02:29:44 +0000
committerChris White <chriswhite@gentoo.org>2004-09-20 02:29:44 +0000
commit3bf336fb3d4cc343f2eafbef9f30c566aa8c5472 (patch)
treeff82fb3131d17412175bebce5810fc7d63927732 /media-video/lxdvdrip
parentstable on ppc64, bug #63656 (diff)
downloadhistorical-3bf336fb3d4cc343f2eafbef9f30c566aa8c5472.tar.gz
historical-3bf336fb3d4cc343f2eafbef9f30c566aa8c5472.tar.bz2
historical-3bf336fb3d4cc343f2eafbef9f30c566aa8c5472.zip
Fixed yet another issue. strncpy'ed buffers needed null terminated assurance. Thanks to Florian Shilhabel that out for me.
Diffstat (limited to 'media-video/lxdvdrip')
-rw-r--r--media-video/lxdvdrip/ChangeLog7
-rw-r--r--media-video/lxdvdrip/Manifest4
-rw-r--r--media-video/lxdvdrip/files/lxdvdrip-1.20_pre1-overflow.patch16
3 files changed, 19 insertions, 8 deletions
diff --git a/media-video/lxdvdrip/ChangeLog b/media-video/lxdvdrip/ChangeLog
index e09908e61dd7..502203f94d2a 100644
--- a/media-video/lxdvdrip/ChangeLog
+++ b/media-video/lxdvdrip/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for media-video/lxdvdrip
# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/lxdvdrip/ChangeLog,v 1.7 2004/09/19 16:01:38 chriswhite Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/lxdvdrip/ChangeLog,v 1.8 2004/09/20 02:29:44 chriswhite Exp $
+
+ 20 Sep 2004; Chris White <chriswhite@gentoo.org>
+ files/lxdvdrip-1.20_pre1-overflow.patch:
+ Fixed yet another issue. strncpy'ed buffers needed null terminated assurance.
+ Thanks to Florian Shilhabel that out for me.
19 Sep 2004; Chris White <chriswhite@gentoo.org>
files/lxdvdrip-1.20_pre1-overflow.patch:
diff --git a/media-video/lxdvdrip/Manifest b/media-video/lxdvdrip/Manifest
index dfaec6ae6491..33d1d2cc3263 100644
--- a/media-video/lxdvdrip/Manifest
+++ b/media-video/lxdvdrip/Manifest
@@ -1,4 +1,4 @@
-MD5 fd7020dc3213fd2ab99642c6afa79c0f ChangeLog 1241
+MD5 7d4fbb6d249de256f9038b9c83e4150c ChangeLog 1463
MD5 3fc0cad1de9b0234fc797cefe3dd486f lxdvdrip-1.10_pre2.ebuild 810
MD5 221b05dfe72b22608cf78d7918babef7 lxdvdrip-1.10_pre5.ebuild 810
MD5 7300a7b361fa9f48e37722c6952bd432 metadata.xml 158
@@ -8,4 +8,4 @@ MD5 877c7bda100ae6f083ce5137aae3e5b1 files/digest-lxdvdrip-1.10_pre2 67
MD5 cd76c64399dac2e89416dd89ccf32dda files/digest-lxdvdrip-1.10_pre5 67
MD5 57482d8cce4aacca938b4e43c345e578 files/digest-lxdvdrip-1.20_pre1 67
MD5 57482d8cce4aacca938b4e43c345e578 files/digest-lxdvdrip-1.20_pre1-r1 67
-MD5 3f39d192e34d787c14a3abd0df7fa426 files/lxdvdrip-1.20_pre1-overflow.patch 673
+MD5 9b28c10d15e06eb087911a837ec3a97c files/lxdvdrip-1.20_pre1-overflow.patch 752
diff --git a/media-video/lxdvdrip/files/lxdvdrip-1.20_pre1-overflow.patch b/media-video/lxdvdrip/files/lxdvdrip-1.20_pre1-overflow.patch
index 31de2ad7fa0a..c551dd4ab663 100644
--- a/media-video/lxdvdrip/files/lxdvdrip-1.20_pre1-overflow.patch
+++ b/media-video/lxdvdrip/files/lxdvdrip-1.20_pre1-overflow.patch
@@ -1,20 +1,26 @@
---- lxdvdrip.c_old 2004-09-19 14:49:07.013638160 +0900
-+++ lxdvdrip.c 2004-09-19 15:21:42.472363248 +0900
-@@ -333,7 +333,7 @@
+--- lxdvdrip.c_old 2004-09-20 01:47:51.957933304 +0900
++++ lxdvdrip.c 2004-09-20 01:49:26.367580856 +0900
+@@ -333,7 +333,10 @@
char szPfad[4096];
int i;
char szVerzeichnis[1024];
- strcpy (szPfad, getenv ("PATH"));
+ strncpy (szPfad, getenv ("PATH"), 4096);
++
++ szPfad[sizeof(szPfad) -1]='\0';
++
strcpy (szVerzeichnis, "");
for (i=0; i<strlen(szPfad); i++)
{
-@@ -1033,7 +1033,7 @@
-
+@@ -1033,7 +1036,10 @@
+
// Auslesen der Parameter aus einer Datei
// Zuerst lokal versuchen
- strcpy (szBefehl, getenv ("HOME"));
+ strncpy (szBefehl, getenv ("HOME"), 4096);
++
++ szBefehl[sizeof(szBefehl)-1]='\0';
++
strcat (szBefehl, "/.lxdvdrip.conf");
fConf=fopen(szBefehl, "r");
if (!fConf)