[Commits] [SCM] claws branch, master, updated. 3.17.0-78-g5c750e4

mones at claws-mail.org mones at claws-mail.org
Thu Oct 4 10:49:45 CEST 2018


The branch, master has been updated
       via  5c750e4f256b2d0f45cabb9176c91235ad7e0fa4 (commit)
      from  0641e8ab944527636061fc4253408ec0de79607e (commit)

Summary of changes:
 src/entity.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


- Log -----------------------------------------------------------------
commit 5c750e4f256b2d0f45cabb9176c91235ad7e0fa4
Author: Ricardo Mones <ricardo at mones.org>
Date:   Thu Oct 4 10:49:32 2018 +0200

    Disallow zero-length entity

diff --git a/src/entity.c b/src/entity.c
index aa0c543..fcf4c28 100644
--- a/src/entity.c
+++ b/src/entity.c
@@ -325,7 +325,7 @@ static gchar* entity_extract_to_buffer(gchar *p, gchar b[])
 		b[i] = *p;
 		++i, ++p;
 	}
-	if (*p != ';' || i == ENTITY_MAX_LEN)
+	if (*p != ';' || i == 0 || i == ENTITY_MAX_LEN)
 		return NULL;
 	b[i] = '\0';
 

-----------------------------------------------------------------------


hooks/post-receive
-- 
Claws Mail


More information about the Commits mailing list