[syslog-ng] [Bug 269] some code doesn't follow glib recomendations

bugzilla at bugzilla.balabit.com bugzilla at bugzilla.balabit.com
Sat Feb 1 07:39:49 CET 2014


https://bugzilla.balabit.com/show_bug.cgi?id=269





--- Comment #6 from Balazs Scheidler <bazsi at balabit.hu>  2014-02-01 07:39:49 ---
this is where I've integrated it in the 3.6 branch

commit a8f4b42142593b911457cabab5acbcf5157b8371
Author: Igor Ippolitov <iippolitov at gmail.com>
Date:   Sat Feb 1 07:35:00 2014 +0100

    nvtable: fix an NV registry corruption in the unit tests

    nv_registry_add_alias() used the passed in pointer to the alias verbatim,
    without copying it.  However the unit test program generated alias names
    dynamically, e.g.  editing the memory area that was used to store the hash
    table key.

    Since this wasn't intuitive at all, this patch changes the code so that the
    key in the NV registry is now always duplicated before insertion.

    Signed-off-by: Igor Ippolitov <iippolitov at gmail.com>
    Signed-off-by: Balazs Scheidler <bazsi at balabit.hu>


-- 
Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the syslog-ng mailing list