<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40486 >

On Sun, 14 Sep 2008 03:46:25 -0700 Egor Vyscrebentsov wrote:

> S2_2, r15205.
> Loading game crashes civserver with buffer overflow.
> Reason: too small buffer in player_load_vision()

Looks like a copy-paste from map_load() [where this buffer
is really enough.]

> Attached patch works for me, though I guess we need smth like
> fc_s[n]printf().

And, of course, there is my_snprintf() already...

[Side note.] Game loading looks too unsafe... /me wants
to see civserver not crashing if there is no entry while
capability is present, for example

Thanks, evyscr

Freeciv-dev mailing list

Reply via email to