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/boinc-app-eah-brp-0.20170426+dfsg/cuda/app/cuda_utilities.c
Examining data/boinc-app-eah-brp-0.20170426+dfsg/cuda/app/cuda_utilities.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/cuda/app/demod_binary_cuda.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/cuda/app/deviceptr.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/diptr.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/erp_boinc_ipc.cpp
Examining data/boinc-app-eah-brp-0.20170426+dfsg/erp_getopt.c
Examining data/boinc-app-eah-brp-0.20170426+dfsg/erp_getopt.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/erp_getopt1.c
Examining data/boinc-app-eah-brp-0.20170426+dfsg/erp_getopt_int.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/exchndl.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/exchndl64.c
Examining data/boinc-app-eah-brp-0.20170426+dfsg/opencl/app/demod_binary_ocl_kernels.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/opencl/app/deviceptr.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/opencl/app/ocl_utilities.cpp
Examining data/boinc-app-eah-brp-0.20170426+dfsg/opencl/app/ocl_utilities.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/opencl/app/demod_binary_ocl.cpp
Examining data/boinc-app-eah-brp-0.20170426+dfsg/opencl/app/demod_binary_ocl.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/rngmed.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/structs.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/wisdom/fftwf_wisdom_armv6_linux.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/erp_git_version.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/sysdep.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/erp_boinc_ipc.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/erp_utilities.cpp
Examining data/boinc-app-eah-brp-0.20170426+dfsg/erp_utilities.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c
Examining data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary_resamp_cpu.c
Examining data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary_resamp_cpu.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/exchndl32.c
Examining data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary_hs_cpu.c
Examining data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary_hs_cpu.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/rngmed.c
Examining data/boinc-app-eah-brp-0.20170426+dfsg/hs_common.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary_fft_fftw.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/erp_execinfo_plus.c
Examining data/boinc-app-eah-brp-0.20170426+dfsg/erp_execinfo_plus.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/hs_common.c
Examining data/boinc-app-eah-brp-0.20170426+dfsg/erp_boinc_wrapper.cpp
Examining data/boinc-app-eah-brp-0.20170426+dfsg/erp_boinc_wrapper.h
Examining data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary_fft_fftw.c

FINAL RESULTS:

