1 |
sochotnicky 11/01/18 23:58:05 |
2 |
|
3 |
Added: 0.8.1-Fix-buffer-overflow.patch |
4 |
Log: |
5 |
Fix potential buffer overflow in identity application (#339355) |
6 |
Fix bugs #351872 and #351658 (Use flag names, mysql support fix) |
7 |
|
8 |
(Portage version: 2.1.9.25/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.1 net-p2p/gnunet/files/0.8.1-Fix-buffer-overflow.patch |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/gnunet/files/0.8.1-Fix-buffer-overflow.patch?rev=1.1&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-p2p/gnunet/files/0.8.1-Fix-buffer-overflow.patch?rev=1.1&content-type=text/plain |
15 |
|
16 |
Index: 0.8.1-Fix-buffer-overflow.patch |
17 |
=================================================================== |
18 |
From d029cce1691ba78310763059c35ed08596ebf74f Mon Sep 17 00:00:00 2001 |
19 |
From: Stanislav Ochotnicky <sochotnicky@×××××.com> |
20 |
Date: Sat, 15 Jan 2011 21:02:52 +0100 |
21 |
Subject: [PATCH] Fix buffer overflow |
22 |
|
23 |
memset function was called incorrectly with address of a pointer |
24 |
instead of address where pointer was pointing |
25 |
|
26 |
See https://bugs.gentoo.org/show_bug.cgi?id=339355 for details |
27 |
--- |
28 |
src/applications/identity/identity.c | 2 +- |
29 |
1 files changed, 1 insertions(+), 1 deletions(-) |
30 |
|
31 |
diff --git a/src/applications/identity/identity.c b/src/applications/identity/identity.c |
32 |
index 063c463..6d3cf65 100644 |
33 |
--- a/src/applications/identity/identity.c |
34 |
+++ b/src/applications/identity/identity.c |
35 |
@@ -423,7 +423,7 @@ getPeerIdentity (const GNUNET_RSA_PublicKey * pubKey, |
36 |
GNUNET_PeerIdentity * result) |
37 |
{ |
38 |
if (pubKey == NULL) |
39 |
- memset (&result, 0, sizeof (GNUNET_PeerIdentity)); |
40 |
+ memset (result, 0, sizeof (GNUNET_PeerIdentity)); |
41 |
else |
42 |
GNUNET_hash (pubKey, sizeof (GNUNET_RSA_PublicKey), &result->hashPubKey); |
43 |
} |
44 |
-- |
45 |
1.7.3.4 |