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/node-nan-2.14.0/examples/async_pi_estimate/addon.cc Examining data/node-nan-2.14.0/examples/async_pi_estimate/async.cc Examining data/node-nan-2.14.0/examples/async_pi_estimate/async.h Examining data/node-nan-2.14.0/examples/async_pi_estimate/pi_est.cc Examining data/node-nan-2.14.0/examples/async_pi_estimate/pi_est.h Examining data/node-nan-2.14.0/examples/async_pi_estimate/sync.cc Examining data/node-nan-2.14.0/examples/async_pi_estimate/sync.h Examining data/node-nan-2.14.0/nan.h Examining data/node-nan-2.14.0/nan_callbacks.h Examining data/node-nan-2.14.0/nan_callbacks_12_inl.h Examining data/node-nan-2.14.0/nan_callbacks_pre_12_inl.h Examining data/node-nan-2.14.0/nan_converters.h Examining data/node-nan-2.14.0/nan_converters_43_inl.h Examining data/node-nan-2.14.0/nan_converters_pre_43_inl.h Examining data/node-nan-2.14.0/nan_define_own_property_helper.h Examining data/node-nan-2.14.0/nan_implementation_12_inl.h Examining data/node-nan-2.14.0/nan_implementation_pre_12_inl.h Examining data/node-nan-2.14.0/nan_json.h Examining data/node-nan-2.14.0/nan_maybe_43_inl.h Examining data/node-nan-2.14.0/nan_maybe_pre_43_inl.h Examining data/node-nan-2.14.0/nan_new.h Examining data/node-nan-2.14.0/nan_object_wrap.h Examining data/node-nan-2.14.0/nan_persistent_12_inl.h Examining data/node-nan-2.14.0/nan_persistent_pre_12_inl.h Examining data/node-nan-2.14.0/nan_private.h Examining data/node-nan-2.14.0/nan_string_bytes.h Examining data/node-nan-2.14.0/nan_typedarray_contents.h Examining data/node-nan-2.14.0/nan_weak.h Examining data/node-nan-2.14.0/test/cpp/accessors.cpp Examining data/node-nan-2.14.0/test/cpp/accessors2.cpp Examining data/node-nan-2.14.0/test/cpp/asyncprogressqueueworker.cpp Examining data/node-nan-2.14.0/test/cpp/asyncprogressqueueworkerstream.cpp Examining data/node-nan-2.14.0/test/cpp/asyncprogressworker.cpp Examining data/node-nan-2.14.0/test/cpp/asyncprogressworkersignal.cpp Examining data/node-nan-2.14.0/test/cpp/asyncprogressworkerstream.cpp Examining data/node-nan-2.14.0/test/cpp/asyncresource.cpp Examining data/node-nan-2.14.0/test/cpp/asyncworker.cpp Examining data/node-nan-2.14.0/test/cpp/asyncworkererror.cpp Examining data/node-nan-2.14.0/test/cpp/buffer.cpp Examining data/node-nan-2.14.0/test/cpp/bufferworkerpersistent.cpp Examining data/node-nan-2.14.0/test/cpp/callbackcontext.cpp Examining data/node-nan-2.14.0/test/cpp/converters.cpp Examining data/node-nan-2.14.0/test/cpp/error.cpp Examining data/node-nan-2.14.0/test/cpp/gc.cpp Examining data/node-nan-2.14.0/test/cpp/indexedinterceptors.cpp Examining data/node-nan-2.14.0/test/cpp/isolatedata.cpp Examining data/node-nan-2.14.0/test/cpp/json-parse.cpp Examining data/node-nan-2.14.0/test/cpp/json-stringify.cpp Examining data/node-nan-2.14.0/test/cpp/makecallback.cpp Examining data/node-nan-2.14.0/test/cpp/maybe.cpp Examining data/node-nan-2.14.0/test/cpp/morenews.cpp Examining data/node-nan-2.14.0/test/cpp/multifile1.cpp Examining data/node-nan-2.14.0/test/cpp/multifile2.cpp Examining data/node-nan-2.14.0/test/cpp/multifile2.h Examining data/node-nan-2.14.0/test/cpp/namedinterceptors.cpp Examining data/node-nan-2.14.0/test/cpp/nancallback.cpp Examining data/node-nan-2.14.0/test/cpp/nannew.cpp Examining data/node-nan-2.14.0/test/cpp/news.cpp Examining data/node-nan-2.14.0/test/cpp/objectwraphandle.cpp Examining data/node-nan-2.14.0/test/cpp/persistent.cpp Examining data/node-nan-2.14.0/test/cpp/private.cpp Examining data/node-nan-2.14.0/test/cpp/returnemptystring.cpp Examining data/node-nan-2.14.0/test/cpp/returnnull.cpp Examining data/node-nan-2.14.0/test/cpp/returnundefined.cpp Examining data/node-nan-2.14.0/test/cpp/setcallhandler.cpp Examining data/node-nan-2.14.0/test/cpp/settemplate.cpp Examining data/node-nan-2.14.0/test/cpp/sleep.h Examining data/node-nan-2.14.0/test/cpp/strings.cpp Examining data/node-nan-2.14.0/test/cpp/symbols.cpp Examining data/node-nan-2.14.0/test/cpp/threadlocal.cpp Examining data/node-nan-2.14.0/test/cpp/trycatch.cpp Examining data/node-nan-2.14.0/test/cpp/typedarrays.cpp Examining data/node-nan-2.14.0/test/cpp/weak.cpp Examining data/node-nan-2.14.0/test/cpp/weak2.cpp Examining data/node-nan-2.14.0/test/cpp/wrappedobjectfactory.cpp Examining data/node-nan-2.14.0/test/cpp/returnvalue.cpp FINAL RESULTS: data/node-nan-2.14.0/examples/async_pi_estimate/pi_est.cc:40:3: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(randseed); data/node-nan-2.14.0/examples/async_pi_estimate/pi_est.cc:47:3: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(seed); data/node-nan-2.14.0/nan.h:1190: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_st_[1024]; data/node-nan-2.14.0/nan.h:1511: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_st_[1024]; data/node-nan-2.14.0/nan.h:2010: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(errmsg_, msg, size); data/node-nan-2.14.0/nan_weak.h:58:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&persistent_, persistent, sizeof (v8::Persistent<v8::Value>)); data/node-nan-2.14.0/test/cpp/accessors.cpp: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 log[1024]; data/node-nan-2.14.0/test/cpp/accessors.cpp:27:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char prop1[256]; data/node-nan-2.14.0/test/cpp/accessors.cpp:28:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char prop2[256]; data/node-nan-2.14.0/test/cpp/accessors2.cpp: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 log[1024]; data/node-nan-2.14.0/test/cpp/accessors2.cpp:27:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char prop1[256]; data/node-nan-2.14.0/test/cpp/accessors2.cpp:28:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char prop2[256]; data/node-nan-2.14.0/test/cpp/buffer.cpp:15: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 data[DATA_SIZE]; data/node-nan-2.14.0/test/cpp/indexedinterceptors.cpp:15: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[256]; data/node-nan-2.14.0/test/cpp/namedinterceptors.cpp:15: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[256]; data/node-nan-2.14.0/nan.h:1374:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(reinterpret_cast<const char*>(s)); data/node-nan-2.14.0/nan.h:2008: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). size_t size = strlen(msg) + 1; data/node-nan-2.14.0/test/cpp/accessors.cpp:39:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(prop1, "this is property 1", sizeof (prop1) - 1); data/node-nan-2.14.0/test/cpp/accessors.cpp:81:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(settergetter->log) < sizeof (settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors.cpp:82:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant string. strncat( data/node-nan-2.14.0/test/cpp/accessors.cpp:85:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , sizeof (settergetter->log) - 1 - strlen(settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors.cpp:94:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(settergetter->log) < sizeof (settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors.cpp:95:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant string. strncat( data/node-nan-2.14.0/test/cpp/accessors.cpp:98:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , sizeof (settergetter->log) - 1 - strlen(settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors.cpp:99:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(settergetter->log) < sizeof (settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors.cpp:100:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat( data/node-nan-2.14.0/test/cpp/accessors.cpp:103:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , sizeof (settergetter->log) - 1 - strlen(settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors.cpp:104:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(settergetter->log) < sizeof (settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors.cpp:105:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant string. strncat( data/node-nan-2.14.0/test/cpp/accessors.cpp:108:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , sizeof (settergetter->log) - 1 - strlen(settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors.cpp:116:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(settergetter->log) < sizeof (settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors.cpp:117:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant string. strncat( data/node-nan-2.14.0/test/cpp/accessors.cpp:120:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , sizeof (settergetter->log) - 1 - strlen(settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors.cpp:121:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(settergetter->log) < sizeof (settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors.cpp:122:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat( data/node-nan-2.14.0/test/cpp/accessors.cpp:125:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , sizeof (settergetter->log) - 1 - strlen(settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors.cpp:126:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(settergetter->log) < sizeof (settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors.cpp:127:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant string. strncat( data/node-nan-2.14.0/test/cpp/accessors.cpp:130:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , sizeof (settergetter->log) - 1 - strlen(settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors.cpp:138:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy( data/node-nan-2.14.0/test/cpp/accessors.cpp:143:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(settergetter->log) < sizeof (settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors.cpp:144:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant string. strncat( data/node-nan-2.14.0/test/cpp/accessors.cpp:147:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , sizeof (settergetter->log) - 1 - strlen(settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors.cpp:148:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(settergetter->log) < sizeof (settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors.cpp:149:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat( data/node-nan-2.14.0/test/cpp/accessors.cpp:152:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , sizeof (settergetter->log) - 1 - strlen(settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors.cpp:153:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(settergetter->log) < sizeof (settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors.cpp:154:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant string. strncat( data/node-nan-2.14.0/test/cpp/accessors.cpp:157:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , sizeof (settergetter->log) - 1 - strlen(settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors2.cpp:39:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(prop1, "this is property 1", sizeof (prop1) - 1); data/node-nan-2.14.0/test/cpp/accessors2.cpp:79:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(settergetter->log) < sizeof (settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors2.cpp:80:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant string. strncat( data/node-nan-2.14.0/test/cpp/accessors2.cpp:83:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , sizeof (settergetter->log) - 1 - strlen(settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors2.cpp:92:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(settergetter->log) < sizeof (settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors2.cpp:93:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant string. strncat( data/node-nan-2.14.0/test/cpp/accessors2.cpp:96:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , sizeof (settergetter->log) - 1 - strlen(settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors2.cpp:97:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(settergetter->log) < sizeof (settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors2.cpp:98:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat( data/node-nan-2.14.0/test/cpp/accessors2.cpp:101:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , sizeof (settergetter->log) - 1 - strlen(settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors2.cpp:102:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(settergetter->log) < sizeof (settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors2.cpp:103:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant string. strncat( data/node-nan-2.14.0/test/cpp/accessors2.cpp:106:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , sizeof (settergetter->log) - 1 - strlen(settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors2.cpp:114:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(settergetter->log) < sizeof (settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors2.cpp:115:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant string. strncat( data/node-nan-2.14.0/test/cpp/accessors2.cpp:118:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , sizeof (settergetter->log) - 1 - strlen(settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors2.cpp:119:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(settergetter->log) < sizeof (settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors2.cpp:120:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat( data/node-nan-2.14.0/test/cpp/accessors2.cpp:123:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , sizeof (settergetter->log) - 1 - strlen(settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors2.cpp:124:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(settergetter->log) < sizeof (settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors2.cpp:125:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant string. strncat( data/node-nan-2.14.0/test/cpp/accessors2.cpp:128:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , sizeof (settergetter->log) - 1 - strlen(settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors2.cpp:136:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy( data/node-nan-2.14.0/test/cpp/accessors2.cpp:141:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(settergetter->log) < sizeof (settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors2.cpp:142:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant string. strncat( data/node-nan-2.14.0/test/cpp/accessors2.cpp:145:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , sizeof (settergetter->log) - 1 - strlen(settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors2.cpp:146:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(settergetter->log) < sizeof (settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors2.cpp:147:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat( data/node-nan-2.14.0/test/cpp/accessors2.cpp:150:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , sizeof (settergetter->log) - 1 - strlen(settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors2.cpp:151:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert(strlen(settergetter->log) < sizeof (settergetter->log)); data/node-nan-2.14.0/test/cpp/accessors2.cpp:152:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant string. strncat( data/node-nan-2.14.0/test/cpp/accessors2.cpp:155:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). , sizeof (settergetter->log) - 1 - strlen(settergetter->log)); data/node-nan-2.14.0/test/cpp/indexedinterceptors.cpp:18:31: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. IndexedInterceptor() { std::strncpy(this->buf, "foo", sizeof (this->buf)); } data/node-nan-2.14.0/test/cpp/indexedinterceptors.cpp:89:10: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). std::strncpy( data/node-nan-2.14.0/test/cpp/indexedinterceptors.cpp:108:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. std::strncpy(interceptor->buf, "goober", sizeof (interceptor->buf)); data/node-nan-2.14.0/test/cpp/namedinterceptors.cpp:18:29: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. NamedInterceptor() { std::strncpy(this->buf, "foo", sizeof (this->buf)); } data/node-nan-2.14.0/test/cpp/namedinterceptors.cpp:89:10: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). std::strncpy( data/node-nan-2.14.0/test/cpp/namedinterceptors.cpp:108:8: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. std::strncpy(interceptor->buf, "goober", sizeof (interceptor->buf)); data/node-nan-2.14.0/test/cpp/sleep.h:14:18: [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. #define Sleep(x) usleep((x)*1000) ANALYSIS SUMMARY: Hits = 88 Lines analyzed = 11628 in approximately 0.30 seconds (38472 lines/second) Physical Source Lines of Code (SLOC) = 8944 Hits@level = [0] 22 [1] 73 [2] 13 [3] 2 [4] 0 [5] 0 Hits@level+ = [0+] 110 [1+] 88 [2+] 15 [3+] 2 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 12.2987 [1+] 9.839 [2+] 1.6771 [3+] 0.223614 [4+] 0 [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.