Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2004:
[Freeciv-Dev] (PR#8518) Bugs in sha.c
Home

[Freeciv-Dev] (PR#8518) Bugs in sha.c

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients: ;
Subject: [Freeciv-Dev] (PR#8518) Bugs in sha.c
From: "Jörgen Tegnér" <jorgen.tegner@xxxxxxxxx>
Date: Thu, 15 Apr 2004 08:31:00 -0700
Reply-to: rt@xxxxxxxxxxx

<URL: http://rt.freeciv.org/Ticket/Display.html?id=8518 >

Hi, 

there are a couple of bugs in sha.c where a null pointer (sometimes)
gets dereferenced.

Adding simple checks like

  if(!punit) return;

after calls like

  struct unit *punit = find_unit_by_id(id);

took care of the immediate crashes I got on my machine.

I'm running cvs from 2004-04-14.

Thanks,
Jörgen
-- 
Jörgen Tegnér <jorgen.tegner@xxxxxxxxx>

Attachment: signature.asc
Description: PGP signature


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