Dear Maintainer,
It seems that there exists a potential Buffer Overflow in libmsg/connect.c.
In line 184, and 191,
(184) if(!(disp = getenv("DISPLAY"))) {
...
(191) sprintf(buf, "%s/wily%s%s", dir, pw->pw_name, disp);
the variable disp is a previously stored path by external source.
If the length of disp is large enough in sprintf, this may cause Buffer Overflow.