blob: b41a360a87f83643ca3a100d55318a55f398a600 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
From d029cce1691ba78310763059c35ed08596ebf74f Mon Sep 17 00:00:00 2001
From: Stanislav Ochotnicky <sochotnicky@gmail.com>
Date: Sat, 15 Jan 2011 21:02:52 +0100
Subject: [PATCH] Fix buffer overflow
memset function was called incorrectly with address of a pointer
instead of address where pointer was pointing
See https://bugs.gentoo.org/show_bug.cgi?id=339355 for details
---
src/applications/identity/identity.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/applications/identity/identity.c b/src/applications/identity/identity.c
index 063c463..6d3cf65 100644
--- a/src/applications/identity/identity.c
+++ b/src/applications/identity/identity.c
@@ -423,7 +423,7 @@ getPeerIdentity (const GNUNET_RSA_PublicKey * pubKey,
GNUNET_PeerIdentity * result)
{
if (pubKey == NULL)
- memset (&result, 0, sizeof (GNUNET_PeerIdentity));
+ memset (result, 0, sizeof (GNUNET_PeerIdentity));
else
GNUNET_hash (pubKey, sizeof (GNUNET_RSA_PublicKey), &result->hashPubKey);
}
--
1.7.3.4
|