Bug#860680: ufoai: map compiler ufo2map segfaults

Markus Koschany apo at debian.org
Tue Apr 25 13:30:24 UTC 2017


On Fri, 21 Apr 2017 18:16:48 +0200 =?UTF-8?Q?Bernhard_=c3=9cbelacker?=
<bernhardu at mailbox.org> wrote:
[...]
> 
> I think this crash is caused by this part in LoadMapFile:
> 
> 	char entityString[MAX_TOKEN_CHARS];
> 	const char* ump = GetUMPName(filename);
> 	if (ump != nullptr)
> 		ParseUMP(ump, entityString, false);
> 
> 	while (ParseMapEntity(filename, entityString));
> 
> If GetUMPName returns nullptr entityString gets not initialized and
> is used in ParseMapEntity.

[...]

Hi,

thank you very much for your analysis. I think you are right. I have
applied the patch and I can't reproduce the segfault anymore. I will
upload a new revision soon.

Regards,

Markus

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20170425/85b964d8/attachment.sig>


More information about the Pkg-games-devel mailing list