From: Philipp Takacs Date: Sat, 17 Jan 2015 01:00:22 +0000 (+0100) Subject: Initialize vecp in send anno() X-Git-Tag: mmh-0.2-RC1~56^2~7 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=2823e13f67239db7deb7274f3a47bfbff56c7c64;p=mmh Initialize vecp in send anno() Access to an uninialized variable can cause a a buffer overflow or underrun. (Thanks to the compiler for reporting.) --- diff --git a/uip/send.c b/uip/send.c index b85963d..ed6b08d 100644 --- a/uip/send.c +++ b/uip/send.c @@ -678,7 +678,7 @@ anno(struct stat *st) char *msgs, *folder; char buf[BUFSIZ]; char *vec[MAXARGS]; - int vecp; + int vecp = 0; char *cp, *dp; if (altmsg && (stat(altmsg, &st2) == NOTOK ||