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/sphde-1.4.0/doc/sphmaindox.h Examining data/sphde-1.4.0/examples/example_sasindex.c Examining data/sphde-1.4.0/examples/example_sph_1.c Examining data/sphde-1.4.0/examples/example_sph_2_1.c Examining data/sphde-1.4.0/examples/example_sph_2_2.c Examining data/sphde-1.4.0/examples/example_sph_3.c Examining data/sphde-1.4.0/examples/example_sph_4.c Examining data/sphde-1.4.0/examples/example_sphtimer.c Examining data/sphde-1.4.0/src/bitv.c Examining data/sphde-1.4.0/src/bitv.h Examining data/sphde-1.4.0/src/bitv_priv.h Examining data/sphde-1.4.0/src/freenode.c Examining data/sphde-1.4.0/src/freenode.h Examining data/sphde-1.4.0/src/sasalloc.cpp Examining data/sphde-1.4.0/src/sasalloc.h Examining data/sphde-1.4.0/src/sasallocpriv.h Examining data/sphde-1.4.0/src/sasanchr.h Examining data/sphde-1.4.0/src/sasatom.c Examining data/sphde-1.4.0/src/sasatom.h Examining data/sphde-1.4.0/src/sasatom_generic.h Examining data/sphde-1.4.0/src/sasatom_i386.h Examining data/sphde-1.4.0/src/sasatom_powerpc.h Examining data/sphde-1.4.0/src/sasatom_x86_64.h Examining data/sphde-1.4.0/src/sascompoundheap.cpp Examining data/sphde-1.4.0/src/sascompoundheap.h Examining data/sphde-1.4.0/src/sasindex.cpp Examining data/sphde-1.4.0/src/sasindex.h Examining data/sphde-1.4.0/src/sasindexenum.cpp Examining data/sphde-1.4.0/src/sasindexenum.h Examining data/sphde-1.4.0/src/sasindexkey.h Examining data/sphde-1.4.0/src/sasindexnode.cpp Examining data/sphde-1.4.0/src/sasindexnode.h Examining data/sphde-1.4.0/src/sasindexnodepriv.h Examining data/sphde-1.4.0/src/sasindexpriv.h Examining data/sphde-1.4.0/src/sasio.c Examining data/sphde-1.4.0/src/sasio.h Examining data/sphde-1.4.0/src/sasiodef.h Examining data/sphde-1.4.0/src/saslock.cpp Examining data/sphde-1.4.0/src/saslock.h Examining data/sphde-1.4.0/src/saslockl.cpp Examining data/sphde-1.4.0/src/saslockl.h Examining data/sphde-1.4.0/src/sasmlock.cpp Examining data/sphde-1.4.0/src/sasmlock.h Examining data/sphde-1.4.0/src/sasmsync.c Examining data/sphde-1.4.0/src/sasmsync.h Examining data/sphde-1.4.0/src/sasostrm.h Examining data/sphde-1.4.0/src/sasshm.c Examining data/sphde-1.4.0/src/sasshm.h Examining data/sphde-1.4.0/src/sassim.h Examining data/sphde-1.4.0/src/sassimpleheap.cpp Examining data/sphde-1.4.0/src/sassimpleheap.h Examining data/sphde-1.4.0/src/sassimplespace.cpp Examining data/sphde-1.4.0/src/sassimplespace.h Examining data/sphde-1.4.0/src/sassimplestack.cpp Examining data/sphde-1.4.0/src/sassimplestack.h Examining data/sphde-1.4.0/src/sasstdio.h Examining data/sphde-1.4.0/src/sasstname.c Examining data/sphde-1.4.0/src/sasstname.h Examining data/sphde-1.4.0/src/sasstringbtree.cpp Examining data/sphde-1.4.0/src/sasstringbtree.h Examining data/sphde-1.4.0/src/sasstringbtreeenum.cpp Examining data/sphde-1.4.0/src/sasstringbtreeenum.h Examining data/sphde-1.4.0/src/sasstringbtreenode.cpp Examining data/sphde-1.4.0/src/sasstringbtreenode.h Examining data/sphde-1.4.0/src/sasstringbtreenodepriv.h Examining data/sphde-1.4.0/src/sasstringbtreepriv.h Examining data/sphde-1.4.0/src/sastype.h Examining data/sphde-1.4.0/src/sasulock.cpp Examining data/sphde-1.4.0/src/sasulock.h Examining data/sphde-1.4.0/src/sasutil.c Examining data/sphde-1.4.0/src/sphcompoundpcqheap.h Examining data/sphde-1.4.0/src/sphcontext.cpp Examining data/sphde-1.4.0/src/sphcontext.h Examining data/sphde-1.4.0/src/sphcontextpriv.h Examining data/sphde-1.4.0/src/sphdirectpcqueue.h Examining data/sphde-1.4.0/src/sphgettime.c Examining data/sphde-1.4.0/src/sphgettime.h Examining data/sphde-1.4.0/src/sphgtod.c Examining data/sphde-1.4.0/src/sphgtod.h Examining data/sphde-1.4.0/src/sphlfentry.h Examining data/sphde-1.4.0/src/sphlflogentry.h Examining data/sphde-1.4.0/src/sphlflogger.cpp Examining data/sphde-1.4.0/src/sphlflogger.h Examining data/sphde-1.4.0/src/sphlockfreeheap.cpp Examining data/sphde-1.4.0/src/sphlockfreeheap.h Examining data/sphde-1.4.0/src/sphlogportal.cpp Examining data/sphde-1.4.0/src/sphlogportal.h Examining data/sphde-1.4.0/src/sphmultipcqueue.h Examining data/sphde-1.4.0/src/sphsinglepcqueue.cpp Examining data/sphde-1.4.0/src/sphsinglepcqueue.h Examining data/sphde-1.4.0/src/sphthread.c Examining data/sphde-1.4.0/src/sphthread.h Examining data/sphde-1.4.0/src/sphtimer.c Examining data/sphde-1.4.0/src/sphtimer.h Examining data/sphde-1.4.0/src/tests/bitvec_t.c Examining data/sphde-1.4.0/src/tests/sasatom_t.c Examining data/sphde-1.4.0/src/tests/sascompoundheap_t.c Examining data/sphde-1.4.0/src/tests/sasindex_t.c Examining data/sphde-1.4.0/src/tests/sasindex_tt.c Examining data/sphde-1.4.0/src/tests/sasseg_t.c Examining data/sphde-1.4.0/src/tests/sasstringbtree_t.c Examining data/sphde-1.4.0/src/tests/sasstringbtree_tt.c Examining data/sphde-1.4.0/src/tests/sphcontext_t.c Examining data/sphde-1.4.0/src/tests/sphdirectpcqueue_ttt.c Examining data/sphde-1.4.0/src/tests/sphgettime_t.c Examining data/sphde-1.4.0/src/tests/sphgtod_t.c Examining data/sphde-1.4.0/src/tests/sphlflogger_t.c Examining data/sphde-1.4.0/src/tests/sphlflogger_tt.c Examining data/sphde-1.4.0/src/tests/sphlflogger_ttt.c Examining data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c Examining data/sphde-1.4.0/src/tests/sphlogportal_t.c Examining data/sphde-1.4.0/src/tests/sphlogportal_tt.c Examining data/sphde-1.4.0/src/tests/sphsinglepcqueue_t.c Examining data/sphde-1.4.0/src/tests/sphsinglepcqueue_tt.c Examining data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c Examining data/sphde-1.4.0/src/tests/sphthread_t.c Examining data/sphde-1.4.0/src/tests/sassim_t.c Examining data/sphde-1.4.0/src/tests/sphmultipcqueue_t.c Examining data/sphde-1.4.0/src/ultree.cpp Examining data/sphde-1.4.0/src/ultree.h Examining data/sphde-1.4.0/src/sassim.cpp Examining data/sphde-1.4.0/src/sasconf.h Examining data/sphde-1.4.0/src/sphmultipcqueue.cpp FINAL RESULTS: data/sphde-1.4.0/examples/example_sph_4.c:378:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (emp_info_t[i]->name, names[i]); data/sphde-1.4.0/examples/example_sph_4.c:379:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (emp_info_t[i]->address, address[i]); data/sphde-1.4.0/examples/example_sph_4.c:381:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (emp_info_t[i]->birthday, bday[i]); data/sphde-1.4.0/src/sasindexnode.cpp:13:20: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define sas_printf printf data/sphde-1.4.0/src/sasio.h:29:20: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define sas_printf printf data/sphde-1.4.0/src/sasio.h:30:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #define sas_sprintf sprintf data/sphde-1.4.0/src/sassim.cpp:1145:22: [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). sasStorePath = strcpy (sasStorePath, store_name); data/sphde-1.4.0/src/sassimpleheap.cpp:12:20: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define sas_printf printf data/sphde-1.4.0/src/sassimplespace.cpp:14:20: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define sas_printf printf data/sphde-1.4.0/src/sassimplestack.cpp:14:20: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define sas_printf printf data/sphde-1.4.0/src/sasstdio.h:56:9: [4] (buffer) scanf: 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 = scanf(format, args[0]); data/sphde-1.4.0/src/sasstdio.h:59:9: [4] (buffer) scanf: 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 = scanf(format, args[0], args[1]); data/sphde-1.4.0/src/sasstdio.h:62:9: [4] (buffer) scanf: 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 = scanf(format, args[0], args[1], args[2]); data/sphde-1.4.0/src/sasstdio.h:65:9: [4] (buffer) scanf: 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 = scanf(format, args[0], args[1], args[2], args[3]); data/sphde-1.4.0/src/sasstdio.h:68:9: [4] (buffer) scanf: 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 = scanf(format, args[0], args[1], args[2], args[3], args[4]); data/sphde-1.4.0/src/sasstdio.h:71:9: [4] (buffer) scanf: 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 = scanf(format, args[0], args[1], args[2], args[3], args[4], data/sphde-1.4.0/src/sasstdio.h:75:9: [4] (buffer) scanf: 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 = scanf(format, args[0], args[1], args[2], args[3], args[4], data/sphde-1.4.0/src/sasstdio.h:79:9: [4] (buffer) scanf: 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 = scanf(format, args[0], args[1], args[2], args[3], args[4], data/sphde-1.4.0/src/sasstdio.h:83:9: [4] (buffer) scanf: 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 = scanf(format, args[0], args[1], args[2], args[3], args[4], data/sphde-1.4.0/src/sasstdio.h:87:9: [4] (buffer) scanf: 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 = scanf(format, args[0], args[1], args[2], args[3], args[4], data/sphde-1.4.0/src/sasstdio.h:91:9: [4] (buffer) scanf: 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 = scanf(format, args[0], args[1], args[2], args[3], args[4], data/sphde-1.4.0/src/sasstdio.h:96:9: [4] (buffer) scanf: 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 = scanf(format, args[0], args[1], args[2], args[3], args[4], data/sphde-1.4.0/src/sasstdio.h:101:9: [4] (buffer) scanf: 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 = scanf(format, args[0], args[1], args[2], args[3], args[4], data/sphde-1.4.0/src/sasstdio.h:106:9: [4] (buffer) scanf: 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 = scanf(format, args[0], args[1], args[2], args[3], args[4], data/sphde-1.4.0/src/sasstdio.h:111:9: [4] (buffer) scanf: 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 = scanf(format, args[0], args[1], args[2], args[3], args[4], data/sphde-1.4.0/src/sasstdio.h:116:9: [4] (buffer) scanf: 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 = scanf(format, args[0], args[1], args[2], args[3], args[4], data/sphde-1.4.0/src/sasstdio.h:154: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(stream, format, args[0]); data/sphde-1.4.0/src/sasstdio.h:157: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(stream, format, args[0], args[1]); data/sphde-1.4.0/src/sasstdio.h:160: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(stream, format, args[0], args[1], args[2]); data/sphde-1.4.0/src/sasstdio.h:163: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(stream, format, args[0], args[1], args[2], args[3]); data/sphde-1.4.0/src/sasstdio.h:166: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(stream, format, data/sphde-1.4.0/src/sasstdio.h:170: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(stream, format, data/sphde-1.4.0/src/sasstdio.h:175: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(stream, format, data/sphde-1.4.0/src/sasstdio.h:180: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(stream, format, data/sphde-1.4.0/src/sasstdio.h:185: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(stream, format, data/sphde-1.4.0/src/sasstdio.h:190: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(stream, format, data/sphde-1.4.0/src/sasstdio.h:195: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(stream, format, data/sphde-1.4.0/src/sasstdio.h:201: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(stream, format, data/sphde-1.4.0/src/sasstdio.h:207: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(stream, format, data/sphde-1.4.0/src/sasstdio.h:213: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(stream, format, data/sphde-1.4.0/src/sasstdio.h:219: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(stream, format, data/sphde-1.4.0/src/sasstdio.h:225: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(stream, format, data/sphde-1.4.0/src/sasstdio.h:263:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. ret = sscanf(buffer, format, args[0]); data/sphde-1.4.0/src/sasstdio.h:266:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. ret = sscanf(buffer, format, args[0], args[1]); data/sphde-1.4.0/src/sasstdio.h:269:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. ret = sscanf(buffer, format, args[0], args[1], args[2]); data/sphde-1.4.0/src/sasstdio.h:272:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. ret = sscanf(buffer, format, args[0], args[1], args[2], args[3]); data/sphde-1.4.0/src/sasstdio.h:275:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. ret = sscanf(buffer, format, data/sphde-1.4.0/src/sasstdio.h:279:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. ret = sscanf(buffer, format, data/sphde-1.4.0/src/sasstdio.h:284:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. ret = sscanf(buffer, format, data/sphde-1.4.0/src/sasstdio.h:289:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. ret = sscanf(buffer, format, data/sphde-1.4.0/src/sasstdio.h:294:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. ret = sscanf(buffer, format, data/sphde-1.4.0/src/sasstdio.h:299:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. ret = sscanf(buffer, format, data/sphde-1.4.0/src/sasstdio.h:304:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. ret = sscanf(buffer, format, data/sphde-1.4.0/src/sasstdio.h:310:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. ret = sscanf(buffer, format, data/sphde-1.4.0/src/sasstdio.h:316:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. ret = sscanf(buffer, format, data/sphde-1.4.0/src/sasstdio.h:322:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. ret = sscanf(buffer, format, data/sphde-1.4.0/src/sasstdio.h:328:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. ret = sscanf(buffer, format, data/sphde-1.4.0/src/sasstdio.h:334:9: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. ret = sscanf(buffer, format, data/sphde-1.4.0/src/sasstdio.h:352:24: [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. sas_io->va_print = vprintf; /* set printf function pointer */ data/sphde-1.4.0/src/sasstdio.h:354:24: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sas_io->va_sprint= vsprintf; /* set sprintf function pointer */ data/sphde-1.4.0/src/sasstdio.h:356:35: [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. sas_io->va_fprint= (va_file_t)vfprintf; /* set fprintf function pointer */ data/sphde-1.4.0/src/sasstdio.h:372:36: [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. taskAnchor->sas_io->va_print = vprintf; /* set printf function pointer */ data/sphde-1.4.0/src/sasstdio.h:374:36: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. taskAnchor->sas_io->va_sprint= vsprintf; /* set sprintf function pointer */ data/sphde-1.4.0/src/sasstdio.h:376:47: [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. taskAnchor->sas_io->va_fprint= (va_file_t)vfprintf; /* set fprintf function pointer */ data/sphde-1.4.0/src/sasstname.c:23:20: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define sas_printf printf data/sphde-1.4.0/src/sasstringbtree.cpp:1449:32: [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). btree->common->max_key = strcpy (tempkey, key); data/sphde-1.4.0/src/sasstringbtree.cpp:1475:32: [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). btree->common->min_key = strcpy (tempkey, key); data/sphde-1.4.0/src/sasstringbtreenode.cpp:13:20: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define sas_printf printf data/sphde-1.4.0/src/sasstringbtreenode.cpp:1228:21: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). node->keys[pos] = strcpy (tempkey, key); data/sphde-1.4.0/src/sasstringbtreenode.cpp:1257:21: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). node->keys[pos] = strcpy (tempkey, key); data/sphde-1.4.0/src/sasstringbtreenode.cpp:1289:21: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). node->keys[pos] = strcpy (tempkey, key); data/sphde-1.4.0/src/sasutil.c:198:5: [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(optstr, ap); data/sphde-1.4.0/src/sasutil.c:226:3: [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, optstr, ap); data/sphde-1.4.0/src/sphcontext.cpp:12:20: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define sas_printf printf data/sphde-1.4.0/src/sphcontext.cpp:203:14: [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). buff = strcpy(buff, key); data/sphde-1.4.0/src/sphlfentry.h:487:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (ptr, value); data/sphde-1.4.0/src/sphlflogentry.h:419:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (ptr, value); data/sphde-1.4.0/src/sphlflogger.cpp:14:20: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define sas_printf printf data/sphde-1.4.0/src/sphlockfreeheap.cpp:13:20: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define sas_printf printf data/sphde-1.4.0/src/sphlogportal.cpp:14:20: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define sas_printf printf data/sphde-1.4.0/src/sphmultipcqueue.cpp:18:20: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define sas_printf printf data/sphde-1.4.0/src/sphsinglepcqueue.cpp:14:20: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define sas_printf printf data/sphde-1.4.0/src/tests/sascompoundheap_t.c:62:3: [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, fmt, args); data/sphde-1.4.0/src/tests/sascompoundheap_t.c:75:3: [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, args); data/sphde-1.4.0/src/tests/sasindex_t.c:38:3: [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, fmt, args); data/sphde-1.4.0/src/tests/sasindex_t.c:51:3: [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, args); data/sphde-1.4.0/src/tests/sasindex_tt.c:39:3: [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, fmt, args); data/sphde-1.4.0/src/tests/sasindex_tt.c:52:3: [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, args); data/sphde-1.4.0/src/tests/sasseg_t.c:58:3: [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, fmt, args); data/sphde-1.4.0/src/tests/sasseg_t.c:71:3: [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, args); data/sphde-1.4.0/src/tests/sassim_t.c:51:3: [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, fmt, args); data/sphde-1.4.0/src/tests/sassim_t.c:64:3: [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, args); data/sphde-1.4.0/src/tests/sasstringbtree_t.c:37:3: [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, fmt, args); data/sphde-1.4.0/src/tests/sasstringbtree_t.c:50:3: [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, args); data/sphde-1.4.0/src/tests/sasstringbtree_tt.c:41:3: [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, fmt, args); data/sphde-1.4.0/src/tests/sasstringbtree_tt.c:54:3: [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, args); data/sphde-1.4.0/src/tests/sphcontext_t.c:41:3: [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, fmt, args); data/sphde-1.4.0/src/tests/sphcontext_t.c:54:3: [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, args); data/sphde-1.4.0/src/tests/sphdirectpcqueue_ttt.c:98:3: [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, fmt, args); data/sphde-1.4.0/src/tests/sphdirectpcqueue_ttt.c:111:3: [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, args); data/sphde-1.4.0/src/tests/sphlflogger_tt.c:71:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buff, "/proc/%s/maps", pid); data/sphde-1.4.0/src/tests/sphlflogger_ttt.c:198:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buff, "/proc/%s/maps", pid); data/sphde-1.4.0/src/tests/sphlogportal_tt.c:76:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buff, "/proc/%s/maps", pid); data/sphde-1.4.0/src/tests/sphmultipcqueue_t.c:36:27: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define debug_printf(...) printf(__VA_ARGS__) data/sphde-1.4.0/src/tests/sphsinglepcqueue_tt.c:74:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (buff, "/proc/%s/maps", pid); data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:104:3: [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, fmt, args); data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:117:3: [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, args); data/sphde-1.4.0/examples/example_sph_1.c:59:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt(argc, argv, "b:w:rh")) != -1) { data/sphde-1.4.0/src/sassim.cpp:1212:14: [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. sas_path = getenv ("SASSTOREPATH"); data/sphde-1.4.0/src/sasutil.c:526:14: [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. sas_path = getenv("SASSTOREPATH"); data/sphde-1.4.0/src/sasutil.c:610:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt(argc, argv, "hvp:")) != -1) { data/sphde-1.4.0/examples/example_sph_4.c:54:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[NTEXTMAX]; data/sphde-1.4.0/examples/example_sph_4.c:55: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 address[NTEXTMAX]; data/sphde-1.4.0/examples/example_sph_4.c:57: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 birthday[NTEXTMAX]; data/sphde-1.4.0/examples/example_sph_4.c:61: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 names[20][20] = { "John", "James", "Jose", "Alice", "Tony", data/sphde-1.4.0/examples/example_sph_4.c:67: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 address[20][20] = { data/sphde-1.4.0/examples/example_sph_4.c:80: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 bday[20][20] = { data/sphde-1.4.0/examples/example_sph_4.c:86: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 indexes[2][10] = { "sasindex", "sasstring" }; data/sphde-1.4.0/src/sascompoundheap.cpp:266: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 (expandNew, list, sizeof (SASCompoundExpandList)); data/sphde-1.4.0/src/sasindexkey.h:144: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 (dest, src, src->copy_size); data/sphde-1.4.0/src/sasio.c:84:31: [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). return (taskAnchor->sas_io->fopen)(Path,Type); data/sphde-1.4.0/src/sasio.c:86:20: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return (*sas_io->fopen)(Path,Type); data/sphde-1.4.0/src/sasiodef.h:41:11: [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)(const char *,const char *); data/sphde-1.4.0/src/sasmlock.cpp:24:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char XOMA1HASHTABLE[256] = { data/sphde-1.4.0/src/sasmlock.cpp:316:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char h[8]; data/sphde-1.4.0/src/sasmlock.cpp:318:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char h[4]; data/sphde-1.4.0/src/sassim.cpp:600: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). fd = open (name, O_RDWR); data/sphde-1.4.0/src/sassim.cpp:658:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[STORE_NAME_SIZE]; data/sphde-1.4.0/src/sassim.cpp:691:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[STORE_NAME_SIZE]; data/sphde-1.4.0/src/sassim.cpp:718:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[STORE_NAME_SIZE]; data/sphde-1.4.0/src/sassim.cpp:981: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 storeName[STORE_NAME_SIZE]; data/sphde-1.4.0/src/sassim.cpp:1010: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 storeName[STORE_NAME_SIZE]; data/sphde-1.4.0/src/sassim.cpp:1208: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 storeName[STORE_NAME_SIZE]; data/sphde-1.4.0/src/sasstname.c:74:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[STORE_NAME_SIZE]; data/sphde-1.4.0/src/sasstname.c:91: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). rc = open (name, (O_CREAT | O_EXCL | O_RDWR), (0766)); data/sphde-1.4.0/src/sasstname.c:134:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[STORE_NAME_SIZE]; data/sphde-1.4.0/src/sasstname.c:169:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[STORE_NAME_SIZE]; data/sphde-1.4.0/src/sasstringbtreeenum.cpp:35: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 entryString[sizeof (void *)]; data/sphde-1.4.0/src/sasstringbtreeenum.cpp:94:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy ((char *) &stringenum->entryString[0], data/sphde-1.4.0/src/sasutil.c:405:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char chars[20]; data/sphde-1.4.0/src/sasutil.c:478: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 sasChar[4]; data/sphde-1.4.0/src/sasutil.c:552: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 path[MAXPATHLEN]; data/sphde-1.4.0/src/sasutil.c:553: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 procname[MAX_LINE_LEN]; data/sphde-1.4.0/src/sasutil.c:559:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). arq = fopen(path, "r"); data/sphde-1.4.0/src/sasutil.c:575: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 path[MAXPATHLEN]; data/sphde-1.4.0/src/sasutil.c:576:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[MAX_LINE_LEN]; data/sphde-1.4.0/src/sasutil.c:591:11: [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). arq = fopen(path, "r"); data/sphde-1.4.0/src/sphthread.c:26:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char sph_cmdLine[256]; data/sphde-1.4.0/src/sphthread.c:31: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 procFile[32]; data/sphde-1.4.0/src/sphthread.c:36: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). fd = open (procFile, O_RDONLY); data/sphde-1.4.0/src/sphtimer.c:26:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/sphde-1.4.0/src/sphtimer.c:34: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). fd = open ("/proc/cpuinfo", O_RDONLY); data/sphde-1.4.0/src/sphtimer.c:51:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf, buf + hcnt, hcnt); data/sphde-1.4.0/src/sphtimer.c:92:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/sphde-1.4.0/src/sphtimer.c:98: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). fd = open ("/proc/cpuinfo", O_RDONLY); data/sphde-1.4.0/src/tests/sasatom_t.c:618: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 number[160]; data/sphde-1.4.0/src/tests/sasatom_t.c:619: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(number, "tf(%ld): begin", (long)arg); data/sphde-1.4.0/src/tests/sasatom_t.c:625: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(number, "tf(%ld): sas_spin_trylock", (long)arg); data/sphde-1.4.0/src/tests/sasatom_t.c:630: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(number, "tf(%ld): end", (long)arg); data/sphde-1.4.0/src/tests/sasatom_t.c:635: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(number, "tf(%ld): sas_spin_lock_with_yield", (long)arg); data/sphde-1.4.0/src/tests/sasatom_t.c:640: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(number, "tf(%ld): end", (long)arg); data/sphde-1.4.0/src/tests/sasatom_t.c:713: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 number[160]; data/sphde-1.4.0/src/tests/sasatom_t.c:714: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(number, "tf_for(%ld): begin", (long)arg); data/sphde-1.4.0/src/tests/sasatom_t.c:722: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(number, "tf_for(%ld): sas_atomic_inc_long(%p)=%ld", data/sphde-1.4.0/src/tests/sasatom_t.c:729: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(number, "tf_for(%ld): end", (long)arg); data/sphde-1.4.0/src/tests/sascompoundheap_t.c:89:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char chars[20]; data/sphde-1.4.0/src/tests/sascompoundheap_t.c:168: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 (temp3, "heap_%d", 8); data/sphde-1.4.0/src/tests/sascompoundheap_t.c:185: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 (temp4, "near_%d", 8); data/sphde-1.4.0/src/tests/sascompoundheap_t.c:215: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 (temp5, "heap_%d", 12); data/sphde-1.4.0/src/tests/sascompoundheap_t.c:228: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 (temp6, "near_%d", 20); data/sphde-1.4.0/src/tests/sascompoundheap_t.c:313: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 (temp3, "heap_%d", 8); data/sphde-1.4.0/src/tests/sascompoundheap_t.c:335: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 (temp4, "near_%d", 8); data/sphde-1.4.0/src/tests/sascompoundheap_t.c:368: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 (temp5, "heap_%d", 12); data/sphde-1.4.0/src/tests/sascompoundheap_t.c:381: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 (temp6, "near_%d", 20); data/sphde-1.4.0/src/tests/sasindex_t.c:66:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char chars[20]; data/sphde-1.4.0/src/tests/sasindex_t.c:2641: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 str[64]; data/sphde-1.4.0/src/tests/sasindex_t.c:2642: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 str2[4] = " "; data/sphde-1.4.0/src/tests/sasseg_t.c:184:25: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. shared_block->block1 = strcpy (new_block, "new_block 1"); data/sphde-1.4.0/src/tests/sasseg_t.c:248:25: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. shared_block->block2 = strcpy (new_block, "new_block 2"); data/sphde-1.4.0/src/tests/sasseg_t.c:308:25: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. shared_block->block3 = strcpy (new_block3, "new_block 3"); data/sphde-1.4.0/src/tests/sassim_t.c:78:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char chars[20]; data/sphde-1.4.0/src/tests/sassim_t.c:105: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 fileName[STORE_NAME_SIZE]; data/sphde-1.4.0/src/tests/sassim_t.c:154: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 (baseAddr2, "SAS Page 0@%p", baseAddr1); data/sphde-1.4.0/src/tests/sassim_t.c:160:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (pageX, "SAS Page %ld@%p", page_num, pageX_ptr); data/sphde-1.4.0/src/tests/sassim_t.c:267: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 (temp1, "heap-%2d ", 12); data/sphde-1.4.0/src/tests/sassim_t.c:282: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 (temp2, "heap-%2d ", 20); data/sphde-1.4.0/src/tests/sassim_t.c:293: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 (temp3, "heap-%d", 8); data/sphde-1.4.0/src/tests/sassim_t.c:304: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 (temp4, "near-%d", 8); data/sphde-1.4.0/src/tests/sassim_t.c:315: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 (temp5, "near-%d", 12); data/sphde-1.4.0/src/tests/sassim_t.c:327: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 (temp6, "block-%ld", rSize); data/sphde-1.4.0/src/tests/sassim_t.c:419: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 (temp1, "heap-%2d ", 12); data/sphde-1.4.0/src/tests/sassim_t.c:430: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 (temp2, "heap-%2d ", 20); data/sphde-1.4.0/src/tests/sassim_t.c:441: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 (temp3, "heap-%d", 8); data/sphde-1.4.0/src/tests/sassim_t.c: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 (temp4, "near-%d", 8); data/sphde-1.4.0/src/tests/sassim_t.c:463: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 (temp5, "near-%d", 12); data/sphde-1.4.0/src/tests/sasstringbtree_t.c:64:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char chars[20]; data/sphde-1.4.0/src/tests/sasstringbtree_t.c:134: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 chr, str[128], keylist[128]; data/sphde-1.4.0/src/tests/sasstringbtree_t.c:135: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 str2[4] = " "; data/sphde-1.4.0/src/tests/sasstringbtree_t.c:351: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 str[64]; data/sphde-1.4.0/src/tests/sasstringbtree_t.c:352: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 str2[4] = " "; data/sphde-1.4.0/src/tests/sasstringbtree_tt.c:120: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 *keylist[LARGE_KEY_COUNT]; data/sphde-1.4.0/src/tests/sasstringbtree_tt.c:567: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 *keylist[LARGE_KEY_COUNT]; data/sphde-1.4.0/src/tests/sasstringbtree_tt.c:1014: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 *keylist[LARGE_KEY_COUNT]; data/sphde-1.4.0/src/tests/sasstringbtree_tt.c:1066: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. keyref = (char *) keylist[i]; data/sphde-1.4.0/src/tests/sasstringbtree_tt.c:1453: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 *keylist[LARGE_KEY_COUNT]; data/sphde-1.4.0/src/tests/sphcontext_t.c:69:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char chars[20]; data/sphde-1.4.0/src/tests/sphcontext_t.c:103: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 str[64]; data/sphde-1.4.0/src/tests/sphcontext_t.c:104: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 str3[64]; data/sphde-1.4.0/src/tests/sphcontext_t.c:105: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 str4[64]; data/sphde-1.4.0/src/tests/sphcontext_t.c:192:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. txtstr = strcpy (str, "aLongContextName"); data/sphde-1.4.0/src/tests/sphcontext_t.c:233:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. txtstr = strcpy (str3, "aLongerrrrrrContextName"); data/sphde-1.4.0/src/tests/sphcontext_t.c:307:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. txtstr = strcpy (str4, "anotherContextName"); data/sphde-1.4.0/src/tests/sphcontext_t.c:413:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. txtstr = strcpy (str4, "anotherContextName2"); data/sphde-1.4.0/src/tests/sphcontext_t.c:429:12: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. txtstr = strcpy (str4, "anotherContextName3"); data/sphde-1.4.0/src/tests/sphcontext_t.c:484: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 ntext[NTEXTMAX]; data/sphde-1.4.0/src/tests/sphdirectpcqueue_ttt.c:125:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char chars[20]; data/sphde-1.4.0/src/tests/sphdirectpcqueue_ttt.c:466: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 number[128]; data/sphde-1.4.0/src/tests/sphdirectpcqueue_ttt.c:467:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (number, "test_thread_Producer_pinger(%p, %d, %ld)\n", pcqueue, data/sphde-1.4.0/src/tests/sphdirectpcqueue_ttt.c:497: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 number[128]; data/sphde-1.4.0/src/tests/sphdirectpcqueue_ttt.c:498:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (number, "test_thread_Producer_ponger(%p, %d, %ld)\n", pcqueue, data/sphde-1.4.0/src/tests/sphdirectpcqueue_ttt.c:529: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 number[128]; data/sphde-1.4.0/src/tests/sphdirectpcqueue_ttt.c:530:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (number, "test_thread_Producer_pingpause(%p, %d, %ld)\n", pcqueue, data/sphde-1.4.0/src/tests/sphdirectpcqueue_ttt.c:560: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 number[128]; data/sphde-1.4.0/src/tests/sphdirectpcqueue_ttt.c:561:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (number, "test_thread_Producer_ponger(%p, %d, %ld)\n", pcqueue, data/sphde-1.4.0/src/tests/sphdirectpcqueue_ttt.c:594: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 number[128]; data/sphde-1.4.0/src/tests/sphdirectpcqueue_ttt.c:595: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 (number, "test_thread_Producer_fasterfill(%p, %d, %ld)\n", pcqueue, data/sphde-1.4.0/src/tests/sphdirectpcqueue_ttt.c:628: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 number[128]; data/sphde-1.4.0/src/tests/sphdirectpcqueue_ttt.c:629: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 (number, "test_thread_consumer_verify(%p, %d, %ld)\n", pcqueue, data/sphde-1.4.0/src/tests/sphdirectpcqueue_ttt.c:676: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 buf[1024]; data/sphde-1.4.0/src/tests/sphdirectpcqueue_ttt.c:687: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 number[128]; data/sphde-1.4.0/src/tests/sphdirectpcqueue_ttt.c:689: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 (number, "ltt(%d, %d, @%p, @%p): begin", tn, tid, pqueue, cqueue); data/sphde-1.4.0/src/tests/sphdirectpcqueue_ttt.c:696: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 (number, "ltt(%d, %d): end", tn, tid); data/sphde-1.4.0/src/tests/sphlflogger_t.c:69:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp0, "temp0"); data/sphde-1.4.0/src/tests/sphlflogger_t.c:103:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp1, "temp1"); data/sphde-1.4.0/src/tests/sphlflogger_t.c:126:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp2, "temp2"); data/sphde-1.4.0/src/tests/sphlflogger_t.c:149:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp3, "temp3"); data/sphde-1.4.0/src/tests/sphlflogger_t.c:312:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp0, "temp0"); data/sphde-1.4.0/src/tests/sphlflogger_t.c:346:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp1, "temp1"); data/sphde-1.4.0/src/tests/sphlflogger_t.c:369:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp2, "temp2"); data/sphde-1.4.0/src/tests/sphlflogger_t.c:392:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp3, "temp3"); data/sphde-1.4.0/src/tests/sphlflogger_t.c:522:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp0, "temp0"); data/sphde-1.4.0/src/tests/sphlflogger_t.c:548:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp1, "temp1"); data/sphde-1.4.0/src/tests/sphlflogger_t.c:574:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp2, "temp2"); data/sphde-1.4.0/src/tests/sphlflogger_t.c:600:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp3, "temp3"); data/sphde-1.4.0/src/tests/sphlflogger_t.c:1176:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp0, "temp0"); data/sphde-1.4.0/src/tests/sphlflogger_t.c:3657: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 a[stack_buff_size], b[stack_buff_size]; data/sphde-1.4.0/src/tests/sphlflogger_tt.c:43:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(fileName, "r"); data/sphde-1.4.0/src/tests/sphlflogger_tt.c:63:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[32]; data/sphde-1.4.0/src/tests/sphlflogger_tt.c:64: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(buff, "/proc/%d/maps", pid); data/sphde-1.4.0/src/tests/sphlflogger_tt.c:70: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 buff[32]; data/sphde-1.4.0/src/tests/sphlflogger_ttt.c:65:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char number[128]; data/sphde-1.4.0/src/tests/sphlflogger_ttt.c:72: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(number, "ltt(%d, %d, @%p): begin", tn, tid, logger); data/sphde-1.4.0/src/tests/sphlflogger_ttt.c:79: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(number, "ltt(%d, %d): end", tn, tid); data/sphde-1.4.0/src/tests/sphlflogger_ttt.c:94:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char number[128]; data/sphde-1.4.0/src/tests/sphlflogger_ttt.c:99: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(number, "ltt(%d, %d): begin", tn, tid); data/sphde-1.4.0/src/tests/sphlflogger_ttt.c:106: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(number, "ltt(%d, %d): end", tn, tid); data/sphde-1.4.0/src/tests/sphlflogger_ttt.c:170:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(fileName, "r"); data/sphde-1.4.0/src/tests/sphlflogger_ttt.c:190:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[32]; data/sphde-1.4.0/src/tests/sphlflogger_ttt.c:191: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(buff, "/proc/%d/maps", pid); data/sphde-1.4.0/src/tests/sphlflogger_ttt.c:197:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[32]; data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:64:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp0, "temp0"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:123:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp1, "temp1"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:150:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp2, "temp2"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:236:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp1, "temp1"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:263:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp2, "temp2"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:290:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp3, "temp3"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:367:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp1, "temp1"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:394:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp2, "temp2"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:446:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp1, "temp1"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:503:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp1, "temp1"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:664:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp0, "temp0"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:696:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp1, "temp1"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:728:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp2, "temp2"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:801:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp3, "temp3"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:864:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp0, "temp0"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:900:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp1, "temp1"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:926:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp2, "temp2"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:997:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp3, "temp3"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:1079:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp0, "temp0"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:1099:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp2, "temp2"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:1372:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp0, "temp0"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:1402:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp1, "temp1"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:1422:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp2, "temp2"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:1454:6: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp2, "temp2"); data/sphde-1.4.0/src/tests/sphlockfreeheap_t.c:2482: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 a[stack_buff_size], b[stack_buff_size]; data/sphde-1.4.0/src/tests/sphlogportal_t.c:283:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp0, "temp0"); data/sphde-1.4.0/src/tests/sphlogportal_t.c:306:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp1, "temp1"); data/sphde-1.4.0/src/tests/sphlogportal_t.c:329:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp2, "temp2"); data/sphde-1.4.0/src/tests/sphlogportal_t.c:352:7: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp3, "temp3"); data/sphde-1.4.0/src/tests/sphlogportal_t.c:1209: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 a[(stack_block_size * 6)], b[stack_buff_size]; data/sphde-1.4.0/src/tests/sphlogportal_tt.c:48:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(fileName, "r"); data/sphde-1.4.0/src/tests/sphlogportal_tt.c:68:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[32]; data/sphde-1.4.0/src/tests/sphlogportal_tt.c:69: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(buff, "/proc/%d/maps", pid); data/sphde-1.4.0/src/tests/sphlogportal_tt.c:75: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 buff[32]; data/sphde-1.4.0/src/tests/sphmultipcqueue_t.c:58: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 unit[128] __attribute__ ((aligned (128))); data/sphde-1.4.0/src/tests/sphmultipcqueue_t.c:849:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/sphde-1.4.0/src/tests/sphsinglepcqueue_t.c:100:11: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp0, "temp0"); data/sphde-1.4.0/src/tests/sphsinglepcqueue_t.c:194:11: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp1, "temp1"); data/sphde-1.4.0/src/tests/sphsinglepcqueue_t.c:264:11: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp2, "temp2"); data/sphde-1.4.0/src/tests/sphsinglepcqueue_t.c:334:11: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp3, "temp3"); data/sphde-1.4.0/src/tests/sphsinglepcqueue_t.c:1758:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp0, "temp0"); data/sphde-1.4.0/src/tests/sphsinglepcqueue_t.c:1782:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp1, "temp1"); data/sphde-1.4.0/src/tests/sphsinglepcqueue_t.c:1806:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp2, "temp2"); data/sphde-1.4.0/src/tests/sphsinglepcqueue_t.c:1830:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (temp3, "temp3"); data/sphde-1.4.0/src/tests/sphsinglepcqueue_t.c:7090: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 a[stack_buff_size], b[stack_buff_size]; data/sphde-1.4.0/src/tests/sphsinglepcqueue_tt.c:42: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). fp = fopen (fileName, "r"); data/sphde-1.4.0/src/tests/sphsinglepcqueue_tt.c:65:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[32]; data/sphde-1.4.0/src/tests/sphsinglepcqueue_tt.c:66: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 (buff, "/proc/%d/maps", pid); data/sphde-1.4.0/src/tests/sphsinglepcqueue_tt.c:73: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 buff[32]; data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:61: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 unit[128] __attribute__ ((aligned (128))); data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:131:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char chars[20]; data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:656:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char number[128]; data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:657:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (number, "lfPCQentry_test(%p, %d) SPHSinglePCQueueFull\n", data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:667:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (number, "lfPCQentry_test(%p, %d) retry handle=%p\n", pcqueue, data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:698:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char number[128]; data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:699:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (number, "lfPCQentry_verify(%p, %d) SPHSinglePCQueueEmpty\n", data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:709:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (number, "lfPCQentry_verify(%p, %d) retry handle=%p\n", pcqueue, data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:756: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 number[128]; data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:757: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 (number, "test_thread_Producer_fill(%p, %d, %ld)\n", pcqueue, data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:788: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 number[128]; data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:789: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 (number, "test_thread_consumer_verify(%p, %d, %ld)\n", pcqueue, data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:822: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 number[512]; data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:825: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 (number, "test_thread_Producer_waitfill(%p, %p, %d, %ld)\n", data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:834: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 (number, "test_thread_Producer_waitfill() sem_wait @%p @%p\n", pwait, cwait); data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:857:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. len = sprintf (number, "test_thread_Producer_waitfill() csem.waiting %d empty %d\n", data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:875: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 (numptr, "test_thread_Producer_waitfill() exiting\n", data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:891: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 number[128]; data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:892: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 (number, "test_thread_consumer_waitverify(%p, %p, %d, %ld)\n", data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:901: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 (number, "test_thread_consumer_waitverify() sem_wait @%p @%p\n", pwait, cwait); data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:921: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 (number, "test_thread_consumer_waitverify() psem.waiting %d empty %d\n", data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:924: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 (number, "test_thread_consumer_waitverify() csem.waiting %d empty %d\n", data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:941: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 number[512]; data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:944: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 (number, "test_thread_consumer_waittransfer(%p, %p, %d, %ld)\n", data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:955: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 (number, "test_thread_consumer_waittransfer() sem_wait @%p @%p sem_wait2 @%p @%p\n", data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:979:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. len = sprintf (number, "test_thread_consumer_waittransfer() csem.waiting %d empty %d\n", data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:997: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 (numptr, "test_thread_consumer_waittransfer() exiting\n", data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:1014: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 number[512]; data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:1017: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 (number, "test_thread_consumer_waittransfercopy(%p, %p, %d, %ld)\n", data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:1028: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 (number, "test_thread_consumer_waittransfercopy() sem_wait @%p @%p sem_wait2 @%p @%p\n", data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:1052:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. len = sprintf (number, "test_thread_consumer_waittransfercopy() csem.waiting %d empty %d\n", data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:1070: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 (numptr, "test_thread_consumer_waittransfercopy() exiting\n", data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:1085: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 number[128]; data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:1086: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 (number, "test_thread_Producer_fastfill(%p, %d, %ld)\n", pcqueue, data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:1117: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 number[128]; data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:1118: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 (number, "test_thread_consumer_verify(%p, %d, %ld)\n", pcqueue, data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:1156: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 number[128]; data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:1158: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 (number, "ltt(%d, %d, @%p, @%p): begin", tn, tid, pqueue, cqueue); data/sphde-1.4.0/src/tests/sphsinglepcqueue_ttt.c:1165: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 (number, "ltt(%d, %d): end", tn, tid); data/sphde-1.4.0/src/tests/sphthread_t.c:33: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 number[160]; data/sphde-1.4.0/src/tests/sphthread_t.c:38: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 (number, "tt1(%ld): begin[%d,%d]", (long) arg, th_pid, th_tid); data/sphde-1.4.0/src/tests/sphthread_t.c:43:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (number, "tt1(%ld): sphdeGetPID=%d should be %d", data/sphde-1.4.0/src/tests/sphthread_t.c:51:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (number, "tt1(%ld): sphdeGetTID=%d should be %d", data/sphde-1.4.0/src/tests/sphthread_t.c:62:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (number, "tt1(%ld): sphdeGetPID=%d should be %d", data/sphde-1.4.0/src/tests/sphthread_t.c:70:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (number, "tt1(%ld): sphdeGetTID=%d should be %d", data/sphde-1.4.0/src/tests/sphthread_t.c:77: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 (number, "tt1(%ld): end", (long) arg); data/sphde-1.4.0/src/sassim.cpp:1142: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). pathlen = strlen (store_name); data/sphde-1.4.0/src/sasstringbtree.cpp:1447: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). key_len = strlen (key) + 1; data/sphde-1.4.0/src/sasstringbtree.cpp:1458: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). key_len = strlen (oldkey) + 1; data/sphde-1.4.0/src/sasstringbtree.cpp:1473: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). key_len = strlen (key) + 1; data/sphde-1.4.0/src/sasstringbtree.cpp:1484: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). key_len = strlen (oldkey) + 1; data/sphde-1.4.0/src/sasstringbtree.cpp:1830: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). key_len = strlen (key_str) + 1; data/sphde-1.4.0/src/sasstringbtree.cpp:1915: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). key_len = strlen (key_str) + 1; data/sphde-1.4.0/src/sasstringbtreeenum.cpp:76: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). size_t startkey_len = strlen (start_key) + 1; data/sphde-1.4.0/src/sasstringbtreenode.cpp:1225:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int key_len = strlen (key) + 1; data/sphde-1.4.0/src/sasstringbtreenode.cpp:1232: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). int keylen = strlen (oldkey) + 1; data/sphde-1.4.0/src/sasstringbtreenode.cpp:1254:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int key_len = strlen (key) + 1; data/sphde-1.4.0/src/sasstringbtreenode.cpp:1261: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). int keylen = strlen (oldkey) + 1; data/sphde-1.4.0/src/sasstringbtreenode.cpp:1275: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). int keylen = strlen (oldkey) + 1; data/sphde-1.4.0/src/sasstringbtreenode.cpp:1286:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int key_len = strlen (key) + 1; data/sphde-1.4.0/src/sasstringbtreenode.cpp:1318: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). key_len = strlen (temp_key) + 1; data/sphde-1.4.0/src/sasstringbtreenode.cpp:1419: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). key_len = strlen (temp_key) + 1; data/sphde-1.4.0/src/sasstringbtreenode.cpp:1598: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). key_len = strlen (temp_key) + 1; data/sphde-1.4.0/src/sasstringbtreenode.cpp:1723: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). key_len = strlen (temp_key) + 1; data/sphde-1.4.0/src/sasstringbtreenode.cpp:1777: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). key_len = strlen (temp_key) + 1; data/sphde-1.4.0/src/sasutil.c:539: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). slash = cmdline + strlen(cmdline); data/sphde-1.4.0/src/sphcontext.cpp:196: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). block_size_t alloc_size = strlen(key) + 1; data/sphde-1.4.0/src/sphcontext.cpp:404: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). int strsize = strlen(strbuff) + 1; data/sphde-1.4.0/src/sphcontext.cpp:484: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). int strsize = strlen(strbuff); data/sphde-1.4.0/src/sphlfentry.h:482:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int vlen = (strlen(value) + 1); data/sphde-1.4.0/src/sphlfentry.h:833:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int vlen = (strlen(ptr) + 1); data/sphde-1.4.0/src/sphlflogentry.h:414:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int vlen = (strlen(value) + 1); data/sphde-1.4.0/src/sphlflogentry.h:765:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int vlen = (strlen(ptr) + 1); data/sphde-1.4.0/src/sphthread.c:39:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cnt = read (fd, sph_cmdLine, sizeof (sph_cmdLine)); data/sphde-1.4.0/src/sphtimer.c:43:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cnt = read (fd, buf, sizeof (buf)); data/sphde-1.4.0/src/sphtimer.c:53:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cnt = read (fd, buf + hcnt, hcnt); data/sphde-1.4.0/src/sphtimer.c:103:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). cnt = read (fd, buf, sizeof (buf)); data/sphde-1.4.0/src/tests/sasseg_t.c:87:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep (1000); data/sphde-1.4.0/src/tests/sphcontext_t.c:296:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(txtstr2) != strlen(str)) data/sphde-1.4.0/src/tests/sphcontext_t.c:296:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(txtstr2) != strlen(str)) data/sphde-1.4.0/src/tests/sphlflogger_tt.c:49:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc (fp); data/sphde-1.4.0/src/tests/sphlflogger_ttt.c:176:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc (fp); data/sphde-1.4.0/src/tests/sphlogportal_tt.c:54:10: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc (fp); data/sphde-1.4.0/src/tests/sphsinglepcqueue_t.c:267:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (strlen(temp2)+1), (sizeof(double))); data/sphde-1.4.0/src/tests/sphsinglepcqueue_t.c:272: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). temp2, (strlen(temp2)+1), (sizeof(double))); data/sphde-1.4.0/src/tests/sphsinglepcqueue_t.c:277: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). temp2, (strlen(temp2)+1), (sizeof(double)), (void*)tptr); data/sphde-1.4.0/src/tests/sphsinglepcqueue_tt.c:48:8: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). c = fgetc (fp); ANALYSIS SUMMARY: Hits = 396 Lines analyzed = 75851 in approximately 1.88 seconds (40402 lines/second) Physical Source Lines of Code (SLOC) = 58934 Hits@level = [0] 3246 [1] 41 [2] 244 [3] 4 [4] 107 [5] 0 Hits@level+ = [0+] 3642 [1+] 396 [2+] 355 [3+] 111 [4+] 107 [5+] 0 Hits/KSLOC@level+ = [0+] 61.7979 [1+] 6.71938 [2+] 6.02369 [3+] 1.88346 [4+] 1.81559 [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.