[Wesnoth-bugs] [bug #25220] UB: integer overflow (ai) in test scenario

2017-03-18 Thread Charles Dang
Update of bug #25220 (project wesnoth):

 Open/Closed:Open => Closed 


___

Reply to this item at:

  

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


___
Wesnoth-bugs mailing list
Wesnoth-bugs@gna.org
https://mail.gna.org/listinfo/wesnoth-bugs


[Wesnoth-bugs] [bug #25220] UB: integer overflow (ai) in test scenario

2017-03-14 Thread Daniel
Update of bug #25220 (project wesnoth):

  Status:None => Fixed  

___

Follow-up Comment #2:

duplicate of https://gna.org/bugs/index.php?25542 fixed at
https://github.com/wesnoth/wesnoth/commit/06a544385121f3d353fa80d5a4e638919682070a

___

Reply to this item at:

  

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


___
Wesnoth-bugs mailing list
Wesnoth-bugs@gna.org
https://mail.gna.org/listinfo/wesnoth-bugs


[Wesnoth-bugs] [bug #25220] UB: integer overflow (ai) in test scenario

2016-10-23 Thread Wedge009
Update of bug #25220 (project wesnoth):

 Release: git => 1.13.5+dev 

___

Follow-up Comment #1:


int rating = hp * defense * most_damage * village_bonus / 200;


I wasn't able to get that huge value. But maybe those more familiar with the
AI (mattsc?) should have a look at this and check for the potential for huge
numbers to be processed and potentially overflowing the rating value. Most of
the values I saw being processed was in the order of millions.

___

Reply to this item at:

  

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


___
Wesnoth-bugs mailing list
Wesnoth-bugs@gna.org
https://mail.gna.org/listinfo/wesnoth-bugs


[Wesnoth-bugs] [bug #25220] UB: integer overflow (ai) in test scenario

2016-10-23 Thread Matthias Krüger
URL:
  

 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: 153900 * 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



___

Reply to this item at:

  

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


___
Wesnoth-bugs mailing list
Wesnoth-bugs@gna.org
https://mail.gna.org/listinfo/wesnoth-bugs