Date: Fri, 22 Sep 2000 08:26:33 +0400 From: Igor Roboul <igor@raduga.dyndns.org> To: FreeBSD Questions <freebsd-questions@FreeBSD.ORG> Subject: Re: Default IMAP INBOX to $HOME/Mailbox Message-ID: <20000922082633.B1004@linux.rainbow> In-Reply-To: <BFEGKDHLHDNOJEIHJDBAMECACAAA.troy@psknet.com>; from troy@psknet.com on Thu, Sep 21, 2000 at 07:54:48PM -0400 References: <Pine.BSF.4.21.0009220739140.33745-100000@atlas.usls.edu> <BFEGKDHLHDNOJEIHJDBAMECACAAA.troy@psknet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Sep 21, 2000 at 07:54:48PM -0400, Troy Settle wrote: > char tmp[MAILTMPLEN]; > if (!sysInbox) { /* initialize if first time */ > - sprintf (tmp,"%s/%s",MAILSPOOL,myusername ()); > + sprintf (tmp,"%s/%s",myhomedir(),".mail"); Do we have here potential buffer overflow? maybe we need snprintf(tmp,MAILTMPLEN-1,"%s/%s",myhomedir(),".mail"); ? -- Igor Roboul, Unix System Administrator & Programmer @ sanatorium "Raduga", Sochi, Russia http://www.brainbench.com/transcript.jsp?pid=304744 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000922082633.B1004>