[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] branch master updated: fix SIGSEGV in GNUNET_buffer_write_data_
From: |
gnunet |
Subject: |
[gnunet] branch master updated: fix SIGSEGV in GNUNET_buffer_write_data_encoded |
Date: |
Thu, 30 Jul 2020 12:48:52 +0200 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository gnunet.
The following commit(s) were added to refs/heads/master by this push:
new 8d312646c fix SIGSEGV in GNUNET_buffer_write_data_encoded
8d312646c is described below
commit 8d312646cb57359e89e99ae7e809c2da110babd6
Author: Florian Dold <florian.dold@gmail.com>
AuthorDate: Thu Jul 30 16:12:22 2020 +0530
fix SIGSEGV in GNUNET_buffer_write_data_encoded
---
src/util/buffer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/util/buffer.c b/src/util/buffer.c
index 2af972413..8fb10c2a5 100644
--- a/src/util/buffer.c
+++ b/src/util/buffer.c
@@ -265,7 +265,6 @@ GNUNET_buffer_write_data_encoded (struct GNUNET_Buffer *buf,
size_t len)
{
size_t outlen = len * 8;
- char *p = buf->mem + buf->position;
if (outlen % 5 > 0)
outlen += 5 - outlen % 5;
@@ -275,7 +274,8 @@ GNUNET_buffer_write_data_encoded (struct GNUNET_Buffer *buf,
GNUNET_assert (NULL !=
GNUNET_STRINGS_data_to_string (data,
len,
- p,
+ (buf->mem +
+ buf->position),
outlen));
buf->position += outlen;
GNUNET_assert (buf->position <= buf->capacity);
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnunet] branch master updated: fix SIGSEGV in GNUNET_buffer_write_data_encoded,
gnunet <=