← Back to team overview

dalesec team mailing list archive

[Bug 471341] Re: segfault when selecting unit

 

Buffer overflow here:
char hp[10];
sprintf(hp,"Hp: %d of %d ",unit->get_health(),unit->get_maxhealth());

string is longer than 10 chars

-- 
segfault when selecting unit
https://bugs.launchpad.net/bugs/471341
You received this bug notification because you are a member of Dal Esec,
which is subscribed to Rawcese.

Status in Rawcese strategy: In Progress

Bug description:
Segfaulting right after printfing unit health when selecting a unit, either by tab or mouse click.
No segfault while viewing unselected unit.



References