URL:
<http://gna.org/bugs/?25448>
Summary: military_advisor_choose_build - signed integer
overflow
Project: Freeciv
Submitted by: mir3x
Submitted on: Mon 16 Jan 2017 07:35:24 PM CET
Category: ai
Severity: 3 - Normal
Priority: 5 - Normal
Status: None
Assigned to: None
Originator Email:
Open/Closed: Open
Release: 2.6.0, 3.0, 3.1
Discussion Lock: Any
Operating System: None
Planned Release:
Contains string changes: None
_______________________________________________________
Details:
danger = MIN(200, 100 * qdanger / our_def) + urgency;
100 * qdanger = 1369706212 * 100 -> overflow
qdanger is danerous close to overflow alone.
Seems danger might go easily to negative value.
in save from game in bug #25446
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?25448>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev