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/nas-1.9.4/lib/audio/DesFlow.c
Examining data/nas-1.9.4/lib/audio/AuErrDes.c
Examining data/nas-1.9.4/lib/audio/SetElParms.c
Examining data/nas-1.9.4/lib/audio/Alibint.c
Examining data/nas-1.9.4/lib/audio/OpenSvr.c
Examining data/nas-1.9.4/lib/audio/ErrHndlr.c
Examining data/nas-1.9.4/lib/audio/monitor.c
Examining data/nas-1.9.4/lib/audio/fileutil.c
Examining data/nas-1.9.4/lib/audio/SetDevAttr.c
Examining data/nas-1.9.4/lib/audio/Xtutil.c
Examining data/nas-1.9.4/lib/audio/wave.c
Examining data/nas-1.9.4/lib/audio/Sync.c
Examining data/nas-1.9.4/lib/audio/ScanTEvent.c
Examining data/nas-1.9.4/lib/audio/GetSvrTime.c
Examining data/nas-1.9.4/lib/audio/Xtutil.h
Examining data/nas-1.9.4/lib/audio/SetElement.c
Examining data/nas-1.9.4/lib/audio/nameserver.c
Examining data/nas-1.9.4/lib/audio/CrFlow.c
Examining data/nas-1.9.4/lib/audio/Astreams.c
Examining data/nas-1.9.4/lib/audio/Astreams.h
Examining data/nas-1.9.4/lib/audio/Aproto.h
Examining data/nas-1.9.4/lib/audio/8svx.h
Examining data/nas-1.9.4/lib/audio/globals.c
Examining data/nas-1.9.4/lib/audio/sound.c
Examining data/nas-1.9.4/lib/audio/CrBucket.c
Examining data/nas-1.9.4/lib/audio/aiff.h
Examining data/nas-1.9.4/lib/audio/CloseSvr.c
Examining data/nas-1.9.4/lib/audio/mutex.h
Examining data/nas-1.9.4/lib/audio/convutil.c
Examining data/nas-1.9.4/lib/audio/bcache.c
Examining data/nas-1.9.4/lib/audio/IDOfEvent.c
Examining data/nas-1.9.4/lib/audio/Alibnet.h
Examining data/nas-1.9.4/lib/audio/ReadEl.c
Examining data/nas-1.9.4/lib/audio/SetClsDwnMd.c
Examining data/nas-1.9.4/lib/audio/AuFreeEData.c
Examining data/nas-1.9.4/lib/audio/voc.c
Examining data/nas-1.9.4/lib/audio/GetBucAttr.c
Examining data/nas-1.9.4/lib/audio/snd.h
Examining data/nas-1.9.4/lib/audio/AuGetBest.c
Examining data/nas-1.9.4/lib/audio/audio-def.cpp
Examining data/nas-1.9.4/lib/audio/Aosdefs.h
Examining data/nas-1.9.4/lib/audio/NextEvent.c
Examining data/nas-1.9.4/lib/audio/AlibAsync.c
Examining data/nas-1.9.4/lib/audio/ReqEvent.c
Examining data/nas-1.9.4/lib/audio/audioutil.h
Examining data/nas-1.9.4/lib/audio/ListDevice.c
Examining data/nas-1.9.4/lib/audio/soundlib.h
Examining data/nas-1.9.4/lib/audio/Util.c
Examining data/nas-1.9.4/lib/audio/ScanEvents.c
Examining data/nas-1.9.4/lib/audio/aiff.c
Examining data/nas-1.9.4/lib/audio/HandleEv.c
Examining data/nas-1.9.4/lib/audio/voc.h
Examining data/nas-1.9.4/lib/audio/nameaddr.c
Examining data/nas-1.9.4/lib/audio/DesBucket.c
Examining data/nas-1.9.4/lib/audio/8svx.c
Examining data/nas-1.9.4/lib/audio/Afuncs.h
Examining data/nas-1.9.4/lib/audio/GetElement.c
Examining data/nas-1.9.4/lib/audio/sound.h
Examining data/nas-1.9.4/lib/audio/soundlib.c
Examining data/nas-1.9.4/lib/audio/GetClsDwnMd.c
Examining data/nas-1.9.4/lib/audio/GetDevAttr.c
Examining data/nas-1.9.4/lib/audio/snd.c
Examining data/nas-1.9.4/lib/audio/ConnSvr.c
Examining data/nas-1.9.4/lib/audio/ListBucket.c
Examining data/nas-1.9.4/lib/audio/Amd.h
Examining data/nas-1.9.4/lib/audio/Afuncproto.h
Examining data/nas-1.9.4/lib/audio/GetElState.c
Examining data/nas-1.9.4/lib/audio/wave.h
Examining data/nas-1.9.4/lib/audio/WriteEl.c
Examining data/nas-1.9.4/lib/audio/fileutil.h
Examining data/nas-1.9.4/lib/audio/Alibint.h
Examining data/nas-1.9.4/lib/audio/mutex.c
Examining data/nas-1.9.4/lib/audio/KillClient.c
Examining data/nas-1.9.4/lib/audio/audiolib.h
Examining data/nas-1.9.4/lib/audio/SvrName.c
Examining data/nas-1.9.4/lib/audio/Aos.h
Examining data/nas-1.9.4/lib/audio/Flush.c
Examining data/nas-1.9.4/lib/audio/audio.h
Examining data/nas-1.9.4/lib/audio/SetElState.c
Examining data/nas-1.9.4/server/os/access.c
Examining data/nas-1.9.4/server/os/aulog.c
Examining data/nas-1.9.4/server/os/io.c
Examining data/nas-1.9.4/server/os/daemon.c
Examining data/nas-1.9.4/server/os/WaitFor.c
Examining data/nas-1.9.4/server/os/connection.c
Examining data/nas-1.9.4/server/os/auth.c
Examining data/nas-1.9.4/server/os/hpsocket.c
Examining data/nas-1.9.4/server/os/iopreader.c
Examining data/nas-1.9.4/server/os/genalloca.c
Examining data/nas-1.9.4/server/os/utils.c
Examining data/nas-1.9.4/server/os/mitauth.c
Examining data/nas-1.9.4/server/os/osinit.c
Examining data/nas-1.9.4/server/os/osdep.h
Examining data/nas-1.9.4/server/os/aulog.h
Examining data/nas-1.9.4/server/dia/globals.h
Examining data/nas-1.9.4/server/dia/tables.c
Examining data/nas-1.9.4/server/dia/main.c
Examining data/nas-1.9.4/server/dia/dispatch.c
Examining data/nas-1.9.4/server/dia/dixutils.c
Examining data/nas-1.9.4/server/dia/globals.c
Examining data/nas-1.9.4/server/dia/au.h
Examining data/nas-1.9.4/server/dia/auutil.c
Examining data/nas-1.9.4/server/dia/auswap.c
Examining data/nas-1.9.4/server/dia/auevents.c
Examining data/nas-1.9.4/server/dia/nasconf.h
Examining data/nas-1.9.4/server/dia/events.c
Examining data/nas-1.9.4/server/dia/auprocess.c
Examining data/nas-1.9.4/server/dia/auconfig.c
Examining data/nas-1.9.4/server/dia/autables.c
Examining data/nas-1.9.4/server/dia/swapreq.c
Examining data/nas-1.9.4/server/dia/nasconf.c
Examining data/nas-1.9.4/server/dia/resource.c
Examining data/nas-1.9.4/server/dia/audispatch.c
Examining data/nas-1.9.4/server/dia/swaprep.c
Examining data/nas-1.9.4/server/dia/auservertype.h
Examining data/nas-1.9.4/server/include/dix.h
Examining data/nas-1.9.4/server/include/dixstruct.h
Examining data/nas-1.9.4/server/include/opaque.h
Examining data/nas-1.9.4/server/include/site.h
Examining data/nas-1.9.4/server/include/resource.h
Examining data/nas-1.9.4/server/include/misc.h
Examining data/nas-1.9.4/server/include/os.h
Examining data/nas-1.9.4/server/dda/sun/config.h
Examining data/nas-1.9.4/server/dda/sun/audbri.c
Examining data/nas-1.9.4/server/dda/sun/ausun.h
Examining data/nas-1.9.4/server/dda/sun/config.c
Examining data/nas-1.9.4/server/dda/sun/ausuni.c
Examining data/nas-1.9.4/server/dda/sun/ausun.c
Examining data/nas-1.9.4/server/dda/voxware/config.h
Examining data/nas-1.9.4/server/dda/voxware/auvoxware.h
Examining data/nas-1.9.4/server/dda/voxware/auvoxware.c
Examining data/nas-1.9.4/server/dda/voxware/config.c
Examining data/nas-1.9.4/server/dda/sgi/config.h
Examining data/nas-1.9.4/server/dda/sgi/ausgi.h
Examining data/nas-1.9.4/server/dda/sgi/ausgi.c
Examining data/nas-1.9.4/server/dda/sgi/config.c
Examining data/nas-1.9.4/server/dda/hpux/auhpux.h
Examining data/nas-1.9.4/server/dda/hpux/config.h
Examining data/nas-1.9.4/server/dda/hpux/auhpux.c
Examining data/nas-1.9.4/server/dda/hpux/config.c
Examining data/nas-1.9.4/config/NasConfig.h
Examining data/nas-1.9.4/clients/audio/auwave/auwave.c
Examining data/nas-1.9.4/clients/audio/examples/playSimul.c
Examining data/nas-1.9.4/clients/audio/examples/recordBucket.c
Examining data/nas-1.9.4/clients/audio/examples/plyBcktAsync.c
Examining data/nas-1.9.4/clients/audio/examples/playRaw.c
Examining data/nas-1.9.4/clients/audio/examples/bundle.c
Examining data/nas-1.9.4/clients/audio/examples/playFromBckt.c
Examining data/nas-1.9.4/clients/audio/examples/loopBucket.c
Examining data/nas-1.9.4/clients/audio/examples/playFile.c
Examining data/nas-1.9.4/clients/audio/auedit/GraphP.h
Examining data/nas-1.9.4/clients/audio/auedit/Graph.h
Examining data/nas-1.9.4/clients/audio/auedit/Graph.c
Examining data/nas-1.9.4/clients/audio/auedit/resources.h
Examining data/nas-1.9.4/clients/audio/auedit/auedit.c
Examining data/nas-1.9.4/clients/audio/aurecord/aurecord.c
Examining data/nas-1.9.4/clients/audio/auctl/auctl.h
Examining data/nas-1.9.4/clients/audio/auctl/auctl.c
Examining data/nas-1.9.4/clients/audio/auctl/execute.c
Examining data/nas-1.9.4/clients/audio/audemo/audemo.c
Examining data/nas-1.9.4/clients/audio/audemo/resources.h
Examining data/nas-1.9.4/clients/audio/aupanel/aupanel.c
Examining data/nas-1.9.4/clients/audio/auplay/auplay.c
Examining data/nas-1.9.4/clients/audio/util/soundtoh.c
Examining data/nas-1.9.4/clients/audio/util/playbucket.c
Examining data/nas-1.9.4/clients/audio/util/issndfile.c
Examining data/nas-1.9.4/clients/audio/widgets/Slider.h
Examining data/nas-1.9.4/clients/audio/widgets/SliderP.h
Examining data/nas-1.9.4/clients/audio/widgets/Slider.c
Examining data/nas-1.9.4/clients/audio/audial/audial.c
Examining data/nas-1.9.4/clients/audio/auconvert/auconvert.c
Examining data/nas-1.9.4/clients/audio/auphone/rings.c
Examining data/nas-1.9.4/clients/audio/auphone/auphone.c
Examining data/nas-1.9.4/clients/audio/auphone/ringout.h
Examining data/nas-1.9.4/clients/audio/auphone/ringin.h
Examining data/nas-1.9.4/clients/audio/auphone/busy.h
Examining data/nas-1.9.4/clients/audio/autool/audiotool.c
Examining data/nas-1.9.4/clients/audio/auinfo/auinfo.c

FINAL RESULTS:

