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/netmaze-0.81+jpg0.82/bitmap.h
Examining data/netmaze-0.81+jpg0.82/maze.c
Examining data/netmaze-0.81+jpg0.82/x11smiley.h
Examining data/netmaze-0.81+jpg0.82/defmaze.h
Examining data/netmaze-0.81+jpg0.82/x11cntrl.c
Examining data/netmaze-0.81+jpg0.82/xtests/xmmenu.c
Examining data/netmaze-0.81+jpg0.82/xtests/switch.c
Examining data/netmaze-0.81+jpg0.82/xtests/texpix.c
Examining data/netmaze-0.81+jpg0.82/xtests/x11mouse.c
Examining data/netmaze-0.81+jpg0.82/xtests/xmserv.c
Examining data/netmaze-0.81+jpg0.82/xtests/texturep.c
Examining data/netmaze-0.81+jpg0.82/netcmds.h
Examining data/netmaze-0.81+jpg0.82/allmove.c
Examining data/netmaze-0.81+jpg0.82/audio.c
Examining data/netmaze-0.81+jpg0.82/better.c
Examining data/netmaze-0.81+jpg0.82/better.h
Examining data/netmaze-0.81+jpg0.82/config.h
Examining data/netmaze-0.81+jpg0.82/draw_3d.c
Examining data/netmaze-0.81+jpg0.82/dummy.c
Examining data/netmaze-0.81+jpg0.82/follower.c
Examining data/netmaze-0.81+jpg0.82/iocntl.c
Examining data/netmaze-0.81+jpg0.82/netmaze.c
Examining data/netmaze-0.81+jpg0.82/netmaze.h
Examining data/netmaze-0.81+jpg0.82/netserv.c
Examining data/netmaze-0.81+jpg0.82/netserv.h
Examining data/netmaze-0.81+jpg0.82/network.c
Examining data/netmaze-0.81+jpg0.82/network.h
Examining data/netmaze-0.81+jpg0.82/robot.c
Examining data/netmaze-0.81+jpg0.82/texture.c
Examining data/netmaze-0.81+jpg0.82/trigtab.h
Examining data/netmaze-0.81+jpg0.82/x11gfx.c
Examining data/netmaze-0.81+jpg0.82/x11smiley.c

FINAL RESULTS:

