tlf-devel
[Top][All Lists]
Advanced

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

[Tlf-devel] tlf segfault


From: Thomas Beierlein
Subject: [Tlf-devel] tlf segfault
Date: Sun, 4 Oct 2009 09:07:36 +0200
User-agent: Mutt/1.5.17 (2007-11-01)

Hi,

Tlf segfaults immediately after start on some machines here if started 
with 'tlf -n' and if SPOTLIST is activated in logcfg.dat (as installed by
default as example).

Found the reason in cluster_bg.c where in case of an empty spotlist tlf uses 
some negative indexes for array access (around lines 460..490) . Bummer!

The following diff fixes the problem. I hope Rein can integrate the patch soon 
and release a fixed version.

73, de Tom DL1JBE

Patch follows here:

--- src/cluster_bg.c.orig       2009-10-03 09:14:28.000000000 +0200
+++ src/cluster_bg.c    2009-10-02 08:25:40.000000000 +0200
@@ -463,7 +463,10 @@
 for (j=15; j < 23; j++)
        mvprintw(j,4, "                           ");
 
-if (cluster == SPOTS) linepos = i - 8;
+if (cluster == SPOTS){
+       linepos = i - 8;
+       if (linepos < 0) linepos = 0;
+}
 else linepos = 0;
 
 
-- 
"Do what is needful!"
Ursula LeGuin: Earthsea
--





reply via email to

[Prev in Thread] Current Thread [Next in Thread]