[gcr: 1/2] fix parameter type for signal handler



commit 7c307f7bbf9b8e94e88fab8e550a8c9f72aabad8
Author: Dan HorĂ¡k <dan danny cz>
Date:   Sat Jun 1 10:02:50 2019 +0200

    fix parameter type for signal handler
    
    The on_prompter_prompting signal handler used a struct as a otherwise unused parameter
    while a pointer was passed by the caller. This led to a stack smashing on the ppc64le
    platform and a segfault.
    
    fixes https://bugzilla.redhat.com/show_bug.cgi?id=1631759

 ui/gcr-prompter-tool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/ui/gcr-prompter-tool.c b/ui/gcr-prompter-tool.c
index 0a22238..cd1cc56 100644
--- a/ui/gcr-prompter-tool.c
+++ b/ui/gcr-prompter-tool.c
@@ -72,7 +72,7 @@ stop_timeout (void)
 
 static void
 on_prompter_prompting (GObject *obj,
-                       GParamSpec param,
+                       GParamSpec *param,
                        gpointer user_data)
 {
        if (gcr_system_prompter_get_prompting (the_prompter))


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]