Crash when pressing tab key in help menu

Bug #1600633 reported by Notabilis
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
widelands
Fix Released
Medium
Notabilis

Bug Description

When pressing the tab-key in a list of the help menu the game segfaults.

Reproduce:
- Start a game
- Open the help menu
- Click on an entry in the left list
- Press Tab-key
- Enjoy your desktop wallpaper

The problem is an memory access behind the end of the panel list. When the currently focused panel is the last panel in the list, next_ is 0x0 resulting in a crash when accessed.

The linked branch fixes this crash by switching to the first element in the list (similar to what is done later on when the list is traversed).

Edit: Happens in trunk revision bzr8028

Tags: crash ui

Related branches

Notabilis (notabilis27)
description: updated
description: updated
TiborB (tiborb95)
Changed in widelands:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Notabilis (notabilis27)
kaputtnik (franku)
Changed in widelands:
status: Confirmed → Fix Committed
Changed in widelands:
milestone: none → build19-rc1
GunChleoc (gunchleoc)
Changed in widelands:
status: Fix Committed → Fix Released
Revision history for this message
GunChleoc (gunchleoc) wrote :

Fixed in build19-rc1.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.