[Freeciv-Dev] [bug #17677] NULL dereference in city sanity check debug message

2011-02-09 Thread Matthias Pfafferodt

Follow-up Comment #1, bug #17677 (project freeciv):

to slow ;-) - I had a similar patch prepared ...

___

Reply to this item at:

  http://gna.org/bugs/?17677

___
  Nachricht geschickt von/durch Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #17677] NULL dereference in city sanity check debug message

2011-02-08 Thread Jacob Nevins

URL:
  http://gna.org/bugs/?17677

 Summary: NULL dereference in city sanity check debug message
 Project: Freeciv
Submitted by: jtn
Submitted on: Wed Feb  9 00:04:50 2011
Category: None
Severity: 2 - Minor
Priority: 5 - Normal
  Status: Ready For Test
 Assigned to: jtn
Originator Email: 
 Open/Closed: Open
 Release: 2.2.4,2.3.0-beta3
 Discussion Lock: Any
Operating System: None
 Planned Release: 2.2.5,2.3.0,2.4.0

___

Details:

In city_from_wonder(), when the server wants to say something like

1: Player Vercingétorix (nb 0) has outdated wonder info for Copernicus'
Observatory (nb 44), it points to city nb 343.

it actually segfaults due to dereferencing 'pcity' when it's guaranteed to be
NULL.




___

Reply to this item at:

  http://gna.org/bugs/?17677

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev


[Freeciv-Dev] [bug #17677] NULL dereference in city sanity check debug message

2011-02-08 Thread Jacob Nevins

Additional Item Attachment, bug #17677 (project freeciv):

File name: trunk-S2_3-city-debug-msg-segfault.diff Size:0 KB
File name: S2_2-city-debug-msg-segfault.diff Size:0 KB


___

Reply to this item at:

  http://gna.org/bugs/?17677

___
  Message sent via/by Gna!
  http://gna.org/


___
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev