[perl-Glib] Avoid memory corruption when registering boxed synonyms repeatedly



commit cda1f5a8d0bc5e1487094160bb9215b4e92d2c32
Author: Torsten Schönfeld <kaffeetisch gmx de>
Date:   Sun Jul 14 22:40:07 2013 +0200

    Avoid memory corruption when registering boxed synonyms repeatedly
    
    https://bugzilla.gnome.org/show_bug.cgi?id=704143

 GBoxed.xs |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/GBoxed.xs b/GBoxed.xs
index 94f6702..92fccb6 100644
--- a/GBoxed.xs
+++ b/GBoxed.xs
@@ -136,6 +136,7 @@ boxed_info_copy (BoxedInfo * boxed_info)
        BoxedInfo * new_boxed_info;
        new_boxed_info = g_new0 (BoxedInfo, 1);
        memcpy (new_boxed_info, boxed_info, sizeof (BoxedInfo));
+       new_boxed_info->package = g_strdup (boxed_info->package);
        return new_boxed_info;
 }
 


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