Package: overkill
Version: 0.16-11-adi1
Severity: normal
Tags: patch

--- Please enter the report below this line. ---

Hi

There is a bug in overkill, when jumping at the upper left corner in the first 
level, then the server is going to segfault because the coordinates got 
negative.

I tried to contact upstream two weeks ago, but I got no answer, so I send my 
patch here.

Greets, Adrian

BTW: There is another option for overkill-server missing in the manpage 
preventing the server to quit when F12 is pressed on a client:
 -n  Server can't be ended by client

--- System information. ---
Architecture: i386
Kernel:       Linux 2.6.22-2-686

Debian Release: lenny/sid
  800 unstable        ftp.ch.debian.org

--- Package information. ---
Depends       (Version) | Installed
=======================-+-===========
libc6        (>= 2.6-1) | 2.6.1-3
libx11-6                | 2:1.0.3-7
libxpm4                 | 1:3.5.7-1

--- data.c	2007-09-01 15:59:18.000000000 +0200
+++ data.c	2007-09-01 15:57:35.000000000 +0200
@@ -468,6 +468,7 @@
 		return new_x;
 	}
 	if(flag)*flag=1;
+	if (yh<0) yh=0;
 	if (old_x<new_x)
 		for (x=double2int(old_x)+1;x<=round_up(new_x);x++)  /* go to the right */
 		{

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to