gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 125/411: dynbuf: make sure Curl_dyn_tail() zero terminates


From: gnunet
Subject: [gnurl] 125/411: dynbuf: make sure Curl_dyn_tail() zero terminates
Date: Wed, 13 Jan 2021 01:19:00 +0100

This is an automated email from the git hooks/post-receive script.

nikita pushed a commit to branch master
in repository gnurl.

commit 9fffe925d2049d925dbc4b52beda5b35c7b3aaa5
Author: Daniel Stenberg <daniel@haxx.se>
AuthorDate: Sun Sep 13 23:08:45 2020 +0200

    dynbuf: make sure Curl_dyn_tail() zero terminates
    
    Closes #5959
---
 lib/dynbuf.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/dynbuf.c b/lib/dynbuf.c
index 38d370b07..265a769e8 100644
--- a/lib/dynbuf.c
+++ b/lib/dynbuf.c
@@ -143,6 +143,7 @@ CURLcode Curl_dyn_tail(struct dynbuf *s, size_t trail)
   else {
     memmove(&s->bufr[0], &s->bufr[s->leng - trail], trail);
     s->leng = trail;
+    s->bufr[s->leng] = 0;
   }
   return CURLE_OK;
 

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]