]> git.pld-linux.org Git - packages/cdp.git/commitdiff
- buffer overflow fix
authorjm <jm@pld-linux.org>
Wed, 31 Mar 2004 23:26:44 +0000 (23:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    cdp-bo_fix.patch -> 1.1

cdp-bo_fix.patch [new file with mode: 0644]

diff --git a/cdp-bo_fix.patch b/cdp-bo_fix.patch
new file mode 100644 (file)
index 0000000..ce459b5
--- /dev/null
@@ -0,0 +1,11 @@
+--- v1/cdp.c   Thu Apr  1 01:18:57 2004
++++ v2/cdp.c   Thu Apr  1 01:18:50 2004
+@@ -154,7 +154,7 @@
+     for  ( ind = 0; ind < cdStatus.thiscd.ntracks; ind++ ) {
+         trk = &cdStatus.thiscd.trk[ ind ];
+         if  ( trk->songname != NULL ) {
+-            sprintf( buffer, "%s", trk->songname );
++            snprintf( buffer,sizeof(buffer), "%s", trk->songname );
+         } else
+             buffer[ 0 ] = 0;
This page took 0.110899 seconds and 4 git commands to generate.