Comment 2 for bug 287109

Revision history for this message
mariof (mario-flajslik) wrote : Re: slirpvde: buffer overflow

Hey

I've run into the same issue on Ubuntu Intrepid...

I've fixed it by changing this line:
static char pidfile_path[_POSIX_PATH_MAX];

to:
static char pidfile_path[PATH_MAX];

because later on you use PATH_MAX to call getcwd(), and that's where the whole thing crashes.

on Intrepid _POSIX_PATH_MAX is 256, and PATH_MAX is 4096

Hope this helps...
Mario