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
commit9b94b3671d544b1b5e0109d00bcfa09799db0ee9 (patch)
tree5f6965c37d44ba8307c3690108822bcb4be6fcb8 /media-video/lxdvdrip
parentstable on ppc64, bug #63656 (Manifest recommit) (diff)
downloadgentoo-2-9b94b3671d544b1b5e0109d00bcfa09799db0ee9.tar.gz
gentoo-2-9b94b3671d544b1b5e0109d00bcfa09799db0ee9.tar.bz2
gentoo-2-9b94b3671d544b1b5e0109d00bcfa09799db0ee9.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/Manifest2
-rw-r--r--media-video/lxdvdrip/files/lxdvdrip-1.20_pre1-overflow.patch16
3 files changed, 18 insertions, 7 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..5eeadade84d9 100644
--- a/media-video/lxdvdrip/Manifest
+++ b/media-video/lxdvdrip/Manifest
@@ -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)