public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in games-action/extreme-tuxracer/files: extreme-tuxracer-0.6.0-segfault.patch
@ 2015-04-05  8:31 Michael Sterrett (mr_bones_)
  0 siblings, 0 replies; only message in thread
From: Michael Sterrett (mr_bones_) @ 2015-04-05  8:31 UTC (permalink / raw
  To: gentoo-commits

mr_bones_    15/04/05 08:31:49

  Added:                extreme-tuxracer-0.6.0-segfault.patch
  Log:
  add patch from N Alex to avoid segfault with no trees (bug #545494)
  
  (Portage version: 2.2.14/cvs/Linux x86_64, unsigned Manifest commit)

Revision  Changes    Path
1.1                  games-action/extreme-tuxracer/files/extreme-tuxracer-0.6.0-segfault.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/extreme-tuxracer/files/extreme-tuxracer-0.6.0-segfault.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/games-action/extreme-tuxracer/files/extreme-tuxracer-0.6.0-segfault.patch?rev=1.1&content-type=text/plain

Index: extreme-tuxracer-0.6.0-segfault.patch
===================================================================
--- physics.cpp
+++ physics.cpp
@@ -126,3 +126,5 @@
 	    TCollidable *trees = &Course.CollArr[0];
+	if (trees == NULL) 
+		return false;
 	size_t num_trees = Course.CollArr.size();
 	size_t tree_type = trees[0].tree_type;





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-04-05  8:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-05  8:31 [gentoo-commits] gentoo-x86 commit in games-action/extreme-tuxracer/files: extreme-tuxracer-0.6.0-segfault.patch Michael Sterrett (mr_bones_)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox