Page 1 of 1

[0.11.12] map editor: crash with invalid map exchange string

Posted: Mon Jan 19, 2015 1:47 am
by prg
Map editor -> New map -> enter this broken map exchange string I found on the forum:

Code: Select all

>>>AAALAAoAAAABBQYAAAAEAAAAY29hbAMEAgoAAABjb3BwZXltb3JI
AwQCCQAAAGNydWRILW9pbAMDAgoAAABlbmVteS1iYXNIAwMCCAAAAGI
yb24tb3JIAwQCBQAAAHNOb25IAwMCZJ7hFMJRAACLYAAAAAAAAAAAAA
ACAP9bxAE=<<<
This produces "Info GenerateMapGui.cpp:360: Invalid exchange string(Wrong CRC value)"; click "Generate" anyway.
A random map is generated.
ESC -> Regenerate Map
segfault
Haven't yet managed to get a crash with any other broken map exchange string, but it works reliably with this one.

Re: [0.11.12] map editor: crash with invalid map exchange st

Posted: Mon Jan 19, 2015 10:03 am
by kovarex
Thanks for the report.

The map exchange string loading is much more safe now and the error is fixed for 0.11.13 now.