[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 03/04: gnsrecord: forgot to initialize buffer for parsing
From: |
gnunet |
Subject: |
[gnunet] 03/04: gnsrecord: forgot to initialize buffer for parsing |
Date: |
Sun, 10 Sep 2023 15:14:10 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
commit 103afea31f25912417e4605020a4db475d261a48
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Sun Sep 10 15:13:04 2023 +0200
gnsrecord: forgot to initialize buffer for parsing
---
src/gnsrecord/test_gnsrecord_testvectors.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/gnsrecord/test_gnsrecord_testvectors.c
b/src/gnsrecord/test_gnsrecord_testvectors.c
index c68ea56b3..e0d959f0e 100644
--- a/src/gnsrecord/test_gnsrecord_testvectors.c
+++ b/src/gnsrecord/test_gnsrecord_testvectors.c
@@ -447,6 +447,7 @@ parsehex (char *src, char *dst, size_t dstlen, int invert)
char *pos = data;
int i = 0;
int j = 0;
+ memset (data, 0, strlen (src) + 1);
for (i = 0; i < strlen (src); i++)
{
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.