* atk-bridge/bridge.c (spi_bridge_signal_listener): Add check for
number of signal parameter values before accessing them. This fixes
bug #109626.
git-svn-id: http://svn.gnome.org/svn/at-spi/trunk@414
e2bd861d-eb25-0410-b326-
f6ed22b6b98c
+2003-04-01 Padraig O'Briain <padraig.obriain@sun.com>
+
+ * atk-bridge/bridge.c (spi_bridge_signal_listener): Add check for
+ number of signal parameter values before accessing them. This fixes
+ bug #109626.
+
2003-04-01 Bill Haneman <bill.haneman@sun.com>
* configure.in: Fixed duplicate inclusion of -lspi.
}
else
{
- if (G_VALUE_TYPE (param_values + 1) == G_TYPE_INT)
- detail1 = g_value_get_int (param_values + 1);
- if (G_VALUE_TYPE (param_values + 2) == G_TYPE_INT)
- detail2 = g_value_get_int (param_values + 2);
+ if (n_param_values >= 2)
+ {
+ if (G_VALUE_TYPE (param_values + 1) == G_TYPE_INT)
+ detail1 = g_value_get_int (param_values + 1);
+ if (n_param_values >= 3)
+ {
+ if (G_VALUE_TYPE (param_values + 2) == G_TYPE_INT)
+ detail2 = g_value_get_int (param_values + 2);
+ }
+ }
if (signal_query.signal_id == atk_signal_text_changed)
{