projects
/
platform
/
core
/
uifw
/
at-spi2-atk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0724cea
)
Fix off-by-one malloc error in dec_synth_keystring
author
Mike Gorse
<mgorse@boston.site>
Thu, 26 Jun 2008 18:16:53 +0000
(14:16 -0400)
committer
Mike Gorse
<mgorse@boston.site>
Thu, 26 Jun 2008 18:16:53 +0000
(14:16 -0400)
registryd/deviceeventcontroller.c
patch
|
blob
|
history
diff --git
a/registryd/deviceeventcontroller.c
b/registryd/deviceeventcontroller.c
index
6b46eba
..
8ca6699
100644
(file)
--- a/
registryd/deviceeventcontroller.c
+++ b/
registryd/deviceeventcontroller.c
@@
-2281,7
+2281,7
@@
dec_synth_keystring (SpiDEController *controller, const char *keystring)
gboolean retval = TRUE;
const gchar *c;
- maxlen = strlen (keystring);
+ maxlen = strlen (keystring)
+ 1
;
keysyms = g_new0 (KeySym, maxlen);
if (!(keystring && *keystring && g_utf8_validate (keystring, -1, &c))) {
retval = FALSE;