summaryrefslogtreecommitdiff
path: root/atk
diff options
context:
space:
mode:
authorPadraig O'Briain <padraig.obriain@sun.com>2003-07-08 09:29:32 +0000
committerPadraig O'Briain <padraigo@src.gnome.org>2003-07-08 09:29:32 +0000
commit795a93f8cbe4e9816537442aee42fd933bebdc9d (patch)
tree31fef94e861127eb08daf24f55076cf752a3595f /atk
parent6c403fd5b8ab042c3bf8671d3c832cf85570008a (diff)
downloadatk-795a93f8cbe4e9816537442aee42fd933bebdc9d.tar.gz
Ensure that row and column values are non-negative.
2003-07-08 Padraig O'Briain <padraig.obriain@sun.com> * atk/atktable.c (atk_table_ref_at): Ensure that row and column values are non-negative. This is a partial fix for bug #116712.
Diffstat (limited to 'atk')
-rwxr-xr-xatk/atktable.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/atk/atktable.c b/atk/atktable.c
index 784b310..ed0ca78 100755
--- a/atk/atktable.c
+++ b/atk/atktable.c
@@ -148,6 +148,8 @@ atk_table_ref_at (AtkTable *table,
AtkTableIface *iface;
g_return_val_if_fail (ATK_IS_TABLE (table), NULL);
+ g_return_val_if_fail (row >= 0, NULL);
+ g_return_val_if_fail (column >= 0, NULL);
iface = ATK_TABLE_GET_IFACE (table);