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/otf-1.12.5+dfsg/otfauxlib/OTFAUX_MsgMatching.c
Examining data/otf-1.12.5+dfsg/otfauxlib/OTFAUX_MsgMatching.h
Examining data/otf-1.12.5+dfsg/otfauxlib/OTFAUX_Process.c
Examining data/otf-1.12.5+dfsg/otfauxlib/OTFAUX_Process.h
Examining data/otf-1.12.5+dfsg/otfauxlib/OTFAUX_SharedState.h
Examining data/otf-1.12.5+dfsg/otfauxlib/OTFAUX_Stack.h
Examining data/otf-1.12.5+dfsg/otfauxlib/OTFAUX_State.c
Examining data/otf-1.12.5+dfsg/otfauxlib/OTFAUX_State.h
Examining data/otf-1.12.5+dfsg/otfauxlib/OTFAUX_Thumbnail.c
Examining data/otf-1.12.5+dfsg/otfauxlib/OTFAUX_Thumbnail.h
Examining data/otf-1.12.5+dfsg/otfauxlib/otfaux.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_CopyHandler.c
Examining data/otf-1.12.5+dfsg/otflib/OTF_CopyHandler.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_CopyHandler_stream.c
Examining data/otf-1.12.5+dfsg/otflib/OTF_CopyHandler_stream.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_Definitions.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_Errno.c
Examining data/otf-1.12.5+dfsg/otflib/OTF_Errno.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_File.c
Examining data/otf-1.12.5+dfsg/otflib/OTF_File.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_FileManager.c
Examining data/otf-1.12.5+dfsg/otflib/OTF_FileManager.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c
Examining data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_Filenames.c
Examining data/otf-1.12.5+dfsg/otflib/OTF_Filenames.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_Handler.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_HandlerArray.c
Examining data/otf-1.12.5+dfsg/otflib/OTF_HandlerArray.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_KeyValue.c
Examining data/otf-1.12.5+dfsg/otflib/OTF_KeyValue.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_Keywords.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_MasterControl.c
Examining data/otf-1.12.5+dfsg/otflib/OTF_MasterControl.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_Parse.c
Examining data/otf-1.12.5+dfsg/otflib/OTF_Parse.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_Platform.c
Examining data/otf-1.12.5+dfsg/otflib/OTF_Platform.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_Platform_unix.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_Platform_win.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_RBuffer.c
Examining data/otf-1.12.5+dfsg/otflib/OTF_RBuffer.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_RStream.c
Examining data/otf-1.12.5+dfsg/otflib/OTF_RStream.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_Reader.c
Examining data/otf-1.12.5+dfsg/otflib/OTF_Reader.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_WBuffer.c
Examining data/otf-1.12.5+dfsg/otflib/OTF_WBuffer.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_WStream.c
Examining data/otf-1.12.5+dfsg/otflib/OTF_WStream.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_Writer.c
Examining data/otf-1.12.5+dfsg/otflib/OTF_Writer.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_inttypes.c
Examining data/otf-1.12.5+dfsg/otflib/OTF_inttypes.h
Examining data/otf-1.12.5+dfsg/otflib/OTF_inttypes_win.h
Examining data/otf-1.12.5+dfsg/otflib/otf.h
Examining data/otf-1.12.5+dfsg/otflib_py/pyOTF_AuxiliaryFunctions.h
Examining data/otf-1.12.5+dfsg/otflib_py/pyOTF_Wrapper.h
Examining data/otf-1.12.5+dfsg/tests/generic_streams-mpi/generic_streams_mpi.c
Examining data/otf-1.12.5+dfsg/tests/generic_streams/generic_streams.c
Examining data/otf-1.12.5+dfsg/tests/hello/hello.c
Examining data/otf-1.12.5+dfsg/tests/progress/progress.c
Examining data/otf-1.12.5+dfsg/tests/read_from_buffer/read_from_buffer.c
Examining data/otf-1.12.5+dfsg/tools/otf2vtf/Handler.c
Examining data/otf-1.12.5+dfsg/tools/otf2vtf/Handler.h
Examining data/otf-1.12.5+dfsg/tools/otf2vtf/Treehash.c
Examining data/otf-1.12.5+dfsg/tools/otf2vtf/Treehash.h
Examining data/otf-1.12.5+dfsg/tools/otf2vtf/otf2vtf.c
Examining data/otf-1.12.5+dfsg/tools/otfaux/Control.cpp
Examining data/otf-1.12.5+dfsg/tools/otfaux/Control.h
Examining data/otf-1.12.5+dfsg/tools/otfaux/Handler.cpp
Examining data/otf-1.12.5+dfsg/tools/otfaux/Handler.h
Examining data/otf-1.12.5+dfsg/tools/otfaux/Stats.cpp
Examining data/otf-1.12.5+dfsg/tools/otfaux/Stats.h
Examining data/otf-1.12.5+dfsg/tools/otfaux/otfaux.cpp
Examining data/otf-1.12.5+dfsg/tools/otfcompress/otfcompress.c
Examining data/otf-1.12.5+dfsg/tools/otfcompress/sys_time.h
Examining data/otf-1.12.5+dfsg/tools/otfconfig/otfconfig.c
Examining data/otf-1.12.5+dfsg/tools/otfdump/Handler.cpp
Examining data/otf-1.12.5+dfsg/tools/otfdump/Handler.h
Examining data/otf-1.12.5+dfsg/tools/otfdump/otfdump.cpp
Examining data/otf-1.12.5+dfsg/tools/otfinfo/handler.c
Examining data/otf-1.12.5+dfsg/tools/otfinfo/handler.h
Examining data/otf-1.12.5+dfsg/tools/otfinfo/hash.c
Examining data/otf-1.12.5+dfsg/tools/otfinfo/hash.h
Examining data/otf-1.12.5+dfsg/tools/otfinfo/otfinfo.c
Examining data/otf-1.12.5+dfsg/tools/otfinfo/otfinfo_error.c
Examining data/otf-1.12.5+dfsg/tools/otfinfo/otfinfo_error.h
Examining data/otf-1.12.5+dfsg/tools/otfmerge/handler.c
Examining data/otf-1.12.5+dfsg/tools/otfmerge/handler.h
Examining data/otf-1.12.5+dfsg/tools/otfmerge/otfmerge.c
Examining data/otf-1.12.5+dfsg/tools/otfprofile/clustering.cpp
Examining data/otf-1.12.5+dfsg/tools/otfprofile/clustering.h
Examining data/otf-1.12.5+dfsg/tools/otfprofile/collect_data.cpp
Examining data/otf-1.12.5+dfsg/tools/otfprofile/collect_data.h
Examining data/otf-1.12.5+dfsg/tools/otfprofile/collect_dispersion.cpp
Examining data/otf-1.12.5+dfsg/tools/otfprofile/collect_dispersion.h
Examining data/otf-1.12.5+dfsg/tools/otfprofile/comparison.h
Examining data/otf-1.12.5+dfsg/tools/otfprofile/comparison_clinkage.cpp
Examining data/otf-1.12.5+dfsg/tools/otfprofile/comparison_kmeans.cpp
Examining data/otf-1.12.5+dfsg/tools/otfprofile/create_csv.cpp
Examining data/otf-1.12.5+dfsg/tools/otfprofile/create_csv.h
Examining data/otf-1.12.5+dfsg/tools/otfprofile/create_filter.cpp
Examining data/otf-1.12.5+dfsg/tools/otfprofile/create_filter.h
Examining data/otf-1.12.5+dfsg/tools/otfprofile/create_latex.cpp
Examining data/otf-1.12.5+dfsg/tools/otfprofile/create_latex.h
Examining data/otf-1.12.5+dfsg/tools/otfprofile/create_marker.cpp
Examining data/otf-1.12.5+dfsg/tools/otfprofile/create_marker.h
Examining data/otf-1.12.5+dfsg/tools/otfprofile/datastructs.h
Examining data/otf-1.12.5+dfsg/tools/otfprofile/mpi/reduce_data.cpp
Examining data/otf-1.12.5+dfsg/tools/otfprofile/mpi/reduce_data.h
Examining data/otf-1.12.5+dfsg/tools/otfprofile/otfprofile.cpp
Examining data/otf-1.12.5+dfsg/tools/otfprofile/otfprofile.h
Examining data/otf-1.12.5+dfsg/tools/otfprofile/process_dispersion.cpp
Examining data/otf-1.12.5+dfsg/tools/otfprofile/process_dispersion.h
Examining data/otf-1.12.5+dfsg/tools/otfprofile/summarize_data.cpp
Examining data/otf-1.12.5+dfsg/tools/otfprofile/summarize_data.h
Examining data/otf-1.12.5+dfsg/tools/otfshrink/Handler.cpp
Examining data/otf-1.12.5+dfsg/tools/otfshrink/Handler.h
Examining data/otf-1.12.5+dfsg/tools/otfshrink/otfshrink.cpp
Examining data/otf-1.12.5+dfsg/tools/otfshrink/otfshrink.h
Examining data/otf-1.12.5+dfsg/tools/otfshrink/procList.h
Examining data/otf-1.12.5+dfsg/tools/vtf2otf/Handler.c
Examining data/otf-1.12.5+dfsg/tools/vtf2otf/Handler.h
Examining data/otf-1.12.5+dfsg/tools/vtf2otf/Hash.c
Examining data/otf-1.12.5+dfsg/tools/vtf2otf/Hash.h
Examining data/otf-1.12.5+dfsg/tools/vtf2otf/Stack.c
Examining data/otf-1.12.5+dfsg/tools/vtf2otf/Stack.h
Examining data/otf-1.12.5+dfsg/tools/vtf2otf/vtf2otf.c
Examining data/otf-1.12.5+dfsg/vendor/jenkins_hash/jenkins_hash.c
Examining data/otf-1.12.5+dfsg/vendor/jenkins_hash/jenkins_hash.h

