[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Beaver-devel] Beaver-Bugs
From: |
Jens Rehsack |
Subject: |
[Beaver-devel] Beaver-Bugs |
Date: |
Fri, 22 Aug 2003 10:49:50 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4) Gecko/20030821 |
Hi Developers,
I detected 1 bug of beaver when building it under FreeBSD 5-CURRENT
using gcc-3.3.1 (and some optimization :-)):
conf.c tries to free unallocated spaces, patch applied
Best wishes,
Jens
--- src/conf.c.orig Sun May 25 11:24:42 2003
+++ src/conf.c Fri Aug 22 10:39:06 2003
@@ -183,6 +183,7 @@
t_conf conf;
gint ret_val;
+ bzero( &conf, sizeof(conf) );
if (get_conf(key, &conf))
{
free_conf(&conf);
@@ -198,6 +199,7 @@
t_conf conf;
gint ret_val;
+ bzero( &conf, sizeof(conf) );
if (get_conf(key, &conf))
{
free_conf(&conf);
@@ -213,6 +215,7 @@
t_conf conf;
gboolean ret_val;
+ bzero( &conf, sizeof(conf) );
if (get_conf(key, &conf))
{
free_conf(&conf);
@@ -231,6 +234,7 @@
t_conf conf;
gboolean ret_val;
+ bzero( &conf, sizeof(conf) );
if (get_conf(key, &conf))
{
free_conf(&conf);
@@ -249,6 +253,7 @@
t_conf conf;
gchar *ret_val;
+ bzero( &conf, sizeof(conf) );
if (get_conf(key, &conf))
{
free_conf(&conf);
@@ -266,6 +271,7 @@
t_conf conf;
gchar *ret_val;
+ bzero( &conf, sizeof(conf) );
if (get_conf(key, &conf))
{
free_conf(&conf);
@@ -386,6 +392,7 @@
{
t_conf conf;
+ bzero( &conf, sizeof(conf) );
conf.line = g_strdup_printf("%d", value);
if (set_conf(key, &conf))
{
@@ -400,6 +407,7 @@
{
t_conf conf;
+ bzero( &conf, sizeof(conf) );
if (value)
conf.line = g_strdup("TRUE");
else
@@ -417,6 +425,7 @@
{
t_conf conf;
+ bzero( &conf, sizeof(conf) );
conf.line = g_strdup(value);
if (set_conf(key, &conf))
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Beaver-devel] Beaver-Bugs,
Jens Rehsack <=