bug-buddy r2763 - in trunk: . gnome-breakpad
- From: cosimoc svn gnome org
- To: svn-commits-list gnome org
- Subject: bug-buddy r2763 - in trunk: . gnome-breakpad
- Date: Tue, 11 Nov 2008 13:11:13 +0000 (UTC)
Author: cosimoc
Date: Tue Nov 11 13:11:12 2008
New Revision: 2763
URL: http://svn.gnome.org/viewvc/bug-buddy?rev=2763&view=rev
Log:
2008-11-11 Cosimo Cecchi <cosimoc gnome org>
* gnome-breakpad/gnome-breakpad.cc:
Don't free uninitialized memory. Fix segfaults when using 2.25.1.
Modified:
trunk/ChangeLog
trunk/gnome-breakpad/gnome-breakpad.cc
Modified: trunk/gnome-breakpad/gnome-breakpad.cc
==============================================================================
--- trunk/gnome-breakpad/gnome-breakpad.cc (original)
+++ trunk/gnome-breakpad/gnome-breakpad.cc Tue Nov 11 13:11:12 2008
@@ -95,6 +95,10 @@
static void
circ_buff_free (CircBuff *buff)
{
+ if (!buff) {
+ return;
+ }
+
g_strfreev (buff->strings);
g_free (buff);
@@ -134,6 +138,10 @@
GError *error = NULL;
const char *header;
+ if (!buff) {
+ return NULL;
+ }
+
tmp_fd = g_file_open_tmp ("bug-buddy-XXXXXX", &actual_name, &error);
if (error) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]