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

git pushed a commit to branch master
in repository evisum.

View the commit online.

commit 7eee850ee8567327c5d5ea3a55b9cc9a1fadaf98
Author: Alastair Poole <[email protected]>
AuthorDate: Fri May 8 09:03:16 2026 +0100

    fix: client buffer length can be zero.
    
    Guard.
---
 NEWS                                        |  6 ++++++
 VERSION                                     |  2 +-
 meson.build                                 |  2 +-
 src/bin/enigmatic/client/enigmatic_client.c | 11 +++++++----
 4 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/NEWS b/NEWS
index 2d832fe..23d9d2e 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,9 @@
+============
+Evisum 2.0.7
+============
+
+  * Fix where buffer length can be zero.
+
 ============
 Evisum 2.0.6
 ============
diff --git a/VERSION b/VERSION
index 157e54f..f1547e6 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-2.0.6
+2.0.7
diff --git a/meson.build b/meson.build
index b9a09ce..ad7c32a 100644
--- a/meson.build
+++ b/meson.build
@@ -1,6 +1,6 @@
 ##### Project
 project('evisum', 'c',
-        version       : '2.0.6',
+        version       : '2.0.7',
         meson_version : '>= 0.56.0')
 
 efl_version = '>= 1.27.0'
diff --git a/src/bin/enigmatic/client/enigmatic_client.c b/src/bin/enigmatic/client/enigmatic_client.c
index 494440d..ae7e955 100644
--- a/src/bin/enigmatic/client/enigmatic_client.c
+++ b/src/bin/enigmatic/client/enigmatic_client.c
@@ -1546,10 +1546,13 @@ enigmatic_client_read(Enigmatic_Client *client)
                     ERROR("decompress: stalled frame decode");
 
                   client->buf.length += dec_size;
-                  void *tmp = realloc(client->buf.data, client->buf.length);
-                  EINA_SAFETY_ON_NULL_RETURN(tmp);
-                  client->buf.data = ""
-                  memcpy(&client->buf.data[client->buf.length - dec_size], dst, dec_size);
+		  if (client->buf.length)
+	            {
+                       void *tmp = realloc(client->buf.data, client->buf.length);
+                       EINA_SAFETY_ON_NULL_RETURN(tmp);
+                       client->buf.data = ""
+                       memcpy(&client->buf.data[client->buf.length - dec_size], dst, dec_size);
+		    }
                }
              offset += pos;
              free(dst);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to