Complete.Org: Mailing Lists: Archives: freeciv-dev: October 2005:
[Freeciv-Dev] (PR#14369) civserver crashes on startup (amd64)
Home

[Freeciv-Dev] (PR#14369) civserver crashes on startup (amd64)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
Subject: [Freeciv-Dev] (PR#14369) civserver crashes on startup (amd64)
From: "David A Knight" <david@xxxxxxxxxxxxxxxxxx>
Date: Tue, 18 Oct 2005 08:27:18 -0700
Reply-to: bugs@xxxxxxxxxxx

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

civserver from a fresh checkout (Tue 18 Oct) crashes on startup under
x86_64. 

The reason for this seems to be code like in unittype.c precalc_one()

memory is allocated based of sizeof( Unit_type_id ),  which is 32bit,
but then tries to assign a pointer to it with

with_role[i][j++] = u;

which is 64bit, causing a buffer overflow.

this bug will exist anywhere where such allocation is being done.



David

-- 
Make your website SCREEM - Site Creating & Editing EnvironMent

URL:  http://www.screem.org/
Mail: david@xxxxxxxxxx


Attachment: signature.asc
Description: PGP signature


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#14369) civserver crashes on startup (amd64), David A Knight <=