tests: Fix signature of GtkTestATContext::update-selection-bound handlers

The signal is declared in GtkTestATContext with 0 parameters, but these
handlers were written as if the signal had one `guint` parameter.
On some architectures this accidentally works as intended, but on
others (reproduced on i386 and riscv64) the test tries to use arbitrary
stack contents as the `TestData *` and crashes when it tries to
dereference the resulting non-pointer.

Resolves: https://gitlab.gnome.org/GNOME/gtk/-/issues/6490
Signed-off-by: Simon McVittie <smcv@debian.org>
This commit is contained in:
Simon McVittie
2024-07-27 00:58:53 +01:00
parent 5e52cefb28
commit a8bb71383a
2 changed files with 0 additions and 2 deletions

View File

@@ -45,7 +45,6 @@ update_caret_pos (GtkATContext *context,
static void
update_selection_bound (GtkATContext *context,
guint selection_bound,
gpointer data)
{
TestData *td = data;

View File

@@ -72,7 +72,6 @@ update_caret_pos (GtkATContext *context,
static void
update_selection_bound (GtkATContext *context,
guint selection_bound,
gpointer data)
{
TestData *td = data;