projects
/
oweals
/
cde.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
943aaad
)
Avoid negative array subscript; break out of the loop if that happens.
author
Pascal Stumpf
<Pascal.Stumpf@cubes.de>
Tue, 27 Nov 2012 20:12:23 +0000
(21:12 +0100)
committer
Jon Trulson
<jon@radscan.com>
Wed, 28 Nov 2012 06:46:12 +0000
(23:46 -0700)
cde/lib/DtTerm/TermPrim/TermPrim.c
patch
|
blob
|
history
diff --git
a/cde/lib/DtTerm/TermPrim/TermPrim.c
b/cde/lib/DtTerm/TermPrim/TermPrim.c
index f32f01643372cc3178399f790f7f52a9335417e2..87c836d7c50b80b8464f615396538f9c67ddef2d 100644
(file)
--- a/
cde/lib/DtTerm/TermPrim/TermPrim.c
+++ b/
cde/lib/DtTerm/TermPrim/TermPrim.c
@@
-894,6
+894,8
@@
GetMetaMask
for (i1 = 0; i1 < modifierMapping->max_keypermod; i1++) {
thisKeyCode = modifierMapping->modifiermap[mapIndex *
modifierMapping->max_keypermod + i1];
+ if (thisKeyCode < minKeycodes)
+ break;
thisKeySym = keyboardMapping[(thisKeyCode - minKeycodes) *
keysymsPerKeycode];
if ((thisKeySym == XK_Meta_L) || (thisKeySym == XK_Meta_R)) {