URL:
<http://gna.org/bugs/?25220>
Summary: UB: integer overflow (ai) in test scenario
Project: Battle for Wesnoth
Submitted by: matthiaskrgr
Submitted on: Sun 23 Oct 2016 10:13:29 UTC
Category: Bug
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None of the others
Status: None
Privacy: Public
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: git
Operating System: linux
_______________________________________________________
Details:
start wesnoth -t
end turn
when the game asks for selections in dialogs, just select the topmost option.
At some point during the AI turn, you should encounter
/home/matthias/vcs/github/wesnoth/src/ai/contexts.cpp:1138:44: runtime error:
signed integer overflow: 1539000000 * 2 cannot be represented in type 'int
[6]'
Log attached.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: Sun 23 Oct 2016 10:13:29 UTC Name: int_overflow_UB.log Size: 5kB By:
matthiaskrgr
<http://gna.org/bugs/download.php?file_id=29111>
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?25220>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Wesnoth-bugs mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-bugs