Module Name: xsrc
Committed By: christos
Date: Fri Jul 28 14:27:35 UTC 2023
Modified Files:
xsrc/external/mit/ctwm/dist: menus.c
Log Message:
Gcc complains about overflow writing 53 bytes into a region of size 35,
and it is correct for the alphabet copying line, which correctly comments
about the overflow too.
To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 xsrc/external/mit/ctwm/dist/menus.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/external/mit/ctwm/dist/menus.c
diff -u xsrc/external/mit/ctwm/dist/menus.c:1.11 xsrc/external/mit/ctwm/dist/menus.c:1.12
--- xsrc/external/mit/ctwm/dist/menus.c:1.11 Wed Jul 5 04:39:10 2023
+++ xsrc/external/mit/ctwm/dist/menus.c Fri Jul 28 10:27:35 2023
@@ -1659,7 +1659,7 @@ mk_twmkeys_entry(const FuncKey *key)
char *ret;
// S+ C+ 5(Mx+) 5(Ax+)
#define MSLEN (2 + 2 + 5 * 3 + 5 * 3)
- char modStr[MSLEN + 1];
+ char modStr[64];
char *modStrCur = modStr;
// Init