data/netmaze-0.81+jpg0.82/better.c:94:2:  [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.
	fprintf(stderr,ausgabe);
data/netmaze-0.81+jpg0.82/better.c:207:4:  [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(sm->owncomment,robodat.freundname);
data/netmaze-0.81+jpg0.82/better.c:373:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(sm->owncomment,"%s, you fucking traitor pig : die scum!",robodat.freundname);
data/netmaze-0.81+jpg0.82/maze.c:32:6:  [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(buffer,defmazedata[i]);
data/netmaze-0.81+jpg0.82/maze.c:68:22:  [4] (buffer) fscanf:
  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.
         if ((flag = fscanf(handle,"%s",cbuffer)) == EOF) break;
data/netmaze-0.81+jpg0.82/netmaze.c:119: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(sm->hostname,argv[i]);
data/netmaze-0.81+jpg0.82/netmaze.c:134: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(sm->ownname,argv[i]);
data/netmaze-0.81+jpg0.82/netmaze.c:175: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(sm->owncomment,argv[i]);
data/netmaze-0.81+jpg0.82/netmaze.c:512:7:  [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(sm->ownname,s);
data/netmaze-0.81+jpg0.82/netmaze.c:521:7:  [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(sm->owncomment,s);
data/netmaze-0.81+jpg0.82/netserv.c:186:10:  [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.
      if(execv(exmenu_name,argv1) < 0)
data/netmaze-0.81+jpg0.82/netserv.c:366:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(d,"%3d | %3d | %16s | %s\n",i,p->team,p->name,p->connection->hostname);
data/netmaze-0.81+jpg0.82/netserv.c:455:7:  [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.
  a = sscanf(line,"%d%s",&c,name);
data/netmaze-0.81+jpg0.82/netserv.c:485:12:  [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.
        if(sscanf(line,"%d%s%d",&c,name,&j) == 2)
data/netmaze-0.81+jpg0.82/netserv.c:498:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(tclcommand, "MESSAGE\nCan't load \"%s\"\n", name);
data/netmaze-0.81+jpg0.82/netserv.c:1049:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tclcommand, "MESSAGE\nNew connection request from\nMESSAGECAT\n%s\n",
data/netmaze-0.81+jpg0.82/netserv.c:1067: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(name,hp->h_name);
data/netmaze-0.81+jpg0.82/netserv.c:1253: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(q->players->comment,(char*)buf+2);
data/netmaze-0.81+jpg0.82/netserv.c:1424:7:  [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(data+3,p->name);
data/netmaze-0.81+jpg0.82/netserv.c:1451: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(data+3,p->comment);
data/netmaze-0.81+jpg0.82/netserv.c:1533: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(mes,from->name);
data/netmaze-0.81+jpg0.82/netserv.c:1539:3:  [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(mes,m);      
data/netmaze-0.81+jpg0.82/netserv.c:1547:3:  [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((char *) data+6,mes);
data/netmaze-0.81+jpg0.82/netserv.c:1589:3:  [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(data+6,str);
data/netmaze-0.81+jpg0.82/netserv.c:1700: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(p->name,name);
data/netmaze-0.81+jpg0.82/netserv.c:1711:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tclcommand, "MESSAGECAT\nNew player: %s\n", p->name);
data/netmaze-0.81+jpg0.82/netserv.c:1720:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tclcommand, "MESSAGE\nLost player: %s\n", p->name);
data/netmaze-0.81+jpg0.82/netserv.c:1937:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(tclcommand, "PLAYER\n%d\n%s\n%s\n", i,
data/netmaze-0.81+jpg0.82/network.c:251:3:  [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(buf+2,sm->owncomment);
data/netmaze-0.81+jpg0.82/network.c:300:3:  [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(data+4,sm->ownname);
data/netmaze-0.81+jpg0.82/robot.c:78:3:  [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(hostname,argv[1]);
data/netmaze-0.81+jpg0.82/texture.c:345:3:  [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(fn,TEXTUREPATH);
data/netmaze-0.81+jpg0.82/texture.c:347:3:  [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(fn,name);
data/netmaze-0.81+jpg0.82/x11gfx.c:783:3:  [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(string,play[k].name);
data/netmaze-0.81+jpg0.82/better.c:412:18:  [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.
	      i = (int)(drand48() * 2);
data/netmaze-0.81+jpg0.82/better.c:427:14:  [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.
	  i = (int)(drand48() * 2);
data/netmaze-0.81+jpg0.82/better.c:444:17:  [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.
      i = (int)(drand48() * 40);
data/netmaze-0.81+jpg0.82/netmaze.c:507:9:  [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((s=getenv("NETMAZE_NAME"))!=NULL)
data/netmaze-0.81+jpg0.82/netmaze.c:516:9:  [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((s=getenv("NETMAZE_COMMENT"))!=NULL)
data/netmaze-0.81+jpg0.82/allmove.c:915: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(players[i].name,"Player Nr. ");
data/netmaze-0.81+jpg0.82/allmove.c:916: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(players[i].name+strlen(players[i].name),"%d",i);
data/netmaze-0.81+jpg0.82/allmove.c:920: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(players[i].comment,"Have a nice day!");
data/netmaze-0.81+jpg0.82/audio.c:60:3:  [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[20];
data/netmaze-0.81+jpg0.82/audio.c:96:13:  [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).
    audio = open("/dev/audioBL",O_WRONLY|BLOCKDEVICE); /* test */
data/netmaze-0.81+jpg0.82/audio.c:101:13:  [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).
    audio = open("/dev/audio",O_WRONLY|BLOCKDEVICE);
data/netmaze-0.81+jpg0.82/audio.c:107:13:  [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).
    audio = open("/dev/audio",O_WRONLY|BLOCKDEVICE);
data/netmaze-0.81+jpg0.82/audio.c:185: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.
  unsigned char junk[8];
data/netmaze-0.81+jpg0.82/audio.c:197:8:  [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).
  fd = fopen(f,"r");
data/netmaze-0.81+jpg0.82/better.c:191:3:  [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(sm->owncomment,"Ich weiss, dass ich besser bin!");
data/netmaze-0.81+jpg0.82/better.c:202:2:  [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(sm->owncomment,"Ich weiss, dass ich besser bin!");
data/netmaze-0.81+jpg0.82/better.c:208:4:  [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(sm->owncomment,"'s Feinde sind auch meine Feinde");
data/netmaze-0.81+jpg0.82/better.h:12:17:  [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 freundname[255];
data/netmaze-0.81+jpg0.82/draw_3d.c:46:3:  [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(sm->playfeld1,sm->playfeld,sm->anzplayers*sizeof(PLAYER));
data/netmaze-0.81+jpg0.82/dummy.c:16:3:  [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(sm->ownname,"Dr.Dummy");
data/netmaze-0.81+jpg0.82/dummy.c:17:3:  [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(sm->owncomment,"Gotcha!!!");
data/netmaze-0.81+jpg0.82/follower.c:20:3:  [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(sm->ownname,"Follower2");
data/netmaze-0.81+jpg0.82/follower.c:21:3:  [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(sm->owncomment,"Look Behind You");
data/netmaze-0.81+jpg0.82/iocntl.c:144: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.
  static char	buf[256];
data/netmaze-0.81+jpg0.82/maze.c:60:18:  [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).
  if ( (handle = fopen(name,"r")) != NULL)
data/netmaze-0.81+jpg0.82/maze.c:178:3:  [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 bitlist[MAZEDIMENSION][MAZEDIMENSION];
data/netmaze-0.81+jpg0.82/netmaze.c:515: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(sm->ownname,"Mr. No-Name");
data/netmaze-0.81+jpg0.82/netmaze.c:524: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(sm->owncomment,"Have a nice day!");
data/netmaze-0.81+jpg0.82/netmaze.h:163:3:  [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[MAXNAME+1];
data/netmaze-0.81+jpg0.82/netmaze.h:164:3:  [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 comment[MAXCOMMENT+1];
data/netmaze-0.81+jpg0.82/netmaze.h:195:3:  [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 teamname[MAXNAME+1];
data/netmaze-0.81+jpg0.82/netmaze.h:268:3:  [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 ownname[MAXNAME+1];         /* Playername */
data/netmaze-0.81+jpg0.82/netmaze.h:269:3:  [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 owncomment[MAXCOMMENT+1];   /* Comment, if you kill another one */
data/netmaze-0.81+jpg0.82/netmaze.h:270:3:  [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[256];              /* Remotehostname */
data/netmaze-0.81+jpg0.82/netserv.c:130:1:  [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 tclcommand[200];
data/netmaze-0.81+jpg0.82/netserv.c:244: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.
  static char line[256];
data/netmaze-0.81+jpg0.82/netserv.c:315:3:  [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 d[256];
data/netmaze-0.81+jpg0.82/netserv.c:432:3:  [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 line[256],name[100];
data/netmaze-0.81+jpg0.82/netserv.c:459: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(tclcommand, "MESSAGE\nUnknown command\n");
data/netmaze-0.81+jpg0.82/netserv.c:471: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(tclcommand, "MESSAGE\nOK... re-initialize built-in maze\n");
data/netmaze-0.81+jpg0.82/netserv.c:478:11:  [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(tclcommand, "MESSAGE\nCan't initialize maze.\n");
data/netmaze-0.81+jpg0.82/netserv.c:491: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(tclcommand, "MESSAGE\nMaze is OK!\n");
data/netmaze-0.81+jpg0.82/netserv.c:507: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(tclcommand, "MESSAGE\nRandom maze is ok.\n");
data/netmaze-0.81+jpg0.82/netserv.c:512: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(tclcommand, "MESSAGE\nError, size too big.\n");
data/netmaze-0.81+jpg0.82/netserv.c:523: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(tclcommand, "MESSAGE\nLoad/reinit a maze first!\n");
data/netmaze-0.81+jpg0.82/netserv.c:530: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(tclcommand, "MESSAGE\nNo players net; try again later.\n");
data/netmaze-0.81+jpg0.82/netserv.c:563: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(tclcommand, "MESSAGE\nNo player yet; try again later.\n");
data/netmaze-0.81+jpg0.82/netserv.c:573:11:  [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(tclcommand, "MESSAGE\nIllegal team selection.\n");
data/netmaze-0.81+jpg0.82/netserv.c:599: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(tclcommand, "MESSAGE\nToo few parameters.\n");
data/netmaze-0.81+jpg0.82/netserv.c:739:7:  [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(tclcommand, "MESSAGE\nUnknown command\n");
data/netmaze-0.81+jpg0.82/netserv.c:886:15:  [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(tclcommand, "MESSAGE\nConnection of player %d\nMESSAGECAT\ndoesn't respond\n",
data/netmaze-0.81+jpg0.82/netserv.c:934:3:  [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[280];
data/netmaze-0.81+jpg0.82/netserv.c:1069: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(name,"%ud.%ud.%ud.%ud",(unsigned int) saddr[0],(unsigned int) saddr[1],(unsigned int) saddr[2],(unsigned int) saddr[3]);
data/netmaze-0.81+jpg0.82/netserv.c:1299:3:  [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(tclcommand, "STARTGAME\n");
data/netmaze-0.81+jpg0.82/netserv.c:1350:3:  [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 data[2];
data/netmaze-0.81+jpg0.82/netserv.c:1353:3:  [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(tclcommand, "STOPGAME\n");
data/netmaze-0.81+jpg0.82/netserv.c:1377:3:  [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[MAZEDIMENSION+10];
data/netmaze-0.81+jpg0.82/netserv.c:1414:3:  [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 data[256];
data/netmaze-0.81+jpg0.82/netserv.c:1444:3:  [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 data[256];
data/netmaze-0.81+jpg0.82/netserv.c:1464:3:  [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 data[MAXPLAYERS+10];
data/netmaze-0.81+jpg0.82/netserv.c:1524: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.
  unsigned char data[256];
data/netmaze-0.81+jpg0.82/netserv.c:1525:3:  [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 mes[256];
data/netmaze-0.81+jpg0.82/netserv.c:1532:7:  [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(mes,"!<");
data/netmaze-0.81+jpg0.82/netserv.c:1534: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(mes,"> ");
data/netmaze-0.81+jpg0.82/netserv.c:1537: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(mes,"[Server] ");
data/netmaze-0.81+jpg0.82/netserv.c:1561: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.
      send(p->connection->socket,(char *) data,(int) data[1],0);
data/netmaze-0.81+jpg0.82/netserv.c:1569:39:  [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.
          send(p->connection->socket,(char *) data,(int) data[1],0);
data/netmaze-0.81+jpg0.82/netserv.c:1581:3:  [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 data[256];
data/netmaze-0.81+jpg0.82/netserv.c:1599:3:  [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 data[MAXPLAYERS+2];
data/netmaze-0.81+jpg0.82/netserv.c:1617:3:  [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 data[3];
data/netmaze-0.81+jpg0.82/netserv.c:1702:3:  [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(p->comment,"Gotcha!!!!");
data/netmaze-0.81+jpg0.82/netserv.c:1910:3:  [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(g->groupname,"NETMAZE");
data/netmaze-0.81+jpg0.82/netserv.c:1926:3:  [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(tclcommand, "CONNECTIONLIST\n");
data/netmaze-0.81+jpg0.82/netserv.c:1945:3:  [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(tclcommand, "ENDCONNECTIONLIST\n");
data/netmaze-0.81+jpg0.82/netserv.h:28:3:  [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[MAXNAME+1];
data/netmaze-0.81+jpg0.82/netserv.h:29:3:  [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 comment[MAXCOMMENT+1];
data/netmaze-0.81+jpg0.82/netserv.h:52:3:  [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[256];
data/netmaze-0.81+jpg0.82/netserv.h:60:3:  [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 groupname[16];
data/netmaze-0.81+jpg0.82/network.c:58: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.
  static char	buf[256];
data/netmaze-0.81+jpg0.82/network.c:131:3:  [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 data[1];
data/netmaze-0.81+jpg0.82/network.c:232:3:  [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 data[2];
data/netmaze-0.81+jpg0.82/network.c:247:3:  [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[100];
data/netmaze-0.81+jpg0.82/network.c:257:3:  [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[10];
data/netmaze-0.81+jpg0.82/network.c:295:3:  [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 data[32];
data/netmaze-0.81+jpg0.82/network.c:306:3:  [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 data[4];
data/netmaze-0.81+jpg0.82/robot.c:65:3:  [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[256];
data/netmaze-0.81+jpg0.82/texture.c:188: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.
  static char *jmptabsave[32] = { NULL, };
data/netmaze-0.81+jpg0.82/texture.c:230: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.
  static char *divtabsave[32] = { NULL, };
data/netmaze-0.81+jpg0.82/texture.c:341: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.
  unsigned char buf[32];
data/netmaze-0.81+jpg0.82/texture.c:343:3:  [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 fn[1024];
data/netmaze-0.81+jpg0.82/texture.c:349:5:  [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).
  f=fopen(fn,"r");
data/netmaze-0.81+jpg0.82/texture.c:426:5:  [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).
  f=fopen(fn,"r");
data/netmaze-0.81+jpg0.82/texture.c:430:14:  [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.
    unsigned char a[4];
data/netmaze-0.81+jpg0.82/x11cntrl.c:27:3:  [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 text[10];
data/netmaze-0.81+jpg0.82/x11gfx.c:235: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 name[16];
data/netmaze-0.81+jpg0.82/x11gfx.c:236: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(name,"texture%d.bmp",i);
data/netmaze-0.81+jpg0.82/x11gfx.c:781:3:  [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[32];
data/netmaze-0.81+jpg0.82/x11gfx.c:784:3:  [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(string+strlen(string)," says:");
data/netmaze-0.81+jpg0.82/x11gfx.c:1157: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.
  static unsigned char cfield[MAX_COLORS][4];
data/netmaze-0.81+jpg0.82/xtests/switch.c:5:11:  [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).
  int c = atoi(argv[1]);
data/netmaze-0.81+jpg0.82/xtests/xmmenu.c:130:3:  [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[1024];
data/netmaze-0.81+jpg0.82/xtests/xmserv.c:125:3:  [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[64];
data/netmaze-0.81+jpg0.82/xtests/xmserv.c:194:3:  [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[1024];
data/netmaze-0.81+jpg0.82/allmove.c:913:6:  [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(players[i].name) == 0)
data/netmaze-0.81+jpg0.82/allmove.c:916:29:  [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).
    sprintf(players[i].name+strlen(players[i].name),"%d",i);
data/netmaze-0.81+jpg0.82/allmove.c:918:6:  [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(players[i].comment) == 0)
data/netmaze-0.81+jpg0.82/iocntl.c:182:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if(read(0,buf,256) == 0) /* sure is sure */
data/netmaze-0.81+jpg0.82/netmaze.c:114:12:  [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(argv[i]) > 255)
data/netmaze-0.81+jpg0.82/netmaze.c:129:12:  [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(argv[i]) >= MAXNAME)
data/netmaze-0.81+jpg0.82/netmaze.c:170:12:  [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(argv[i]) >= MAXCOMMENT)
data/netmaze-0.81+jpg0.82/netmaze.c:509:8:  [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(s) > 15)
data/netmaze-0.81+jpg0.82/netmaze.c:518:8:  [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(s) > 31)
data/netmaze-0.81+jpg0.82/netserv.c:250:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if((len = read(menu_in,line,1)) != 1)
data/netmaze-0.81+jpg0.82/netserv.c:259:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          bytesleft = read(menu_in,line+1,1);
data/netmaze-0.81+jpg0.82/netserv.c:290:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    len = read(menu_in,line+cmdlen-bytesleft,bytesleft);
data/netmaze-0.81+jpg0.82/netserv.c:444:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
     len = read(0,line,255);
data/netmaze-0.81+jpg0.82/netserv.c:1066:27:  [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(hp && hp->h_name && (strlen(hp->h_name) > 0))
data/netmaze-0.81+jpg0.82/netserv.c:1193: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).
              print_player((char*)buf+7+strlen((char*)buf),pl);
data/netmaze-0.81+jpg0.82/netserv.c:1251:12:  [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((char*)buf+2) > MAXCOMMENT)
data/netmaze-0.81+jpg0.82/netserv.c:1273:12:  [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((char*)buf+4) > MAXNAME)
data/netmaze-0.81+jpg0.82/netserv.c:1422: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).
      data[1] = 3 + strlen(p->name);
data/netmaze-0.81+jpg0.82/netserv.c:1449: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).
    data[1] = 3 + strlen(p->comment);
data/netmaze-0.81+jpg0.82/netserv.c:1530:7:  [1] (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 character.
      strcpy(mes,"<");
data/netmaze-0.81+jpg0.82/netserv.c:1542:17:  [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).
  data[1] = 7 + strlen(mes);
data/netmaze-0.81+jpg0.82/netserv.c:1584: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).
  data[1] = strlen(str)+7;
data/netmaze-0.81+jpg0.82/netserv.c:1698:8:  [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(name)>MAXNAME)
data/netmaze-0.81+jpg0.82/netserv.c:2040:17:  [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).
  count = len = strlen(tclcommand);
data/netmaze-0.81+jpg0.82/netserv.c:2061:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        n = read(fd, pts+status, count-status); 
data/netmaze-0.81+jpg0.82/network.c:210:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(sm->playfeld[(unsigned char) buf[2]].name,buf+3,buf[1]-3);
data/netmaze-0.81+jpg0.82/network.c:218:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(sm->playfeld[(int) (unsigned char) buf[2]].comment,buf+3,buf[1]-3);
data/netmaze-0.81+jpg0.82/network.c:250:12:  [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).
  buf[1] = strlen(sm->owncomment)+2;
data/netmaze-0.81+jpg0.82/network.c:297: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).
  data[1] = strlen(sm->ownname)+5;
data/netmaze-0.81+jpg0.82/texture.c:346:3:  [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.
  strcat(fn,"/");
data/netmaze-0.81+jpg0.82/x11gfx.c:398:47:  [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).
                       5,32+j*16,play[i].name,strlen(play[i].name));
data/netmaze-0.81+jpg0.82/x11gfx.c:784:17:  [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(string+strlen(string)," says:");
data/netmaze-0.81+jpg0.82/x11gfx.c:795: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).
                   0,16,string,strlen(string));
data/netmaze-0.81+jpg0.82/x11gfx.c:797: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).
                   0,32,play[k].comment,strlen(play[k].comment));
data/netmaze-0.81+jpg0.82/x11gfx.c:944: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).
  for(i=0;strlen(infotext[i])!=0;i++)
data/netmaze-0.81+jpg0.82/x11gfx.c:947:45:  [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).
                     5,16*(i+1),infotext[i],strlen(infotext[i]));
data/netmaze-0.81+jpg0.82/xtests/xmmenu.c:133:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  i = read(*s,buf,1024);
data/netmaze-0.81+jpg0.82/xtests/xmserv.c:197:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  i = read(*s,buf,1024);

ANALYSIS SUMMARY:

Hits = 175
Lines analyzed = 10403 in approximately 0.27 seconds (37936 lines/second)
Physical Source Lines of Code (SLOC) = 8282
Hits@level = [0] 239 [1]  38 [2]  98 [3]   5 [4]  34 [5]   0
Hits@level+ = [0+] 414 [1+] 175 [2+] 137 [3+]  39 [4+]  34 [5+]   0
Hits/KSLOC@level+ = [0+] 49.9879 [1+] 21.1302 [2+] 16.5419 [3+] 4.70901 [4+] 4.10529 [5+]   0
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.