Re: Bad config stanza, balsa segv



On 01/22/2010 06:54:15 PM, Geoffrey Leach wrote:
This happens with both the F12 version (balsa-2.4.1-2.fc12.i686) and a
locally-built 2.4.2.  I have no idea what caused this stanza with an
empty viewByUrl, but a check seems to be called for.

A patch like below has been committed. Thank you for reporting the problem with such a trivial way to reproduce it!

Pawel
diff --git a/libbalsa/misc.c b/libbalsa/misc.c
index e3fc523..7d78f2a 100644
--- a/libbalsa/misc.c
+++ b/libbalsa/misc.c
@@ -167,7 +167,7 @@ libbalsa_urldecode(const gchar * str)
     gchar *retval;
     gchar *x;

-    retval = g_new(char, strlen(str));
+    retval = g_new(char, strlen(str)+1);

     for (x = retval; *str != '\0'; str++, x++) {
 	*x = *str;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]