mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
mainloop-test: Fix uninitialized memory access in tests
https://bugzilla.gnome.org/show_bug.cgi?id=711751
This commit is contained in:
parent
a638be8a79
commit
3e041ce5ad
@ -105,7 +105,7 @@ adder_callback (GIOChannel *source,
|
||||
char buf1[32];
|
||||
char buf2[32];
|
||||
|
||||
char result[32];
|
||||
char result[32] = { 0, };
|
||||
|
||||
AddrData *addr_data = data;
|
||||
|
||||
@ -216,8 +216,8 @@ io_pipe (GIOChannel **channels)
|
||||
static void
|
||||
do_add (GIOChannel *in, gint a, gint b)
|
||||
{
|
||||
char buf1[32];
|
||||
char buf2[32];
|
||||
char buf1[32] = { 0, };
|
||||
char buf2[32] = { 0, };
|
||||
|
||||
sprintf (buf1, "%d", a);
|
||||
sprintf (buf2, "%d", b);
|
||||
|
Loading…
Reference in New Issue
Block a user