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

git pushed a commit to branch master
in repository e16.

View the commit online.

commit 41ae0ec99e4437cad9c3bbce5a32b1bc880cd113
Author: Kim Woelders <k...@woelders.dk>
AuthorDate: Mon Sep 18 19:28:08 2023 +0200

    ipc: Fix potential segv
    
    Also increase intermediate ipc buffer size.
---
 src/ipc.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/ipc.c b/src/ipc.c
index 77aae9fe..6ac5342e 100644
--- a/src/ipc.c
+++ b/src/ipc.c
@@ -1,6 +1,6 @@
 /*
  * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
- * Copyright (C) 2004-2022 Kim Woelders
+ * Copyright (C) 2004-2023 Kim Woelders
  *
  * Permission is hereby granted, free of charge, to any person obtaining a copy
  * of this software and associated documentation files (the "Software"), to
@@ -80,7 +80,7 @@ IpcPrintGetBuffer(void)
 void
 IpcPrintf(const char *fmt, ...)
 {
-   char                tmp[FILEPATH_LEN_MAX];
+   char                tmp[16384];
    int                 len;
    va_list             args;
 
@@ -89,6 +89,8 @@ IpcPrintf(const char *fmt, ...)
 
    va_start(args, fmt);
    len = Evsnprintf(tmp, sizeof(tmp), fmt, args);
+   if (len >= (int)sizeof(tmp))
+      len = sizeof(tmp) - 1;
    va_end(args);
 
    ipc_bufptr = EREALLOC(char, ipc_bufptr, ipc_bufsiz + len + 1);

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

Reply via email to