[freeciv-ai] Re: [Freeciv-Dev] Re: (PR#2518) ai reading from raw memory?
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Mon, 9 Dec 2002, Raimar Falke via RT wrote:
> > Arrgh - the ai_choice mess is even in the server directory! Use this patch
> > instead, it should cover all cases.
>
> You missed the one I reported:
>
> ==25366== Conditional jump or move depends on uninitialised value(s)
> ==25366== at 0x80D49FD: copy_if_better_choice (aitools.c:451)
> ==25366== by 0x80D39C8: ai_next_tech_goal (aitech.c:247)
> ==25366== by 0x8084920: choose_goal_tech (plrhand.c:433)
> ==25366== by 0x8084238: found_new_tech (plrhand.c:274)
As far as I can see, the bug isn't in that function, but we're sending
this function pointers to uninitialized data. And this my patch should
fix. No?
- Per
|
|