FINAL RESULTS:

data/otf-1.12.5+dfsg/otfauxlib/OTFAUX_Thumbnail.c:103:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy( name_buffer, namestub );
data/otf-1.12.5+dfsg/otflib/OTF_Errno.c:21:2:  [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.
	vsnprintf( otf_strerr, OTF_ERR_LEN, format, ap );
data/otf-1.12.5+dfsg/otflib/OTF_Errno.c:36:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf( stderr, format, ap );
data/otf-1.12.5+dfsg/otflib/OTF_File.c:1163: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.
		if ( 0 != access( ret->filename, F_OK ) ) {
data/otf-1.12.5+dfsg/otflib/OTF_File.c:1169: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 ( 0 != access( ret->filename, F_OK ) ) {
data/otf-1.12.5+dfsg/otflib/OTF_File.c:1227: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.
		if ( 0 != access( ret->filename, F_OK ) ) {
data/otf-1.12.5+dfsg/otflib/OTF_File.c:1231: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 ( 0 == access( ret->filename, F_OK ) ) {
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:339:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
		ret = fscanf( index, IOFSL_INDEX_SKIPCHARS );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:344:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
		ret = fscanf( index, IOFSL_INDEX_SCAN_FMT, tmp_str, &off, &len );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1071: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.
		if ( 0 != access( ret->iofsl->multifile_name , F_OK ) ) {
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1076: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 ( 0 != access( ret->iofsl->multifile_name, F_OK ) ) {
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1123: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.
		if ( 0 != access( ret->iofsl->multifile_name, F_OK ) ) {
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1127: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 ( 0 == access( ret->iofsl->multifile_name, F_OK ) ) {
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1602: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( iofsl->multifile_name , post_streamid_pos );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1608: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( iofsl->indexfile_name, post_streamid_pos );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1733:10:  [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.
			ret = snprintf(strbuf + strpos, (bufsz - strpos), IOFSL_INDEX_FMT,
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1748:11:  [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.
				ret = snprintf(strbuf + strpos, (bufsz - strpos), IOFSL_INDEX_FMT,
data/otf-1.12.5+dfsg/otflib/OTF_Filenames.c:202:12:  [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 ( 0 == access( filename, F_OK ) ) {
data/otf-1.12.5+dfsg/otflib/OTF_Platform.c:46:2:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
	mktemp(tmpl);
data/otf-1.12.5+dfsg/otflib/OTF_Platform.c:245:11:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	length = vsprintf(*ptr, fmt, ap2);
data/otf-1.12.5+dfsg/otflib/OTF_Platform.c:283:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(str, buf);
data/otf-1.12.5+dfsg/otflib/OTF_Platform.c:305: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(c, s) ;
data/otf-1.12.5+dfsg/otflib/OTF_Platform_unix.h:52:9:  [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.
#	undef snprintf
data/otf-1.12.5+dfsg/otflib/OTF_Platform_unix.h:53:10:  [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.
#	define snprintf OTF_snprintf
data/otf-1.12.5+dfsg/otflib/OTF_Platform_unix.h:62:9:  [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.
#	undef vsnprintf
data/otf-1.12.5+dfsg/otflib/OTF_Platform_unix.h:63:10:  [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.
#	define vsnprintf OTF_vsnprintf
data/otf-1.12.5+dfsg/otflib/OTF_Platform_win.h:42:9:  [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.
#	undef snprintf
data/otf-1.12.5+dfsg/otflib/OTF_Platform_win.h:43:10:  [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.
#	define snprintf _snprintf
data/otf-1.12.5+dfsg/otflib/OTF_Platform_win.h:43:19:  [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.
#	define snprintf _snprintf
data/otf-1.12.5+dfsg/tools/otfaux/otfaux.cpp:495:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf( newdefnamestub, "%s.XXXXXX", namestub );
data/otf-1.12.5+dfsg/tools/otfmerge/otfmerge.c:12:24:  [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.
    if( my_rank == 0 ) fprintf
data/otf-1.12.5+dfsg/tools/otfprofile/clustering.cpp:137:29:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                    int rc= system( cmd );
data/otf-1.12.5+dfsg/tools/otfprofile/create_latex.cpp:3534:9:  [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( cmd, sizeof( cmd ) - 1, PDFTEX" %s >/dev/null 2>&1",
data/otf-1.12.5+dfsg/tools/otfprofile/create_latex.cpp:3543:21:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            int rc= system( cmd );
data/otf-1.12.5+dfsg/tools/otfprofile/otfprofile.cpp:1423:13:  [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.
            vsnprintf( msg + strlen( msg ), sizeof( msg ) -1, fmt, ap );
data/otf-1.12.5+dfsg/tools/otfprofile/otfprofile.cpp:1434:17:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                vprintf(fmt, ap);
data/otf-1.12.5+dfsg/tools/otfshrink/otfshrink.cpp:319: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((line+".otf").c_str(), F_OK) ) {
data/otf-1.12.5+dfsg/tools/otfshrink/otfshrink.cpp:645: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.
	if ( ! output_folder.empty() && access(output_folder.c_str(), F_OK) ) {
data/otf-1.12.5+dfsg/tools/otfshrink/otfshrink.cpp:704:8:  [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((input + ".otf").c_str(), F_OK) ) {
data/otf-1.12.5+dfsg/tools/otfshrink/otfshrink.cpp:769:11:  [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(file.c_str(), F_OK) ) {
data/otf-1.12.5+dfsg/tools/otfshrink/otfshrink.cpp:770:12:  [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(s_link.c_str(), F_OK) ) {
data/otf-1.12.5+dfsg/tools/otfshrink/otfshrink.cpp:788:12:  [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(file.c_str(), F_OK) ) {
data/otf-1.12.5+dfsg/tools/otfshrink/otfshrink.cpp:789: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.
					if ( ! access(s_link.c_str(), F_OK) ) {
data/otf-1.12.5+dfsg/tools/vtf2otf/Stack.c:88:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( file, "%s.%i.io", outputFile, cpuid );
data/otf-1.12.5+dfsg/tools/vtf2otf/Stack.c:106:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf( file, "%s.%i.io", outputFile, cpuid );
data/otf-1.12.5+dfsg/tools/vtf2otf/vtf2otf.c:811:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf( iofile, "%s.%i.io", fcb.outputFile, i + (a<<16) );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1230: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.
					tmp, getenv( zoidfs_server_env ));
data/otf-1.12.5+dfsg/otflib/OTF_Platform.c:54:10:  [3] (random) nrand48:
  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.
long int nrand48 (unsigned short int xsubi[3])
data/otf-1.12.5+dfsg/otflib/OTF_Platform_win.h:52:11:  [3] (random) nrand48:
  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.
	long int nrand48 (unsigned short int xsubi[3]);
data/otf-1.12.5+dfsg/otflib/OTF_WStream.c:1667:19:  [3] (random) nrand48:
  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.
	uid *= (uint64_t)nrand48( rnd_state );
data/otf-1.12.5+dfsg/tools/otfaux/otfaux.cpp:894:3:  [3] (random) srand:
  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.
		srand(1);
data/otf-1.12.5+dfsg/otfauxlib/OTFAUX_State.c:721:12:  [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( filename, create ? "w" : "a" );
data/otf-1.12.5+dfsg/otfauxlib/OTFAUX_Thumbnail.c:104: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( name_buffer, ".thumb" );
data/otf-1.12.5+dfsg/otfauxlib/OTFAUX_Thumbnail.c:158:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    new_reader->file = fopen( filename, "r" );
data/otf-1.12.5+dfsg/otflib/OTF_Definitions.h:240: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.
extern char otf_strerr[OTF_ERR_LEN];
data/otf-1.12.5+dfsg/otflib/OTF_Errno.c:13: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 otf_strerr[OTF_ERR_LEN] = "No errors occurred.";
data/otf-1.12.5+dfsg/otflib/OTF_File.c:786:26:  [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 ( -1 == ( fd = open( file->filename, flags ) ) ) {
data/otf-1.12.5+dfsg/otflib/OTF_File.c:818: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).
			file->file= fopen( file->filename, "rb" );
data/otf-1.12.5+dfsg/otflib/OTF_File.c:882: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).
				file->file= fopen( file->filename, "ab" );
data/otf-1.12.5+dfsg/otflib/OTF_File.c:898: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).
				file->file= fopen( file->filename, "wb" );
data/otf-1.12.5+dfsg/otflib/OTF_File.c:956: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).
				file->file= fopen( file->filename, "rb" );
data/otf-1.12.5+dfsg/otflib/OTF_File.c:978: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).
				file->file= fopen( file->filename, "rb" );
data/otf-1.12.5+dfsg/otflib/OTF_File.c:1331: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( dest, file->externalbuffer + file->externalpos, actual_length );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:335:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char tmp_str[100];
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:823:26:  [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 ( -1 == ( fd = open( file->iofsl->multifile_name, flags ) ) ) {
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:858: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).
			file->file = fopen( file->iofsl->multifile_name, "rb" );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:928:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				file->file = fopen( file->iofsl->multifile_name, "rb" );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:951:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				file->file = fopen( file->iofsl->multifile_name, "rb" );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1145:27:  [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).
		ret->iofsl->indexfile = fopen( ret->iofsl->indexfile_name, "rb" );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1410: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 value[ZOIDFS_ATOMIC_APPEND_OFFSET_MAX_BYTES]; /* length defined in zoidfs-hints.h */
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1443:26:  [2] (integer) atol:
  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).
	newoff = (long unsigned)atol( value );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1601:2:  [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( iofsl->multifile_name , "all" );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1607:2:  [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( iofsl->indexfile_name, "idx" );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1642: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( iofsl->multifile_name + len - 2, ".%i.z", iofsl->server_id );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1643: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( iofsl->indexfile_name + len - 2, ".%i.z", iofsl->server_id );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1645: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( iofsl->multifile_name + len, ".%i", iofsl->server_id );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1646: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( iofsl->indexfile_name + len, ".%i", iofsl->server_id );
data/otf-1.12.5+dfsg/otflib/OTF_KeyValue.c:399:6:  [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(pair.value.otf_byte_array.array, value, len);
data/otf-1.12.5+dfsg/otflib/OTF_KeyValue.c:664: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(value, p->kvPair.value.otf_byte_array.array, max_len - *len);
data/otf-1.12.5+dfsg/otflib/OTF_KeyValue.c:674:6:  [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(value, p->kvPair.value.otf_byte_array.array, p->kvPair.value.otf_byte_array.len);
data/otf-1.12.5+dfsg/otflib/OTF_KeyValue.c:685: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(value, p->kvPair.value.otf_byte_array.array, max_len - *len);
data/otf-1.12.5+dfsg/otflib/OTF_KeyValue.c:695:6:  [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(value, p->kvPair.value.otf_byte_array.array, OTF_KEYVALUE_MAX_ARRAY_LEN);
data/otf-1.12.5+dfsg/otflib/OTF_MasterControl.c:330: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( &(mc->map[i]), &(mc->map[i-1]), sizeof(OTF_MapEntry) );
data/otf-1.12.5+dfsg/otflib/OTF_Platform.c:42:5:  [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).
int mkstemp(char *tmpl)
data/otf-1.12.5+dfsg/otflib/OTF_Platform.c:47: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).
	ret = open(tmpl, O_RDWR|O_BINARY|O_CREAT|O_EXCL|_O_SHORT_LIVED, _S_IREAD|_S_IWRITE);
data/otf-1.12.5+dfsg/otflib/OTF_Platform.c:230: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 (&ap2, &ap, sizeof(va_list));
data/otf-1.12.5+dfsg/otflib/OTF_Platform.c:285: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(str, buf, size - 1);
data/otf-1.12.5+dfsg/otflib/OTF_Platform_win.h:62:6:  [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).
	int mkstemp(char *tmpl);
data/otf-1.12.5+dfsg/otflib/OTF_WBuffer.c:431: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 dig[16] = {	'0', '1', '2', '3', '4', '5', '6', '7',
data/otf-1.12.5+dfsg/otflib/OTF_WBuffer.c:479: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 dig[16] = {	'0', '1', '2', '3', '4', '5', '6', '7',
data/otf-1.12.5+dfsg/otflib/OTF_WBuffer.c:527: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 dig[16] = {	'0', '1', '2', '3', '4', '5', '6', '7',
data/otf-1.12.5+dfsg/otflib/OTF_WBuffer.c:574: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 dig[16] = {	'0', '1', '2', '3', '4', '5', '6', '7',
data/otf-1.12.5+dfsg/otflib/OTF_WBuffer.c:639: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 dig[16] = {	'0', '1', '2', '3', '4', '5', '6', '7',
data/otf-1.12.5+dfsg/otflib/OTF_WStream.c:302:15:  [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.
			filename = strcat( filename, ".z" );
data/otf-1.12.5+dfsg/otflib/OTF_WStream.c:378:15:  [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.
			filename = strcat( filename, ".z" );
data/otf-1.12.5+dfsg/otflib/OTF_WStream.c:458:15:  [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.
			filename = strcat( filename, ".z" );
data/otf-1.12.5+dfsg/otflib/OTF_WStream.c:533:15:  [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.
			filename = strcat( filename, ".z" );
data/otf-1.12.5+dfsg/otflib/OTF_WStream.c:604:15:  [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.
			filename = strcat( filename, ".z" );
data/otf-1.12.5+dfsg/tests/generic_streams-mpi/generic_streams_mpi.c:36:22:  [2] (integer) atol:
  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).
        num_events = atol(argv[2]);
data/otf-1.12.5+dfsg/tests/generic_streams/generic_streams.c:32:22:  [2] (integer) atol:
  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).
        num_events = atol(argv[2]);
data/otf-1.12.5+dfsg/tests/hello/hello.c:224:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char name[101];
data/otf-1.12.5+dfsg/tests/progress/progress.c:76: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).
			readerbuffersize = atoi( argv[i+1] );
data/otf-1.12.5+dfsg/tests/progress/progress.c:81: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).
			record_limit = atoi( argv[i+1] );
data/otf-1.12.5+dfsg/tests/progress/progress.c:86: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).
			nfiles = atoi( argv[i+1] );
data/otf-1.12.5+dfsg/tools/otf2vtf/otf2vtf.c:102: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).
			buffersize = atoi( argv[i+1] );
data/otf-1.12.5+dfsg/tools/otfaux/otfaux.cpp:183: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).
			buffersize = atoi( argv[i+1] );
data/otf-1.12.5+dfsg/tools/otfaux/otfaux.cpp:199:20:  [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).
			summary_number= atoi( argv[i+1] );
data/otf-1.12.5+dfsg/tools/otfaux/otfaux.cpp:205:22:  [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).
			summary_distance= atoi( argv[i+1] );
data/otf-1.12.5+dfsg/tools/otfaux/otfaux.cpp:211:20:  [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).
			uint64_t time = atoi( argv[i+1] );
data/otf-1.12.5+dfsg/tools/otfaux/otfaux.cpp:230:20:  [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).
			maxfilehandles= atoi( argv[i+1] );
data/otf-1.12.5+dfsg/tools/otfaux/otfaux.cpp:496:21:  [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).
        defnamefd = mkstemp( newdefnamestub );
data/otf-1.12.5+dfsg/tools/otfaux/otfaux.cpp:1093: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).
	FILE* tmpfile= fopen( tmpfilename, "rb" );
data/otf-1.12.5+dfsg/tools/otfaux/otfaux.cpp:1094:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	if ( NULL != tmpfile ) {
data/otf-1.12.5+dfsg/tools/otfaux/otfaux.cpp:1096:11:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		fclose( tmpfile );
data/otf-1.12.5+dfsg/tools/otfcompress/otfcompress.c: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 outfilename[OTF_PATH_MAX];
data/otf-1.12.5+dfsg/tools/otfcompress/otfcompress.c:290: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( outfilename, ".z" );
data/otf-1.12.5+dfsg/tools/otfcompress/otfcompress.c:378: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).
	fin= fopen( filename, "rb" );
data/otf-1.12.5+dfsg/tools/otfcompress/otfcompress.c:386:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fout= fopen( outfilename, "wb" );
data/otf-1.12.5+dfsg/tools/otfcompress/otfcompress.c:502: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).
	fin= fopen( infilename, "rb" );
data/otf-1.12.5+dfsg/tools/otfcompress/otfcompress.c:510:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fout= fopen( outfilename, "wb" );
data/otf-1.12.5+dfsg/tools/otfconfig/otfconfig.c:42: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 includes[1024]= "";
data/otf-1.12.5+dfsg/tools/otfconfig/otfconfig.c:43: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 libs[1024]= "";
data/otf-1.12.5+dfsg/tools/otfdump/Handler.cpp:262: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 unknown_buffer[ 64 ];
data/otf-1.12.5+dfsg/tools/otfdump/Handler.cpp:263:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf( unknown_buffer, "UNKNOWN <%u>", type );
data/otf-1.12.5+dfsg/tools/otfdump/Handler.cpp:389: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 unknown_buffer[ 64 ];
data/otf-1.12.5+dfsg/tools/otfdump/Handler.cpp:390:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf( unknown_buffer, "UNKNOWN <%u>", type );
data/otf-1.12.5+dfsg/tools/otfdump/Handler.cpp:433: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 unknown_buffer[ 64 ];
data/otf-1.12.5+dfsg/tools/otfdump/Handler.cpp:434:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf( unknown_buffer, "UNKNOWN <%u>",
data/otf-1.12.5+dfsg/tools/otfdump/Handler.cpp:451: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 unknown_buffer[ 64 ];
data/otf-1.12.5+dfsg/tools/otfdump/Handler.cpp:452:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf( unknown_buffer, "UNKNOWN <%u>",
data/otf-1.12.5+dfsg/tools/otfdump/Handler.cpp:473: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 unknown_buffer[ 64 ];
data/otf-1.12.5+dfsg/tools/otfdump/Handler.cpp:474:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf( unknown_buffer, "UNKNOWN <%u>",
data/otf-1.12.5+dfsg/tools/otfdump/Handler.cpp:716: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 unknown_buffer[ 64 ];
data/otf-1.12.5+dfsg/tools/otfdump/Handler.cpp:717:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf( unknown_buffer, "UNKNOWN <%u>", type );
data/otf-1.12.5+dfsg/tools/otfdump/Handler.cpp:858: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 unknown_buffer[ 64 ];
data/otf-1.12.5+dfsg/tools/otfdump/Handler.cpp:859:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf( unknown_buffer, "UNKNOWN <%u>", type );
data/otf-1.12.5+dfsg/tools/otfdump/Handler.cpp:1638: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 unknown_buffer[ 64 ];
data/otf-1.12.5+dfsg/tools/otfdump/Handler.cpp:1639:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf( unknown_buffer, "UNKNOWN <%u>",
data/otf-1.12.5+dfsg/tools/otfdump/Handler.cpp:1958: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 unknown_buffer[ 64 ];
data/otf-1.12.5+dfsg/tools/otfdump/Handler.cpp:1959:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf( unknown_buffer, "UNKNOWN <%u>", type );
data/otf-1.12.5+dfsg/tools/otfdump/otfdump.cpp:21:17:  [2] (integer) atol:
  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).
#  define ATOL8 atol
data/otf-1.12.5+dfsg/tools/otfdump/otfdump.cpp:121: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).
			buffersize = atoi( argv[i+1] );
data/otf-1.12.5+dfsg/tools/otfdump/otfdump.cpp:133: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).
			fha.outfile= fopen( argv[i], "w" );
data/otf-1.12.5+dfsg/tools/otfdump/otfdump.cpp:153: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).
			nfiles = atoi( argv[i+1] );
data/otf-1.12.5+dfsg/tools/otfdump/otfdump.cpp:207: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).
				enabledRecords.push_back( atoi(argv[i+1] ) );
data/otf-1.12.5+dfsg/tools/otfdump/otfdump.cpp:221:8:  [2] (integer) atol:
  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).
				a= atol(argv[i+1]);
data/otf-1.12.5+dfsg/tools/otfinfo/otfinfo.c:95: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).
      numFileHandles = atoi(argv[i]);
data/otf-1.12.5+dfsg/tools/otfinfo/otfinfo.c:100: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).
      infoLevel = atoi(argv[i]);
data/otf-1.12.5+dfsg/tools/otfinfo/otfinfo.c:188: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 filename[1024];
data/otf-1.12.5+dfsg/tools/otfmerge/otfmerge.c:151: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).
            num_ostreams = atoi( argv[i+1] );
data/otf-1.12.5+dfsg/tools/otfmerge/otfmerge.c:175: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).
            max_fhandles = atoi( argv[i+1] );
data/otf-1.12.5+dfsg/tools/otfmerge/otfmerge.c:180: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).
            rbufsize = atoi( argv[i+1] );
data/otf-1.12.5+dfsg/tools/otfmerge/otfmerge.c:185: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).
            wbufsize = atoi( argv[i+1] );
data/otf-1.12.5+dfsg/tools/otfmerge/otfmerge.c:190:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            compression = atoi( argv[i+1] );
data/otf-1.12.5+dfsg/tools/otfmerge/otfmerge.c:331: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).
        master_file = fopen( outfile_otf, "w");
data/otf-1.12.5+dfsg/tools/otfmerge/otfmerge.c:447:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                    memcpy(rank_data.ostreams[j].cpus, ostreams[offset + j].cpus,
data/otf-1.12.5+dfsg/tools/otfmerge/otfmerge.c:863:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buffer[ 1024 ];
data/otf-1.12.5+dfsg/tools/otfmerge/otfmerge.c:882:28:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                instream = fopen( thumbnail_filename, "rb" );
data/otf-1.12.5+dfsg/tools/otfmerge/otfmerge.c:897:29:  [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).
                outstream = fopen( thumbnail_outname, "wb" );
data/otf-1.12.5+dfsg/tools/otfmerge/otfmerge.c:1069: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 signs[2] = {' ','.'};
data/otf-1.12.5+dfsg/tools/otfprofile/clustering.cpp:124:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                    char cmd[1024];
data/otf-1.12.5+dfsg/tools/otfprofile/collect_data.cpp:199: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.
        static const char signs[2]= { '.',' ' };
data/otf-1.12.5+dfsg/tools/otfprofile/collect_dispersion.cpp:203: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.
        static const char signs[2]= { '.',' ' };
data/otf-1.12.5+dfsg/tools/otfprofile/comparison_clinkage.cpp:523: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).
    gnuplot_script.open( "gnuplot_script.sh" );
data/otf-1.12.5+dfsg/tools/otfprofile/comparison_clinkage.cpp:524: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).
    gnuplot_inputs.open( "gnuplot_inputs.txt" );
data/otf-1.12.5+dfsg/tools/otfprofile/comparison_clinkage.cpp:525: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).
    gnuplot_cluster.open( "gnuplot_cluster.txt" );
data/otf-1.12.5+dfsg/tools/otfprofile/comparison_kmeans.cpp:579: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).
    gnuplot_script.open( "gnuplot_script.sh" );
data/otf-1.12.5+dfsg/tools/otfprofile/comparison_kmeans.cpp:580: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).
    gnuplot_inputs.open( "gnuplot_inputs.txt" );
data/otf-1.12.5+dfsg/tools/otfprofile/comparison_kmeans.cpp:581: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).
    gnuplot_cluster.open( "gnuplot_cluster.txt" );
data/otf-1.12.5+dfsg/tools/otfprofile/create_filter.cpp:59: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).
	filter_file.open(filter_file_name.c_str(), ios::out | ios::trunc);
data/otf-1.12.5+dfsg/tools/otfprofile/create_filter.cpp:293: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).
		uint32_t pid = atoi(path.substr(0, path.find_first_of(" ")).c_str());
data/otf-1.12.5+dfsg/tools/otfprofile/create_filter.cpp:303: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).
			cid = atoi(path.substr(0, path.find_first_of(" ")).c_str());
data/otf-1.12.5+dfsg/tools/otfprofile/create_latex.cpp:1577:54:  [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).
                    word = alldata.functionIdNameMap[atoi(word.c_str())];
data/otf-1.12.5+dfsg/tools/otfprofile/create_latex.cpp:3466: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).
    tex_file.open(tex_file_name.c_str(), ios::out | ios::trunc);
data/otf-1.12.5+dfsg/tools/otfprofile/create_latex.cpp:3533: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 cmd[1024];
data/otf-1.12.5+dfsg/tools/otfprofile/otfprofile.cpp:399: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 + 1]);
data/otf-1.12.5+dfsg/tools/otfprofile/otfprofile.cpp:419: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 + 1]);
data/otf-1.12.5+dfsg/tools/otfprofile/otfprofile.cpp:450: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 + 1]);
data/otf-1.12.5+dfsg/tools/otfprofile/otfprofile.cpp:553:22:  [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+1] );
data/otf-1.12.5+dfsg/tools/otfprofile/otfprofile.cpp:576:22:  [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+1] );
data/otf-1.12.5+dfsg/tools/otfprofile/otfprofile.cpp:666: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).
            uint32_t tmp = atoi(argv[i + 1]);
data/otf-1.12.5+dfsg/tools/otfprofile/otfprofile.cpp:1419: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.
            char msg[1024];
data/otf-1.12.5+dfsg/tools/otfshrink/otfshrink.cpp:133: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).
    FILE* f= fopen( filename, "r" );
data/otf-1.12.5+dfsg/tools/otfshrink/otfshrink.cpp:149: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[len];
data/otf-1.12.5+dfsg/tools/otfshrink/otfshrink.cpp:762:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(ch_i, "%x", entries[i]->argument );
data/otf-1.12.5+dfsg/tools/vtf2otf/Handler.c:200: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 tmp[32];
data/otf-1.12.5+dfsg/tools/vtf2otf/Handler.c:257: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( tmp, "communicator %u", mcommunicator& 0x3fffffff );
data/otf-1.12.5+dfsg/tools/vtf2otf/Handler.c:779: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( ((fcbT*)fcb)->threadnums, threadnumarray, sizeof( int )
data/otf-1.12.5+dfsg/tools/vtf2otf/Stack.c:85: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 file[128];
data/otf-1.12.5+dfsg/tools/vtf2otf/Stack.c:90:6:  [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).
	pf= fopen( file, "wb" );
data/otf-1.12.5+dfsg/tools/vtf2otf/Stack.c:103: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 file[128];
data/otf-1.12.5+dfsg/tools/vtf2otf/Stack.c:108:6:  [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).
	pf= fopen( file, "rb" );
data/otf-1.12.5+dfsg/tools/vtf2otf/vtf2otf.c:80: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 iofile[128];
data/otf-1.12.5+dfsg/tools/vtf2otf/vtf2otf.c:107: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).
			nstreams = atoi( argv[i+1] );
data/otf-1.12.5+dfsg/tools/vtf2otf/vtf2otf.c:112: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).
			maxfilehandles = atoi( argv[i+1] );
data/otf-1.12.5+dfsg/tools/vtf2otf/vtf2otf.c:117: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).
			buffersize = atoi( argv[i+1] );
data/otf-1.12.5+dfsg/tools/vtf2otf/vtf2otf.c:126: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).
			compression= atoi( argv [i+1] );
data/otf-1.12.5+dfsg/otfauxlib/OTFAUX_Thumbnail.c:98: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).
    length = strlen( namestub ) + strlen( ".thumb" ) + 1;
data/otf-1.12.5+dfsg/otfauxlib/OTFAUX_Thumbnail.c:98:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen( namestub ) + strlen( ".thumb" ) + 1;
data/otf-1.12.5+dfsg/otfauxlib/OTFAUX_Thumbnail.c:255:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ( fgetc( tn_reader->file ) != '\n' )
data/otf-1.12.5+dfsg/otfauxlib/OTFAUX_Thumbnail.c:261:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ( fgetc( tn_reader->file ) == EOF )
data/otf-1.12.5+dfsg/otflib/OTF_File.c:422:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	uint64_t read;
data/otf-1.12.5+dfsg/otflib/OTF_File.c:470:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if ( 0 == read ) {
data/otf-1.12.5+dfsg/otflib/OTF_File.c:476:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			OTF_FILE_Z(file)->avail_in= (uInt) read;
data/otf-1.12.5+dfsg/otflib/OTF_File.c:500:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			pos += read;
data/otf-1.12.5+dfsg/otflib/OTF_File.c:1084: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).
	filename_length = strlen( filename );
data/otf-1.12.5+dfsg/otflib/OTF_File.c:1085:18:  [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).
	suffix_length = strlen( suffix );
data/otf-1.12.5+dfsg/otflib/OTF_File.c:1141:18:  [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= (uint32_t) strlen( filename );
data/otf-1.12.5+dfsg/otflib/OTF_File.c:1155:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy( ret->filename, filename, len +1 );
data/otf-1.12.5+dfsg/otflib/OTF_File.c:1167:4:  [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( ret->filename +len, ".z", 3 );
data/otf-1.12.5+dfsg/otflib/OTF_File.c:1229:4:  [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( ret->filename +len, ".z", 3 );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:469:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	uint64_t read;
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:552:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			OTF_FILE_Z(file)->avail_in = (uInt) read;
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1043:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = (uint32_t) strlen( filename );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1073: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).
			len = strlen(ret->iofsl->multifile_name);
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1074:4:  [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(ret->iofsl->multifile_name + len, ".z", 3);
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1081:4:  [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(ret->iofsl->indexfile_name + len, ".z", 3);
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1082: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).
			len = strlen( ret->iofsl->multifile_name );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1125:4:  [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( ret->iofsl->multifile_name + len, ".z", 3 );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1268: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).
		len = strlen( ret->filename );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1324:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	size_t read;
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1349:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ( read != toread ) {
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1352:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					__FUNCTION__, __FILE__, __LINE__, toread, read);
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1355:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		length -= read;
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1357:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		dest += read;
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1358:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		file->iofsl->data_left -= read;
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1359:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		actual_length = read;
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1386:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ( read != toread ) {
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1389:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
					__FUNCTION__, __FILE__, __LINE__, toread, read);
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1393:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		length -= read;
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1395:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		dest += read;
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1396:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		file->iofsl->data_left -= read;
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1397:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		actual_length += read;
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1547: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).
	size_t newfile_name_length = strlen(filename) + 2 + 8 + 2;
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1563: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).
	streamid_index = strlen(filename);
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1598: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).
	assert( streamid_index + strlen("all") + strlen( post_streamid_pos )
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1598:43:  [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).
	assert( streamid_index + strlen("all") + strlen( post_streamid_pos )
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1600:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy( iofsl->multifile_name , filename, streamid_index );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1604: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).
	assert( streamid_index + strlen("idx") + strlen( post_streamid_pos )
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1604:43:  [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).
	assert( streamid_index + strlen("idx") + strlen( post_streamid_pos )
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1606:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy( iofsl->indexfile_name, filename, streamid_index );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1621:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy( iofsl->id_str, &(filename[streamid_index]), id_str_len );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1637: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).
			size_t len = strlen( iofsl->multifile_name );
data/otf-1.12.5+dfsg/otflib/OTF_File_iofsl.c:1638: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).
			assert( len == strlen( iofsl->indexfile_name ) );
data/otf-1.12.5+dfsg/otflib/OTF_Filenames.c:53: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).
		l= (unsigned int) strlen( namestub ) + 1 + 1 + 10 + 1 + 10 + 2; /* is this right ??? - at least it´s more than enough */
data/otf-1.12.5+dfsg/otflib/OTF_Platform.c:87: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).
	len = (int)strlen(fmt) + 128;
data/otf-1.12.5+dfsg/otflib/OTF_Platform.c:88:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (i = 0; i < strlen(fmt); ++i) {
data/otf-1.12.5+dfsg/otflib/OTF_Platform.c:89: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).
		if ('%' == fmt[i] && i + 1 < strlen(fmt) && '%' != fmt[i + 1]) {
data/otf-1.12.5+dfsg/otflib/OTF_Platform.c:103:18:  [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 += (int)strlen(sarg);
data/otf-1.12.5+dfsg/otflib/OTF_Platform.c:160: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).
				if (i + 1 < strlen(fmt)) {
data/otf-1.12.5+dfsg/otflib/OTF_Platform.c:300: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).
	if (s == NULL || (c = (char*)malloc(strlen(s)+1)) == NULL) {
data/otf-1.12.5+dfsg/otflib/OTF_Platform.c:320: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).
	if( path == NULL || strlen( path ) == 0 ) {
data/otf-1.12.5+dfsg/otflib/OTF_Platform.c:322:18:  [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 if( path[strlen(path)-1] == *s ) {
data/otf-1.12.5+dfsg/otflib/OTF_RBuffer.c:663:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	size_t read;
data/otf-1.12.5+dfsg/otflib/OTF_RBuffer.c:681:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rbuffer->end= (uint32_t) read;
data/otf-1.12.5+dfsg/otflib/OTF_Reader.c:1155:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int read;
data/otf-1.12.5+dfsg/otflib/OTF_Reader.c:1202:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if( 0 == read ) {
data/otf-1.12.5+dfsg/otflib/OTF_WBuffer.c:339: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).
	uint32_t l= (uint32_t) strlen( keyword );
data/otf-1.12.5+dfsg/otflib/OTF_WBuffer.c:368:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	uint32_t l= (uint32_t) (( NULL != string ) ? strlen( string ) : 0);
data/otf-1.12.5+dfsg/tests/read_from_buffer/read_from_buffer.c:69: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).
    newdefbuffer= OTF_RBuffer_open_with_external_buffer( strlen(txt), txt, 0 );
data/otf-1.12.5+dfsg/tools/otfaux/otfaux.cpp:146:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	uint64_t read;
data/otf-1.12.5+dfsg/tools/otfaux/otfaux.cpp:494: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).
        newdefnamestub= (char*)malloc( strlen( namestub ) + 1 + 6 + 1);
data/otf-1.12.5+dfsg/tools/otfcompress/otfcompress.c:230: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).
				if ( ( 2 >= strlen( infilename ) ) ||
data/otf-1.12.5+dfsg/tools/otfcompress/otfcompress.c:231: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).
				     ( 0 != strcmp( infilename +strlen( infilename ) -2, ".z" ) ) ) {
data/otf-1.12.5+dfsg/tools/otfcompress/otfcompress.c:240: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).
				outfilename[strlen( outfilename )-2] = '\0';
data/otf-1.12.5+dfsg/tools/otfcompress/otfcompress.c:278: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).
				if ( ( 2 < strlen( infilename ) ) &&
data/otf-1.12.5+dfsg/tools/otfcompress/otfcompress.c:279: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).
				     ( 0 == strcmp( infilename +strlen( infilename ) -2, ".z" ) ) ) {
data/otf-1.12.5+dfsg/tools/otfcompress/otfcompress.c:289: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( outfilename ) +2 < sizeof( outfilename ) )
data/otf-1.12.5+dfsg/tools/otfcompress/otfcompress.c:365:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	uint64_t read;
data/otf-1.12.5+dfsg/tools/otfcompress/otfcompress.c:417:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if ( 0 == read ) {
data/otf-1.12.5+dfsg/tools/otfcompress/otfcompress.c:422:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			totalin += read;
data/otf-1.12.5+dfsg/tools/otfcompress/otfcompress.c:423:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			z.avail_in= (uInt) read;
data/otf-1.12.5+dfsg/tools/otfcompress/otfcompress.c:489:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	uint64_t read;
data/otf-1.12.5+dfsg/tools/otfcompress/otfcompress.c:543:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if ( 0 == read ) {
data/otf-1.12.5+dfsg/tools/otfcompress/otfcompress.c:548:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			totalin += read;
data/otf-1.12.5+dfsg/tools/otfcompress/otfcompress.c:549:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			z.avail_in= (uInt) read;
data/otf-1.12.5+dfsg/tools/otfconfig/otfconfig.c:90:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy( includes, "-I"OTFCONFIG_INCLUDEDIR,
data/otf-1.12.5+dfsg/tools/otfconfig/otfconfig.c:98:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy( libs, "-L"OTFCONFIG_LIBDIR" "
data/otf-1.12.5+dfsg/tools/otfdump/otfdump.cpp:92:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	uint64_t read;
data/otf-1.12.5+dfsg/tools/otfinfo/otfinfo.c:131: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).
      if( p && strlen(p) >= 4 && strcmp(p, ".otf") == 0 )
data/otf-1.12.5+dfsg/tools/otfmerge/otfmerge.c:230: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).
    } else if( outfile[ strlen(outfile) -1 ] == '/' ) {
data/otf-1.12.5+dfsg/tools/otfmerge/otfmerge.c:232: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( outfile, "out", 3 );
data/otf-1.12.5+dfsg/tools/otfprofile/create_filter.cpp:68: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).
	ts[strlen(ts)-1] = '\0';
data/otf-1.12.5+dfsg/tools/otfprofile/otfprofile.cpp:608: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).
                    for (uint32_t j = 0; j < strlen(tok); j++)
