[hackers] [st] Avoid buffer overrun in bpress() || Mark Edgar

From: <git_AT_suckless.org>
Date: Tue, 15 Oct 2013 17:48:46 +0200

commit 0f6942cdf6f8220f1ecd06e4b398e95c43833d44
Author: Mark Edgar <medgar123_AT_gmail.com>
Date: Sun Oct 6 12:19:12 2013 +0200

    Avoid buffer overrun in bpress()
    
    Use correct type for Mousekey.b (XButtonEvent.button).

diff --git a/st.c b/st.c
index 9df6707..50b58a7 100644
--- a/st.c
+++ b/st.c
_AT_@ -256,9 +256,9 @@ typedef struct {
 } XWindow;
 
 typedef struct {
- int b;
+ uint b;
         uint mask;
- char s[ESC_BUF_SIZ];
+ char *s;
 } Mousekey;
 
 typedef struct {
Received on Tue Oct 15 2013 - 17:48:46 CEST

This archive was generated by hypermail 2.3.0 : Tue Oct 15 2013 - 18:00:22 CEST