Bug#737487: marsshooter: segfaults when using the -cfg or -data arguments with no path given.
Sylvain Boilard
boilard at crans.org
Mon Feb 3 00:58:52 UTC 2014
Package: marsshooter
Version: 0.7.5-1
Severity: normal
Tags: patch
Dear Maintainer,
When one tries to launch M.A.R.S. using the -cfg or -data arguments
without specifying a path after that argument, for example:
$ mars -cfg
the game segfaults as the result of accessing the next element of
argv without verifying if it is at a valid index.
Attached patch solves the issue and displays an error message.
Best wishes.
--
Sylvain Boilard
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch
Type: text/x-diff
Size: 941 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20140203/4641a1e2/attachment.diff>
More information about the Pkg-games-devel
mailing list