projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49fac94
)
gdbus-test-codegen: Allocate full integer space for uint16 properties
author
Colin Walters
<walters@verbum.org>
Mon, 20 Jun 2011 17:41:52 +0000
(13:41 -0400)
committer
Colin Walters
<walters@verbum.org>
Mon, 20 Jun 2011 18:03:05 +0000
(14:03 -0400)
Because there is no G_TYPE_[U]INT16, we need to use integer types,
otherwise we'll end up overwriting memory (in this case on the stack).
gio/tests/gdbus-test-codegen.c
patch
|
blob
|
history
diff --git
a/gio/tests/gdbus-test-codegen.c
b/gio/tests/gdbus-test-codegen.c
index
fe192fa
..
24c1cae
100644
(file)
--- a/
gio/tests/gdbus-test-codegen.c
+++ b/
gio/tests/gdbus-test-codegen.c
@@
-703,8
+703,8
@@
check_bar_proxy (FooBar *proxy,
ClientData *data;
guchar val_y;
gboolean val_b;
- gint
16
val_n;
- guint
16
val_q;
+ gint val_n;
+ guint val_q;
gint val_i;
guint val_u;
gint64 val_x;