data/otf-1.12.5+dfsg/tools/otfprofile/otfprofile.cpp:1423: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).
            vsnprintf( msg + strlen( msg ), sizeof( msg ) -1, fmt, ap );
data/otf-1.12.5+dfsg/tools/otfshrink/otfshrink.cpp:212:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for(uint32_t i = 0; i < strlen(str); i++) {
data/otf-1.12.5+dfsg/tools/otfshrink/otfshrink.cpp:213:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       for(uint32_t y = 0; y < strlen(delim); y++) {
data/otf-1.12.5+dfsg/tools/otfshrink/otfshrink.cpp:237: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).
    } else if( '-' == token [strlen(token)-1]) { 
data/otf-1.12.5+dfsg/tools/otfshrink/otfshrink.cpp:259: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).
	} else if( '-' == token [strlen(token)-1]) { 
data/otf-1.12.5+dfsg/tools/otfshrink/otfshrink.cpp:682:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	uint64_t read;

ANALYSIS SUMMARY:

Hits = 290
Lines analyzed = 80015 in approximately 1.88 seconds (42500 lines/second)
Physical Source Lines of Code (SLOC) = 45593
Hits@level = [0] 548 [1]  93 [2] 146 [3]   5 [4]  46 [5]   0
Hits@level+ = [0+] 838 [1+] 290 [2+] 197 [3+]  51 [4+]  46 [5+]   0
Hits/KSLOC@level+ = [0+] 18.38 [1+] 6.36063 [2+] 4.32084 [3+] 1.11859 [4+] 1.00893 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.