summaryrefslogtreecommitdiffstats
path: root/extra/ssmtp/CVE-2008-3962.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-01-27 13:12:58 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-01-27 13:12:58 +0000
commit3630653b3a2e233c3b910ebe7788a76c6506c231 (patch)
treefb92d74daf12fe4bdd88d7b07e429896af1f2bab /extra/ssmtp/CVE-2008-3962.patch
parent11ccfb2a6b37f6f81666d67ef4c98fdd5c3e636f (diff)
downloadaports-3630653b3a2e233c3b910ebe7788a76c6506c231.tar.bz2
aports-3630653b3a2e233c3b910ebe7788a76c6506c231.tar.xz
extra/ssmtp: moved from testing
Diffstat (limited to 'extra/ssmtp/CVE-2008-3962.patch')
-rw-r--r--extra/ssmtp/CVE-2008-3962.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/extra/ssmtp/CVE-2008-3962.patch b/extra/ssmtp/CVE-2008-3962.patch
new file mode 100644
index 00000000..fca144fa
--- /dev/null
+++ b/extra/ssmtp/CVE-2008-3962.patch
@@ -0,0 +1,14 @@
+--- ssmtp.orig/ssmtp.c
++++ ssmtp/ssmtp.c
+@@ -485,6 +485,11 @@ char *from_format(char *str, bool_t over
+ die("from_format() -- snprintf() failed");
+ }
+ }
++ else {
++ if(snprintf(buf, BUF_SZ, "%s", str) == -1) {
++ die("from_format() -- snprintf() failed");
++ }
++ }
+ }
+
+ #if 0