Page MenuHomeWildfire Games

Fixed out of bounds
ClosedPublic

Authored by vladislavbelov on May 12 2017, 8:49 PM.

Details

Reviewers
elexis
Itms
echotangoecho
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Commits
rP19579: Fix out of range access in CInput, patch by vladislavbelov. Fixes #4570.
Trac Tickets
#4401
#4570
Summary

There was an issue in old code in UpdateAutoScroll, it didn't check invalid cursor positions.

Test Plan
  1. Compile the game in Debug mode
  2. Run the game and try to open lobby

Diff Detail

Repository
rP 0 A.D. Public Repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

vladislavbelov created this revision.May 12 2017, 8:49 PM
Vulcan added a subscriber: Vulcan.May 13 2017, 12:01 AM

Build is green

Updating workspaces.
Build (release)...
Build (debug)...
Running release tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!
Running debug tests...
Running cxxtest tests (306 tests)..................................................................................................................................................................................................................................................................................................................OK!

http://jw:8080/job/phabricator/1167/ for more details.

echotangoecho accepted this revision.May 14 2017, 7:40 PM
echotangoecho added a subscriber: echotangoecho.

Encountered the same issue and this fix works.

This revision is now accepted and ready to land.May 14 2017, 7:40 PM
Itms edited edge metadata.May 14 2017, 8:17 PM

This works for me too! I'll commit it ?

This revision was automatically updated to reflect the committed changes.