Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/maloc-1.5/doc/doxygen/prog.h
Examining data/maloc-1.5/doc/license.h
Examining data/maloc-1.5/src/aaa_inc/maloc/maloc.h
Examining data/maloc-1.5/src/base/maloc/maloc_base.h
Examining data/maloc-1.5/src/base/maloc_base.c
Examining data/maloc-1.5/src/base/maloc_base_p.h
Examining data/maloc-1.5/src/efence/efence.c
Examining data/maloc-1.5/src/efence/efence.h
Examining data/maloc-1.5/src/efence/page.c
Examining data/maloc-1.5/src/efence/print.c
Examining data/maloc-1.5/src/psh/maloc/psh.h
Examining data/maloc-1.5/src/psh/maloc/vcom.h
Examining data/maloc-1.5/src/psh/maloc/vmp.h
Examining data/maloc-1.5/src/psh/maloc/vmpi.h
Examining data/maloc-1.5/src/psh/psh.c
Examining data/maloc-1.5/src/psh/psh_p.h
Examining data/maloc-1.5/src/psh/vcom.c
Examining data/maloc-1.5/src/psh/vcom_p.h
Examining data/maloc-1.5/src/psh/vmp.c
Examining data/maloc-1.5/src/psh/vmp_p.h
Examining data/maloc-1.5/src/psh/vmpi.c
Examining data/maloc-1.5/src/psh/vmpi_p.h
Examining data/maloc-1.5/src/vsh/maloc/vsh.h
Examining data/maloc-1.5/src/vsh/vlex.c
Examining data/maloc-1.5/src/vsh/vpars.c
Examining data/maloc-1.5/src/vsh/vpup.c
Examining data/maloc-1.5/src/vsh/vpup.h
Examining data/maloc-1.5/src/vsh/vsh.c
Examining data/maloc-1.5/src/vsh/vsh_p.h
Examining data/maloc-1.5/src/vsh/vyacc.c
Examining data/maloc-1.5/src/vsh/vyacc.h
Examining data/maloc-1.5/src/vsys/maloc/vio.h
Examining data/maloc-1.5/src/vsys/maloc/vmem.h
Examining data/maloc-1.5/src/vsys/maloc/vnm.h
Examining data/maloc-1.5/src/vsys/maloc/vpred.h
Examining data/maloc-1.5/src/vsys/maloc/vset.h
Examining data/maloc-1.5/src/vsys/maloc/vsys.h
Examining data/maloc-1.5/src/vsys/vio.c
Examining data/maloc-1.5/src/vsys/vio_p.h
Examining data/maloc-1.5/src/vsys/viofb.c
Examining data/maloc-1.5/src/vsys/vmem.c
Examining data/maloc-1.5/src/vsys/vmem_p.h
Examining data/maloc-1.5/src/vsys/vnm.c
Examining data/maloc-1.5/src/vsys/vnm_p.h
Examining data/maloc-1.5/src/vsys/vnmfb.c
Examining data/maloc-1.5/src/vsys/vpred.c
Examining data/maloc-1.5/src/vsys/vpred_p.h
Examining data/maloc-1.5/src/vsys/vset.c
Examining data/maloc-1.5/src/vsys/vset_p.h
Examining data/maloc-1.5/src/vsys/ziofb.c
Examining data/maloc-1.5/tools/main.c
Examining data/maloc-1.5/tools/tests/aloc/mainc.c
Examining data/maloc-1.5/tools/tests/psh/vcomtst.c
Examining data/maloc-1.5/tools/tests/psh/vmpitst.c
Examining data/maloc-1.5/tools/tests/vsh/main.c
Examining data/maloc-1.5/tools/tests/zfence/efence.h
Examining data/maloc-1.5/tools/tests/zfence/eftest.c
Examining data/maloc-1.5/tools/tests/zfence/tstheap.c

FINAL RESULTS:

