projects
/
platform
/
upstream
/
at-spi2-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7066928
)
Fix a crash when parsing events
author
Mike Gorse
<mgorse@suse.com>
Wed, 5 Dec 2012 05:54:55 +0000
(23:54 -0600)
committer
Mike Gorse
<mgorse@suse.com>
Wed, 5 Dec 2012 05:54:55 +0000
(23:54 -0600)
If an event listener specifies a detail for an event, but an event
arrives with an empty detail, then libatspi might crash.
atspi/atspi-event-listener.c
patch
|
blob
|
history
diff --git
a/atspi/atspi-event-listener.c
b/atspi/atspi-event-listener.c
index
9152054
..
bd8da50
100644
(file)
--- a/
atspi/atspi-event-listener.c
+++ b/
atspi/atspi-event-listener.c
@@
-802,6
+802,9
@@
detail_matches_listener (const char *event_detail, const char *listener_detail)
if (!listener_detail)
return TRUE;
+ if (!event_detail)
+ return (listener_detail ? FALSE : TRUE);
+
return !(listener_detail [strcspn (listener_detail, ":")] == '\0'
? strncmp (listener_detail, event_detail,
strcspn (event_detail, ":"))