[Bug 216532] New: LSB: heap corruption in g_new/g_strlcpy()
https://bugzilla.novell.com/show_bug.cgi?id=216532 Summary: LSB: heap corruption in g_new/g_strlcpy() Product: openSUSE 10.2 Version: Beta 1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: GNOME AssignedTo: bnc-team-gnome@forge.provo.novell.com ReportedBy: jdluhos@novell.com QAContact: qa@suse.de Found by the LSB desktop test: A simple test case (please find the attached source code) causes heap corruption and aborts. Possible culprit is the g_strlcpy() call. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216532 ------- Comment #1 from jdluhos@novell.com 2006-10-31 03:18 MST ------- Created an attachment (id=103145) --> (https://bugzilla.novell.com/attachment.cgi?id=103145&action=view) The test case (simplified version of the LSB test). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216532 ------- Comment #2 from jdluhos@novell.com 2006-10-31 05:09 MST ------- I think a similar crash occurs with stpcpy(). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216532 meissner@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |meissner@novell.com ------- Comment #3 from meissner@novell.com 2006-10-31 06:43 MST ------- what about the leading \0 ? it makes it 11 character strings I think.... -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216532 ------- Comment #4 from jpr@novell.com 2006-10-31 06:45 MST ------- From: http://developer.gnome.org/doc/API/2.0/glib/glib-String-Utility-Functions.ht... "dest is guaranteed to be nul-terminated;" however dest is not guaranteed to be NULL terminated in the test program. Suggest g_new0 instead of g_new would do the trick. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216532 ------- Comment #5 from jdluhos@novell.com 2006-10-31 07:05 MST ------- Hmmm... so it's a bug in the test, right? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216532 ------- Comment #6 from jpr@novell.com 2006-10-31 08:37 MST ------- Sure looks like it. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216532 jpr@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |jdluhos@novell.com |gnome@forge.provo.novell.com| ------- Comment #7 from jpr@novell.com 2006-10-31 10:08 MST ------- Also, "dest_size is the buffer size, not the number of chars to copy" and 10 bytes are allocated for dest but SIZE is 15. All round this test case looks pretty darn broken. I'll re-assign back to you Jiri to take back to the LSB guys. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216532 ------- Comment #8 from jdluhos@novell.com 2006-11-01 03:21 MST ------- Reported to upstream LSB, we will see how they react :-) For the record, this error seems to affect the following tests in the LSB desktop test suite: /tests/functions/StringUtil/StringUtil.18 /tests/functions/StringUtil/StringUtil.38 /tests/functions/StringUtil/StringUtil.51 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216532 jdluhos@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216532 ------- Comment #9 from jdluhos@novell.com 2006-11-01 03:25 MST ------- Also for the record, and for the curious, the appropriate bug reports in LSB bugzilla are here: http://bugs.linuxbase.org/show_bug.cgi?id=1516 http://bugs.linuxbase.org/show_bug.cgi?id=1517 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=216532 mboman@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #10 from mboman@novell.com 2007-04-26 22:59 MST ------- Both bugs have been fixed upstream. Closing. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com