data/maloc-1.5/src/efence/efence.c:782:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
char *strcat(char *d, const char *s)
data/maloc-1.5/src/efence/efence.c:784:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(d+strlen(d), s);
data/maloc-1.5/src/psh/psh.c:156:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(vmp_min,stmp,theePSH->PR,theePSH->PR);
data/maloc-1.5/src/psh/psh.c:163:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(vmp,stmp,theePSH->PR);
data/maloc-1.5/src/vsh/vlex.c:999:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(yylval.word->word,yytext);
data/maloc-1.5/src/vsh/vlex.c:1012:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(yylval.word->word,yytext);
data/maloc-1.5/src/vsh/vlex.c:1025:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(yylval.word->word,yytext);
data/maloc-1.5/src/vsh/vlex.c:1038:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(yylval.word->word,yytext);
data/maloc-1.5/src/vsh/vlex.c:1053:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(yylval.word->word,yytext);
data/maloc-1.5/src/vsh/vlex.c:1070:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(yylval.word->word,yytext);
data/maloc-1.5/src/vsh/vpars.c:68:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(inbuf,buf);
data/maloc-1.5/src/vsh/vpars.c:102:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(inbuf_argv,inbuf);
data/maloc-1.5/src/vsh/vpup.c:132:21:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                if (execvp(chargv[0], chargv) == -1) {
data/maloc-1.5/src/vsh/vpup.c:180:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(t, snew);
data/maloc-1.5/src/vsh/vpup.c:195:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(t, snew);
data/maloc-1.5/src/vsh/vpup.c:233:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(q, p + 1);
data/maloc-1.5/src/vsh/vpup.c:236:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(p, p + offset + 1);
data/maloc-1.5/src/vsh/vsh.c:258:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(configFile,"%s/%s",homeDirectory,"rc.mcsh");
data/maloc-1.5/src/vsh/vsh.c:361:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(varBuf,env[i]);
data/maloc-1.5/src/vsh/vsh.c:407:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(valuLoc,valu);
data/maloc-1.5/src/vsh/vsh.c:413:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(newValu,"%s=%s",envi,valuLoc);
data/maloc-1.5/src/vsh/vsh.c:478:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(infoLoc,info);
data/maloc-1.5/src/vsh/vsh.c:484:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(newInfo,"%s: %s",envi,infoLoc);
data/maloc-1.5/src/vsh/vsh.c:921:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(thee->PR,"%s",pPR);
data/maloc-1.5/src/vsh/vsh.c:937:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(thee->PR,"%s",buf+offset);
data/maloc-1.5/src/vsh/vsh.c:1108:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(Vsh_thee->PR_PATH,"%s@%s<%s+%s>%% ",
data/maloc-1.5/src/vsh/vsh.c:1134:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(Vsh_thee->PR_PATH,"%s@%s<%s+%s>%% ",
data/maloc-1.5/src/vsh/vsh.c:1236:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(PR_TMP,"%s: %s",PR,argv[0]);
data/maloc-1.5/src/vsh/vsh.c:1332:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(env,stmp,thee->PR,
data/maloc-1.5/src/vsh/vsh.c:1351:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(com,stmp,thee->PR);
data/maloc-1.5/src/vsh/vsh.c:1359:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(buf,stmp,thee->PR);
data/maloc-1.5/src/vsh/vsh.c:1360:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(com,buf);
data/maloc-1.5/src/vsh/vsh.c:1367:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(sock,stmp,thee->PR);
data/maloc-1.5/src/vsh/vsh.c:1386:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(PR_TMP,"%s: Press <return> to continue..", thee->PR);
data/maloc-1.5/src/vsh/vsh.c:1469:17:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                strcat(buf,argv[i]);
data/maloc-1.5/src/vsh/vsh.c:1579:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"geomview -nopanels -wpos 436,445@55,520 -%s 0",sokey);
data/maloc-1.5/src/vsh/vsh.c:1585:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"geomview -nopanels -wpos 436,445@55,520 -%s 0",sokey);
data/maloc-1.5/src/vsh/vsh.c:1587:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"geomview -nopanels -wpos 436,445@55,50  -%s 1",sokey);
data/maloc-1.5/src/vsh/vsh.c:1594:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"geomview -nopanels -wpos 436,287@55,684 -%s 0",sokey);
data/maloc-1.5/src/vsh/vsh.c:1596:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"geomview -nopanels -wpos 436,287@55,367 -%s 1",sokey);
data/maloc-1.5/src/vsh/vsh.c:1598:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"geomview -nopanels -wpos 436,287@55,50  -%s 2",sokey);
data/maloc-1.5/src/vsh/vsh.c:1606:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"geomview -nopanels -wpos 255,255 -%s 0",sokey);
data/maloc-1.5/src/vsh/vsh.c:1608:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"geomview -nopanels -wpos 255,255 -%s 1",sokey);
data/maloc-1.5/src/vsh/vsh.c:1610:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"geomview -nopanels -wpos 255,255 -%s 2",sokey);
data/maloc-1.5/src/vsh/vsh.c:1612:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"geomview -nopanels -wpos 255,255 -%s 3",sokey);
data/maloc-1.5/src/vsh/vsh.c:1621:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"geomview -nopanels -wpos 282,245 -%s 0",sokey);
data/maloc-1.5/src/vsh/vsh.c:1627:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"geomview -nopanels -wpos 282,245 -%s 0",sokey);
data/maloc-1.5/src/vsh/vsh.c:1629:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"geomview -nopanels -wpos 282,245 -%s 1",sokey);
data/maloc-1.5/src/vsh/vsh.c:1636:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"geomview -nopanels -wpos 282,152 -%s 0",sokey);
data/maloc-1.5/src/vsh/vsh.c:1638:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"geomview -nopanels -wpos 282,152 -%s 1",sokey);
data/maloc-1.5/src/vsh/vsh.c:1640:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"geomview -nopanels -wpos 282,152 -%s 2",sokey);
data/maloc-1.5/src/vsh/vsh.c:1648:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"geomview -nopanels -wpos 255,255 -%s 0",sokey);
data/maloc-1.5/src/vsh/vsh.c:1650:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"geomview -nopanels -wpos 255,255 -%s 1",sokey);
data/maloc-1.5/src/vsh/vsh.c:1652:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"geomview -nopanels -wpos 255,255 -%s 2",sokey);
data/maloc-1.5/src/vsh/vsh.c:1654:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"geomview -nopanels -wpos 255,255 -%s 3",sokey);
data/maloc-1.5/src/vsh/vsh.c:1680:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"mcsg -%s -wpos 436,445@55,520 -%s 0",sofmt,sokey);
data/maloc-1.5/src/vsh/vsh.c:1683:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"mcsg -%s -wpos 436,445@55,520 -%s 0",sofmt,sokey);
data/maloc-1.5/src/vsh/vsh.c:1685:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"mcsg -%s -wpos 436,445@55,50  -%s 1",sofmt,sokey);
data/maloc-1.5/src/vsh/vsh.c:1688:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"mcsg -%s -wpos 436,287@55,684 -%s 0",sofmt,sokey);
data/maloc-1.5/src/vsh/vsh.c:1690:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"mcsg -%s -wpos 436,287@55,367 -%s 1",sofmt,sokey);
data/maloc-1.5/src/vsh/vsh.c:1692:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"mcsg -%s -wpos 436,287@55,50  -%s 2",sofmt,sokey);
data/maloc-1.5/src/vsh/vsh.c:1695:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"mcsg -%s -wpos 255,255 -%s 0",sofmt,sokey);
data/maloc-1.5/src/vsh/vsh.c:1697:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"mcsg -%s -wpos 255,255 -%s 1",sofmt,sokey);
data/maloc-1.5/src/vsh/vsh.c:1699:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"mcsg -%s -wpos 255,255 -%s 2",sofmt,sokey);
data/maloc-1.5/src/vsh/vsh.c:1701:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"mcsg -%s -wpos 255,255 -%s 3",sofmt,sokey);
data/maloc-1.5/src/vsh/vsh.c:1704:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"mcsg -%s -wpos 282,245 -%s 0",sofmt,sokey);
data/maloc-1.5/src/vsh/vsh.c:1707:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"mcsg -%s -wpos 282,245 -%s 0",sofmt,sokey);
data/maloc-1.5/src/vsh/vsh.c:1709:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"mcsg -%s -wpos 282,245 -%s 1",sofmt,sokey);
data/maloc-1.5/src/vsh/vsh.c:1712:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"mcsg -%s -wpos 282,152 -%s 0",sofmt,sokey);
data/maloc-1.5/src/vsh/vsh.c:1714:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"mcsg -%s -wpos 282,152 -%s 1",sofmt,sokey);
data/maloc-1.5/src/vsh/vsh.c:1716:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"mcsg -%s -wpos 282,152 -%s 2",sofmt,sokey);
data/maloc-1.5/src/vsh/vsh.c:1719:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"mcsg -%s -wpos 500,300 -%s 0",sofmt,sokey);
data/maloc-1.5/src/vsh/vsh.c:1721:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"mcsg -%s -wpos 500,300 -%s 1",sofmt,sokey);
data/maloc-1.5/src/vsh/vsh.c:1723:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"mcsg -%s -wpos 500,300 -%s 2",sofmt,sokey);
data/maloc-1.5/src/vsh/vsh.c:1725:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"mcsg -%s -wpos 500,300 -%s 3",sofmt,sokey);
data/maloc-1.5/src/vsh/vsh.c:1728:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"mcsg -%s -wpos 425,345@55,0 -%s 0",sofmt,sokey);
data/maloc-1.5/src/vsh/vsh.c:1730:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(sysc,"mcsg -%s -wpos 425,345@55,369 -%s 1",sofmt,sokey);
data/maloc-1.5/src/vsh/vyacc.c:1102:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/maloc-1.5/src/vsh/vyacc.c:1587:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                                strcat(buf,wTmp->word); 
data/maloc-1.5/src/vsys/vio.c:517:12:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    } else strcpy(thee->lhost,hpTmp->h_name);
data/maloc-1.5/src/vsys/vio.c:566:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(thee->file, "/tmp/%s-%s", filename, username);
data/maloc-1.5/src/vsys/vio.c:602:13:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
            strcpy(((struct sockaddr_un *)(thee->name))->sun_path,
data/maloc-1.5/src/vsys/vio.c:724:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    strcpy(host,thee->lhost);
data/maloc-1.5/src/vsys/vio.c:726:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    strcpy(host,hostname);
data/maloc-1.5/src/vsys/vio.c:743:21:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                    strcpy(thee->rhost,hpTmp->h_name);
data/maloc-1.5/src/vsys/vio.c:1093:17:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
                strcpy(thee->rhost,hpTmp->h_name);
data/maloc-1.5/src/vsys/vio.c:1506:9:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
        vsprintf(buf, parms, ap);
data/maloc-1.5/src/vsys/vio.c:1978:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
        sscanf(tok,"%s",(*sval));
data/maloc-1.5/src/vsys/vio.c:1980:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(tok,"%s\n",*sval);
data/maloc-1.5/src/vsys/vnm.c:673:12:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    return system(cmd);
data/maloc-1.5/src/vsys/vnm.c:691:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(cmdbuf, cmd);
data/maloc-1.5/src/vsys/vnm.c:693:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(cmdbuf, cmd);
data/maloc-1.5/src/vsys/vnm.c:714:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(cmdbuf, cmd);
data/maloc-1.5/src/vsys/vnm.c:718:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(cmdbuf, cmd);
data/maloc-1.5/src/vsys/vnm.c:722:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(cmdbuf, cmd);
data/maloc-1.5/src/vsys/vnm.c:744:9:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        execv (argv[0],argv);
data/maloc-1.5/src/vsys/vnm.c:746:9:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        execvp(argv[0],argv);
data/maloc-1.5/src/vsys/vnm.c:881:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(fname,"%s/%s%s",myhome,"io.mc",apnd);
data/maloc-1.5/src/vsys/vnm.c:895:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(fname,"%s/%s%s",myhome,"hist.mcsh",apnd);
data/maloc-1.5/src/vsys/vnm.c:912:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(str,"# Creation Date and Time:  %s",ctime(&now));
data/maloc-1.5/src/vsys/vnm.c:922:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(str,"# Creation Date and Time:  %s",ctime(&now));
data/maloc-1.5/src/vsys/vnm.c:1030:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vfprintf(fp, format, argList);
data/maloc-1.5/src/vsys/vnm.c:1072:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vfprintf(fp, format, argList);
data/maloc-1.5/src/vsys/vset.c:235:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(name, "Vset:%s", tname);
data/maloc-1.5/src/efence/efence.c:216:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ( (string = getenv("EF_ALIGNMENT")) != 0 )
data/maloc-1.5/src/efence/efence.c:227:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ( (string = getenv("EF_PROTECT_BELOW")) != 0 )
data/maloc-1.5/src/efence/efence.c:238:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ( (string = getenv("EF_PROTECT_FREE")) != 0 )
data/maloc-1.5/src/efence/efence.c:248:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ( (string = getenv("EF_ALLOW_MALLOC_0")) != 0 )
data/maloc-1.5/src/vsh/vsh.c:254:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    term  = getenv("TERM");
data/maloc-1.5/src/vsh/vsh.c:255:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    cterm = getenv("COLORTERM");
data/maloc-1.5/src/vsys/vnm.c:490:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    name = getenv("USER");
data/maloc-1.5/src/vsys/vnm.c:510:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    name = getenv("OSTYPE");
data/maloc-1.5/src/vsys/vnm.c:531:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    name = getenv("HOSTNAME");
data/maloc-1.5/src/vsys/vnm.c:535:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        name = getenv("HOST");
data/maloc-1.5/src/vsys/vnm.c:582:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        home = getenv("MCSH_HOME");
data/maloc-1.5/src/vsys/vnm.c:622:11:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
    cwd = getwd(path);
data/maloc-1.5/tools/tests/zfence/tstheap.c:15:25:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
extern C_LINKAGE double drand48(void); /* For pre-ANSI C systems */
data/maloc-1.5/tools/tests/zfence/tstheap.c:34:1:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
drand48(void)
data/maloc-1.5/tools/tests/zfence/tstheap.c:36:10:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	return (random() / (double)ULONG_MAX);
data/maloc-1.5/tools/tests/zfence/tstheap.c:50:34:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		void * *	element = &pool[(int)(drand48() * POOL_SIZE)];
data/maloc-1.5/tools/tests/zfence/tstheap.c:51:27:  [3] (random) drand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		size_t		size = (size_t)(drand48() * (LARGEST_BUFFER + 1));
data/maloc-1.5/src/efence/efence.c:217:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			EF_ALIGNMENT = (size_t)atoi(string);
data/maloc-1.5/src/efence/efence.c:228:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			EF_PROTECT_BELOW = (atoi(string) != 0);
data/maloc-1.5/src/efence/efence.c:239:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			EF_PROTECT_FREE = (atoi(string) != 0);
data/maloc-1.5/src/efence/efence.c:249:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			EF_ALLOW_MALLOC_0 = (atoi(string) != 0);
data/maloc-1.5/src/efence/efence.c:284:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		 = ((char *)slot[0].internalAddress) + slot[0].internalSize;
data/maloc-1.5/src/efence/efence.c:318:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(newAllocation, allocationList, allocationListSize);
data/maloc-1.5/src/efence/efence.c:319:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	memset(&(((char *)newAllocation)[allocationListSize]), 0, bytesPerPage);
data/maloc-1.5/src/efence/efence.c:733:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(newBuffer, oldBuffer, size);
data/maloc-1.5/src/efence/efence.c:740:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			memset(&(((char *)newBuffer)[size]), 0, newSize - size);
data/maloc-1.5/src/efence/page.c:106:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		devZeroFd = open("/dev/zero", O_RDWR);
data/maloc-1.5/src/efence/print.c:23:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		buffer[NUMBER_BUFFER_SIZE];
data/maloc-1.5/src/psh/psh.c:67:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char envi[VMAX_ARGLEN];
data/maloc-1.5/src/psh/psh.c:68:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char valu[VMAX_ARGLEN];
data/maloc-1.5/src/psh/psh.c:69:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char info[VMAX_ARGLEN];
data/maloc-1.5/src/psh/psh.c:146:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char vmp[VMAX_BUFSIZE], vmp_min[VMAX_BUFSIZE];
data/maloc-1.5/src/psh/vcom.c:139:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char estr[MPI_MAX_ERROR_STRING];
data/maloc-1.5/src/psh/vcom.c:781:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(recvbuf, sendbuf, memsize*length);
data/maloc-1.5/src/vsh/maloc/vsh.h:84:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cinName[VMAX_ARGLEN];
data/maloc-1.5/src/vsh/maloc/vsh.h:87:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char PR[VMAX_ARGLEN];      
data/maloc-1.5/src/vsh/maloc/vsh.h:89:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char PR_PATH[VMAX_ARGLEN]; 
data/maloc-1.5/src/vsh/maloc/vsh.h:91:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char PR_EXIT[VMAX_ARGLEN];  
data/maloc-1.5/src/vsh/vpars.c:38:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPRIVATE char inbuf[VMAX_BUFSIZE];
data/maloc-1.5/src/vsh/vpars.c:83:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char inbuf_argv[VMAX_BUFSIZE], *argv[VMAX_ARGNUM];
data/maloc-1.5/src/vsh/vpup.c:258:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((indes = open(infilename, O_RDONLY, VSTDMODE)) == -1)
data/maloc-1.5/src/vsh/vpup.c:269:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((outdes=open(outfilename,O_WRONLY|O_CREAT|O_TRUNC,VSTDMODE))==-1)
data/maloc-1.5/src/vsh/vsh.c:124:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(thee->PR_EXIT,"exit");
data/maloc-1.5/src/vsh/vsh.c:186:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char homeDirectory[VMAX_ARGLEN];
data/maloc-1.5/src/vsh/vsh.c:187:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char workDirectory[VMAX_ARGLEN];
data/maloc-1.5/src/vsh/vsh.c:188:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char userName[VMAX_ARGLEN];
data/maloc-1.5/src/vsh/vsh.c:189:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char hostName[VMAX_ARGLEN];
data/maloc-1.5/src/vsh/vsh.c:190:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char osName[VMAX_ARGLEN];
data/maloc-1.5/src/vsh/vsh.c:191:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char configFile[VMAX_ARGLEN];
data/maloc-1.5/src/vsh/vsh.c:192:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf1[VMAX_ARGLEN], buf2[VMAX_ARGLEN];
data/maloc-1.5/src/vsh/vsh.c:196:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char envi[VMAX_ARGLEN];
data/maloc-1.5/src/vsh/vsh.c:197:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char valu[VMAX_ARGLEN];
data/maloc-1.5/src/vsh/vsh.c:198:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char info[VMAX_ARGLEN];
data/maloc-1.5/src/vsh/vsh.c:294:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf1,"ARG%d",i);
data/maloc-1.5/src/vsh/vsh.c:295:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf2,"Command line parameter <%d>",i);
data/maloc-1.5/src/vsh/vsh.c:353:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char varBuf[VMAX_BUFSIZE];
data/maloc-1.5/src/vsh/vsh.c:401:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *newValu, **newValuList, valuLoc[VMAX_BUFSIZE];
data/maloc-1.5/src/vsh/vsh.c:472:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *newInfo, **newInfoList, infoLoc[VMAX_BUFSIZE];
data/maloc-1.5/src/vsh/vsh.c:542:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[VMAX_BUFSIZE];
data/maloc-1.5/src/vsh/vsh.c:544:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf,"%d",valu);
data/maloc-1.5/src/vsh/vsh.c:561:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[VMAX_BUFSIZE];
data/maloc-1.5/src/vsh/vsh.c:563:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf,"%e",valu);
data/maloc-1.5/src/vsh/vsh.c:627:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        return atoi(thee->envValu[ifnd]+strlen(envi)+1);
data/maloc-1.5/src/vsh/vsh.c:767:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *cargv[2] = { "help", VNULL }; 
data/maloc-1.5/src/vsh/vsh.c:898:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char **argvPtr, buf[VMAX_ARGLEN];
data/maloc-1.5/src/vsh/vsh.c:906:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(buf,"ARG%d",i);
data/maloc-1.5/src/vsh/vsh.c:962:32:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                thee->clUnit = fopen(argvPtr[i], "r");
data/maloc-1.5/src/vsh/vsh.c:979:28:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            thee->scUnit = fopen(Vsh_getenv(thee,"ENV"), "r");
data/maloc-1.5/src/vsh/vsh.c:1068:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *key, currDirectory[VMAX_ARGLEN];
data/maloc-1.5/src/vsh/vsh.c:1233:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char PR_TMP[VMAX_ARGLEN];
data/maloc-1.5/src/vsh/vsh.c:1306:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sysc[VMAX_BUFSIZE];
data/maloc-1.5/src/vsh/vsh.c:1307:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char sofmt[VMAX_ARGLEN], sokey[VMAX_ARGLEN];
data/maloc-1.5/src/vsh/vsh.c:1310:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[VMAX_BUFSIZE], workDirectory[VMAX_ARGLEN];
data/maloc-1.5/src/vsh/vsh.c:1311:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char PR_TMP[VMAX_ARGLEN];
data/maloc-1.5/src/vsh/vsh.c:1312:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char env[VMAX_BUFSIZE], com[VMAX_BUFSIZE];
data/maloc-1.5/src/vsh/vsh.c:1313:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char sock[VMAX_BUFSIZE];
data/maloc-1.5/src/vsh/vsh.c:1427:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buf,"clear");
data/maloc-1.5/src/vsh/vsh.c:1429:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buf,"cls");
data/maloc-1.5/src/vsh/vsh.c:1549:32:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                thee->scUnit = fopen(argv[1], "r");
data/maloc-1.5/src/vsh/vsh.c:1765:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char iodev[VMAX_BUFSIZE], iofmt[VMAX_BUFSIZE];
data/maloc-1.5/src/vsh/vsh.c:1766:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char iohost[VMAX_BUFSIZE], iofile[VMAX_BUFSIZE];
data/maloc-1.5/src/vsh/vyacc.c:495:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char buf[VMAX_BUFSIZE];
data/maloc-1.5/src/vsys/maloc/vio.h:118:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char file[VMAX_ARGLEN];   /**< file or device name (FILE,BUFF,UNIX,INET) */
data/maloc-1.5/src/vsys/maloc/vio.h:119:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char lhost[VMAX_ARGLEN];  /**< local hostname (me) (UNIX,INET)           */
data/maloc-1.5/src/vsys/maloc/vio.h:120:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char rhost[VMAX_ARGLEN];  /**< remote hostname (other guy) (UNIX,INET)   */
data/maloc-1.5/src/vsys/maloc/vio.h:131:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char whiteChars[VMAX_ARGNUM]; /**< white space character set (ASC)       */
data/maloc-1.5/src/vsys/maloc/vio.h:132:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char commChars[VMAX_ARGNUM];  /**< comment character set (ASC,XDR)       */
data/maloc-1.5/src/vsys/maloc/vio.h:134:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ioBuffer[VMAX_BUFSIZE];  /**< I/O buffer (ASC,XDR)                  */
data/maloc-1.5/src/vsys/maloc/vio.h:137:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char putBuffer[VMAX_BUFSIZE]; /**< final write buffer (ASC,XDR)          */
data/maloc-1.5/src/vsys/maloc/vmem.h:59:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[VMAX_ARGLEN]; /**< name of class we manage malloc areas for   */
data/maloc-1.5/src/vsys/maloc/vset.h:68:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char nameT[VMAX_ARGLEN];
data/maloc-1.5/src/vsys/vio.c:101:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    whiteChars[VMAX_ARGNUM]; /* white space character set           */
data/maloc-1.5/src/vsys/vio.c:102:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    commChars[VMAX_ARGNUM];  /* comment character set               */
data/maloc-1.5/src/vsys/vio.c:329:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char errstr[VMAX_ARGLEN];
data/maloc-1.5/src/vsys/vio.c:331:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    if      (err == EFAULT           ) strcpy(errstr,"EFAULT");
data/maloc-1.5/src/vsys/vio.c:332:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == EINTR            ) strcpy(errstr,"EINTR");
data/maloc-1.5/src/vsys/vio.c:333:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == EINVAL           ) strcpy(errstr,"EINVAL");
data/maloc-1.5/src/vsys/vio.c:334:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == ENOENT           ) strcpy(errstr,"ENOENT");
data/maloc-1.5/src/vsys/vio.c:335:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == EPIPE            ) strcpy(errstr,"EPIPE");
data/maloc-1.5/src/vsys/vio.c:336:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == ENOMEM           ) strcpy(errstr,"ENOMEM");
data/maloc-1.5/src/vsys/vio.c:337:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == EAGAIN           ) strcpy(errstr,"EAGAIN");
data/maloc-1.5/src/vsys/vio.c:338:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == EBADF            ) strcpy(errstr,"EBADF");
data/maloc-1.5/src/vsys/vio.c:341:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == WSAENETDOWN      ) strcpy(errstr,"WSAENETDOWN");
data/maloc-1.5/src/vsys/vio.c:342:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == WSAEFAULT        ) strcpy(errstr,"WSAEFAULT");
data/maloc-1.5/src/vsys/vio.c:343:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == WSAENOTCONN      ) strcpy(errstr,"WSAENOTCONN");
data/maloc-1.5/src/vsys/vio.c:344:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == WSAEINTR         ) strcpy(errstr,"WSAEINTR");
data/maloc-1.5/src/vsys/vio.c:345:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == WSAEINPROGRESS   ) strcpy(errstr,"WSAEINPROGRESS");
data/maloc-1.5/src/vsys/vio.c:346:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == WSAENETRESET     ) strcpy(errstr,"WSAENETRESET");
data/maloc-1.5/src/vsys/vio.c:347:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == WSAENOTSOCK      ) strcpy(errstr,"WSAENOTSOCK");
data/maloc-1.5/src/vsys/vio.c:348:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == WSAEOPNOTSUPP    ) strcpy(errstr,"WSAEOPNOTSUPP");
data/maloc-1.5/src/vsys/vio.c:349:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == WSAESHUTDOWN     ) strcpy(errstr,"WSAESHUTDOWN");
data/maloc-1.5/src/vsys/vio.c:350:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == WSAEWOULDBLOCK   ) strcpy(errstr,"WSAEWOULDBLOCK");
data/maloc-1.5/src/vsys/vio.c:351:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == WSAEMSGSIZE      ) strcpy(errstr,"WSAEMSGSIZE");
data/maloc-1.5/src/vsys/vio.c:352:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == WSAEINVAL        ) strcpy(errstr,"WSAEINVAL");
data/maloc-1.5/src/vsys/vio.c:353:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == WSAETIMEDOUT     ) strcpy(errstr,"WSAETIMEDOUT");
data/maloc-1.5/src/vsys/vio.c:354:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == WSAECONNABORTED  ) strcpy(errstr,"WSAECONNABORTED");
data/maloc-1.5/src/vsys/vio.c:355:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == WSAECONNREFUSED  ) strcpy(errstr,"WSAECONNREFUSED");
data/maloc-1.5/src/vsys/vio.c:356:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == WSAECONNRESET    ) strcpy(errstr,"WSAECONNRESET");
data/maloc-1.5/src/vsys/vio.c:357:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == WSANOTINITIALISED) strcpy(errstr,"WSANOTINITIALISED");
data/maloc-1.5/src/vsys/vio.c:359:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == ENETDOWN         ) strcpy(errstr,"ENETDOWN");
data/maloc-1.5/src/vsys/vio.c:360:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == ENOTCONN         ) strcpy(errstr,"ENOTCONN");
data/maloc-1.5/src/vsys/vio.c:361:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == EINPROGRESS      ) strcpy(errstr,"EINPROGRESS");
data/maloc-1.5/src/vsys/vio.c:362:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == ENETRESET        ) strcpy(errstr,"ENETRESET");
data/maloc-1.5/src/vsys/vio.c:363:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == ENOTSOCK         ) strcpy(errstr,"ENOTSOCK");
data/maloc-1.5/src/vsys/vio.c:364:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == EOPNOTSUPP       ) strcpy(errstr,"EOPNOTSUPP");
data/maloc-1.5/src/vsys/vio.c:365:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == ESHUTDOWN        ) strcpy(errstr,"ESHUTDOWN");
data/maloc-1.5/src/vsys/vio.c:366:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == EWOULDBLOCK      ) strcpy(errstr,"EWOULDBLOCK");
data/maloc-1.5/src/vsys/vio.c:367:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == EMSGSIZE         ) strcpy(errstr,"EMSGSIZE");
data/maloc-1.5/src/vsys/vio.c:368:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == ETIMEDOUT        ) strcpy(errstr,"ETIMEDOUT");
data/maloc-1.5/src/vsys/vio.c:369:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == ECONNABORTED     ) strcpy(errstr,"ECONNABORTED");
data/maloc-1.5/src/vsys/vio.c:370:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == ECONNREFUSED     ) strcpy(errstr,"ECONNREFUSED");
data/maloc-1.5/src/vsys/vio.c:371:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == ECONNRESET       ) strcpy(errstr,"ECONNRESET");
data/maloc-1.5/src/vsys/vio.c:372:40:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    else if (err == ENOBUFS          ) strcpy(errstr,"ENOBUFS");
data/maloc-1.5/src/vsys/vio.c:375:10:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    else sprintf(errstr,"VIO_UNKNOWN_ERROR(%d)",err);
data/maloc-1.5/src/vsys/vio.c:430:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char host[VMAX_ARGLEN];
data/maloc-1.5/src/vsys/vio.c:438:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char username[VMAX_ARGLEN];
data/maloc-1.5/src/vsys/vio.c:511:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(thee->lhost,"unknown");
data/maloc-1.5/src/vsys/vio.c:516:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(thee->lhost,"unknown");
data/maloc-1.5/src/vsys/vio.c:520:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(thee->rhost,"unknown");
data/maloc-1.5/src/vsys/vio.c:546:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            thee->fp = fopen(thee->file, "r");
data/maloc-1.5/src/vsys/vio.c:548:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            thee->fp = fopen(thee->file, "w");
data/maloc-1.5/src/vsys/vio.c:688:58:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                = htons( (unsigned short) (VPORTNUMBER + atoi(thee->file)) );
data/maloc-1.5/src/vsys/vio.c:696:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&((struct sockaddr_in *)(thee->name))->sin_addr,
data/maloc-1.5/src/vsys/vio.c:738:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(
data/maloc-1.5/src/vsys/vio.c:1081:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(thee->rhost,"unknown");
data/maloc-1.5/src/vsys/vio.c:1325:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char arg0, arg1, arg2, *cval, *sval, buf[VMAX_BUFSIZE];
data/maloc-1.5/src/vsys/vio.c:1492:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[VMAX_BUFSIZE];
data/maloc-1.5/src/vsys/vio.c:1974:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tok[VMAX_BUFSIZE];
data/maloc-1.5/src/vsys/vio.c:2004:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tok[VMAX_BUFSIZE];
data/maloc-1.5/src/vsys/vio.c:2010:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(tok,"%c\n",*cval);
data/maloc-1.5/src/vsys/vio.c:2034:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tok[VMAX_BUFSIZE];
data/maloc-1.5/src/vsys/vio.c:2040:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(tok,"%d\n",*ival);
data/maloc-1.5/src/vsys/vio.c:2064:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tok[VMAX_BUFSIZE];
data/maloc-1.5/src/vsys/vio.c:2070:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(tok,"%e\n",*fval);
data/maloc-1.5/src/vsys/vio.c:2094:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char tok[VMAX_BUFSIZE];
data/maloc-1.5/src/vsys/vio.c:2100:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(tok,"%e\n",*dval);
data/maloc-1.5/src/vsys/viofb.c:61:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VEXTERNC int vioctr(char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/viofb.c:61:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VEXTERNC int vioctr(char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/viofb.c:62:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/viofb.c:62:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/viofb.c:63:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mode[1]);
data/maloc-1.5/src/vsys/viofb.c:65:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VEXTERNC int vioutl(int *socknum, char mode[1]);
data/maloc-1.5/src/vsys/viofb.c:123:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC int vioctr(char type[4], char frmt[3],
data/maloc-1.5/src/vsys/viofb.c:123:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC int vioctr(char type[4], char frmt[3],
data/maloc-1.5/src/vsys/viofb.c:124:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/viofb.c:124:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/viofb.c:125:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mode[1])
data/maloc-1.5/src/vsys/viofb.c:128:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char phost[VMAX_ARGLEN], pfile[VMAX_ARGLEN], ptype[VMAX_ARGLEN];
data/maloc-1.5/src/vsys/viofb.c:129:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pfrmt[VMAX_ARGLEN], pmode[VMAX_ARGLEN];
data/maloc-1.5/src/vsys/viofb.c:194:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC int vioutl(int *socknum, char mode[1])
data/maloc-1.5/src/vsys/viofb.c:197:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pmode[VMAX_ARGLEN];
data/maloc-1.5/src/vsys/viofb.c:323:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[VMAX_BUFSIZE];
data/maloc-1.5/src/vsys/viofb.c:354:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC int VIOCTR(char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/viofb.c:354:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC int VIOCTR(char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/viofb.c:355:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/viofb.c:355:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/viofb.c:356:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mode[1])
data/maloc-1.5/src/vsys/viofb.c:366:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC int VIOUTL(int *socknum, char mode[1])
data/maloc-1.5/src/vsys/viofb.c:407:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC int vioctr_(char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/viofb.c:407:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC int vioctr_(char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/viofb.c:408:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/viofb.c:408:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/viofb.c:409:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mode[1])
data/maloc-1.5/src/vsys/viofb.c:419:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC int vioutl_(int *socknum, char mode[1])
data/maloc-1.5/src/vsys/viofb.c:460:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC int vioctr__(char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/viofb.c:460:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC int vioctr__(char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/viofb.c:461:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/viofb.c:461:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/viofb.c:462:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mode[1])
data/maloc-1.5/src/vsys/viofb.c:472:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC int vioutl__(int *socknum, char mode[1])
data/maloc-1.5/src/vsys/viofb.c:513:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC int VIOCTR_(char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/viofb.c:513:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC int VIOCTR_(char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/viofb.c:514:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/viofb.c:514:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/viofb.c:515:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mode[1])
data/maloc-1.5/src/vsys/viofb.c:525:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC int VIOUTL_(int *socknum, char mode[1])
data/maloc-1.5/src/vsys/viofb.c:566:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC int VIOCTR__(char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/viofb.c:566:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC int VIOCTR__(char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/viofb.c:567:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/viofb.c:567:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/viofb.c:568:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mode[1])
data/maloc-1.5/src/vsys/viofb.c:578:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC int VIOUTL__(int *socknum, char mode[1])
data/maloc-1.5/src/vsys/vmem.c:319:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(tee, (*ram), size*VMIN2(num,newNum));
data/maloc-1.5/src/vsys/vnm.c:575:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char vnmHome[VMAX_ARGLEN];
data/maloc-1.5/src/vsys/vnm.c:687:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cmdbuf[VMAX_BUFSIZE];
data/maloc-1.5/src/vsys/vnm.c:690:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(cmdbuf, "start /B ");
data/maloc-1.5/src/vsys/vnm.c:694:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(cmdbuf, " &");
data/maloc-1.5/src/vsys/vnm.c:710:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char cmdbuf[VMAX_BUFSIZE];
data/maloc-1.5/src/vsys/vnm.c:713:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(cmdbuf, "killall ");
data/maloc-1.5/src/vsys/vnm.c:717:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(cmdbuf, "killall ");
data/maloc-1.5/src/vsys/vnm.c:719:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(cmdbuf, "> /dev/null 2>&1");
data/maloc-1.5/src/vsys/vnm.c:721:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(cmdbuf, "killall ./");
data/maloc-1.5/src/vsys/vnm.c:723:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(cmdbuf, "> /dev/null 2>&1");
data/maloc-1.5/src/vsys/vnm.c:851:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[256], fname[256], apnd[256], myhome[VMAX_ARGLEN];
data/maloc-1.5/src/vsys/vnm.c:874:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(apnd,"_%d",Vnm_ioTag());
data/maloc-1.5/src/vsys/vnm.c:883:32:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                    cons[unit]=fopen( fname, "a" /*"w"*/ );
data/maloc-1.5/src/vsys/vnm.c:885:32:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                    cons[unit]=fopen( fname, "a" );
data/maloc-1.5/src/vsys/vnm.c:897:28:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                cons[unit]=fopen(fname, "a" /*"w"*/); 
data/maloc-1.5/src/vsys/vnm.c:899:28:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                cons[unit]=fopen(fname, "a"); 
data/maloc-1.5/src/vsys/vnmfb.c:123:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[VMAX_ARGLEN];
data/maloc-1.5/src/vsys/vnmfb.c:146:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[VMAX_ARGLEN];
data/maloc-1.5/src/vsys/vnmfb.c:169:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[VMAX_ARGLEN];
data/maloc-1.5/src/vsys/vnmfb.c:192:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[VMAX_ARGLEN];
data/maloc-1.5/src/vsys/vnmfb.c:215:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[VMAX_ARGLEN];
data/maloc-1.5/src/vsys/vnmfb.c:238:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[VMAX_ARGLEN];
data/maloc-1.5/src/vsys/vset.c:227:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[VMAX_ARGLEN];
data/maloc-1.5/src/vsys/ziofb.c:56:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/ziofb.c:56:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/ziofb.c:57:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/ziofb.c:57:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/ziofb.c:58:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mode[1], int *iflag);
data/maloc-1.5/src/vsys/ziofb.c:60:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VEXTERNC void zioutl(Vio *sock, char mode[1], int *iflag);
data/maloc-1.5/src/vsys/ziofb.c:110:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char type[4], char frmt[3],
data/maloc-1.5/src/vsys/ziofb.c:110:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char type[4], char frmt[3],
data/maloc-1.5/src/vsys/ziofb.c:111:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/ziofb.c:111:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/ziofb.c:112:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mode[1], int *iflag)
data/maloc-1.5/src/vsys/ziofb.c:115:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char phost[VMAX_ARGLEN], pfile[VMAX_ARGLEN], ptype[VMAX_ARGLEN];
data/maloc-1.5/src/vsys/ziofb.c:116:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pfrmt[VMAX_ARGLEN], pmode[VMAX_ARGLEN];
data/maloc-1.5/src/vsys/ziofb.c:170:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC void zioutl(Vio *sock, char mode[1], int *iflag)
data/maloc-1.5/src/vsys/ziofb.c:172:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char pmode[VMAX_ARGLEN];
data/maloc-1.5/src/vsys/ziofb.c:289:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[VMAX_BUFSIZE];
data/maloc-1.5/src/vsys/ziofb.c:319:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/ziofb.c:319:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/ziofb.c:320:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/ziofb.c:320:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/ziofb.c:321:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mode[1], int *iflag)
data/maloc-1.5/src/vsys/ziofb.c:331:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC void ZIOUTL(Vio *sock, char mode[1], int *iflag)
data/maloc-1.5/src/vsys/ziofb.c:373:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/ziofb.c:373:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/ziofb.c:374:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/ziofb.c:374:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/ziofb.c:375:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mode[1], int *iflag)
data/maloc-1.5/src/vsys/ziofb.c:385:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC void zioutl_(Vio *sock, char mode[1], int *iflag)
data/maloc-1.5/src/vsys/ziofb.c:427:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/ziofb.c:427:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/ziofb.c:428:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/ziofb.c:428:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/ziofb.c:429:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mode[1], int *iflag)
data/maloc-1.5/src/vsys/ziofb.c:439:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC void ZIOUTL_(Vio *sock, char mode[1], int *iflag)
data/maloc-1.5/src/vsys/ziofb.c:481:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/ziofb.c:481:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/ziofb.c:482:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/ziofb.c:482:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/ziofb.c:483:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mode[1], int *iflag)
data/maloc-1.5/src/vsys/ziofb.c:493:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC void zioutl__(Vio *sock, char mode[1], int *iflag)
data/maloc-1.5/src/vsys/ziofb.c:535:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/ziofb.c:535:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char type[4], char frmt[3], 
data/maloc-1.5/src/vsys/ziofb.c:536:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/ziofb.c:536:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *host, int *lenh, char *file, int *lenf,
data/maloc-1.5/src/vsys/ziofb.c:537:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char mode[1], int *iflag)
data/maloc-1.5/src/vsys/ziofb.c:547:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
VPUBLIC void ZIOUTL__(Vio *sock, char mode[1], int *iflag)
data/maloc-1.5/tools/main.c:47:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char inType[80], outType[80], hostname[64], buf[VMAX_BUFSIZE];
data/maloc-1.5/tools/main.c:57:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(inType,"UNIX");
data/maloc-1.5/tools/main.c:58:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(outType,"INET");
data/maloc-1.5/tools/main.c:60:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(inType,"INET");
data/maloc-1.5/tools/main.c:61:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(outType,"UNIX");
data/maloc-1.5/tools/main.c:63:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(inType,"UNIX");
data/maloc-1.5/tools/main.c:64:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(outType,"UNIX");
data/maloc-1.5/tools/main.c:66:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(inType,"INET");
data/maloc-1.5/tools/main.c:67:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(outType,"INET");
data/maloc-1.5/tools/main.c:69:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(inType,"FILE");
data/maloc-1.5/tools/main.c:70:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(outType,"UNIX");
data/maloc-1.5/tools/main.c:73:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(inType,"FILE");
data/maloc-1.5/tools/main.c:74:13:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
            strcpy(outType,"INET");
data/maloc-1.5/tools/tests/psh/vcomtst.c:45:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char string[100];
data/maloc-1.5/tools/tests/psh/vcomtst.c:60:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(&(string[0]), "non-blocked message (PE %d --> %d)", 
data/maloc-1.5/tools/tests/psh/vcomtst.c:67:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(&(string[0]),"blocked message (PE %d --> %d)",i,nproc);
data/maloc-1.5/tools/tests/zfence/tstheap.c:47:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		duration = atoi(argv[1]);
data/maloc-1.5/src/efence/efence.c:359:1:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
memalign(size_t alignment, size_t userSize)
data/maloc-1.5/src/efence/efence.c:754:9:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	return memalign(EF_ALIGNMENT, size);
data/maloc-1.5/src/efence/efence.c:774:9:  [1] (free) memalign:
  On some systems (though not Linux-based systems) an attempt to free()
  results from memalign() may fail. This may, on a few systems, be
  exploitable. Also note that memalign() may not check that the boundary
  parameter is correct (CWE-676). Use posix_memalign instead (defined in
  POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD
  4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases,
  malloc()'s alignment may be sufficient.
	return memalign(bytesPerPage, size);
data/maloc-1.5/src/efence/efence.c:784:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	strcpy(d+strlen(d), s);
data/maloc-1.5/src/efence/print.c:80:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					length = strlen(string);
data/maloc-1.5/src/vsh/vlex.c:596:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/maloc-1.5/src/vsh/vlex.c:1054:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    VASSERT( yylval.word->word[strlen(yylval.word->word)-1] == '=' );
data/maloc-1.5/src/vsh/vlex.c:1055:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    yylval.word->word[strlen(yylval.word->word)-1] = '\0';
data/maloc-1.5/src/vsh/vpars.c:69:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    numRead = strlen(inbuf);
data/maloc-1.5/src/vsh/vpars.c:100:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (*(inbuf+strlen(inbuf)-1) == VNEWLINE_SYMBOL)
data/maloc-1.5/src/vsh/vpars.c:101:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            *(inbuf+strlen(inbuf)-1) = VNULL_SYMBOL;
data/maloc-1.5/src/vsh/vpars.c:130:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            Vsh_addhist(inbuf,strlen(inbuf));
data/maloc-1.5/src/vsh/vpup.c:172:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((t = calloc(strlen(snew) + 1, sizeof(char))) == VNULL) {
data/maloc-1.5/src/vsh/vpup.c:229:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((q = (char *)malloc(strlen(p + 1) + 1)) == NULL)
data/maloc-1.5/src/vsh/vpup.c:235:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            offset = strlen(q);
data/maloc-1.5/src/vsh/vsh.c:364:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(varBuf);
data/maloc-1.5/src/vsh/vsh.c:411:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(envi) + 1 + strlen(valuLoc) + 1;
data/maloc-1.5/src/vsh/vsh.c:411:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(envi) + 1 + strlen(valuLoc) + 1;
data/maloc-1.5/src/vsh/vsh.c:424:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen(thee->envValu[ifnd]) + 1;
data/maloc-1.5/src/vsh/vsh.c:482:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(envi) + 2 + strlen(infoLoc) + 1;
data/maloc-1.5/src/vsh/vsh.c:482:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(envi) + 2 + strlen(infoLoc) + 1;
data/maloc-1.5/src/vsh/vsh.c:495:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            len = strlen(thee->envInfo[ifnd]) + 1;
data/maloc-1.5/src/vsh/vsh.c:585:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        return (thee->envValu[ifnd]+strlen(envi)+1);
data/maloc-1.5/src/vsh/vsh.c:606:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        return (thee->envInfo[ifnd]+strlen(envi)+2);
data/maloc-1.5/src/vsh/vsh.c:627:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        return atoi(thee->envValu[ifnd]+strlen(envi)+1);
data/maloc-1.5/src/vsh/vsh.c:648:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        return atof(thee->envValu[ifnd]+strlen(envi)+1);
data/maloc-1.5/src/vsh/vsh.c:685:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(thee->envValu[i]) + 1;
data/maloc-1.5/src/vsh/vsh.c:691:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(thee->envInfo[i]) + 1;
data/maloc-1.5/src/vsh/vsh.c:872:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(buf,key,buflen);
data/maloc-1.5/src/vsh/vsh.c:926:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buf,argvPtr[0],VMAX_ARGLEN);
data/maloc-1.5/src/vsh/vsh.c:928:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(buf) >= 2) {
data/maloc-1.5/src/vsh/vsh.c:982:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(thee->cinName,Vsh_getenv(thee,"ENV"),VMAX_ARGLEN);
data/maloc-1.5/src/vsh/vsh.c:1099:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
        strncpy(Vsh_thee->cinName," ",VMAX_ARGLEN);
data/maloc-1.5/src/vsh/vsh.c:1128:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
        strncpy(Vsh_thee->cinName," ",VMAX_ARGLEN);
data/maloc-1.5/src/vsh/vsh.c:1152:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        numRead = strlen(buf);
data/maloc-1.5/src/vsh/vsh.c:1468:26:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                if (i>3) strcat(buf," ");
data/maloc-1.5/src/vsh/vsh.c:1552:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                    strncpy(thee->cinName,argv[1],VMAX_ARGLEN);
data/maloc-1.5/src/vsh/vsh.c:1570:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(sofmt,Vsh_getenv(thee,"OSFMT"),VMAX_ARGLEN);
data/maloc-1.5/src/vsh/vsh.c:1572:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(sokey,"Mcs",VMAX_ARGLEN);
data/maloc-1.5/src/vsh/vsh.c:1574:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(sokey,"Mcs",VMAX_ARGLEN);
data/maloc-1.5/src/vsh/vsh.c:1576:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(sokey,"Mcs",VMAX_ARGLEN);
data/maloc-1.5/src/vsh/vsh.c:1671:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(sofmt,Vsh_getenv(thee,"OSFMT"),VMAX_ARGLEN);
data/maloc-1.5/src/vsh/vsh.c:1673:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(sokey,"Mcs",VMAX_ARGLEN);
data/maloc-1.5/src/vsh/vsh.c:1675:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(sokey,"Mci",VMAX_ARGLEN);
data/maloc-1.5/src/vsh/vsh.c:1677:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(sokey,"Mci",VMAX_ARGLEN);
data/maloc-1.5/src/vsh/vsh.c:1772:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(iohost,Vsh_getenv(thee,"IHVAL"),VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1775:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(iodev,"SDIO",VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1776:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(iofile,"console",VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1778:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(iodev,"FILE",VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1779:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(iofile,Vsh_getenv(thee,"IFNAM"),VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1781:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(iodev,"BUFF",VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1782:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(iofile,Vsh_getenv(thee,"ISNAM"),VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1784:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(iodev,"UNIX",VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1785:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(iofile,Vsh_getenv(thee,"ISNAM"),VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1787:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(iodev,"INET",VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1788:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(iofile,Vsh_getenv(thee,"ISNAM"),VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1795:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(iofmt,"ASC", VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1797:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(iofmt,"XDR", VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1806:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(iohost,Vsh_getenv(thee,"OHVAL"),VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1809:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(iodev,"SDIO",VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1810:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(iofile,"console",VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1812:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(iodev,"FILE",VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1813:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(iofile,Vsh_getenv(thee,"OFNAM"),VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1815:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(iodev,"BUFF",VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1816:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(iofile,Vsh_getenv(thee,"OSNAM"),VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1818:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(iodev,"UNIX",VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1819:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(iofile,Vsh_getenv(thee,"OSNAM"),VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1821:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(iodev,"INET",VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1822:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(iofile,Vsh_getenv(thee,"OSNAM"),VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1829:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(iofmt,"ASC", VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vsh.c:1831:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(iofmt,"XDR", VMAX_BUFSIZE);
data/maloc-1.5/src/vsh/vyacc.c:1149:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#   define yystrlen strlen
data/maloc-1.5/src/vsh/vyacc.c:1592:51:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                            if (wordTmp != VNULL) strcat(buf," "); 
data/maloc-1.5/src/vsys/vio.c:539:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(filename) >= VMAX_ARGLEN) {
data/maloc-1.5/src/vsys/vio.c:541:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                (int)strlen(filename), VMAX_ARGLEN);
data/maloc-1.5/src/vsys/vio.c:544:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(thee->file, filename, VMAX_ARGLEN);
data/maloc-1.5/src/vsys/vio.c:615:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    + strlen(((struct sockaddr_un *)
data/maloc-1.5/src/vsys/vio.c:646:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(filename) >= VMAX_ARGLEN) {
data/maloc-1.5/src/vsys/vio.c:648:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                (int)strlen(filename), VMAX_ARGLEN);
data/maloc-1.5/src/vsys/vio.c:651:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(thee->file, filename, VMAX_ARGLEN);
data/maloc-1.5/src/vsys/vio.c:912:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(thee->whiteChars, whiteChars, VMAX_ARGNUM);
data/maloc-1.5/src/vsys/vio.c:938:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(thee->commChars, commChars, VMAX_ARGNUM);
data/maloc-1.5/src/vsys/vio.c:1388:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(parms);
data/maloc-1.5/src/vsys/vio.c:1508:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(buf);
data/maloc-1.5/src/vsys/vio.c:1513:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(parms);
data/maloc-1.5/src/vsys/vio.c:1533:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        VJMPERR1( xdr_string(thee->axdr, &sval, strlen(sval)) );
data/maloc-1.5/src/vsys/vio.c:1981:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(tok);
data/maloc-1.5/src/vsys/vio.c:2011:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(tok);
data/maloc-1.5/src/vsys/vio.c:2041:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(tok);
data/maloc-1.5/src/vsys/vio.c:2071:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(tok);
data/maloc-1.5/src/vsys/vio.c:2101:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(tok);
data/maloc-1.5/src/vsys/vio.c:2123:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(thee->whiteChars, whiteChars, VMAX_ARGNUM);
data/maloc-1.5/src/vsys/vio.c:2137:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(thee->commChars, commChars, VMAX_ARGNUM);
data/maloc-1.5/src/vsys/viofb.c:329:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        VASSERT( (int)strlen(buf) == *len );
data/maloc-1.5/src/vsys/vmem.c:69:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(vmemTotal.name, "TOTAL", VMAX_ARGLEN);
data/maloc-1.5/src/vsys/vmem.c:75:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(vmemMisc.name, "MISC", VMAX_ARGLEN);
data/maloc-1.5/src/vsys/vmem.c:201:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy( thee->name, name, VMAX_ARGLEN );
data/maloc-1.5/src/vsys/vnm.c:404:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    bufsize = strlen(buf);
data/maloc-1.5/src/vsys/vnm.c:491:24:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    if (name != VNULL) strncpy(user,name,usermax);
data/maloc-1.5/src/vsys/vnm.c:492:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    else strncpy(user,"mcuser",usermax);
data/maloc-1.5/src/vsys/vnm.c:511:24:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    if (name != VNULL) strncpy(os,name,osmax);
data/maloc-1.5/src/vsys/vnm.c:512:10:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    else strncpy(os,"UNIX",osmax);
data/maloc-1.5/src/vsys/vnm.c:533:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(host,name,hostmax);
data/maloc-1.5/src/vsys/vnm.c:537:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(host,name,hostmax);
data/maloc-1.5/src/vsys/vnm.c:539:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
            strncpy(host,"HOST",hostmax);
data/maloc-1.5/src/vsys/vnm.c:542:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    j = (int)strlen(host);
data/maloc-1.5/src/vsys/vnm.c:587:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(vnmHome,home,pathmax);
data/maloc-1.5/src/vsys/vnm.c:590:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(path,vnmHome,pathmax);
data/maloc-1.5/src/vsys/vset.c:247:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(thee->nameT, tname, VMAX_ARGLEN);
data/maloc-1.5/src/vsys/ziofb.c:293:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        VASSERT( (int)strlen(buf) == *len );
data/maloc-1.5/tools/main.c:54:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(hostname,"localhost",sizeof(hostname));
data/maloc-1.5/tools/tests/zfence/eftest.c:213:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			write(2, diag->explanation, strlen(diag->explanation));

ANALYSIS SUMMARY:

Hits = 505
Lines analyzed = 26236 in approximately 0.79 seconds (33128 lines/second)
Physical Source Lines of Code (SLOC) = 14343
Hits@level = [0] 166 [1] 112 [2] 272 [3]  17 [4] 104 [5]   0
Hits@level+ = [0+] 671 [1+] 505 [2+] 393 [3+] 121 [4+] 104 [5+]   0
Hits/KSLOC@level+ = [0+] 46.7824 [1+] 35.2088 [2+] 27.4001 [3+] 8.43617 [4+] 7.25092 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.