summaryrefslogtreecommitdiff
path: root/security/putty/patches/patch-import.c
diff options
context:
space:
mode:
authorwiz <wiz>2012-02-22 15:27:13 +0000
committerwiz <wiz>2012-02-22 15:27:13 +0000
commit542953f964f376abeb2bc74fbef063757d3f125b (patch)
tree0a8b52fdbc315db0b66a3d081ca6c80571123688 /security/putty/patches/patch-import.c
parent536b6a8064f0f9d806f47e333c23f781a3ca1a57 (diff)
downloadpkgsrc-542953f964f376abeb2bc74fbef063757d3f125b.tar.gz
Update to 0.62, keeping all pkgsrc patches which have not been fed upstream (hi roy! hi rillig!)
2011-12-10 PuTTY 0.62 released PuTTY 0.62 is out, containing only bug fixes from 0.61, in particular a security fix preventing passwords from being accidentally retained in memory. 2011-11-27 PuTTY 0.62 pre-release builds available PuTTY 0.61 had a few noticeable bugs in it (but nothing security-related), so we are planning to make a 0.62 release containing just bug fixes. The Wishlist page lists the bugs that will be fixed by the 0.62 release. The Download page now contains pre-release snapshots of 0.62, which contain those bug fixes and should be otherwise stable. (The usual development snapshots, containing other development since 0.61, are also still available.) 2011-07-12 PuTTY 0.61 is released PuTTY 0.61 is out, after over four years (sorry!), with new features, bug fixes, and compatibility updates for Windows 7 and various SSH server software.
Diffstat (limited to 'security/putty/patches/patch-import.c')
-rw-r--r--security/putty/patches/patch-import.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/security/putty/patches/patch-import.c b/security/putty/patches/patch-import.c
new file mode 100644
index 00000000000..aa74a4e69ff
--- /dev/null
+++ b/security/putty/patches/patch-import.c
@@ -0,0 +1,26 @@
+$NetBSD: patch-import.c,v 1.1 2012/02/22 15:27:16 wiz Exp $
+
+--- import.c.orig 2010-04-12 11:02:06.000000000 +0000
++++ import.c
+@@ -717,8 +717,8 @@ int openssh_write(const Filename *filena
+ unsigned char *outblob;
+ int outlen;
+ struct mpint_pos numbers[9];
+- int nnumbers, pos, len, seqlen, i;
+- char *header, *footer;
++ int nnumbers = 0, pos = 0, len = 0, seqlen = 0, i = 0;
++ char *header = NULL, *footer = NULL;
+ char zero[1];
+ unsigned char iv[8];
+ int ret = 0;
+@@ -1513,8 +1513,8 @@ int sshcom_write(const Filename *filenam
+ unsigned char *outblob;
+ int outlen;
+ struct mpint_pos numbers[6];
+- int nnumbers, initial_zero, pos, lenpos, i;
+- char *type;
++ int nnumbers = 0, initial_zero = 0, pos = 0, lenpos = 0, i = 0;
++ char *type = NULL;
+ char *ciphertext;
+ int cipherlen;
+ int ret = 0;