data/nas-1.9.4/lib/audio/Astreams.c:304:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		if(chmod(buf,(mode_t) 0666)<0)	{
data/nas-1.9.4/lib/audio/Astreams.c:426:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if( chmod(buf, 0666) < 0){
data/nas-1.9.4/lib/audio/Astreams.c:682:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if (chmod(slave, 0666) < 0) 
data/nas-1.9.4/server/os/connection.c:543:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        chmod(X_UNIX_DIR, 0777 | S_ISVTX);
data/nas-1.9.4/server/os/connection.c:567:13:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
            chown(oldLinkName, 2, 3);
data/nas-1.9.4/server/os/connection.c:684:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod(AUDIO_ISC_DIR, 0777);
data/nas-1.9.4/server/os/connection.c:689:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod(X_UNIX_DIR, 0777);
data/nas-1.9.4/server/os/connection.c:817:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod(AUDIO_STREAMS_DIR, 0777);
data/nas-1.9.4/server/os/connection.c:836:34:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    if (link(slave, path) < 0 || chmod(path, 0666) < 0) {
data/nas-1.9.4/server/os/connection.c:858:5:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    chmod(AUDIO_STREAMS_DIR, 0777);
data/nas-1.9.4/server/os/connection.c:876:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    if (chmod(path, (mode_t) 0666) < 0) {
data/nas-1.9.4/clients/audio/auconvert/auconvert.c:85:5:  [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, message, arg);
data/nas-1.9.4/clients/audio/auconvert/auconvert.c:95:5:  [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, USAGE);
data/nas-1.9.4/clients/audio/auconvert/auconvert.c:210:21:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
                   *mktemp(),
data/nas-1.9.4/clients/audio/auconvert/auconvert.c:344:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(outName, "%sXXXXXX", inputFile);
data/nas-1.9.4/clients/audio/auconvert/auconvert.c:348:12:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
	outName = mktemp(outName);
data/nas-1.9.4/clients/audio/auctl/execute.c:495:5:  [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 the scanf format is influenceable by an
  attacker, it's exploitable.
    sscanf (s, fmt, &val);
data/nas-1.9.4/clients/audio/audemo/audemo.c:54:1:  [4] (shell) popen:
  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.
popen(
data/nas-1.9.4/clients/audio/audemo/audemo.c:282: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(t, s);
data/nas-1.9.4/clients/audio/audemo/audemo.c:334:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(buf, GAIN_FORMAT, globals->rec.gain);
data/nas-1.9.4/clients/audio/audemo/audemo.c:597:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                    access[4],
data/nas-1.9.4/clients/audio/audemo/audemo.c:635:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    strcat(access, "I");
data/nas-1.9.4/clients/audio/audemo/audemo.c:637:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    strcat(access, "E");
data/nas-1.9.4/clients/audio/audemo/audemo.c:639:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	    strcat(access, "D");
data/nas-1.9.4/clients/audio/audemo/audemo.c:646:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(tmp, BUCKET_HEADER_FORMAT,
data/nas-1.9.4/clients/audio/audemo/audemo.c:648:56:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		AuBucketNumTracks(p), AuBucketSampleRate(p), format, access);
data/nas-1.9.4/clients/audio/audemo/audemo.c:1134:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(p, f, a);							       \
data/nas-1.9.4/clients/audio/audemo/audemo.c:1215:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(buf, VOLUME_FORMAT, globals->volume);
data/nas-1.9.4/clients/audio/audemo/audemo.c:1240:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(buf, VOLUME_FORMAT, globals->volume);
data/nas-1.9.4/clients/audio/audemo/audemo.c:1275:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(buf, GAIN_FORMAT, globals->rec.gain);
data/nas-1.9.4/clients/audio/audemo/audemo.c:1300:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(buf, GAIN_FORMAT, globals->rec.gain);
data/nas-1.9.4/clients/audio/audemo/audemo.c:1387:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(tmp, "%c - %s", 'A' + i,
data/nas-1.9.4/clients/audio/audemo/audemo.c:1503:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(buf, VOLUME_FORMAT, g->volume);
data/nas-1.9.4/clients/audio/audemo/audemo.c:1708:5:  [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, message, arg);
data/nas-1.9.4/clients/audio/audemo/audemo.c:1766:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(cmd, "find %s -type f -a \\( ", dir);
data/nas-1.9.4/clients/audio/audemo/audemo.c:1780:2:  [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(cmd, p);
data/nas-1.9.4/clients/audio/audemo/audemo.c:1788:10:  [4] (shell) popen:
  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.
    fp = popen(cmd, "r");
data/nas-1.9.4/clients/audio/audemo/audemo.c:1844: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(d, dir);
data/nas-1.9.4/clients/audio/audemo/audemo.c:1864: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(p, dir);
data/nas-1.9.4/clients/audio/audemo/audemo.c:1866: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(p, fileInfo.cFileName);
data/nas-1.9.4/clients/audio/audial/audial.c:166:5:  [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, message, arg1);
data/nas-1.9.4/clients/audio/auedit/auedit.c:46:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#define access _access
data/nas-1.9.4/clients/audio/auedit/auedit.c:335:5:  [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, message, arg);
data/nas-1.9.4/clients/audio/auedit/auedit.c:2237:21:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
                   *mktemp();
data/nas-1.9.4/clients/audio/auedit/auedit.c:2267:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tmpName, "%sXXXXXX", name);
data/nas-1.9.4/clients/audio/auedit/auedit.c:2273:15:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
    tmpName = mktemp(tmpName);
data/nas-1.9.4/clients/audio/auedit/auedit.c:2302:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!access(name, R_OK))
data/nas-1.9.4/clients/audio/auedit/auedit.c:2312:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(backup, "%s~", name);
data/nas-1.9.4/clients/audio/auinfo/auinfo.c:107:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf (TITLEFMT, "Audio Server:");
data/nas-1.9.4/clients/audio/auinfo/auinfo.c:109:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf (TITLEFMT, "Version Number:");
data/nas-1.9.4/clients/audio/auinfo/auinfo.c:112:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf (TITLEFMT, "Vendor:");
data/nas-1.9.4/clients/audio/auinfo/auinfo.c:114:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf (TITLEFMT, "Vendor Release:");
data/nas-1.9.4/clients/audio/auinfo/auinfo.c:116:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf (TITLEFMT, "Min Sample Rate:");
data/nas-1.9.4/clients/audio/auinfo/auinfo.c:118:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf (TITLEFMT, "Max Sample Rate:");
data/nas-1.9.4/clients/audio/auinfo/auinfo.c:120:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf (TITLEFMT, "Max Tracks:");
data/nas-1.9.4/clients/audio/auinfo/auinfo.c:122:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf (TITLEFMT, "Number of Formats:");
data/nas-1.9.4/clients/audio/auinfo/auinfo.c:125:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf (TITLEFMT, "Number of Elem Types:");
data/nas-1.9.4/clients/audio/auinfo/auinfo.c:128:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf (TITLEFMT, "Number of Wave Forms:");
data/nas-1.9.4/clients/audio/auinfo/auinfo.c:131:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf (TITLEFMT, "Number of Actions:");
data/nas-1.9.4/clients/audio/auinfo/auinfo.c:134:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf (TITLEFMT, "Number of Devices:");
data/nas-1.9.4/clients/audio/auinfo/auinfo.c:137:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf (TITLEFMT, "Number of Buckets:");
data/nas-1.9.4/clients/audio/auinfo/auinfo.c:305:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf (tmpbuf, (isbit ? "0x%lx" : "%d"), val);
data/nas-1.9.4/clients/audio/auinfo/auinfo.c:338:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf (TITLEFMT, title);
data/nas-1.9.4/clients/audio/auinfo/auinfo.c:362:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf (TITLEFMT, "");
data/nas-1.9.4/clients/audio/auinfo/auinfo.c:368:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf (f, nt->name);
data/nas-1.9.4/clients/audio/auinfo/auinfo.c:372:6:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	    printf (TITLEFMT, "");
data/nas-1.9.4/clients/audio/aupanel/aupanel.c:158:5:  [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, message, arg);
data/nas-1.9.4/clients/audio/auphone/auphone.c:225:5:  [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, message, arg);
data/nas-1.9.4/clients/audio/auphone/auphone.c:360:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "%s %s %s %s %d %d 1", BUSY, VERSION, (char *) getenv("USER"),
data/nas-1.9.4/clients/audio/auphone/auphone.c:371:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(buf, format, arg);
data/nas-1.9.4/clients/audio/auphone/auphone.c:463:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "%s@%s", user, server);
data/nas-1.9.4/clients/audio/auphone/auphone.c:494:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "%s@%s", user, server);
data/nas-1.9.4/clients/audio/auphone/auphone.c:760:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "%s@%s", user, server);
data/nas-1.9.4/clients/audio/auphone/auphone.c:1071:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "%s %d", RINGIN, volume);
data/nas-1.9.4/clients/audio/auphone/auphone.c:1107:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(buf, "%s %d", RINGIN, volume);
data/nas-1.9.4/clients/audio/aurecord/aurecord.c:76:5:  [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, USAGE);
data/nas-1.9.4/clients/audio/aurecord/aurecord.c:101:5:  [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, message, arg);
data/nas-1.9.4/clients/audio/autool/audiotool.c:299:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(p, f, a);							       \
data/nas-1.9.4/clients/audio/autool/audiotool.c:383:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(buf, VOLUME_FORMAT, globals->volume);
data/nas-1.9.4/clients/audio/autool/audiotool.c:409:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(buf, VOLUME_FORMAT, globals->volume);
data/nas-1.9.4/clients/audio/autool/audiotool.c:540:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(buf, VOLUME_FORMAT, globals->volume);
data/nas-1.9.4/clients/audio/autool/audiotool.c:613:5:  [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, message, arg);
data/nas-1.9.4/clients/audio/auwave/auwave.c:159:5:  [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, message, arg);
data/nas-1.9.4/clients/audio/examples/bundle.c:27:5:  [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, message, arg);
data/nas-1.9.4/clients/audio/examples/loopBucket.c:20:5:  [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, message, arg);
data/nas-1.9.4/clients/audio/examples/playFromBckt.c:19:5:  [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, message, arg);
data/nas-1.9.4/clients/audio/examples/playRaw.c:33:5:  [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, message, arg);
data/nas-1.9.4/clients/audio/examples/plyBcktAsync.c:17:5:  [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, message, arg);
data/nas-1.9.4/clients/audio/examples/recordBucket.c:21:5:  [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, message, arg);
data/nas-1.9.4/clients/audio/util/playbucket.c:36:5:  [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, message, arg);
data/nas-1.9.4/clients/audio/util/soundtoh.c:49:5:  [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, message, arg);
data/nas-1.9.4/clients/audio/widgets/Slider.c:143:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	    sprintf(buf, w->slider.label, value);
data/nas-1.9.4/lib/audio/Alibint.c:273:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(stderr, "audiolib: _AuWaitForWritable called\n");
data/nas-1.9.4/lib/audio/Alibint.c:296:5:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    printf(stderr, "audiolib: _AuWaitForReadable called\n");
data/nas-1.9.4/lib/audio/Alibint.c:1352:12:  [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.
    (void) fprintf(fp, mesg, event->request_code);
data/nas-1.9.4/lib/audio/Alibint.c:1363: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, ext->name);
data/nas-1.9.4/lib/audio/Alibint.c:1372:9:  [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.
	(void) fprintf(fp, mesg, event->minor_code);
data/nas-1.9.4/lib/audio/Alibint.c:1374:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(mesg, "%s.%d", ext->name, event->minor_code);
data/nas-1.9.4/lib/audio/Alibint.c:1397:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(buffer, "%s.%d", bext->name,
data/nas-1.9.4/lib/audio/Alibint.c:1404:13:  [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.
	    (void) fprintf(fp, mesg, event->resourceid);
data/nas-1.9.4/lib/audio/Alibint.c:1416:12:  [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.
    (void) fprintf(fp, mesg, event->serial);
data/nas-1.9.4/lib/audio/Alibint.c:1420:12:  [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.
    (void) fprintf(fp, mesg, aud->request);
data/nas-1.9.4/lib/audio/Alibint.h:69:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    _xfer(s, d, access);						       \
data/nas-1.9.4/lib/audio/Aproto.h:259:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    CARD32          access B32;			/* who can access */
data/nas-1.9.4/lib/audio/Astreams.c:83:22:  [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 PRMSG(x,a,b)	fprintf(stderr, x,a,b); fflush(stderr)
data/nas-1.9.4/lib/audio/Astreams.c:294:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "%s.%d", NAMED_LISTENER, munix);
data/nas-1.9.4/lib/audio/Astreams.c:394:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "%s.%d", LOCAL_LISTENER, munix);
data/nas-1.9.4/lib/audio/Astreams.c:556:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(buf, "%s.%d", listener, idisplay);
data/nas-1.9.4/lib/audio/Astreams.c:576:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(buf, "%s.%d", listener, idisplay);
data/nas-1.9.4/lib/audio/Astreams.c:693:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(&buf[1], slave);
data/nas-1.9.4/lib/audio/AuErrDes.c:243:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, "%s.%d", bext->name, code - bext->codes.first_error);
data/nas-1.9.4/lib/audio/AuErrDes.c:275:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(temp, "%s.%s", name, type);
data/nas-1.9.4/lib/audio/AuGetBest.c:57:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access (auth_name, R_OK) != 0)		/* checks REAL id */
data/nas-1.9.4/lib/audio/ConnSvr.c:201:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (access("/dev/audio", R_OK|W_OK) < 0)
data/nas-1.9.4/lib/audio/ConnSvr.c:276:8:  [4] (shell) execlp:
  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.
	(void)execlp("nasd", "nasd", arg1, "-pn", "-timeout",  "600", (char *)NULL);
data/nas-1.9.4/lib/audio/ConnSvr.c:547: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 (saddr, hostnamebuf);
data/nas-1.9.4/lib/audio/ConnSvr.c:665:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (*fullnamep, "%s%s%s%d",
data/nas-1.9.4/lib/audio/ConnSvr.c:779:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (objname, "%s%d", AU_DEFAULT_DECNET_TASK, *iserverp);
data/nas-1.9.4/lib/audio/ConnSvr.c:838:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (unaddr.sun_path, "%s%d", AU_DEFAULT_UNIX_PATH, *iserverp);
data/nas-1.9.4/lib/audio/ConnSvr.c:1236: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(to_try,Def_Local_Search);
data/nas-1.9.4/lib/audio/ConnSvr.c:1241: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(to_try,LocalConnModes[LocalConnType].env_name);
data/nas-1.9.4/lib/audio/ConnSvr.c:1268:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  	    sprintf(server_path,"%s%d", AUDIO_ATT_PATH, *iserverp);
data/nas-1.9.4/lib/audio/ConnSvr.c:1280:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		    sprintf(&rbuf[1], slave);
data/nas-1.9.4/lib/audio/ConnSvr.c:1308:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  	    sprintf(server_path,"%s%d", AUDIO_NSTREAMS_PATH, *iserverp);
data/nas-1.9.4/lib/audio/ConnSvr.c:1324:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  	    sprintf(server_path,"%s%d", AUDIO_ISC_PATH, *iserverp);
data/nas-1.9.4/lib/audio/ConnSvr.c:1362:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  	    sprintf(server_path,"%s%1dR", AUDIO_XSIGHT_PATH, *iserverp);
data/nas-1.9.4/lib/audio/ConnSvr.c:1467:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    (void)sprintf(xserverpath, "%s/%s:%d", DEF_AUSVRDIR, phostname, *iserverp);
data/nas-1.9.4/lib/audio/CrBucket.c:32:25:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
               AuUint32 access,
data/nas-1.9.4/lib/audio/CrBucket.c:51:23:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    b.common.access = access;
data/nas-1.9.4/lib/audio/audiolib.h:391:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    AuMask          access;			/* who can access */
data/nas-1.9.4/lib/audio/audiolib.h:402:34:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
#define AuCommonAccess(c)		((c)->access)
data/nas-1.9.4/lib/audio/fileutil.c:124: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(t, f);
data/nas-1.9.4/lib/audio/nameaddr.c:272: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 (*serveraddrp, machine.nodename);
data/nas-1.9.4/lib/audio/nameaddr.c:702:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(ptr, nd_hostservlist->h_hostservs->h_host);
data/nas-1.9.4/lib/audio/nameserver.c:252:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(clonedev, "%s", (ptr+sizeof(xHostEntry)));
data/nas-1.9.4/lib/audio/nameserver.c:491:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(clonedev, "/dev/%s", nettype);
data/nas-1.9.4/lib/audio/nameserver.c:585: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).
	(void) strcat(buf, with);
data/nas-1.9.4/lib/audio/nameserver.c:640: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 (*serveraddrp, machine.nodename);
data/nas-1.9.4/lib/audio/nameserver.c:686: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.
		n = sscanf(ptr, "%s%s%s", sysname, nodname, netype);
data/nas-1.9.4/lib/audio/nameserver.c:702:4:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			sprintf(nodname, name);
data/nas-1.9.4/lib/audio/nameserver.c:797:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(ptr, nettype);
data/nas-1.9.4/lib/audio/sound.c:524: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(p, comment);
data/nas-1.9.4/lib/audio/soundlib.c:46:40:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                            AuUint32   access,
data/nas-1.9.4/lib/audio/soundlib.c:79:73:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    bucket = AuCreateBucket(aud, SoundDataFormat(s), SoundNumTracks(s), access,
data/nas-1.9.4/lib/audio/soundlib.c:204:40:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                            AuUint32   access,
data/nas-1.9.4/lib/audio/soundlib.c:225:73:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    bucket = AuCreateBucket(aud, SoundDataFormat(s), SoundNumTracks(s), access,
data/nas-1.9.4/server/dda/hpux/auhpux.c:1162: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(V_STRING, HPUX_VENDOR);
data/nas-1.9.4/server/dda/sun/audbri.c:601: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(VENDOR_STRING, SUN_DBRI_VENDOR);
data/nas-1.9.4/server/dda/sun/ausun.c:518: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(VENDOR_STRING, SUN_VENDOR);
data/nas-1.9.4/server/dda/sun/ausuni.c:1373:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(devicectl, "%sctl", device);
data/nas-1.9.4/server/dda/sun/ausuni.c:1423:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(VENDOR_STRING, SUN_VENDOR, name_of_physical_device);
data/nas-1.9.4/server/dia/au.h:152:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        access,                 /* who can access */
data/nas-1.9.4/server/dia/audispatch.c:74:30:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    (a).common.access = (c)->access;                                           \
data/nas-1.9.4/server/dia/audispatch.c:356:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (!(c->access & AuAccessDestroyMask) &&
data/nas-1.9.4/server/dia/audispatch.c:398:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                 c->access & AuAccessListMask) &&
data/nas-1.9.4/server/dia/audispatch.c:1553: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(string, rel);
data/nas-1.9.4/server/dia/audispatch.c:1555: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(string, VENDOR_STRING);
data/nas-1.9.4/server/dia/auswap.c:468:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    swapl(&p->access, n);
data/nas-1.9.4/server/dia/auutil.c:1199:36:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                c->access = COMMON(access);
data/nas-1.9.4/server/dia/auutil.c:1322:37:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                COMPARE_COMMON_MASK(access, access);
data/nas-1.9.4/server/dia/auutil.c:1322:45:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                COMPARE_COMMON_MASK(access, access);
data/nas-1.9.4/server/os/aulog.c:32:12:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    (void) vsnprintf(buf, sizeof buf, fmt, ap);
data/nas-1.9.4/server/os/osinit.c:104:13:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
            snprintf(fname, sizeof fname, ADMPATH, display);
data/nas-1.9.4/server/os/utils.c:615:5:  [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, f, s0, s1, s2, s3, s4, s5, s6, s7, s8, s9);
data/nas-1.9.4/clients/audio/auphone/auphone.c:360:65:  [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.
    sprintf(buf, "%s %s %s %s %d %d 1", BUSY, VERSION, (char *) getenv("USER"),
data/nas-1.9.4/lib/audio/Astreams.c:552:32:  [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 (strncmp("NAMED", (char *) getenv("XLOCAL"),	 5) == 0)	{
data/nas-1.9.4/lib/audio/ConnSvr.c:1214: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.
    extern char *getenv();
data/nas-1.9.4/lib/audio/ConnSvr.c:1233:11:  [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.
	to_try = getenv("XLOCAL");
data/nas-1.9.4/lib/audio/ConnSvr.c:1430:7:  [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.
char *getenv();
data/nas-1.9.4/lib/audio/ConnSvr.c:1525: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.
	if ((tcpsvr = getenv("TCP_SERVER")) == NULL)
data/nas-1.9.4/lib/audio/SvrName.c:31:20:  [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.
extern const char *getenv();
data/nas-1.9.4/lib/audio/SvrName.c:40:27:  [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 = (const char *) getenv ("AUDIOSERVER");
data/nas-1.9.4/lib/audio/SvrName.c:44:27:  [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 = (const char *) getenv ("DISPLAY");
data/nas-1.9.4/lib/audio/nameserver.c:668:26:  [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((netpath = (char *) getenv("NETPATH")) == NULL)
data/nas-1.9.4/server/dda/sun/ausuni.c:466:19:  [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 ((device = getenv("AUDIODEV")) == NULL)
data/nas-1.9.4/server/dda/sun/ausuni.c:909:11:  [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.
          getenv("NAS_EMPTY_SIZE") ? atoi(getenv("NAS_EMPTY_SIZE")) :
data/nas-1.9.4/server/dda/sun/ausuni.c:909:43:  [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.
          getenv("NAS_EMPTY_SIZE") ? atoi(getenv("NAS_EMPTY_SIZE")) :
data/nas-1.9.4/server/dda/sun/ausuni.c:1353:23:  [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 ((device = getenv("AUDIODEV")) == NULL)
data/nas-1.9.4/server/dia/main.c:207:21:  [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 = (char *) getenv("AUDIOSERVER");
data/nas-1.9.4/server/dia/main.c:218:21:  [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 = (char *) getenv("DISPLAY");
data/nas-1.9.4/server/os/connection.c:432:15:  [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.
    tcp_dev = getenv("TCP_DEVICE");
data/nas-1.9.4/server/os/connection.c:2118:11:  [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.
    char *getenv();
data/nas-1.9.4/server/os/connection.c:2135:32:  [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.
            AuServerHostName = getenv("AUDIOHOST");
data/nas-1.9.4/server/os/utils.c:410:11:  [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.
        ((random() % MEM_FAIL_SCALE) < Memory_fail))
data/nas-1.9.4/server/os/utils.c:445:11:  [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.
        ((random() % MEM_FAIL_SCALE) < Memory_fail))
data/nas-1.9.4/clients/audio/auconvert/auconvert.c:187:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    bcopy(data, last, size);
data/nas-1.9.4/clients/audio/auconvert/auconvert.c:238: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).
	    GETARG(rawTracks, atoi(arg));
data/nas-1.9.4/clients/audio/auconvert/auconvert.c:241:19:  [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).
	    GETARG(rate, atoi(arg));
data/nas-1.9.4/clients/audio/auconvert/auconvert.c:273:13:  [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 (!(fp = fopen(inputFile, "r")))
data/nas-1.9.4/clients/audio/auconvert/auconvert.c:312:21:  [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).
    else if ((vol = atoi(volume)) != 100)
data/nas-1.9.4/clients/audio/auconvert/auconvert.c:346:7:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	fd = mkstemp(outName);
data/nas-1.9.4/clients/audio/auctl/auctl.c:163: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[256];
data/nas-1.9.4/clients/audio/auctl/execute.c:226:6:  [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 tmp[20];
data/nas-1.9.4/clients/audio/auctl/execute.c:232:17:  [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.
	      default: sprintf (what = tmp, "%d", AuDeviceLineMode(d)); break;
data/nas-1.9.4/clients/audio/auctl/execute.c:361:6:  [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).
	p = atoi (argv[0]);
data/nas-1.9.4/clients/audio/audemo/audemo.c:330: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[50];
data/nas-1.9.4/clients/audio/audemo/audemo.c:480:12:  [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).
    rate = atoi(s);
data/nas-1.9.4/clients/audio/audemo/audemo.c:596: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            tmp[200],
data/nas-1.9.4/clients/audio/audemo/audemo.c:802:12:  [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).
    rate = atoi(s);
data/nas-1.9.4/clients/audio/audemo/audemo.c:854:12:  [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).
    rate = atoi(s);
data/nas-1.9.4/clients/audio/audemo/audemo.c:916:31:  [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).
    globals = (GlobalDataPtr) atoi(params[0]);
data/nas-1.9.4/clients/audio/audemo/audemo.c:1203: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[50];
data/nas-1.9.4/clients/audio/audemo/audemo.c:1230: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[50];
data/nas-1.9.4/clients/audio/audemo/audemo.c:1263: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[50];
data/nas-1.9.4/clients/audio/audemo/audemo.c:1290: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[50];
data/nas-1.9.4/clients/audio/audemo/audemo.c:1334: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            tmp[50];
data/nas-1.9.4/clients/audio/audemo/audemo.c:1345: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(tmp, "<Key>Return: ok(%u)", (unsigned int) g);
data/nas-1.9.4/clients/audio/audemo/audemo.c:1365: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            tmp[100];
data/nas-1.9.4/clients/audio/audemo/audemo.c:1473: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[20];
data/nas-1.9.4/clients/audio/audemo/audemo.c:1488: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, "NAS %d.%d", AuServerProtocolMajorVersion(g->aud),
data/nas-1.9.4/clients/audio/audemo/audemo.c:1746: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.
	fileList[i] = (char *) realloc(fileList[i], strlen(fileList[i]) + 1);
data/nas-1.9.4/clients/audio/audemo/audemo.c:1773:6:  [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(cmd, " -o -name '");
data/nas-1.9.4/clients/audio/audemo/audemo.c:1776:6:  [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(cmd, " -name '");
data/nas-1.9.4/clients/audio/audemo/audemo.c:1786: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(cmd, " \\) -print");
data/nas-1.9.4/clients/audio/audemo/audemo.c:1800: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            line[BUF_SIZE];
data/nas-1.9.4/clients/audio/audemo/audemo.c:1845: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(d, "/*.*");
data/nas-1.9.4/clients/audio/audial/audial.c:603:12:  [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).
			pause = atoi(argv[i]);
data/nas-1.9.4/clients/audio/audial/audial.c:609: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).
			spacing = atoi(argv[i]);
data/nas-1.9.4/clients/audio/audial/audial.c:615:13:  [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).
			volume = atoi(argv[i]);
data/nas-1.9.4/clients/audio/audial/audial.c:621:15:  [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[i]);
data/nas-1.9.4/clients/audio/audial/audial.c:627: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).
			gain = atoi(argv[i]);
data/nas-1.9.4/clients/audio/audial/audial.c:633: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).
			time = atoi(argv[i]);
data/nas-1.9.4/clients/audio/auedit/auedit.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            buf[20];
data/nas-1.9.4/clients/audio/auedit/auedit.c:381: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, "%02d:%05.2f", m, t);
data/nas-1.9.4/clients/audio/auedit/auedit.c:487: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[20];
data/nas-1.9.4/clients/audio/auedit/auedit.c:496:13:  [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(st);
data/nas-1.9.4/clients/audio/auedit/auedit.c:498:9:  [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).
	freq = atoi(st);
data/nas-1.9.4/clients/audio/auedit/auedit.c:515:2:  [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", g->sampleRate);
data/nas-1.9.4/clients/audio/auedit/auedit.c:589:12:  [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).
    freq = atoi(st);
data/nas-1.9.4/clients/audio/auedit/auedit.c:903:17:  [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).
    numTracks = atoi(XawDialogGetValueString(g->dialog));
data/nas-1.9.4/clients/audio/auedit/auedit.c:918: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[20];
data/nas-1.9.4/clients/audio/auedit/auedit.c:921: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", g->sampleRate);
data/nas-1.9.4/clients/audio/auedit/auedit.c:1020:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy(con->p, *value, len);
data/nas-1.9.4/clients/audio/auedit/auedit.c:1071:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    bcopy(s, last, len);
data/nas-1.9.4/clients/audio/auedit/auedit.c:1076:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(last, d, len);
data/nas-1.9.4/clients/audio/auedit/auedit.c:1159:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy(p, p + numBytes, (g->numSamples - left) * bytesPerSample);
data/nas-1.9.4/clients/audio/auedit/auedit.c:1160:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy(data, p, numBytes);
data/nas-1.9.4/clients/audio/auedit/auedit.c:1205:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy(data, g->data + left * g->numTracks, numSamples * bytesPerSample);
data/nas-1.9.4/clients/audio/auedit/auedit.c:1309:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy(g->data + start * g->numTracks,
data/nas-1.9.4/clients/audio/auedit/auedit.c:1358:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    bcopy(g->data + start * g->numTracks, g->undo.data,
data/nas-1.9.4/clients/audio/auedit/auedit.c:1373:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    bcopy(g->data + start * g->numTracks, g->undo.repData,
data/nas-1.9.4/clients/audio/auedit/auedit.c:1404:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(g->data + end * g->numTracks,
data/nas-1.9.4/clients/audio/auedit/auedit.c:1463:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    bcopy(p, p + numSamples * g->numTracks, n);
data/nas-1.9.4/clients/audio/auedit/auedit.c:1465:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(g->undo.data, p, g->undo.delLen);
data/nas-1.9.4/clients/audio/auedit/auedit.c:1516:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(p, u.data, g->undo.insLen);
data/nas-1.9.4/clients/audio/auedit/auedit.c:1527:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    bcopy(p + numSamples * g->numTracks, p, n);
data/nas-1.9.4/clients/audio/auedit/auedit.c:2123: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[20];
data/nas-1.9.4/clients/audio/auedit/auedit.c:2205: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", g->sampleRate);
data/nas-1.9.4/clients/audio/auedit/auedit.c:2270:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    fd = mkstemp(tmpName);
data/nas-1.9.4/clients/audio/auedit/auedit.c:2376:9:  [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).
    f = atoi(s);
data/nas-1.9.4/clients/audio/auedit/auedit.c:2386:6:  [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[20];
data/nas-1.9.4/clients/audio/auedit/auedit.c:2388:6:  [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", g->sampleRate);
data/nas-1.9.4/clients/audio/auinfo/auinfo.c:87: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).
		maxwidth = atoi (argv[i]);
data/nas-1.9.4/clients/audio/auinfo/auinfo.c:291: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 tmpbuf[20];
data/nas-1.9.4/clients/audio/auinfo/auinfo.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 fmt[20];
data/nas-1.9.4/clients/audio/auinfo/auinfo.c:341: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 (fmt, "%s  ");
data/nas-1.9.4/clients/audio/auinfo/auinfo.c:344: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 (fmt, "%%-%ds", move);	/* reset for moving */
data/nas-1.9.4/clients/audio/aupanel/aupanel.c:524: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).
            int tmp = atoi(argv[++i]);
data/nas-1.9.4/clients/audio/aupanel/aupanel.c:551:28:  [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).
            g->deviceNum = atoi(initialDeviceName);
data/nas-1.9.4/clients/audio/auphone/auphone.c:245:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(g->buf + g->out, g->buf, g->bufSize - g->out);
data/nas-1.9.4/clients/audio/auphone/auphone.c:348: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[100];
data/nas-1.9.4/clients/audio/auphone/auphone.c:369: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[50];
data/nas-1.9.4/clients/audio/auphone/auphone.c:438: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).
	    *flow = atoi(strtok(NULL, " "));
data/nas-1.9.4/clients/audio/auphone/auphone.c:439: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).
	    *device = atoi(strtok(NULL, " "));
data/nas-1.9.4/clients/audio/auphone/auphone.c:440: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).
	    *mult = atoi(strtok(NULL, " "));
data/nas-1.9.4/clients/audio/auphone/auphone.c:455: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           *server,
data/nas-1.9.4/clients/audio/auphone/auphone.c:486: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           *user,
data/nas-1.9.4/clients/audio/auphone/auphone.c:544:18:  [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).
    volume = p ? atoi(p) : DEFAULT_RING_VOLUME;
data/nas-1.9.4/clients/audio/auphone/auphone.c:745: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           *server,
data/nas-1.9.4/clients/audio/auphone/auphone.c:996: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[50];
data/nas-1.9.4/clients/audio/auphone/auphone.c:1179: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).
		    volume = atoi(ARG());
data/nas-1.9.4/clients/audio/auplay/auplay.c:51: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[BUFSIZ];
data/nas-1.9.4/clients/audio/auplay/auplay.c:182:12:  [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).
		volume = atoi(argv[0]);
data/nas-1.9.4/clients/audio/auplay/auplay.c:231:6:  [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 filename[FILENM_SIZE];
data/nas-1.9.4/clients/audio/aurecord/aurecord.c:207:19:  [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).
	    GETARG(rate, atoi(arg));
data/nas-1.9.4/clients/audio/aurecord/aurecord.c:209:39:  [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).
	    GETARG(gain, AuFixedPointFromSum(atoi(arg), 0));
data/nas-1.9.4/clients/audio/aurecord/aurecord.c:211:19:  [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).
	    GETARG(time, atoi(arg));
data/nas-1.9.4/clients/audio/autool/audiotool.c:371: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[50];
data/nas-1.9.4/clients/audio/autool/audiotool.c:397: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[50];
data/nas-1.9.4/clients/audio/autool/audiotool.c:450: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[BUF_SIZE],
data/nas-1.9.4/clients/audio/autool/audiotool.c:493:21:  [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).
		globals->volume = atoi(argv[1]);
data/nas-1.9.4/clients/audio/autool/audiotool.c:533: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, "NAS %d.%d", AuServerProtocolMajorVersion(globals->aud),
data/nas-1.9.4/clients/audio/autool/audiotool.c:583:7:  [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).
	fp = fopen(globals->filename, "r");
data/nas-1.9.4/clients/audio/auwave/auwave.c:246: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[10];
data/nas-1.9.4/clients/audio/auwave/auwave.c:248: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", value);
data/nas-1.9.4/clients/audio/auwave/auwave.c:356:44:  [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).
    XtVaSetValues(g->freqSlider, XtNvalue, atoi(s), NULL);
data/nas-1.9.4/clients/audio/examples/playFile.c:26:15:  [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).
	    volume = atoi(argv[2]);
data/nas-1.9.4/clients/audio/examples/playFromBckt.c:61: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).
	offset = atoi(argv[2]);
data/nas-1.9.4/clients/audio/examples/playFromBckt.c:67:12:  [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).
	samples = atoi(argv[3]);
data/nas-1.9.4/clients/audio/examples/playRaw.c:97:26:  [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).
    else if (!(info.fp = fopen(file, "r")))
data/nas-1.9.4/clients/audio/examples/playSimul.c:46:12:  [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).
		volume = atoi(*arg);
data/nas-1.9.4/clients/audio/util/playbucket.c:111:29:  [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).
			AuFixedPointFromFraction(atoi(volume), 100), doneCB,
data/nas-1.9.4/clients/audio/widgets/Slider.c:137: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            buf[50];
data/nas-1.9.4/lib/audio/8svx.c:75:20:  [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 (!(si->fp = fopen(name, AU_READ_BINARY)))
data/nas-1.9.4/lib/audio/8svx.c:152:20:  [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 (!(si->fp = fopen(name, AU_WRITE_BINARY)) ||
data/nas-1.9.4/lib/audio/Afuncs.h:49:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
void bcopy();
data/nas-1.9.4/lib/audio/Afuncs.h:57:9:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#ifndef bcopy
data/nas-1.9.4/lib/audio/Afuncs.h:58:9:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define bcopy(b1,b2,len) memmove(b2, b1, (size_t)(len))
data/nas-1.9.4/lib/audio/Afuncs.h:74:9:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define bcopy _AUBCOPYFUNC
data/nas-1.9.4/lib/audio/Afuncs.h:77:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
void bcopy();
data/nas-1.9.4/lib/audio/Afuncs.h:81:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
void bcopy();
data/nas-1.9.4/lib/audio/AlibAsync.c:101:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    bcopy(buf, replbuf, len);
data/nas-1.9.4/lib/audio/AlibAsync.c:107:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    bcopy(buf, replbuf, size);
data/nas-1.9.4/lib/audio/Alibint.c:97:17:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    type dummy; bcopy (cpvar, (char *) &dummy, SIZEOF(type)); \
data/nas-1.9.4/lib/audio/Alibint.c:117: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[BUFSIZE];
data/nas-1.9.4/lib/audio/Alibint.c:599: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 packbuffer[PACKBUFFERSIZE];
data/nas-1.9.4/lib/audio/Alibint.c:645: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 packbuffer[PACKBUFFERSIZE];
data/nas-1.9.4/lib/audio/Alibint.c:677: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 pad[3];
data/nas-1.9.4/lib/audio/Alibint.c:707: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.
		    p = (char *)iov[1].iov_base;
data/nas-1.9.4/lib/audio/Alibint.c:715: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.
		    p = (char *)iov[0].iov_base;
data/nas-1.9.4/lib/audio/Alibint.c:755: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.
	static char pad[3] = {0, 0, 0};
data/nas-1.9.4/lib/audio/Alibint.c:1070:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(buf, nbuf, *lenp);
data/nas-1.9.4/lib/audio/Alibint.c:1123: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[SCRATCHSIZE];
data/nas-1.9.4/lib/audio/Alibint.c:1341: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 buffer[BUFSIZ];
data/nas-1.9.4/lib/audio/Alibint.c:1342: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 mesg[BUFSIZ];
data/nas-1.9.4/lib/audio/Alibint.c:1343: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 number[32];
data/nas-1.9.4/lib/audio/Alibint.c:1354:2:  [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(number, "%d", event->request_code);
data/nas-1.9.4/lib/audio/Alibint.c:1400:6:  [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(buffer, "Value");
data/nas-1.9.4/lib/audio/Alibint.c:1543:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(data, aud->bufptr, (int)len);
data/nas-1.9.4/lib/audio/Alibint.c:1599: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 packbuffer[PACKBUFFERSIZE];
data/nas-1.9.4/lib/audio/Alibint.c:1646: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 packbuffer[PACKBUFFERSIZE];
data/nas-1.9.4/lib/audio/Alibint.c:1878: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 workarea[MAX_WORKAREA];
data/nas-1.9.4/lib/audio/Alibint.c:1913:11:  [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 (v[i].iov_base, p, len = v[i].iov_len);
data/nas-1.9.4/lib/audio/Alibint.c:1952:7:  [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 (p, v[i].iov_base, len = v[i].iov_len);
data/nas-1.9.4/lib/audio/Alibint.h:356:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(data, aud->bufptr, (int)len);\
data/nas-1.9.4/lib/audio/Alibnet.h:232:28:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define COPYBITS(src, dst) bcopy((char *) src, (char *) dst,\
data/nas-1.9.4/lib/audio/Astreams.c:139: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.
static  char _dispno[MAX_DISP_DIGITS];
data/nas-1.9.4/lib/audio/Astreams.c:148: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.
static  char	ret_buf[MAXLEN], req_buf[MAXLEN], call_buf[MAXLEN];
data/nas-1.9.4/lib/audio/Astreams.c:154:9:  [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).
#define fopen (*_libX_fopen)
data/nas-1.9.4/lib/audio/Astreams.c:155:14:  [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).
extern FILE *fopen();
data/nas-1.9.4/lib/audio/Astreams.c:283: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	buf[MAX_AUTO_BUF_LEN];
data/nas-1.9.4/lib/audio/Astreams.c:293:10:  [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).
	munix = atoi(display);
data/nas-1.9.4/lib/audio/Astreams.c:365: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	buf[MAX_AUTO_BUF_LEN];
data/nas-1.9.4/lib/audio/Astreams.c:386:10:  [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).
	munix = atoi(display);
data/nas-1.9.4/lib/audio/Astreams.c:401: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).
	if( (munix = open(ptmx, O_RDWR)) < 0 ){
data/nas-1.9.4/lib/audio/Astreams.c:433:10:  [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).
	sunix = open(buf, O_RDWR);
data/nas-1.9.4/lib/audio/Astreams.c:454: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 buf[MAX_AUTO_BUF_LEN];
data/nas-1.9.4/lib/audio/Astreams.c:508:12:  [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( (fd = open(buf,O_RDWR)) < 0 ){
data/nas-1.9.4/lib/audio/Astreams.c:509:3:  [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(buf," open fail, clientfd");
data/nas-1.9.4/lib/audio/Astreams.c:535: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	buf[MAX_AUTO_BUF_LEN];
data/nas-1.9.4/lib/audio/Astreams.c:543: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(_dispno, "%d", idisplay);
data/nas-1.9.4/lib/audio/Astreams.c:617:8:  [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).
	fld = open(node, O_RDWR);
data/nas-1.9.4/lib/audio/Astreams.c:647: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	buf[MAX_AUTO_BUF_LEN], *slave;
data/nas-1.9.4/lib/audio/Astreams.c:650:16:  [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 ((server = open (node, O_RDWR)) < 0) 
data/nas-1.9.4/lib/audio/Astreams.c:664:12:  [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 ((fd = open (ptmx, O_RDWR)) < 0) {
data/nas-1.9.4/lib/audio/Astreams.c:783:12:  [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(buf, &ioptr->DataBuffer[ioptr->FirstBytePtr], amount);
data/nas-1.9.4/lib/audio/Astreams.c:894: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	buf[MAX_AUTO_BUF_LEN];
data/nas-1.9.4/lib/audio/Astreams.c:1176:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    bcopy(*arg1, Network._peer[fd], Network._peerlen[fd]);
data/nas-1.9.4/lib/audio/Astreams.c:1230: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(ptr, string, n);
data/nas-1.9.4/lib/audio/Astreams.c:1276: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(ptr + sizeof(xHostEntry), call->addr.buf, a);
data/nas-1.9.4/lib/audio/Astreams.c:1283: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(ptr + sizeof(xHostEntry), call->opt.buf, o);
data/nas-1.9.4/lib/audio/Astreams.c:1288: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(ptr + sizeof(xHostEntry), call->udata.buf, u);
data/nas-1.9.4/lib/audio/Astreams.c:1313:3:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		bcopy(&ioptr->DataBuffer[ioptr->FirstBytePtr],
data/nas-1.9.4/lib/audio/Astreams.h:56: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	host_name[32];
data/nas-1.9.4/lib/audio/Astreams.h:93: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	*_net[MAX_NETS];
data/nas-1.9.4/lib/audio/AuErrDes.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            line[BUFSIZ],
data/nas-1.9.4/lib/audio/AuErrDes.c:125:16:  [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 (!(fp = fopen(filename, "r")))
data/nas-1.9.4/lib/audio/AuErrDes.c:221: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[150];
data/nas-1.9.4/lib/audio/AuErrDes.c:227:2:  [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", code);
data/nas-1.9.4/lib/audio/AuErrDes.c:247:2:  [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(buffer, "%d", code);
data/nas-1.9.4/lib/audio/AuErrDes.c:265: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 temp[BUFSIZ];
data/nas-1.9.4/lib/audio/AuGetBest.c:59:17:  [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).
    auth_file = fopen (auth_name, "r");
data/nas-1.9.4/lib/audio/ConnSvr.c:169: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 **ap, addr[4];
data/nas-1.9.4/lib/audio/ConnSvr.c:171: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 thishost[256];
data/nas-1.9.4/lib/audio/ConnSvr.c:184:8:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	(void)bcopy(hp->h_addr_list[0], addr, hp->h_length);
data/nas-1.9.4/lib/audio/ConnSvr.c:257:4:  [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 arg1[80];	/* hmmm. */
data/nas-1.9.4/lib/audio/ConnSvr.c:266:4:  [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(arg1,":%d",iserver);
data/nas-1.9.4/lib/audio/ConnSvr.c:325: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 newsvrnum[10];			/* in case need to convert from X */
data/nas-1.9.4/lib/audio/ConnSvr.c:352:6:  [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 tmptransport[41];
data/nas-1.9.4/lib/audio/ConnSvr.c:422:28:  [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).
    saviserver = iserver = atoi (psvrnum);
data/nas-1.9.4/lib/audio/ConnSvr.c:540: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 hostnamebuf[256];
data/nas-1.9.4/lib/audio/ConnSvr.c:633:2:  [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 (newsvrnum, "%d", iserver);
data/nas-1.9.4/lib/audio/ConnSvr.c:765: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 objname[20];
data/nas-1.9.4/lib/audio/ConnSvr.c:798:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy (np->n_addr, dnaddr.a_addr, np->n_length);
data/nas-1.9.4/lib/audio/ConnSvr.c:807:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy ((char *)&dnaddr, *saddrp, *saddrlenp);
data/nas-1.9.4/lib/audio/ConnSvr.c:921: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 hostnamebuf[256];		/* tmp space */
data/nas-1.9.4/lib/audio/ConnSvr.c:997:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    bcopy ((char *)hp->h_addr, (char *)&t, sizeof(t));
data/nas-1.9.4/lib/audio/ConnSvr.c:1001:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy ((char *)hp->h_addr, (char *)&inaddr.sin_addr, 
data/nas-1.9.4/lib/audio/ConnSvr.c:1005:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy ((char *)hp->hp_addr, &hostinetaddr, sizeof(hostinetaddr));
data/nas-1.9.4/lib/audio/ConnSvr.c:1072:6:  [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).
	fd= open("/dev/tcp", O_RDWR);
data/nas-1.9.4/lib/audio/ConnSvr.c:1142:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    bcopy (cp, *saddrp, len);
data/nas-1.9.4/lib/audio/ConnSvr.c:1210: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 rbuf[64], *slave;
data/nas-1.9.4/lib/audio/ConnSvr.c:1211: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 server_path[64];
data/nas-1.9.4/lib/audio/ConnSvr.c:1240: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.
	to_try = (char *)Aumalloc(strlen(LocalConnModes[LocalConnType].env_name)+1);
data/nas-1.9.4/lib/audio/ConnSvr.c:1269:27:  [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 ((server = open(server_path, O_RDWR)) >= 0) {
data/nas-1.9.4/lib/audio/ConnSvr.c:1270:19:  [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 ((fd = open("/dev/ptmx", O_RDWR)) >= 0) {
data/nas-1.9.4/lib/audio/ConnSvr.c:1309:18:  [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 ((fd = open(server_path, O_RDWR)) >= 0) {
data/nas-1.9.4/lib/audio/ConnSvr.c:1325: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 ((server = open(server_path, O_RDWR)) >= 0) {
data/nas-1.9.4/lib/audio/ConnSvr.c:1326:28:  [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 ((fds = open("/dev/spx", O_RDWR)) >= 0 &&
data/nas-1.9.4/lib/audio/ConnSvr.c:1327: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).
	            (fd  = open("/dev/spx", O_RDWR)) >= 0) {
data/nas-1.9.4/lib/audio/ConnSvr.c:1363: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 ((server = open(server_path, O_RDWR)) >= 0) {
data/nas-1.9.4/lib/audio/ConnSvr.c:1364:19:  [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 ((fd = open("/dev/spx", O_RDWR)) >= 0) {
data/nas-1.9.4/lib/audio/ConnSvr.c:1444: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 xserverpath[256];
data/nas-1.9.4/lib/audio/ConnSvr.c:1512: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 tcpname[100];
data/nas-1.9.4/lib/audio/ConnSvr.c:1553:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    bcopy(hp->h_addr, &ipaddr, hp->h_length);
data/nas-1.9.4/lib/audio/ConnSvr.c:1600:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy((char *)&ipaddr, *saddrp, sizeof(ipaddr_t));
data/nas-1.9.4/lib/audio/ConnSvr.c:1654: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 padbuf[3];			/* for padding to 4x bytes */
data/nas-1.9.4/lib/audio/ConnSvr.c:1823: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 rpc_cred[MAX_AUTH_BYTES];
data/nas-1.9.4/lib/audio/ConnSvr.c:1826: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 xdmcp_data[192/8];
data/nas-1.9.4/lib/audio/ConnSvr.c:1838: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 svrnumbuf[40];		/* big enough to hold 2^64 and more */
data/nas-1.9.4/lib/audio/ConnSvr.c:1839: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.
	(void) sprintf (svrnumbuf, "%d", iserver);
data/nas-1.9.4/lib/audio/ConnSvr.c:1875:6:  [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		addrret[1024];
data/nas-1.9.4/lib/audio/ConnSvr.c:1949: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 servernetname[MAXNETNAMELEN + 1];
data/nas-1.9.4/lib/audio/ConnSvr.c:1959:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    bcopy(auth_data, servernetname, auth_datalen);
data/nas-1.9.4/lib/audio/ConnSvr.c:1975:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    bcopy(auth_name, *auth_namep, auth_namelen);
data/nas-1.9.4/lib/audio/ConnSvr.c:1984:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    bcopy(auth_data, *auth_datap, auth_datalen);
data/nas-1.9.4/lib/audio/OpenSvr.c:491:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    bcopy(varData, s, len);
data/nas-1.9.4/lib/audio/OpenSvr.c:502:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    bcopy(varData, dst.devices[i].device.children, len);
data/nas-1.9.4/lib/audio/OpenSvr.c:524:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    bcopy(varData, s, len);
data/nas-1.9.4/lib/audio/aiff.c:252:20:  [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 (!(ai->fp = fopen(name, AU_READ_BINARY)))
data/nas-1.9.4/lib/audio/aiff.c:273:6:  [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            rate[AIFF_SizeofExtended];
data/nas-1.9.4/lib/audio/aiff.c:358: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            rate[AIFF_SizeofExtended];
data/nas-1.9.4/lib/audio/aiff.c:362:20:  [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 (!(ai->fp = fopen(name, AU_WRITE_BINARY)) ||
data/nas-1.9.4/lib/audio/bcache.c:50:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy(attr, a, sizeof(AuBucketAttributes));
data/nas-1.9.4/lib/audio/bcache.c:60:6:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    bcopy(AuBucketDescription(attr)->data,
data/nas-1.9.4/lib/audio/fileutil.h:49:29:  [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.
#define swapl(x, n) { n = ((char *) (x))[0];\
data/nas-1.9.4/lib/audio/fileutil.h:50: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 *) (x))[0] = ((char *) (x))[3];\
data/nas-1.9.4/lib/audio/fileutil.h:50:29:  [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 *) (x))[0] = ((char *) (x))[3];\
data/nas-1.9.4/lib/audio/fileutil.h:51: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 *) (x))[3] = n;\
data/nas-1.9.4/lib/audio/fileutil.h:52: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.
	     n = ((char *) (x))[1];\
data/nas-1.9.4/lib/audio/fileutil.h:53: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 *) (x))[1] = ((char *) (x))[2];\
data/nas-1.9.4/lib/audio/fileutil.h:53:29:  [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 *) (x))[1] = ((char *) (x))[2];\
data/nas-1.9.4/lib/audio/fileutil.h:54: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 *) (x))[2] = n; }
data/nas-1.9.4/lib/audio/fileutil.h:58:29:  [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.
#define swaps(x, n) { n = ((char *) (x))[0];\
data/nas-1.9.4/lib/audio/fileutil.h:59:6:  [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 *) (x))[0] = ((char *) (x))[1];\
data/nas-1.9.4/lib/audio/fileutil.h:59:26:  [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 *) (x))[0] = ((char *) (x))[1];\
data/nas-1.9.4/lib/audio/fileutil.h:60:6:  [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 *) (x))[1] = n; }
data/nas-1.9.4/lib/audio/globals.c:48: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 _AusTypeOfStream[100] = { 0 };
data/nas-1.9.4/lib/audio/nameaddr.c:36: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   tcphalf[4];
data/nas-1.9.4/lib/audio/nameaddr.c:101:4:  [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).
			atoi(display), 
data/nas-1.9.4/lib/audio/nameaddr.c:191:2:  [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(_dispno, "%d", idisplay);
data/nas-1.9.4/lib/audio/nameaddr.c:306: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	service[MAX_AUTO_BUF_LEN];
data/nas-1.9.4/lib/audio/nameaddr.c:318: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(service , "auserver%d", dispno);
data/nas-1.9.4/lib/audio/nameaddr.c:375: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(tcphalf, netbufp->buf, 4);
data/nas-1.9.4/lib/audio/nameaddr.c:382:8:  [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(*tcpremoteaddrp, netbufp->buf+4,
data/nas-1.9.4/lib/audio/nameaddr.c:577: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	service[MAX_AUTO_BUF_LEN];
data/nas-1.9.4/lib/audio/nameaddr.c:579: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(service , "auserver%d", dispno);
data/nas-1.9.4/lib/audio/nameaddr.c:607:52:  [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).
    if((nd_addrlistp = GetHostServiceByName(entry, atoi(dispno))) == NULL)
data/nas-1.9.4/lib/audio/nameaddr.c:641: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(ptr, addr, len);
data/nas-1.9.4/lib/audio/nameaddr.c:725: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	tcpaddr[8], *addr;
data/nas-1.9.4/lib/audio/nameaddr.c:726: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	addrbuf[MAX_AUTO_BUF_LEN];
data/nas-1.9.4/lib/audio/nameaddr.c:738: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(tcpaddr, tcphalf, 4);
data/nas-1.9.4/lib/audio/nameaddr.c:739: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(&tcpaddr[4], entry, 4);
data/nas-1.9.4/lib/audio/nameaddr.c:760:6:  [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(addrbuf, "%d", *(int *) entry);
data/nas-1.9.4/lib/audio/nameaddr.c:787: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(ptr, name, l);	
data/nas-1.9.4/lib/audio/nameserver.c:37: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 clonedev[MAX_AUTO_BUF_LEN];
data/nas-1.9.4/lib/audio/nameserver.c:89:2:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	bcopy(stype, Network._net[type], n);
data/nas-1.9.4/lib/audio/nameserver.c:97:37:  [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).
	fd = OpenAndBind(machine.nodename, atoi(display), MAXCONNECTIONS, Network._net[type], type);
data/nas-1.9.4/lib/audio/nameserver.c:173: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	netbuffer[MAX_AUTO_BUF_LEN];
data/nas-1.9.4/lib/audio/nameserver.c:190:2:  [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(_dispno, "%d", idisplay - AU_DEFAULT_TCP_PORT);
data/nas-1.9.4/lib/audio/nameserver.c:365: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(*tcpremoteaddrp, (char *)&x->sin_addr,
data/nas-1.9.4/lib/audio/nameserver.c:409: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(netbuffer, nettype, netlen + 1);
data/nas-1.9.4/lib/audio/nameserver.c:467: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(Network._net[Network._nnets], netbuffer, netlen+1);
data/nas-1.9.4/lib/audio/nameserver.c:486: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	bind_buf[MAX_AUTO_BUF_LEN];
data/nas-1.9.4/lib/audio/nameserver.c:520:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	   bcopy (retptr+sizeof(xHostEntry), bind_buf, bind_req.addr.len);
data/nas-1.9.4/lib/audio/nameserver.c:582: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.
	static char buf[50];
data/nas-1.9.4/lib/audio/nameserver.c:584: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.
	(void) strcpy(buf, "/usr/X/");
data/nas-1.9.4/lib/audio/nameserver.c:603: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	*line, *ptr,buf[160];
data/nas-1.9.4/lib/audio/nameserver.c:605: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	netype[MAX_AUTO_BUF_LEN], nodname[MAX_AUTO_BUF_LEN];
data/nas-1.9.4/lib/audio/nameserver.c:607: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	sysname[128] ;
data/nas-1.9.4/lib/audio/nameserver.c:674:9:  [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).
	file = fopen(home = GetXWINHome(AuNETDB), "r");
data/nas-1.9.4/lib/audio/nameserver.c:755: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	buf[MAX_AUTO_BUF_LEN];
data/nas-1.9.4/lib/audio/nameserver.c:793:17:  [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 *) ptr = atoi(dispno);
data/nas-1.9.4/lib/audio/nameserver.c:802: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(p, buf, m);
data/nas-1.9.4/lib/audio/nameserver.c:803: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(p+m, *arg1, n);
data/nas-1.9.4/lib/audio/snd.c:140:43:  [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).
    si->fp = !strcmp("-", name) ? stdin : fopen(name, AU_READ_BINARY);
data/nas-1.9.4/lib/audio/snd.c:207:44:  [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).
    si->fp = !strcmp("-", name) ? stdout : fopen(name, AU_WRITE_BINARY);
data/nas-1.9.4/lib/audio/voc.c:65: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[VOC_ID_SIZE];
data/nas-1.9.4/lib/audio/voc.c:74:20:  [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 (!(vi->fp = fopen(name, AU_READ_BINARY)))
data/nas-1.9.4/lib/audio/voc.c:165:20:  [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 (!(vi->fp = fopen(name, AU_WRITE_BINARY)) ||
data/nas-1.9.4/lib/audio/wave.c:82:20:  [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 (!(wi->fp = fopen(name, AU_READ_BINARY)))
data/nas-1.9.4/lib/audio/wave.c:208:20:  [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 (!(wi->fp = fopen(name, AU_WRITE_BINARY)) ||
data/nas-1.9.4/server/dda/hpux/auhpux.c:508:31:  [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).
        while ((devAudioCtl = open("/dev/audioCtl", O_RDWR)) == -1 && wait)
data/nas-1.9.4/server/dda/hpux/auhpux.c:514:32:  [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).
            while ((devAudio = open("/dev/audio", O_RDWR)) == -1 && wait)
data/nas-1.9.4/server/dda/hpux/auhpux.c:1141:28:  [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 ((devAudioCtl = open("/dev/audioCtl", O_RDWR)) == -1) {
data/nas-1.9.4/server/dda/hpux/auhpux.c:1149:25:  [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 ((devAudio = open("/dev/audio", O_RDWR)) == -1) {
data/nas-1.9.4/server/dda/sun/audbri.c:588:25:  [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 ((devAudio = open("/dev/audio", O_RDWR)) == -1 ||
data/nas-1.9.4/server/dda/sun/audbri.c:589:28:  [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).
            (devAudioCtl = open("/dev/audioctl", O_RDWR)) == -1 ||
data/nas-1.9.4/server/dda/sun/ausun.c:506:25:  [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 ((devAudio = open("/dev/audio", O_RDWR)) == -1 ||
data/nas-1.9.4/server/dda/sun/ausun.c:507:28:  [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).
            (devAudioCtl = open("/dev/audioctl", O_RDWR)) == -1) {
data/nas-1.9.4/server/dda/sun/ausuni.c:471:28:  [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).
        while ((devAudio = open(device, devAudioMode)) == -1 && wait) {
data/nas-1.9.4/server/dda/sun/ausuni.c:909:38:  [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).
          getenv("NAS_EMPTY_SIZE") ? atoi(getenv("NAS_EMPTY_SIZE")) :
data/nas-1.9.4/server/dda/sun/ausuni.c:1361:20:  [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).
        devAudio = open(device, devAudioMode);
data/nas-1.9.4/server/dda/sun/ausuni.c:1364:24:  [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).
            devAudio = open(device, devAudioMode);
data/nas-1.9.4/server/dda/sun/ausuni.c:1377:46:  [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).
                             (devAudioCtl2 = open(devicectl, O_RDWR)) != -1
data/nas-1.9.4/server/dda/sun/ausuni.c:1381:31:  [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).
                              open(devicectl, O_RDWR)) != -1);
data/nas-1.9.4/server/dda/voxware/auvoxware.c:876:37:  [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).
            while ((sndStatOut.fd = open(sndStatOut.device,
data/nas-1.9.4/server/dda/voxware/auvoxware.c:903:36:  [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).
            while ((sndStatIn.fd = open(sndStatIn.device,
data/nas-1.9.4/server/dda/voxware/auvoxware.c:936:34:  [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).
            while ((outmixerfd = open(sndStatOut.mixer, O_RDWR | extramode,
data/nas-1.9.4/server/dda/voxware/auvoxware.c:961:33:  [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).
            while ((inmixerfd = open(sndStatIn.mixer, O_RDWR | extramode,
data/nas-1.9.4/server/dda/voxware/auvoxware.c:1446: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 tempbuf[80];
data/nas-1.9.4/server/dda/voxware/auvoxware.c:1526: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 tempbuf[80];
data/nas-1.9.4/server/dda/voxware/auvoxware.c:1590: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 tempbuf[80];
data/nas-1.9.4/server/dda/voxware/auvoxware.c:1738:25:  [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 ((outmixerfd=open(sndStatOut.mixer, O_RDWR|extramode, 0666)) == -1) {
data/nas-1.9.4/server/dda/voxware/auvoxware.c:1755:30:  [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 ((inmixerfd = open(sndStatIn.mixer, O_RDWR | extramode,
data/nas-1.9.4/server/dda/voxware/auvoxware.c:1888:27:  [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 ((fd = open(sndStatOut.device,
data/nas-1.9.4/server/dda/voxware/auvoxware.c:1910:18:  [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).
        dspout = open("/tmp/dspout", O_WRONLY | O_CREAT, 00666);
data/nas-1.9.4/server/dda/voxware/auvoxware.c:1913:17:  [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).
        dspin = open("/tmp/dspin", O_WRONLY | O_CREAT, 00666);
data/nas-1.9.4/server/dda/voxware/auvoxware.c:1925: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).
                     open(sndStatIn.device, sndStatIn.howToOpen | extramode,
data/nas-1.9.4/server/dia/au.h:51:9:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#ifndef bcopy
data/nas-1.9.4/server/dia/au.h:52:9:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define bcopy(a,b,c)                    memmove((b),(a),(c))
data/nas-1.9.4/server/dia/au.h:62:41:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define aucopy(_src, _dst, _size)       bcopy(_src, _dst, _size)
data/nas-1.9.4/server/dia/audispatch.c:176:17:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                bcopy(c->children, c->childSwap,
data/nas-1.9.4/server/dia/audispatch.c:228:9:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        bcopy(c->children, c->childSwap,
data/nas-1.9.4/server/dia/audispatch.c:679:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy(&stuff[1], flow->raw, len);
data/nas-1.9.4/server/dia/audispatch.c:1259:9:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        bcopy((AuUint8 *) & stuff[1], d, stuff->num_bytes);
data/nas-1.9.4/server/dia/audispatch.c:1280:9:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        bcopy(s, d, n);
data/nas-1.9.4/server/dia/audispatch.c:1284:13:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            bcopy(s + n, c->data, stuff->num_bytes - n);
data/nas-1.9.4/server/dia/audispatch.c:1388: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.
            unsigned char buf[4];
data/nas-1.9.4/server/dia/audispatch.c:1395:13:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            bcopy(p + n, buf, bytesLeft);
data/nas-1.9.4/server/dia/audispatch.c:1399:13:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            bcopy(c->data, buf + bytesLeft, n);
data/nas-1.9.4/server/dia/audispatch.c:1554: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(string, " - ");
data/nas-1.9.4/server/dia/audispatch.c:1621:13:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            bcopy(d->children, d->childSwap,
data/nas-1.9.4/server/dia/auevents.c:215:9:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        bcopy(data, (char *) &ev->u.monitorNotify.data,
data/nas-1.9.4/server/dia/auswap.c:551:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy(p, e, size);
data/nas-1.9.4/server/dia/auutil.c:413:17:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                bcopy(inTracks, input->inTrack, numTracks);
data/nas-1.9.4/server/dia/auutil.c:806:17:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                bcopy(output->inputs, newOutput->inputs,
data/nas-1.9.4/server/dia/auutil.c:821:21:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    bcopy((*group)->inputs, input,
data/nas-1.9.4/server/dia/auutil.c:1204:17:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                bcopy(varData, c->description.string, c->description.len);
data/nas-1.9.4/server/dia/dispatch.c:400: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 pad[3];
data/nas-1.9.4/server/dia/main.c:96:19:  [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 ((config = fopen(path, "r")) != NULL)
data/nas-1.9.4/server/include/dixstruct.h:67: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 requestLog[MAX_REQUEST_LOG];
data/nas-1.9.4/server/include/misc.h:114:27:  [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.
#define swapl(x, n) n = ((char *) (x))[0];\
data/nas-1.9.4/server/include/misc.h:115: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.
                 ((char *) (x))[0] = ((char *) (x))[3];\
data/nas-1.9.4/server/include/misc.h:115:40:  [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 *) (x))[0] = ((char *) (x))[3];\
data/nas-1.9.4/server/include/misc.h:116: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.
                 ((char *) (x))[3] = n;\
data/nas-1.9.4/server/include/misc.h:117:24:  [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.
                 n = ((char *) (x))[1];\
data/nas-1.9.4/server/include/misc.h:118: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.
                 ((char *) (x))[1] = ((char *) (x))[2];\
data/nas-1.9.4/server/include/misc.h:118:40:  [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 *) (x))[1] = ((char *) (x))[2];\
data/nas-1.9.4/server/include/misc.h:119: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.
                 ((char *) (x))[2] = n;
data/nas-1.9.4/server/include/misc.h:122:27:  [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.
#define swaps(x, n) n = ((char *) (x))[0];\
data/nas-1.9.4/server/include/misc.h: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.
                 ((char *) (x))[0] = ((char *) (x))[1];\
data/nas-1.9.4/server/include/misc.h:123:40:  [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 *) (x))[0] = ((char *) (x))[1];\
data/nas-1.9.4/server/include/misc.h:124: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.
                 ((char *) (x))[1] = n
data/nas-1.9.4/server/os/access.c:131:28:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define acopy(a1, a2, len) bcopy((char *)(a1), (char *)(a2), len)
data/nas-1.9.4/server/os/access.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 buf[2048], *cp, *cplim;
data/nas-1.9.4/server/os/access.c:451: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[120];
data/nas-1.9.4/server/os/access.c:452: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 fname[32];
data/nas-1.9.4/server/os/access.c:484:14:  [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 (fd = fopen(fname, "r")) {
data/nas-1.9.4/server/os/aulog.c:27: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[LOG_BUFSIZE];
data/nas-1.9.4/server/os/auth.c:104:9:  [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(authorization_file, "r");
data/nas-1.9.4/server/os/connection.c:373:59:  [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) (AudioListenPort + atoi(display)));
data/nas-1.9.4/server/os/connection.c:438:10:  [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).
    fd = open(tcp_dev, O_RDWR);
data/nas-1.9.4/server/os/connection.c:446:14:  [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).
        fd = open(tcp_dev, O_RDWR);
data/nas-1.9.4/server/os/connection.c:561:16:  [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 oldLinkName[256];
data/nas-1.9.4/server/os/connection.c:674: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 path[64];
data/nas-1.9.4/server/os/connection.c:701:16:  [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 ((fds = open("/dev/spx", O_RDWR)) >= 0 &&
data/nas-1.9.4/server/os/connection.c:702: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).
        (fd = open("/dev/spx", O_RDWR)) >= 0)
data/nas-1.9.4/server/os/connection.c:744: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 pathS[64], pathR[64];
data/nas-1.9.4/server/os/connection.c:755:16:  [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 ((fds = open("/dev/spx", O_RDWR)) >= 0 &&
data/nas-1.9.4/server/os/connection.c:756:16:  [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).
        (fdr = open("/dev/spx", O_RDWR)) >= 0)
data/nas-1.9.4/server/os/connection.c:793: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).
    if ((fd = open("/dev/spx", O_RDWR)) < 0) {
data/nas-1.9.4/server/os/connection.c:814: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 path[64];
data/nas-1.9.4/server/os/connection.c:828: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).
    if ((fd = open("/dev/ptmx", O_RDWR)) < 0) {
data/nas-1.9.4/server/os/connection.c:841:9:  [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 (open(path, O_RDWR) < 0) {
data/nas-1.9.4/server/os/connection.c:855: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 path[64];
data/nas-1.9.4/server/os/connection.c:913: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 path[_MAX_SLAVENM];
data/nas-1.9.4/server/os/connection.c:933:20:  [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 ((newconn = open(path, O_RDWR)) < 0) {
data/nas-1.9.4/server/os/connection.c:1035:9:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        bcopy((char *) &unsock, (char *) from, len);
data/nas-1.9.4/server/os/connection.c:1059: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).
             atoi(display));
data/nas-1.9.4/server/os/connection.c:1311: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 addr[128];
data/nas-1.9.4/server/os/connection.c:1570: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 pad[3];
data/nas-1.9.4/server/os/connection.c:2117: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[100];
data/nas-1.9.4/server/os/connection.c:2386: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[100];
data/nas-1.9.4/server/os/connection.c:2607: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 buffer[MAXBUFSIZE];
data/nas-1.9.4/server/os/connection.c:2650: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[BUFSIZ];
data/nas-1.9.4/server/os/connection.c:2685:55:  [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).
        tcpconf.nwtc_locport = htons(AUDIO_TCP_PORT + atoi(offset));
data/nas-1.9.4/server/os/daemon.c:137:14:  [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 ((i = open("/dev/tty", O_RDWR)) >= 0) {  /* did open succeed? */
data/nas-1.9.4/server/os/daemon.c:157:12:  [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).
    (void) open("/", O_RDONLY); /* root inode already in core */
data/nas-1.9.4/server/os/daemon.c:176:17:  [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).
        pidFd = open(pidFile, 2);
data/nas-1.9.4/server/os/daemon.c:178: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).
            pidFd = open(pidFile, O_RDWR | O_CREAT, 0666);
data/nas-1.9.4/server/os/genalloca.c:108: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 align[ALIGN_SIZE];     /* to force sizeof(header) */
data/nas-1.9.4/server/os/io.c:214:17:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                bcopy(oci->bufptr, oci->buffer, gotnow);
data/nas-1.9.4/server/os/io.c:351:13:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            bcopy(oci->bufptr, oci->bufptr + moveup, gotnow);
data/nas-1.9.4/server/os/io.c:355:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy(data, oci->bufptr - count, count);
data/nas-1.9.4/server/os/io.c:419: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 padBuffer[3];
data/nas-1.9.4/server/os/io.c:493:21:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    bcopy((char *) oco->buf + written,
data/nas-1.9.4/server/os/io.c:520:17:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                bcopy(extraBuf + written,
data/nas-1.9.4/server/os/io.c:675:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy(buf, (char *) oco->buf + oco->count, count);
data/nas-1.9.4/server/os/io.c:964:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy(data, oc->buffer + oc->size, count);
data/nas-1.9.4/server/os/io.c:1173:17:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                bcopy(oci->bufptr, oci->buffer, gotnow);
data/nas-1.9.4/server/os/io.c:1239:13:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            bcopy(oci_r->bufptr, oci->buffer + gotnow, gotnow_r);
data/nas-1.9.4/server/os/io.c:1278:21:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    bcopy(oci->bufptr, oci->buffer, gotnow);
data/nas-1.9.4/server/os/io.c:1382:13:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            bcopy(oci->bufptr, oci->bufptr + moveup, gotnow);
data/nas-1.9.4/server/os/io.c:1386:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy(data, oci->bufptr - count, count);
data/nas-1.9.4/server/os/io.c:1421: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 padBuffer[3];
data/nas-1.9.4/server/os/io.c:1456:9:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        bcopy(extraBuf, oco->buf + oco->count, extraCount);
data/nas-1.9.4/server/os/io.c:1458:9:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        bcopy(padBuffer, oco->buf + oco->count, padsize);
data/nas-1.9.4/server/os/io.c:1504:13:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            bcopy(oco->buf + r, oco->buf, oco->count);
data/nas-1.9.4/server/os/io.c:1597:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy(buf, (char *) oco->buf + oco->count, count);
data/nas-1.9.4/server/os/io.c:1642:13:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            bcopy(oco->buf + result, oco->buf, oco->count);
data/nas-1.9.4/server/os/iopreader.c:36: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[100];
data/nas-1.9.4/server/os/mitauth.c:73:5:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    bcopy(data, new->data, (int) data_length);
data/nas-1.9.4/server/os/osdep.h:218:28:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define COPYBITS(src, dst) bcopy((caddr_t) src, (caddr_t) dst,\
data/nas-1.9.4/server/os/osinit.c:90: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 fname[PATH_MAX];
data/nas-1.9.4/server/os/osinit.c:110:25:  [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 (!(err = fopen(fname, "a+")))
data/nas-1.9.4/server/os/osinit.c:111:23:  [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).
                err = fopen("/dev/null", "w");
data/nas-1.9.4/server/os/osinit.c:118:24:  [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[BUFSIZ];
data/nas-1.9.4/server/os/utils.c:332:40:  [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).
                timeoutWithNoClients = atoi(argv[i]);
data/nas-1.9.4/server/os/utils.c:363:37:  [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).
                NasConfig.DoDebug = atoi(argv[i]);
data/nas-1.9.4/clients/audio/auconvert/auconvert.c:53:39:  [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 OPTION(_o) (!strncmp(arg, _o, strlen(_o)))
data/nas-1.9.4/clients/audio/auconvert/auconvert.c:341:34:  [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 (!(outName = (char *) malloc(strlen(inputFile) + 7)))
data/nas-1.9.4/clients/audio/auctl/auctl.c:183: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).
	len = strlen (line);
data/nas-1.9.4/clients/audio/auctl/execute.c:61: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 (_lower_word(argv[0]));
data/nas-1.9.4/clients/audio/auctl/execute.c:91: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 (_lower_word(argv[0]));
data/nas-1.9.4/clients/audio/auctl/execute.c:446: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 (argv[0]);
data/nas-1.9.4/clients/audio/audemo/audemo.c:281:25:  [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).
    t = (char *) malloc(strlen(s) + 1);
data/nas-1.9.4/clients/audio/audemo/audemo.c:489:16:  [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).
    desc.len = strlen(s);
data/nas-1.9.4/clients/audio/audemo/audemo.c:630:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(desc, AuBucketDescription(p)->data, COMMENT_LEN - 1);
data/nas-1.9.4/clients/audio/audemo/audemo.c:635:6:  [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(access, "I");
data/nas-1.9.4/clients/audio/audemo/audemo.c:637:6:  [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(access, "E");
data/nas-1.9.4/clients/audio/audemo/audemo.c:639:6:  [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(access, "D");
data/nas-1.9.4/clients/audio/audemo/audemo.c:808:9:  [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) &&
data/nas-1.9.4/clients/audio/audemo/audemo.c:900:9:  [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) &&
data/nas-1.9.4/clients/audio/audemo/audemo.c:1135:10:  [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).
    p += strlen(p);							       \
data/nas-1.9.4/clients/audio/audemo/audemo.c:1138: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).
	    if (!(p = buf = (char *) malloc(2000 + strlen(SoundComment(s)))))
data/nas-1.9.4/clients/audio/audemo/audemo.c:1746:46:  [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).
	fileList[i] = (char *) realloc(fileList[i], strlen(fileList[i]) + 1);
data/nas-1.9.4/clients/audio/audemo/audemo.c:1781:2:  [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(cmd, "'");
data/nas-1.9.4/clients/audio/audemo/audemo.c:1824:7:  [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).
	line[strlen(line) - 1] = 0;	       /* zap the trailing newline */
data/nas-1.9.4/clients/audio/audemo/audemo.c:1841: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).
    if (!(d = (char *) malloc(strlen(dir) + 5)))
data/nas-1.9.4/clients/audio/audemo/audemo.c:1859: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).
	    if (p = (char *) malloc(strlen(dir) + strlen(fileInfo.cFileName) +
data/nas-1.9.4/clients/audio/audemo/audemo.c:1859:44:  [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 (p = (char *) malloc(strlen(dir) + strlen(fileInfo.cFileName) +
data/nas-1.9.4/clients/audio/audemo/audemo.c:1865: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(p, "/");
data/nas-1.9.4/clients/audio/audial/audial.c:96:1:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
usleep(unsigned int usecs)
data/nas-1.9.4/clients/audio/audial/audial.c:117:1:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
usleep(unsigned int usec)
data/nas-1.9.4/clients/audio/audial/audial.c:125:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
static void usleep(unsigned int usecs)
data/nas-1.9.4/clients/audio/audial/audial.c:144:1:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
usleep(unsigned int usecs)
data/nas-1.9.4/clients/audio/audial/audial.c:296:6:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	    usleep(pauseTime * 1000);
data/nas-1.9.4/clients/audio/auedit/auedit.c:2261: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).
    if (!(tmpName = (char *) malloc(strlen(name) + 7)))
data/nas-1.9.4/clients/audio/auedit/auedit.c:2306: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 (!(backup = (char *) malloc(strlen(name) + 2)))
data/nas-1.9.4/clients/audio/auinfo/auinfo.c:308: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).
    nttmp.len = strlen (tmpbuf);
data/nas-1.9.4/clients/audio/auphone/auphone.c:362:40:  [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).
    AuSetString(&desc, AuStringLatin1, strlen(buf), buf);
data/nas-1.9.4/clients/audio/auphone/auphone.c:432:56:  [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 (!strncmp(BUSY, AuBucketDescription(&ba[i])->data, strlen(BUSY)))
data/nas-1.9.4/clients/audio/auphone/auphone.c:530:58:  [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 (!strncmp(RINGIN, AuBucketDescription(&ba[i])->data, strlen(RINGIN)))
data/nas-1.9.4/clients/audio/auphone/auphone.c:680:10:  [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(server))
data/nas-1.9.4/clients/audio/auphone/auphone.c:709:56:  [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 (!strncmp(BUSY, AuBucketDescription(&ba[i])->data, strlen(BUSY)))
data/nas-1.9.4/clients/audio/auphone/auphone.c:1027: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).
		     strlen(RINGOUT)))
data/nas-1.9.4/clients/audio/auphone/auphone.c:1072: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).
	AuSetString(&desc, AuStringLatin1, strlen(buf), buf);
data/nas-1.9.4/clients/audio/auphone/auphone.c:1102:5:  [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(RINGIN)))
data/nas-1.9.4/clients/audio/auplay/auplay.c:58:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (read(0, buf, BUFSIZ) > 0);
data/nas-1.9.4/clients/audio/auplay/auplay.c:236: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).
	    filename[strlen(filename)-1] = '\0';
data/nas-1.9.4/clients/audio/aurecord/aurecord.c:106:39:  [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 OPTION(_o) (!strncmp(arg, _o, strlen(_o)))
data/nas-1.9.4/clients/audio/autool/audiotool.c:80: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).
#define BUCKETS_COLS		strlen(BUCKET_HEADER)
data/nas-1.9.4/clients/audio/autool/audiotool.c:300:10:  [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).
    p += strlen(p);							       \
data/nas-1.9.4/clients/audio/autool/audiotool.c:303: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).
	if (!(p = buf = (char *) malloc(2000 + strlen(SoundComment(s)))))
data/nas-1.9.4/clients/audio/examples/recordBucket.c:65:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/nas-1.9.4/clients/audio/examples/recordBucket.c:78:5:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    getchar();
data/nas-1.9.4/clients/audio/util/playbucket.c:92: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).
		AuStringLatin1, strlen(SoundComment(s)), SoundComment(s));
data/nas-1.9.4/clients/audio/util/soundtoh.c:57: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).
    int             len = strlen(str) * 2 + 1;	/* more then enough for
data/nas-1.9.4/lib/audio/8svx.c:164: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).
    if ((n = strlen(si->comment)))
data/nas-1.9.4/lib/audio/Alibint.c:1701: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 (name.nodename);
data/nas-1.9.4/lib/audio/Alibint.c:1703:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (buf, name.nodename, len);
data/nas-1.9.4/lib/audio/Alibint.c:1709: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(buf);
data/nas-1.9.4/lib/audio/Alibint.c:1791:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      nbytes = read(fd, base, len);
data/nas-1.9.4/lib/audio/Alibnet.h:290:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define ReadFromServer(dpy, data, size) read((dpy), (data), (size))
data/nas-1.9.4/lib/audio/Astreams.c:491:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if( (read_in = read(ufd, &length, 1)) <= 0 ){
data/nas-1.9.4/lib/audio/Astreams.c:499:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if( (read_in = read(ufd, buf, length)) <= 0 ){
data/nas-1.9.4/lib/audio/Astreams.c:690: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).
	c = strlen (slave);
data/nas-1.9.4/lib/audio/Astreams.c:707:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read (fd, &c, 1) != 1) 
data/nas-1.9.4/lib/audio/Astreams.c:748:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		amount = read(fd, buf, count);
data/nas-1.9.4/lib/audio/Astreams.c:759:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		amount = read(fd, buf, count);
data/nas-1.9.4/lib/audio/Astreams.c:774:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
           ioptr->LastBytePtr = read(fd, ioptr->DataBuffer, BUFFERSIZE);
data/nas-1.9.4/lib/audio/Astreams.c:1169: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).
	else	n = strlen(*arg1);
data/nas-1.9.4/lib/audio/Astreams.c:1331:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
   	n = read(fd, &ioptr->DataBuffer[inbuf], BUFFERSIZE-inbuf);
data/nas-1.9.4/lib/audio/Astreams.c:1381:13:  [1] (obsolete) ulimit:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name, which is NOT obsolete) (CWE-676). Use getrlimit(2),
  setrlimit(2), and sysconf(3) instead.
extern long ulimit();
data/nas-1.9.4/lib/audio/Astreams.c:1394:13:  [1] (obsolete) ulimit:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name, which is NOT obsolete) (CWE-676). Use getrlimit(2),
  setrlimit(2), and sysconf(3) instead.
		_NOFILE = ulimit(4, (long)0);
data/nas-1.9.4/lib/audio/AuErrDes.c:173:20:  [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).
	    parent->len = strlen(parent->value);
data/nas-1.9.4/lib/audio/AuErrDes.c:282:16:  [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).
	result.size = strlen(defaultp) + 1;
data/nas-1.9.4/lib/audio/AuErrDes.c:284:12:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (void) strncpy (buffer, (char *) result.addr, nbytes);
data/nas-1.9.4/lib/audio/ConnSvr.c:157:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (dst, src, len);
data/nas-1.9.4/lib/audio/ConnSvr.c:660: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).
    len = (strlen(realtrans) + (phostname ? strlen(phostname) : 0) +
data/nas-1.9.4/lib/audio/ConnSvr.c:660: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).
    len = (strlen(realtrans) + (phostname ? strlen(phostname) : 0) +
data/nas-1.9.4/lib/audio/ConnSvr.c:661:26:  [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).
	   1 + (dnet ? 1 : 0) + strlen(psvrnum) + 1 );
data/nas-1.9.4/lib/audio/ConnSvr.c:840: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).
    unaddr.sun_len = strlen(unaddr.sun_path);
data/nas-1.9.4/lib/audio/ConnSvr.c:847: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).
    addrlen = strlen(unaddr.sun_path) + sizeof(unaddr.sun_family);
data/nas-1.9.4/lib/audio/ConnSvr.c:1235: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).
	    to_try = (char *)Aumalloc(strlen(Def_Local_Search)+1);
data/nas-1.9.4/lib/audio/ConnSvr.c:1240:28:  [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).
	to_try = (char *)Aumalloc(strlen(LocalConnModes[LocalConnType].env_name)+1);
data/nas-1.9.4/lib/audio/ConnSvr.c:1278: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).
		    temp = strlen(slave);
data/nas-1.9.4/lib/audio/ConnSvr.c:1288:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        	    ret = read(fd, rbuf, 1);
data/nas-1.9.4/lib/audio/ConnSvr.c:1509: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).
	*saddrlenp = strlen(phostname);
data/nas-1.9.4/lib/audio/ConnSvr.c:1844:26:  [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).
				    (unsigned short) strlen (svrnumbuf),
data/nas-1.9.4/lib/audio/OpenSvr.c:264:14:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		    (void) strncpy (*ret_svrmsg, u.failure, len);
data/nas-1.9.4/lib/audio/OpenSvr.c:311:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  	(void) strncpy(aud->vendor, (char *)varData, vendorlen);
data/nas-1.9.4/lib/audio/aiff.c:322:4:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			fgetc(ai->fp);	/* eat the pad byte */
data/nas-1.9.4/lib/audio/aiff.c:374: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).
    if ((n = strlen(ai->comment)))
data/nas-1.9.4/lib/audio/fileutil.c:122: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).
	t = (char *) malloc(strlen(f) + 1);
data/nas-1.9.4/lib/audio/nameaddr.c:267: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).
		*serveraddrlenp = strlen (machine.nodename);
data/nas-1.9.4/lib/audio/nameaddr.c:686:9:  [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).
    l = strlen(nd_hostservlist->h_hostservs->h_host);
data/nas-1.9.4/lib/audio/nameaddr.c:762: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).
	    len = strlen(name);
data/nas-1.9.4/lib/audio/nameaddr.c:771: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).
	l = strlen(name) +1;
data/nas-1.9.4/lib/audio/nameserver.c:75: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).
	n = strlen(stype) +1;
data/nas-1.9.4/lib/audio/nameserver.c:212:39:  [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).
                      addheader(host, strlen(host)), &retptr, &naddrs) <= 0)
data/nas-1.9.4/lib/audio/nameserver.c:299: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).
				 addheader(host, strlen(host)),  &retptr, NULL) <= 0)
data/nas-1.9.4/lib/audio/nameserver.c:403: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).
	netlen = strlen(nettype);
data/nas-1.9.4/lib/audio/nameserver.c:513: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).
		addheader(name, strlen(name)), &retptr, NULL)<0)
data/nas-1.9.4/lib/audio/nameserver.c:635: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).
		*serveraddrlenp = strlen (machine.nodename);
data/nas-1.9.4/lib/audio/nameserver.c:681:25:  [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((n = strlen(line)) > 1)
data/nas-1.9.4/lib/audio/nameserver.c:768:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while(read (NameServer, buf, MAX_AUTO_BUF_LEN) > 0);
data/nas-1.9.4/lib/audio/nameserver.c:784: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).
	m = HEADERSIZE + strlen(nettype)+ 1;
data/nas-1.9.4/lib/audio/nameserver.c:795: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).
	*(int *) ptr = strlen(nettype);
data/nas-1.9.4/lib/audio/nameserver.c:870:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while((n = read(fd, buf, count)) > 0)
data/nas-1.9.4/lib/audio/snd.c:203: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).
    commentLen = si->comment ? strlen(si->comment) : 0;
data/nas-1.9.4/lib/audio/sound.c:522: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 ((p = (char *) malloc(strlen(comment) + 1)))
data/nas-1.9.4/lib/audio/soundlib.c:76:16:  [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).
    desc.len = strlen(SoundComment(s));
data/nas-1.9.4/lib/audio/soundlib.c:222:16:  [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).
    desc.len = strlen(SoundComment(s));
data/nas-1.9.4/lib/audio/voc.c:46:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _n = fgetc(vi->fp);							      \
data/nas-1.9.4/lib/audio/voc.c:47:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _n += fgetc(vi->fp) << 8;						      \
data/nas-1.9.4/lib/audio/voc.c:48:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _n += fgetc(vi->fp) << 16;						      \
data/nas-1.9.4/lib/audio/voc.c:85:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	switch (c = fgetc(vi->fp))
data/nas-1.9.4/lib/audio/voc.c:95:37:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		vi->sampleRate = 1000000 / (256 - fgetc(vi->fp));
data/nas-1.9.4/lib/audio/voc.c:96:21:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		vi->compression = fgetc(vi->fp);
data/nas-1.9.4/lib/audio/voc.c:116:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n = fgetc(vi->fp);
data/nas-1.9.4/lib/audio/voc.c:117:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n += fgetc(vi->fp) << 8;
data/nas-1.9.4/lib/audio/voc.c:119:21:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		vi->compression = fgetc(vi->fp);
data/nas-1.9.4/lib/audio/voc.c:120:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n = fgetc(vi->fp);
data/nas-1.9.4/lib/audio/voc.c:172: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).
    if ((n = strlen(vi->comment)))
data/nas-1.9.4/lib/audio/wave.c:126:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			    fgetc(wi->fp);	/* eat the pad byte */
data/nas-1.9.4/lib/audio/wave.c:220: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).
    if ((n = strlen(wi->comment)))
data/nas-1.9.4/server/dda/hpux/auhpux.c:209:26:  [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).
    d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/hpux/auhpux.c:233:26:  [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).
    d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/hpux/auhpux.c:260:26:  [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).
    d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/hpux/auhpux.c:305: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).
        d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/hpux/auhpux.c:932:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(devAudio, auInputMono,
data/nas-1.9.4/server/dda/hpux/auhpux.c:1159:39:  [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 (!(V_STRING = (char *) aualloc(strlen(HPUX_VENDOR) + 1)))
data/nas-1.9.4/server/dda/sgi/ausgi.c:141:26:  [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).
    d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/sgi/ausgi.c:165:26:  [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).
    d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/sgi/ausgi.c:192:26:  [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).
    d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/sun/audbri.c:153:26:  [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).
    d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/sun/audbri.c:176:26:  [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).
    d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/sun/audbri.c:199:26:  [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).
    d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/sun/audbri.c:226:26:  [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).
    d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/sun/audbri.c:253:26:  [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).
    d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/sun/audbri.c:490:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(devAudio, auInputStereo, bufSize);
data/nas-1.9.4/server/dda/sun/audbri.c:598:44:  [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 (!(VENDOR_STRING = (char *) aualloc(strlen(SUN_DBRI_VENDOR) + 1)))
data/nas-1.9.4/server/dda/sun/ausun.c:151:26:  [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).
    d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/sun/ausun.c:175:26:  [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).
    d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/sun/ausun.c:202:26:  [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).
    d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/sun/ausun.c:246: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).
        d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/sun/ausun.c:439:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(devAudio, auInputMono, auMinibufSamples);
data/nas-1.9.4/server/dda/sun/ausun.c:515:44:  [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 (!(VENDOR_STRING = (char *) aualloc(strlen(SUN_VENDOR) + 1)))
data/nas-1.9.4/server/dda/sun/ausuni.c:278: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).
        d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/sun/ausuni.c:301: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).
        d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/sun/ausuni.c:333:26:  [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).
    d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/sun/ausuni.c:364:26:  [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).
    d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/sun/ausuni.c:396:26:  [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).
    d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/sun/ausuni.c:429:26:  [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).
    d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/sun/ausuni.c:1126:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(devAudio, auInput, bufSize);
data/nas-1.9.4/server/dda/sun/ausuni.c:1370:44:  [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 (!(devicectl = (char *) aualloc(strlen(device) +
data/nas-1.9.4/server/dda/sun/ausuni.c:1371:44:  [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("ctl") + 1)))
data/nas-1.9.4/server/dda/sun/ausuni.c:1418:44:  [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 (!(VENDOR_STRING = (char *) aualloc(strlen(SUN_VENDOR) +
data/nas-1.9.4/server/dda/sun/ausuni.c:1419:44:  [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(name_of_physical_device)
data/nas-1.9.4/server/dda/voxware/auvoxware.c:598:26:  [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).
    d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/voxware/auvoxware.c:622:26:  [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).
    d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/voxware/auvoxware.c:650:26:  [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).
    d->description.len = strlen(d->description.string);
data/nas-1.9.4/server/dda/voxware/auvoxware.c:1450: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(dspout, tempbuf, strlen(tempbuf));
data/nas-1.9.4/server/dda/voxware/auvoxware.c:1530: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(dspout, tempbuf, strlen(tempbuf));
data/nas-1.9.4/server/dda/voxware/auvoxware.c:1585:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    read(sndStatIn.fd, stereoInputDevice->minibuf,
data/nas-1.9.4/server/dda/voxware/auvoxware.c:1594: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).
        write(dspin, tempbuf, strlen(tempbuf));
data/nas-1.9.4/server/dia/au.h:185:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
       *read;                   /* read pointer */
data/nas-1.9.4/server/dia/au.h:246:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    AuUint8 *read,              /* read pointer */
data/nas-1.9.4/server/dia/audispatch.c:1379:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    p = c->read;
data/nas-1.9.4/server/dia/audispatch.c:1549: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).
    if (!(string = (char *) aualloc(strlen(rel) +
data/nas-1.9.4/server/dia/audispatch.c:1550: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).
                                    3 + strlen(VENDOR_STRING) + 1)))
data/nas-1.9.4/server/dia/audispatch.c:1563:28:  [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).
    auSetup.nbytesVendor = strlen(auVendorString);
data/nas-1.9.4/server/dia/auprocess.c:377:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    s = flowEl->read;
data/nas-1.9.4/server/dia/auprocess.c:444:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    s = flowEl->read;
data/nas-1.9.4/server/dia/auprocess.c:492:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    s = c->read;
data/nas-1.9.4/server/dia/auprocess.c:713:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        AuInt16 *s = (AuInt16 *) c->read;
data/nas-1.9.4/server/dia/auprocess.c:714:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        AuUint32 *p = (AuUint32 *) c->read;
data/nas-1.9.4/server/dia/auprocess.c:733:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        c->write = c->read;
data/nas-1.9.4/server/dia/auutil.c:1098:63:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    AuUint32 *p = (AuUint32 *) el->component->read;
data/nas-1.9.4/server/dia/auutil.c:1104:59:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    el->component->write = el->component->read;
data/nas-1.9.4/server/dia/dispatch.c:403:28:  [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).
        csp.lengthReason = strlen(reason);
data/nas-1.9.4/server/os/access.c:481:5:  [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(fname, "/etc/X", sizeof fname); fname[sizeof fname - 1] = '\0';
data/nas-1.9.4/server/os/access.c:482:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(fname, display, sizeof fname - strlen(fname) - 1);
data/nas-1.9.4/server/os/access.c:482:44:  [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).
    strncat(fname, display, sizeof fname - strlen(fname) - 1);
data/nas-1.9.4/server/os/access.c:483:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
    strncat(fname, ".hosts", sizeof fname - strlen(fname) - 1);
data/nas-1.9.4/server/os/access.c:483: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).
    strncat(fname, ".hosts", sizeof fname - strlen(fname) - 1);
data/nas-1.9.4/server/os/access.c:515:57:  [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).
                (void) NewHost(FamilyNetname, hostname, strlen(hostname));
data/nas-1.9.4/server/os/connection.c:433:50:  [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 (!tcp_dev || strncmp(tcp_dev, TCP_DEVICE, strlen(TCP_DEVICE))) {
data/nas-1.9.4/server/os/connection.c:530:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    oldUmask = umask(0);
data/nas-1.9.4/server/os/connection.c:546:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(unsock.sun_path, X_UNIX_PATH, sizeof unsock.sun_path);
data/nas-1.9.4/server/os/connection.c:548:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(unsock.sun_path, display,
data/nas-1.9.4/server/os/connection.c:549:38:  [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).
            sizeof unsock.sun_path - strlen(unsock.sun_path) - 1);
data/nas-1.9.4/server/os/connection.c:551: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).
    unsock.sun_len = strlen(unsock.sun_path);
data/nas-1.9.4/server/os/connection.c:564:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(oldLinkName, OLD_UNIX_DIR, sizeof oldLinkName);
data/nas-1.9.4/server/os/connection.c:568:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant character.
        strncat(oldLinkName, "/", sizeof oldLinkName - strlen(oldLinkName) - 1);
data/nas-1.9.4/server/os/connection.c:568:56:  [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).
        strncat(oldLinkName, "/", sizeof oldLinkName - strlen(oldLinkName) - 1);
data/nas-1.9.4/server/os/connection.c:569:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(oldLinkName, systemName.nodename,
data/nas-1.9.4/server/os/connection.c:570:38:  [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).
                sizeof oldLinkName - strlen(oldLinkName) - 1);
data/nas-1.9.4/server/os/connection.c:571:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(oldLinkName, display,
data/nas-1.9.4/server/os/connection.c:572:38:  [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).
                sizeof oldLinkName - strlen(oldLinkName) - 1);
data/nas-1.9.4/server/os/connection.c:582: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).
        i = strlen(unsock.sun_path);
data/nas-1.9.4/server/os/connection.c:599:10:  [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(unsock.sun_path) + 2))
data/nas-1.9.4/server/os/connection.c:605: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).
        i = strlen(unsock.sun_path);
data/nas-1.9.4/server/os/connection.c:623:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    (void) umask(oldUmask);
data/nas-1.9.4/server/os/connection.c:658:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    oldUmask = umask(0);
data/nas-1.9.4/server/os/connection.c:663:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask(oldUmask);
data/nas-1.9.4/server/os/connection.c:686:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(path, AUDIO_ISC_PATH, sizeof path); path[sizeof path - 1] = '\0';
data/nas-1.9.4/server/os/connection.c:691:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(path, X_UNIX_PATH, sizeof path); path[sizeof path - 1] = '\0';
data/nas-1.9.4/server/os/connection.c:694:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(path, display, sizeof path - strlen(path) - 1);
data/nas-1.9.4/server/os/connection.c:694:42:  [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).
    strncat(path, display, sizeof path - strlen(path) - 1);
data/nas-1.9.4/server/os/connection.c:788:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(xsFd, &c, 1) < 0) {
data/nas-1.9.4/server/os/connection.c:819:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(path, AUDIO_STREAMS_PATH, sizeof path);
data/nas-1.9.4/server/os/connection.c:821:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(path, display, sizeof path - strlen(path) - 1);
data/nas-1.9.4/server/os/connection.c:821:42:  [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).
    strncat(path, display, sizeof path - strlen(path) - 1);
data/nas-1.9.4/server/os/connection.c:860:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(path, AUDIO_NSTREAMS_PATH, sizeof path);
data/nas-1.9.4/server/os/connection.c:862:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(path, display, sizeof path - strlen(path) - 1);
data/nas-1.9.4/server/os/connection.c:862:42:  [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).
    strncat(path, display, sizeof path - strlen(path) - 1);
data/nas-1.9.4/server/os/connection.c:918:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((read_in = read(ptsFd, &length, 1)) <= 0) {
data/nas-1.9.4/server/os/connection.c:926:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((read_in = read(ptsFd, path, length)) <= 0) {
data/nas-1.9.4/server/os/connection.c:1032: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(unsock.sun_path) + 2;
data/nas-1.9.4/server/os/connection.c:1060: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).
    dnsock.sdn_objnamel = strlen(dnsock.sdn_objname);
data/nas-1.9.4/server/os/connection.c:1314: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(addr, "local host", sizeof addr);
data/nas-1.9.4/server/os/connection.c:1323: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(addr, "local host", sizeof addr);
data/nas-1.9.4/server/os/connection.c:1340: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(addr, "unknown address", sizeof addr);
data/nas-1.9.4/server/os/connection.c:1600:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    (void) read(fd, &byteOrder, 1);
data/nas-1.9.4/server/os/connection.c:1606:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd, &byteOrder, 1) == -1) {
data/nas-1.9.4/server/os/connection.c:2392:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
        strncat(buf, " KILLED", sizeof buf - strlen(buf) - 1);
data/nas-1.9.4/server/os/connection.c:2392:46:  [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).
        strncat(buf, " KILLED", sizeof buf - strlen(buf) - 1);
data/nas-1.9.4/server/os/connection.c:2394:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
        strncat(buf, " PUSHBACK", sizeof buf - strlen(buf) - 1);
data/nas-1.9.4/server/os/connection.c:2394:48:  [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).
        strncat(buf, " PUSHBACK", sizeof buf - strlen(buf) - 1);
data/nas-1.9.4/server/os/connection.c:2396:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
        strncat(buf, " IGNORE", sizeof buf - strlen(buf) - 1);
data/nas-1.9.4/server/os/connection.c:2396:46:  [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).
        strncat(buf, " IGNORE", sizeof buf - strlen(buf) - 1);
data/nas-1.9.4/server/os/connection.c:2492:26:  [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).
            rep.h_size = strlen(repb);
data/nas-1.9.4/server/os/connection.c:2656:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(name, AuTcpServerName, BUFSIZ); name[BUFSIZ-1] = '\0';
data/nas-1.9.4/server/os/io.c:229:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        result = read(fd, oci->buffer + oci->bufcnt,
data/nas-1.9.4/server/os/io.c:1293:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            result = read(fd, oci->buffer + oci->bufcnt,

ANALYSIS SUMMARY:

Hits = 828
Lines analyzed = 70305 in approximately 2.36 seconds (29850 lines/second)
Physical Source Lines of Code (SLOC) = 52614
Hits@level = [0] 343 [1] 228 [2] 415 [3]  21 [4] 153 [5]  11
Hits@level+ = [0+] 1171 [1+] 828 [2+] 600 [3+] 185 [4+] 164 [5+]  11
Hits/KSLOC@level+ = [0+] 22.2564 [1+] 15.7373 [2+] 11.4038 [3+] 3.51617 [4+] 3.11704 [5+] 0.20907
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.