]> git.pld-linux.org Git - packages/proftpd.git/commitdiff
- fixes format string vulnerabilities auto/ac/proftpd-1_2_10-6
authorAdam Gołębiowski <adamg@pld-linux.org>
Thu, 4 Aug 2005 14:01:25 +0000 (14:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    proftpd-CAN-2005-2390.patch -> 1.1

proftpd-CAN-2005-2390.patch [new file with mode: 0644]

diff --git a/proftpd-CAN-2005-2390.patch b/proftpd-CAN-2005-2390.patch
new file mode 100644 (file)
index 0000000..bd05fcc
--- /dev/null
@@ -0,0 +1,59 @@
+diff -burN proftpd-1.2.10.orig/contrib/mod_sql.c proftpd-1.2.10/contrib/mod_sql.c
+--- proftpd-1.2.10.orig/contrib/mod_sql.c      2005-08-04 15:57:39.050981712 +0200
++++ proftpd-1.2.10/contrib/mod_sql.c   2005-08-04 15:57:49.922329016 +0200
+@@ -2036,7 +2036,7 @@
+       *outsp++ = 0;
+       /* add the response */
+-      pr_response_add( c->argv[0], outs);
++      pr_response_add(c->argv[0], "%s", outs);
+     } while((c = find_config_next(c, c->next, CONF_PARAM, name, FALSE)) != NULL);
+@@ -2110,7 +2110,7 @@
+       *outsp++ = 0;
+       /* add the response */
+-      pr_response_add( c->argv[0], outs);
++      pr_response_add(c->argv[0], "%s", outs);
+     } while((c = find_config_next(c, c->next, CONF_PARAM, name, FALSE)) != NULL);
+@@ -2201,7 +2201,7 @@
+       *outsp++ = 0;
+       /* add the response */
+-      pr_response_add_err( c->argv[0], outs);
++      pr_response_add_err(c->argv[0], "%s", outs);
+     } while((c = find_config_next(c, c->next, CONF_PARAM, name, FALSE)) != NULL);
+@@ -2275,7 +2275,7 @@
+       *outsp++ = 0;
+       /* add the response */
+-      pr_response_add( c->argv[0], outs);
++      pr_response_add(c->argv[0], "%s",  outs);
+     } while((c = find_config_next(c, c->next, CONF_PARAM, name, FALSE)) != NULL);
+diff -burN proftpd-1.2.10.orig/src/response.c proftpd-1.2.10/src/response.c
+--- proftpd-1.2.10.orig/src/response.c 2005-08-04 15:57:39.125970312 +0200
++++ proftpd-1.2.10/src/response.c      2005-08-04 15:57:46.478852504 +0200
+@@ -1,6 +1,6 @@
+ /*
+  * ProFTPD - FTP server daemon
+- * Copyright (c) 2001, 2002, 2003 The ProFTPD Project team
++ * Copyright (c) 2001-2005 The ProFTPD Project team
+  *  
+  * This program is free software; you can redistribute it and/or modify
+  * it under the terms of the GNU General Public License as published by
+@@ -169,7 +169,7 @@
+   buf[sizeof(buf) - 1] = '\0';
+   sstrcat(buf, "\r\n", sizeof(buf));
+-  RESPONSE_WRITE_STR_ASYNC(session.c->outstrm, buf, strlen(buf))
++  RESPONSE_WRITE_STR_ASYNC(session.c->outstrm, "%s", buf)
+ }
+ void pr_response_send(const char *resp_numeric, const char *fmt, ...) {
This page took 0.216652 seconds and 4 git commands to generate.