SIGSEGV crash on CControl::CheckTreeCollisions when no trees in level

Bug #1332986 reported by Jakub Vaněk
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Extreme Tux Racer
Undecided
Unassigned
extremetuxracer (Ubuntu)
Undecided
Unassigned

Bug Description

Hello everybody,
I found a bug when I was playing "Who Says Penguins Can't Fly?". If you start this level as first, ETR will crash. SIGSEGV is fired because TCollidable *trees is NULL in levels with no trees and in CControl::CheckTreeCollisions(...) is that variable indexed.
Patch is in attachments.
Please correct me if CControl::CheckTreeCollisions(...) quit isn't ok.
Thank you,
Jakub Vanek

Revision history for this message
Jakub Vaněk (vanek-jakub4) wrote :
Changed in etracer:
assignee: nobody → Jakub Vaněk (vanek-jakub4)
description: updated
Changed in etracer:
assignee: Jakub Vaněk (vanek-jakub4) → nobody
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "patch.patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Jakub Vaněk (vanek-jakub4) wrote :
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments