summaryrefslogtreecommitdiff
path: root/guile/src
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2013-10-09 22:31:39 +0200
committerLudovic Courtès <ludo@gnu.org>2013-10-09 22:31:39 +0200
commitf96534966c706c554238799306c50177d9eb2dc7 (patch)
tree44a6ba75c36906d741272a149dc1daef9caf919b /guile/src
parentdaad5b9ba054e17d8bcfb0b8c76d67dc19c64e0e (diff)
downloadgnutls-f96534966c706c554238799306c50177d9eb2dc7.tar.gz
guile: Fix possible stack overflows.
Diffstat (limited to 'guile/src')
-rw-r--r--guile/src/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/guile/src/core.c b/guile/src/core.c
index ffd6608181..6940eae079 100644
--- a/guile/src/core.c
+++ b/guile/src/core.c
@@ -2086,7 +2086,7 @@ SCM_DEFINE (scm_gnutls_srp_base64_decode, "srp-base64-decode",
/* We assume that the decoded string is smaller than the encoded
string. */
c_result_len = c_str_len;
- c_result = alloca (c_result_len);
+ c_result = alloca (c_result_len + 1);
c_str_d.data = (unsigned char *) c_str;
c_str_d.size = c_str_len;