Actions
Bug #1986
closedlibima misuses gethostname
Start date:
2012-01-15
Due date:
% Done:
100%
Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
Description
libima uses gethostname() as if it returns a length, rather than accepts one, in its second argument. We don't get warned about this because we also don't include unistd.h, so nobody notices.
We specify the buffer we have is as long as whatever happened to be on the stack at the time. Bad.
Actions