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/libcapi20-3-3.27/convert.c
Examining data/libcapi20-3-3.27/capi20.c
Examining data/libcapi20-3-3.27/capi_mod_rcapi.c
Examining data/libcapi20-3-3.27/capi_mod_std.c
Examining data/libcapi20-3-3.27/capi_mod_fritzbox.h
Examining data/libcapi20-3-3.27/capi20.h
Examining data/libcapi20-3-3.27/capiutils.h
Examining data/libcapi20-3-3.27/capi_debug.h
Examining data/libcapi20-3-3.27/capi_mod.h
Examining data/libcapi20-3-3.27/capidyn.c
Examining data/libcapi20-3-3.27/compat/byteswap.h
Examining data/libcapi20-3-3.27/capicmd.h
Examining data/libcapi20-3-3.27/capifunc.c
Examining data/libcapi20-3-3.27/capi_mod_fritzbox.c
Examining data/libcapi20-3-3.27/capi_defs.h

FINAL RESULTS:

data/libcapi20-3-3.27/capi20.c:130:8:  [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.
	ret = vfprintf(stderr, fmt,  va);
data/libcapi20-3-3.27/capi20.c:312: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(buf, s);
data/libcapi20-3-3.27/capi20.c:314:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(buf, userconfigfilename);
data/libcapi20-3-3.27/convert.c:851:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	len = vsnprintf(p, space, fmt, f);
data/libcapi20-3-3.27/capi20.c:311:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((s = getenv("HOME")) != NULL) {
data/libcapi20-3-3.27/capi20.c:100: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 driver[1024] = "";
data/libcapi20-3-3.27/capi20.c:101: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 hostname[1024] = "";
data/libcapi20-3-3.27/capi20.c:309:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/libcapi20-3-3.27/capi20.c:315: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(buf, "r");
data/libcapi20-3-3.27/capi20.c:317:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((!fp) && ((fp = fopen(globalconfigfilename, "r")) == NULL))
data/libcapi20-3-3.27/capi20.c:693: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 etxt[1024];
data/libcapi20-3-3.27/capi20.c:740: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 mod_vers[10];
data/libcapi20-3-3.27/capi20.c:749: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 anAppPath[ MAX_PATH ];
data/libcapi20-3-3.27/capi20.c:750: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 anPath[ MAX_PATH ];
data/libcapi20-3-3.27/capi20.c:979: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( &nData64, pnMsg + 22, sizeof( u_int64_t ) );
data/libcapi20-3-3.27/capi20.c:993:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy( &nData, pnMsg + 12, sizeof( u_int32_t ) );
data/libcapi20-3-3.27/capi20.c:1005:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy( pnMsg + nLen, pDataPtr, nDataLen );
data/libcapi20-3-3.27/capi20.c:1182: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 sem_name[40], shr_name[40];
data/libcapi20-3-3.27/capi_mod_fritzbox.c:72:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 anTemp[ 2 ];
data/libcapi20-3-3.27/capi_mod_fritzbox.c:178:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 anMessage[ 256 ];
data/libcapi20-3-3.27/capi_mod_fritzbox.c:241:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 anMessage[ 256 ];
data/libcapi20-3-3.27/capi_mod_fritzbox.c:277:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 anSendBuffer[ SEND_BUFSIZ ];
data/libcapi20-3-3.27/capi_mod_fritzbox.c:299:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( anSendBuffer + 3, pnMsg, sizeof( anSendBuffer ) - 3 );
data/libcapi20-3-3.27/capi_mod_fritzbox.c:321:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 anTemp[ 4096 ];
data/libcapi20-3-3.27/capi_mod_fritzbox.c:358: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( pnBuffer, anTemp, nOrigLen );
data/libcapi20-3-3.27/capi_mod_fritzbox.c:474:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( pnBuffer, CAPI20_FB_MANUF, strlen( CAPI20_FB_MANUF ) );
data/libcapi20-3-3.27/capi_mod_fritzbox.c:496:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( pnBuffer, &cversion, sizeof( capi_version ) );
data/libcapi20-3-3.27/capi_mod_fritzbox.c:510:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( pnBuffer, CAPI20_FB_SERIAL, strlen( CAPI20_FB_SERIAL ) );
data/libcapi20-3-3.27/capi_mod_fritzbox.c:524:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 anMessage[ 256 ];
data/libcapi20-3-3.27/capi_mod_fritzbox.c:550:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( pnBuf, anMessage + 18, sizeof( struct capi_profile ) );
data/libcapi20-3-3.27/capi_mod_rcapi.c:99:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 anTemp[ 4096 ], *pnPtr;
data/libcapi20-3-3.27/capi_mod_rcapi.c:132: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( pnBuffer, anTemp, nOrigLen );
data/libcapi20-3-3.27/capi_mod_rcapi.c:202:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 anHeader[ 7 ];
data/libcapi20-3-3.27/capi_mod_rcapi.c:213:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	nHandle = open( pnTraceFile, O_WRONLY | O_CREAT | O_APPEND, 0644 );
data/libcapi20-3-3.27/capi_mod_rcapi.c:250:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 anBuf[ 100 ], *pnPtr = anBuf;
data/libcapi20-3-3.27/capi_mod_rcapi.c:299:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 anSendBuffer[ SEND_BUFSIZ ], *pnSendBuffer = anSendBuffer;
data/libcapi20-3-3.27/capi_mod_rcapi.c:309:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( pnSendBuffer, pnMsg, nLen );
data/libcapi20-3-3.27/capi_mod_rcapi.c:421:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 anBuf[ 100 ];
data/libcapi20-3-3.27/capi_mod_rcapi.c:429:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( pnBuffer, anBuf + 1, CAPI_MANUFACTURER_LEN );
data/libcapi20-3-3.27/capi_mod_rcapi.c:443:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 anBuf[ 100] ;
data/libcapi20-3-3.27/capi_mod_rcapi.c:451:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( pnBuffer, anBuf + 1, sizeof( capi_version ) );
data/libcapi20-3-3.27/capi_mod_rcapi.c:464:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 anBuf[ 100 ];
data/libcapi20-3-3.27/capi_mod_rcapi.c:472:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( pnBuffer, anBuf + 1, CAPI_SERIAL_LEN );
data/libcapi20-3-3.27/capi_mod_rcapi.c:486:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 anBuf[ 100] ;
data/libcapi20-3-3.27/capi_mod_rcapi.c:495: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( pnBuf, anBuf + 2, ( nController ) ? sizeof( struct capi_profile ) : 2 );
data/libcapi20-3-3.27/capi_mod_std.c:37:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( ( nHandle = open( CAPI_DEVICE_NAME, O_RDWR, 0666 ) ) < 0 && ( errno == ENOENT ) ) {
data/libcapi20-3-3.27/capi_mod_std.c:38:13:  [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).
		nHandle = open( CAPI_DEVICE_NAME_NEW, O_RDWR, 0666 );
data/libcapi20-3-3.27/capi_mod_std.c:59: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 anBuf[ PATH_MAX ];
data/libcapi20-3-3.27/capi_mod_std.c:64:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( ( nHandle = open( CAPI_DEVICE_NAME, O_RDWR | O_NONBLOCK, 0666 ) ) < 0 && ( errno == ENOENT ) ) {
data/libcapi20-3-3.27/capi_mod_std.c:65:13:  [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).
		nHandle = open( CAPI_DEVICE_NAME_NEW, O_RDWR | O_NONBLOCK, 0666 );
data/libcapi20-3-3.27/capi_mod_std.c:92:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				if ( ( nHandle = open( anBuf, O_RDWR | O_NONBLOCK, 0666 ) ) < 0 ) {
data/libcapi20-3-3.27/capi_mod_std.c:271:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( pnBuffer, ioctl_data.manufacturer, CAPI_MANUFACTURER_LEN );
data/libcapi20-3-3.27/capi_mod_std.c:291:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( pnBuffer, &ioctl_data.version, sizeof( capi_version ) );
data/libcapi20-3-3.27/capi_mod_std.c:309:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy( pnBuffer, &ioctl_data.serial, CAPI_SERIAL_LEN );
data/libcapi20-3-3.27/capi_mod_std.c:337: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( pnBuffer, &ioctl_data.profile, sizeof( struct capi_profile ) );
data/libcapi20-3-3.27/capi_mod_std.c:339: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( pnBuffer, &ioctl_data.profile.ncontroller, sizeof( ioctl_data.profile.ncontroller ) );
data/libcapi20-3-3.27/convert.c:430:31:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define dwordTLcpy(x,y)       memcpy(x,y,4);
data/libcapi20-3-3.27/convert.c:433:31:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define dwordTRcpy(x,y)       memcpy(y,x,4);
data/libcapi20-3-3.27/convert.c:435:31:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define qwordTLcpy(x,y)       memcpy(x,y,8);
data/libcapi20-3-3.27/convert.c:436:31:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define qwordTRcpy(x,y)       memcpy(y,x,8);
data/libcapi20-3-3.27/convert.c:441:31:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define structTLcpy(x,y,l)    memcpy (x,y,l)
data/libcapi20-3-3.27/convert.c:443:31:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define structTRcpy(x,y,l)    memcpy (y,x,l)
data/libcapi20-3-3.27/convert.c:671:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static unsigned char msg[2048];
data/libcapi20-3-3.27/convert.c:839: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 buf[8192];
data/libcapi20-3-3.27/capi20.c:313:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(buf, "/");
data/libcapi20-3-3.27/capi20.c:321:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		buf[strlen(buf)-1] = 0;
data/libcapi20-3-3.27/capi20.c:331:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(driver, t, (sizeof(driver) - 1));
data/libcapi20-3-3.27/capi20.c:336:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(hostname, t, (sizeof(hostname) - 1));
data/libcapi20-3-3.27/capi20.c:755: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).
	for ( nIndex = strlen( anAppPath ) - 1; nIndex >= 0; nIndex-- ) {
data/libcapi20-3-3.27/capi20.c:780: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).
			nLen = strlen( psEntry -> d_name );
data/libcapi20-3-3.27/capi20.c:801: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).
			nLen = strlen( pnModuleDir ) + strlen( psEntry -> d_name ) + 2;
data/libcapi20-3-3.27/capi20.c:801:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			nLen = strlen( pnModuleDir ) + strlen( psEntry -> d_name ) + 2;
data/libcapi20-3-3.27/capi20.c:844:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ( strlen( driver ) <= 0 ) {
data/libcapi20-3-3.27/capi20.c:1187:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		old_um = umask(0);
data/libcapi20-3-3.27/capi20.c:1190:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(old_um);
data/libcapi20-3-3.27/capi_mod_fritzbox.c:155:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ( pnHostName == NULL || strlen( pnHostName ) <= 0 ) {
data/libcapi20-3-3.27/capi_mod_fritzbox.c:474:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy( pnBuffer, CAPI20_FB_MANUF, strlen( CAPI20_FB_MANUF ) );
data/libcapi20-3-3.27/capi_mod_fritzbox.c:475: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).
	pnBuffer[ strlen( CAPI20_FB_MANUF ) ] = '\0';
data/libcapi20-3-3.27/capi_mod_fritzbox.c:510: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).
	memcpy( pnBuffer, CAPI20_FB_SERIAL, strlen( CAPI20_FB_SERIAL ) );
data/libcapi20-3-3.27/capi_mod_fritzbox.c:511: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).
	pnBuffer[ strlen( CAPI20_FB_SERIAL ) ] = 0;
data/libcapi20-3-3.27/capi_mod_rcapi.c:205:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ( strlen( pnTraceFile ) <= 0 ) {
data/libcapi20-3-3.27/capi_mod_rcapi.c:230:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ( strlen( capi20ext_get_host() ) <= 0 || capi20ext_get_port() == -1 ) {
data/libcapi20-3-3.27/capi_mod_std.c:186:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	nRet = read( nHandle, pnBuffer, nBufSize );
data/libcapi20-3-3.27/capidyn.c:380:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			(void)write(2, err, strlen(err));

ANALYSIS SUMMARY:

Hits = 84
Lines analyzed = 6571 in approximately 0.19 seconds (34507 lines/second)
Physical Source Lines of Code (SLOC) = 4612
Hits@level = [0]  29 [1]  20 [2]  59 [3]   1 [4]   4 [5]   0
Hits@level+ = [0+] 113 [1+]  84 [2+]  64 [3+]   5 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 24.5013 [1+] 18.2134 [2+] 13.8768 [3+] 1.08413 [4+] 0.867303 [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.