X-Moto

Tasklist

FS#799 - StateMainMenu::updateStats() doesn't protect atoi() calls, sometimes causing segfaults

Attached to Project: X-Moto
Opened by Anonymous Submitter - Tuesday, 17 April 2012, 06:09 GMT
Task Type Bug Report
Category General
Status Unconfirmed
Assigned To No-one
Operating System All
Severity High
Priority Normal
Reported Version 0.5.9
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No

Details

Hi,

In StateMainMenu::updateStats(), atoi() is called directly with the result of xmDatabase::getResult(), which can be NULL, causing a segfault. The patch at http://anonscm.debian.org/viewvc/pkg-games/packages/trunk/xmoto/debian/patches/fix_segfault.patch?revision=12926&view=co (against 0.5.9) fixes this.

Regards,

Stephen Kitt <steve@sk2.org>
This task depends upon

Loading...