data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:222:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(uvar.outputfile_tmp, "%s", "");
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:224:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(uvar.checkpointfile_tmp, "%s", "");
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:554:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
	  if(sscanf(line, c_template_scan_format, &P_tmp, &tau_tmp, &psi_tmp) == 3)
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:683:16:  [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.
	      else if(sscanf(line, c_template_scan_format, &P_tmp, &tau_tmp, &psi_tmp) != 3)
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:1243:10:  [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.
      if(sscanf(line, c_template_scan_format, &P_tmp, &tau_tmp, &Psi0_tmp) != 3)
data/boinc-app-eah-brp-0.20170426+dfsg/erp_execinfo_plus.c:340:5:  [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(ostream, format, args);
data/boinc-app-eah-brp-0.20170426+dfsg/erp_utilities.cpp:142:5:  [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(output, msg, varargs);
data/boinc-app-eah-brp-0.20170426+dfsg/opencl/app/demod_binary_ocl.cpp:1904:18:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    int result = snprintf(compileOptions, maxLength, defaultCompileOptions, vendorOptions, workGroupSizeTSMR[0], workGroupSizePS[0],workGroupSizePS_R3_R2C[0],workGroupSizeHS[0], lrint(log2(workGroupSizeHS[0])), LOG_PS_PAGE_SIZE);
data/boinc-app-eah-brp-0.20170426+dfsg/erp_boinc_wrapper.cpp:291:18:  [3] (buffer) getopt_long:
  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.
        result = getopt_long(argc, argv, "i:t:o:c:l:f:A:KP:WB:D:zhv", long_options, &option_index);
data/boinc-app-eah-brp-0.20170426+dfsg/erp_getopt.c:148:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#ifndef getenv
data/boinc-app-eah-brp-0.20170426+dfsg/erp_getopt.c:286:30:  [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.
    d->__posixly_correct = !!getenv ("POSIXLY_CORRECT");
data/boinc-app-eah-brp-0.20170426+dfsg/erp_getopt.c:1149:1:  [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.
getopt (int argc, char *const *argv, const char *optstring)
data/boinc-app-eah-brp-0.20170426+dfsg/erp_getopt.c:1174:13:  [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.
        c = getopt (argc, argv, "abc:d:0123456789");
data/boinc-app-eah-brp-0.20170426+dfsg/erp_getopt.h:152:16:  [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.
    extern int getopt (int ___argc, char *const *___argv, const char *__shortopts)
data/boinc-app-eah-brp-0.20170426+dfsg/erp_getopt.h:159:16:  [3] (buffer) getopt_long:
  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.
    extern int getopt_long (int ___argc, char *const *___argv,
data/boinc-app-eah-brp-0.20170426+dfsg/erp_getopt1.c:60:1:  [3] (buffer) getopt_long:
  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.
getopt_long (int argc, char *const *argv, const char *options,
data/boinc-app-eah-brp-0.20170426+dfsg/erp_getopt1.c:123:13:  [3] (buffer) getopt_long:
  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.
        c = getopt_long (argc, argv, "abc:d:0123456789",
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl32.c:225:54:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
            (hModule_Imagehlp || (hModule_Imagehlp = LoadLibrary(_T("IMAGEHLP.DLL")))) &&
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl32.c:240:54:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
            (hModule_Imagehlp || (hModule_Imagehlp = LoadLibrary(_T("IMAGEHLP.DLL")))) &&
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl32.c:255:54:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
            (hModule_Imagehlp || (hModule_Imagehlp = LoadLibrary(_T("IMAGEHLP.DLL")))) &&
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl32.c:270:54:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
            (hModule_Imagehlp || (hModule_Imagehlp = LoadLibrary(_T("IMAGEHLP.DLL")))) &&
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl32.c:285:54:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
            (hModule_Imagehlp || (hModule_Imagehlp = LoadLibrary(_T("IMAGEHLP.DLL")))) &&
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl32.c:300:54:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
            (hModule_Imagehlp || (hModule_Imagehlp = LoadLibrary(_T("IMAGEHLP.DLL")))) &&
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl32.c:325:54:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
            (hModule_Imagehlp || (hModule_Imagehlp = LoadLibrary(_T("IMAGEHLP.DLL")))) &&
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl32.c:350:54:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
            (hModule_Imagehlp || (hModule_Imagehlp = LoadLibrary(_T("IMAGEHLP.DLL")))) &&
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl32.c:365:54:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
            (hModule_Imagehlp || (hModule_Imagehlp = LoadLibrary(_T("IMAGEHLP.DLL")))) &&
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl64.c:225:54:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
            (hModule_Imagehlp || (hModule_Imagehlp = LoadLibrary(_T("IMAGEHLP.DLL")))) &&
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl64.c:240:54:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
            (hModule_Imagehlp || (hModule_Imagehlp = LoadLibrary(_T("IMAGEHLP.DLL")))) &&
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl64.c:255:54:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
            (hModule_Imagehlp || (hModule_Imagehlp = LoadLibrary(_T("IMAGEHLP.DLL")))) &&
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl64.c:270:54:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
            (hModule_Imagehlp || (hModule_Imagehlp = LoadLibrary(_T("IMAGEHLP.DLL")))) &&
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl64.c:285:54:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
            (hModule_Imagehlp || (hModule_Imagehlp = LoadLibrary(_T("IMAGEHLP.DLL")))) &&
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl64.c:300:54:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
            (hModule_Imagehlp || (hModule_Imagehlp = LoadLibrary(_T("IMAGEHLP.DLL")))) &&
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl64.c:325:54:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
            (hModule_Imagehlp || (hModule_Imagehlp = LoadLibrary(_T("IMAGEHLP.DLL")))) &&
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl64.c:350:54:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
            (hModule_Imagehlp || (hModule_Imagehlp = LoadLibrary(_T("IMAGEHLP.DLL")))) &&
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl64.c:365:54:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
            (hModule_Imagehlp || (hModule_Imagehlp = LoadLibrary(_T("IMAGEHLP.DLL")))) &&
data/boinc-app-eah-brp-0.20170426+dfsg/cuda/app/cuda_utilities.c:73:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    gpu_device_num = atoi(argv[i+1]);
data/boinc-app-eah-brp-0.20170426+dfsg/cuda/app/cuda_utilities.c:137: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 deviceName[256] = {0};
data/boinc-app-eah-brp-0.20170426+dfsg/cuda/app/cuda_utilities.c:191:13:  [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(deviceName, "UNKNOWN");
data/boinc-app-eah-brp-0.20170426+dfsg/cuda/app/cuda_utilities.c:305: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).
    FILE *output = fopen(filename, "w");
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:57:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define fopen boinc_fopen
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.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 outputfile_tmp[FN_LENGTH + 4];    // name of the temporary output file
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:106: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 checkpointfile_tmp[FN_LENGTH + 4];// name of the temporary checkpoint file
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:187: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[FN_LENGTH];                     // string for parsing lines from the templatebank
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:204: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 resultTimeISO[TIME_LENGTH + 1] = {0};
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:264:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  if(atoi(argv[i+1]) < 0)
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:266:100:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	      logMessage(error, true, "Nonsense value: window size for running median %d is negative.\n", atoi(argv[i+1]));
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:269:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	  else if(atoi(argv[i+1]) > 250000)
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:271:99:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	      logMessage(error, true, "Nonsense value: window size for running median too large: %d.\n", atoi(argv[i+1]));
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:276:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	      uvar.window = atoi(argv[i+1]);
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:430:90:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
              logMessage(error, true, "Nonsense value: GPU device ID %i is negative.\n", atoi(argv[i+1]));
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:523:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  templatebank = fopen(uvar.templatebank, "r");
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:548: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 line[FN_LENGTH];
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:588:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  checkpoint = fopen(uvar.checkpointfile,"rb");
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:668: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.
	      char line[FN_LENGTH];
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:1024:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      zaplist = fopen(uvar.zaplistfile, "r");
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:1618:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  output = fopen(uvar.outputfile_tmp, "w");
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:1634: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 erp_git_version[41];
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:1635: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 boinc_rev[41];
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:1807:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  checkpoint = fopen(uvar->checkpointfile_tmp, "wb");
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary_fft_fftw.c:80: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 wisdomfilenameWithVersion[255];
data/boinc-app-eah-brp-0.20170426+dfsg/erp_boinc_ipc.h:43:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 power_spectrum[POWERSPECTRUM_BINS];
data/boinc-app-eah-brp-0.20170426+dfsg/erp_boinc_wrapper.cpp:463:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if (FILE* fp=fopen(forward_argv.at(forward_argc-1),"r")) {
data/boinc-app-eah-brp-0.20170426+dfsg/erp_boinc_wrapper.h:34:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define fopen boinc_fopen
data/boinc-app-eah-brp-0.20170426+dfsg/erp_execinfo_plus.c:254: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 file_name[MAX_NAME_LENGTH +1] = { '\0' };
data/boinc-app-eah-brp-0.20170426+dfsg/erp_execinfo_plus.c:255: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 func_offset[MAX_NAME_LENGTH +1] = { '\0' };
data/boinc-app-eah-brp-0.20170426+dfsg/erp_execinfo_plus.c:256: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 address[MAX_NAME_LENGTH +1] = { '\0' };
data/boinc-app-eah-brp-0.20170426+dfsg/erp_utilities.cpp:86: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 timeBuffer[TIME_BUFFER_SIZE] = {0};
data/boinc-app-eah-brp-0.20170426+dfsg/erp_utilities.cpp:87: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 levelBuffer[LEVEL_BUFFER_SIZE] = {0};
data/boinc-app-eah-brp-0.20170426+dfsg/erp_utilities.cpp:220: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).
    FILE *output = fopen(filename, "w");
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl32.c:42:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR szBuff[4096];
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl32.c:619:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR szModule[MAX_PATH];
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl32.c:655:9:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        TCHAR szSymName[512] = _T("");
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl32.c:656:9:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        TCHAR szFileName[MAX_PATH] = _T("");
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl32.c:823:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR szModule[MAX_PATH];
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl64.c:42:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR szBuff[4096];
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl64.c:624:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR szModule[MAX_PATH];
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl64.c:666:9:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        TCHAR szSymName[512] = _T("");
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl64.c:667:9:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        TCHAR szFileName[MAX_PATH] = _T("");
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl64.c:834:5:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    TCHAR szModule[MAX_PATH];
data/boinc-app-eah-brp-0.20170426+dfsg/opencl/app/demod_binary_ocl.cpp:109: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 platformVendor[OCL_MAX_STRING] = "UNKNOWN";
data/boinc-app-eah-brp-0.20170426+dfsg/opencl/app/demod_binary_ocl.cpp:138:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char profile[32] = {0};
data/boinc-app-eah-brp-0.20170426+dfsg/opencl/app/demod_binary_ocl.cpp:167: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 platformVendor[OCL_MAX_STRING] = "UNKNOWN";
data/boinc-app-eah-brp-0.20170426+dfsg/opencl/app/demod_binary_ocl.cpp:217: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 deviceVendor[OCL_MAX_STRING] = "UNKNOWN";
data/boinc-app-eah-brp-0.20170426+dfsg/opencl/app/demod_binary_ocl.cpp:224: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 deviceProduct[OCL_MAX_STRING] = "UNKNOWN";
data/boinc-app-eah-brp-0.20170426+dfsg/opencl/app/ocl_utilities.cpp:72: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 deviceName[OCL_MAX_STRING] = "UNKNOWN";
data/boinc-app-eah-brp-0.20170426+dfsg/opencl/app/ocl_utilities.cpp:73: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 deviceVersion[OCL_MAX_STRING] = "UNKNOWN";
data/boinc-app-eah-brp-0.20170426+dfsg/opencl/app/ocl_utilities.cpp:74: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 deviceExtensions[OCL_MAX_STRING_EXT] = "UNKNOWN";
data/boinc-app-eah-brp-0.20170426+dfsg/opencl/app/ocl_utilities.cpp:271: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).
    FILE *output = fopen(filename, "w");
data/boinc-app-eah-brp-0.20170426+dfsg/opencl/app/ocl_utilities.cpp:303: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 kernelName[OCL_MAX_STRING] = "UNKNOWN";
data/boinc-app-eah-brp-0.20170426+dfsg/structs.h:64: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[FN_LENGTH];	       	// name of the object
data/boinc-app-eah-brp-0.20170426+dfsg/structs.h: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 originalfile[FN_LENGTH];	// Original WAPP file
data/boinc-app-eah-brp-0.20170426+dfsg/structs.h:66: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 proj_id[FN_LENGTH];	// project ID
data/boinc-app-eah-brp-0.20170426+dfsg/structs.h:67: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 observers[FN_LENGTH];	// observers
data/boinc-app-eah-brp-0.20170426+dfsg/structs.h:100: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[FN_LENGTH];	       	// name of the object
data/boinc-app-eah-brp-0.20170426+dfsg/structs.h:101: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 originalfile[FN_LENGTH];	// Original WAPP file
data/boinc-app-eah-brp-0.20170426+dfsg/structs.h:102: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 proj_id[FN_LENGTH];	// project ID
data/boinc-app-eah-brp-0.20170426+dfsg/structs.h: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 observers[FN_LENGTH];	// observers
data/boinc-app-eah-brp-0.20170426+dfsg/structs.h:114: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 originalfile[FN_LENGTH];	// name of the dedispersed timeseries file
data/boinc-app-eah-brp-0.20170426+dfsg/structs.h:144: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 power_spectrum[N_BINS_SS];
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:1445:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy((char*) search_params_tmp.power_spectrum, (const char*) binned_spectrum, POWERSPECTRUM_BINS);
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:1638:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(erp_git_version,ERP_GIT_VERSION,LEN_SHEBANG);
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:1640:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(boinc_rev,SVN_VERSION,LEN_SHEBANG);
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:1652:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(strlen(appInitData.user_name) != 0) {
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:1656:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(strlen(appInitData.host_info.host_cpid) != 0) {
data/boinc-app-eah-brp-0.20170426+dfsg/demod_binary.c:1722:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(fprintf(output, "%%DONE%%\n") < strlen("%DONE%\n"))
data/boinc-app-eah-brp-0.20170426+dfsg/erp_boinc_wrapper.cpp:209:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    options.push_back((char*) calloc(strlen(option) + 1, sizeof(char)));
data/boinc-app-eah-brp-0.20170426+dfsg/erp_boinc_wrapper.cpp:214:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(options.at(option_index), option, strlen(option) + 1);
data/boinc-app-eah-brp-0.20170426+dfsg/erp_boinc_wrapper.cpp:214:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strncpy(options.at(option_index), option, strlen(option) + 1);
data/boinc-app-eah-brp-0.20170426+dfsg/erp_boinc_wrapper.cpp:221:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    options.push_back((char*) calloc(strlen(value) + 1, sizeof(char)));
data/boinc-app-eah-brp-0.20170426+dfsg/erp_boinc_wrapper.cpp:226:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(options.at(option_index), value, strlen(value) + 1);
data/boinc-app-eah-brp-0.20170426+dfsg/erp_boinc_wrapper.cpp:226:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strncpy(options.at(option_index), value, strlen(value) + 1);
data/boinc-app-eah-brp-0.20170426+dfsg/erp_execinfo_plus.c:284:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(file_name, symbols[i], length);
data/boinc-app-eah-brp-0.20170426+dfsg/erp_execinfo_plus.c:292:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(address, firstB + 1, length - 1);
data/boinc-app-eah-brp-0.20170426+dfsg/erp_execinfo_plus.c:307:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(func_offset, firstP + 1, length - 1);
data/boinc-app-eah-brp-0.20170426+dfsg/erp_execinfo_plus.c:311:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(file_name) > 0 && strlen(file_name) > 0) {
data/boinc-app-eah-brp-0.20170426+dfsg/erp_execinfo_plus.c:311:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(file_name) > 0 && strlen(file_name) > 0) {
data/boinc-app-eah-brp-0.20170426+dfsg/erp_execinfo_plus.c:313:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(func_offset) > 0) {
data/boinc-app-eah-brp-0.20170426+dfsg/erp_getopt.c:317:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                int len = d->__nonoption_flags_max_len = strlen (orig_str);
data/boinc-app-eah-brp-0.20170426+dfsg/erp_getopt.c:544:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        == (unsigned int) strlen (p->name))
data/boinc-app-eah-brp-0.20170426+dfsg/erp_getopt.c:593:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            d->__nextchar += strlen (d->__nextchar);
data/boinc-app-eah-brp-0.20170426+dfsg/erp_getopt.c:666:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    d->__nextchar += strlen (d->__nextchar);
data/boinc-app-eah-brp-0.20170426+dfsg/erp_getopt.c:706:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    d->__nextchar += strlen (d->__nextchar);
data/boinc-app-eah-brp-0.20170426+dfsg/erp_getopt.c:711:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            d->__nextchar += strlen (d->__nextchar);
data/boinc-app-eah-brp-0.20170426+dfsg/erp_getopt.c:914:69:  [1] (buffer) strlen:
  Does not handle 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 ((unsigned int) (nameend - d->__nextchar) == strlen (p->name))
data/boinc-app-eah-brp-0.20170426+dfsg/erp_getopt.c:959:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                d->__nextchar += strlen (d->__nextchar);
data/boinc-app-eah-brp-0.20170426+dfsg/erp_getopt.c:1003:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        d->__nextchar += strlen (d->__nextchar);
data/boinc-app-eah-brp-0.20170426+dfsg/erp_getopt.c:1041:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        d->__nextchar += strlen (d->__nextchar);
data/boinc-app-eah-brp-0.20170426+dfsg/erp_getopt.c:1045:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                d->__nextchar += strlen (d->__nextchar);
data/boinc-app-eah-brp-0.20170426+dfsg/erp_utilities.cpp:124:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(strlen(msg) > 0 && strncmp(msg, "\n", 1) == 0) {
data/boinc-app-eah-brp-0.20170426+dfsg/erp_utilities.cpp:127:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if(strlen(msg) > 1) {
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl32.c:140:9:  [1] (buffer) lstrcpyn:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        lstrcpyn(lpDemangledName, lpName, nSize);
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl32.c:145:9:  [1] (buffer) lstrcpyn:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        lstrcpyn(lpDemangledName, res, nSize);
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl32.c:176:5:  [1] (buffer) lstrcpyn:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    lstrcpyn(lpSymName, info.functionname, nSize);
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl32.c:204:5:  [1] (buffer) lstrcpyn:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    lstrcpyn(lpFileName, info.filename, nSize);
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl32.c:396:5:  [1] (buffer) lstrcpyn:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    lstrcpyn(pSymbol->Name, lpName, pSymbol->MaxNameLength);
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl32.c:427:5:  [1] (buffer) lstrcpyn:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    lstrcpyn(lpSymName, pSymbol->Name, nSize);
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl32.c:469:5:  [1] (buffer) lstrcpyn:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    lstrcpyn(lpFileName, Line.FileName, nSize);
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl64.c:140:9:  [1] (buffer) lstrcpyn:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        lstrcpyn(lpDemangledName, lpName, nSize);
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl64.c:145:9:  [1] (buffer) lstrcpyn:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        lstrcpyn(lpDemangledName, res, nSize);
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl64.c:176:5:  [1] (buffer) lstrcpyn:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    lstrcpyn(lpSymName, info.functionname, nSize);
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl64.c:204:5:  [1] (buffer) lstrcpyn:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    lstrcpyn(lpFileName, info.filename, nSize);
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl64.c:396:5:  [1] (buffer) lstrcpyn:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    lstrcpyn(pSymbol->Name, lpName, pSymbol->MaxNameLength);
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl64.c:427:5:  [1] (buffer) lstrcpyn:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    lstrcpyn(lpSymName, pSymbol->Name, nSize);
data/boinc-app-eah-brp-0.20170426+dfsg/exchndl64.c:469:5:  [1] (buffer) lstrcpyn:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    lstrcpyn(lpFileName, Line.FileName, nSize);
data/boinc-app-eah-brp-0.20170426+dfsg/opencl/app/demod_binary_ocl.cpp:1890: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).
    int maxLength = 2 * strlen(defaultCompileOptions);

ANALYSIS SUMMARY:

Hits = 145
Lines analyzed = 13210 in approximately 0.39 seconds (34271 lines/second)
Physical Source Lines of Code (SLOC) = 9020
Hits@level = [0]  95 [1]  46 [2]  64 [3]  27 [4]   8 [5]   0
Hits@level+ = [0+] 240 [1+] 145 [2+]  99 [3+]  35 [4+]   8 [5+]   0
Hits/KSLOC@level+ = [0+] 26.6075 [1+] 16.0754 [2+] 10.9756 [3+] 3.88027 [4+] 0.886918 [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.