[Bug 535466] New: libmsn-3.9.96-1.7: ten bad calls to free
http://bugzilla.novell.com/show_bug.cgi?id=535466 Summary: libmsn-3.9.96-1.7: ten bad calls to free Classification: openSUSE Product: openSUSE 11.2 Version: Factory Platform: All OS/Version: All Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dcb314@hotmail.com QAContact: qa@suse.de Found By: --- I just had a look at factory package libmsn-3.9.96-1.7 1. For source code file libmsn-4.0-beta6/msn/p2p.cpp around line 70, function P2P::handleP2Pmessage is the following code char *c = new char[packet.p2pHeader.messageLength]; but a few lines later is free(c); so this is C++ allocation and C de-allocation. Suggest replace the call to free with the following code delete [] c ; c = NULL; 2. Same thing again in same file, lines 116-119, local variables a, c, d1, g. 3. Same thing again in same file, lines 703, 704, local variables filenameutf16, filenameutf8. 4. Same thing again in same file, line 717, local variable a. 5. Same thing again in same file, lines 1318-9, local variables filenameutf16 and filenameutf8. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=535466
shuang qiu
http://bugzilla.novell.com/show_bug.cgi?id=535466
Dirk Mueller
http://bugzilla.novell.com/show_bug.cgi?id=535466
User rguenther@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=535466#c1
--- Comment #1 from Richard Guenther
http://bugzilla.novell.com/show_bug.cgi?id=535466
http://bugzilla.novell.com/show_bug.cgi?id=535466#c2
Dirk Mueller
participants (1)
-
bugzilla_noreply@novell.com