NetPGP is a standards-compliant library and suite of utilities providing digital signature and verification functionality, as well as data encryption and decryption, using RSA and DSA/Elgamal keys. Several double frees found by bentley@, already committed upstream. ok benoit@
14 lines
609 B
Plaintext
14 lines
609 B
Plaintext
$OpenBSD: patch-src_lib_ssh2pgp_c,v 1.1.1.1 2013/03/09 16:02:24 pascal Exp $
|
|
http://cvsweb.netbsd.org/bsdweb.cgi/src/crypto/external/bsd/netpgp/dist/src/lib/ssh2pgp.c.diff?r1=1.21&r2=1.22&f=h&only_with_tag=MAIN&f=u
|
|
--- src/lib/ssh2pgp.c.orig Wed Sep 8 05:21:22 2010
|
|
+++ src/lib/ssh2pgp.c Wed Aug 8 07:05:52 2012
|
|
@@ -250,7 +250,7 @@ __ops_ssh2pubkey(__ops_io_t *io, const char *f, __ops_
|
|
}
|
|
|
|
/* convert from base64 to binary */
|
|
- cc = bufgap_getbin(&bg, buf, (size_t)st.st_size);
|
|
+ cc = bufgap_getbin(&bg, buf, (size_t)bg.bcc);
|
|
if ((space = strchr(buf, ' ')) != NULL) {
|
|
cc = (int)(space - buf);
|
|
}
|