After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 341061 - Memory corruption with string values containing '%'
Memory corruption with string values containing '%'
Status: RESOLVED FIXED
Product: libgda
Classification: Other
Component: general
1.9.x
Other Linux
: Normal normal
: ---
Assigned To: Rodrigo Moya
gnome-db Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-05-08 18:17 UTC by Chris Shoemaker
Modified: 2006-12-27 18:30 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Chris Shoemaker 2006-05-08 18:17:52 UTC
Fixed by this patch:

Index: libgda/gda-query.c
===================================================================
--- libgda/gda-query.c  (revision 2748)
+++ libgda/gda-query.c  (working copy)
@@ -5321,7 +5321,7 @@
                                        g_string_append (sql, ", ");
                        }

-                       g_string_append_printf (sql, (gchar *) list->data);
+                       g_string_append_printf (sql, "%s", (gchar *) list->data);

                        list = g_slist_next (list);
                }
Comment 1 Murray Cumming 2006-12-27 18:30:44 UTC
Committed to HEAD. Many thanks.

Please do patch the ChangeLog in future, and _attach_ the patch.