xserver: Branch 'master'

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sat Aug 31 22:19:23 UTC 2024


 os/backtrace.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6531720c7c4d99930a7a5fca7272d4714aae3eca
Author: Enrico Weigelt, metux IT consult <info at metux.net>
Date:   Wed Aug 28 15:02:16 2024 +0200

    os: backtrace: use fixed size array instead of vla
    
    The backtrace buffer size (BT_SIZE) is determined by compile time,
    so we can change BT_SIZE into a #define to turn vla into fixed array.
    
    Signed-off-by: Enrico Weigelt, metux IT consult <info at metux.net>
    Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1664>

diff --git a/os/backtrace.c b/os/backtrace.c
index e4cb91b1c..659126a6a 100644
--- a/os/backtrace.c
+++ b/os/backtrace.c
@@ -190,10 +190,10 @@ xorg_backtrace(void)
 #include <dlfcn.h>
 #include <execinfo.h>
 
+#define BT_SIZE 64
 void
 xorg_backtrace(void)
 {
-    const int BT_SIZE = 64;
     void *array[BT_SIZE];
     const char *mod;
     int size, i;


More information about the xorg-commit mailing list