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/php-apcu-5.1.18+4.0.11/apcu-4.0.11/php_apc.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_cache.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_pool.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_signal.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_pool_api.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_iterator.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_signal.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_lock.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_windows_srwlock_kernel.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_bin.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_serializer.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_php_pcre.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_lock_api.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_shm.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_sma_api.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_cache.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_pool.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_sma.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_globals.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_api.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_lock.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_iterator.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_shm.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/php_apc.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_mmap.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_stack.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_bin_api.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_php.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_windows_srwlock_kernel.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/pgsql_s_lock.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_mmap.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/pgsql_s_lock.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_rfc1867.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_cache_api.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_stack.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_bin.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_sma.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/php_apc.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_cache.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_signal.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_iterator.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_signal.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_lock.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_windows_srwlock_kernel.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_serializer.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_lock_api.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_shm.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_sma_api.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_cache.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_persist.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_sma.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_globals.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_arginfo.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_api.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_mutex.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_lock.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_iterator.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_shm.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/php_apc.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_mmap.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_stack.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_php.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_mutex.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_windows_srwlock_kernel.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/php74_shim.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_mmap.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_cache_api.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_stack.c
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_strings.h
Examining data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_sma.h

FINAL RESULTS:

data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_lock.c:184:9:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
        mktemp(
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_mmap.c:97:13:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
        if(!mktemp(file_mask)) {
data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc.h:71:76:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
PHP_APCU_API void apc_error(const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 1, 2);
data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc.h:72:78:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
PHP_APCU_API void apc_warning(const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 1, 2);
data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc.h:73:77:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
PHP_APCU_API void apc_notice(const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 1, 2);
data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc.h:74:76:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
PHP_APCU_API void apc_debug(const char *format, ...) ZEND_ATTRIBUTE_FORMAT(printf, 1, 2);
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_windows_srwlock_kernel.c:63:13:  [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.
    ntdll = LoadLibrary("ntdll.dll");
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc.c:107: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(dup, s, len);
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc.c:122:9:  [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(q, p, n);
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc.c:170: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(p, s, slen);
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc.c:171: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(p + slen, t, tlen + 1);
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_bin.c:184:17:  [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(tmp, (*bp_prev)->arKey, (*bp_prev)->nKeyLength);
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_bin.c:253:14:  [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 digest[16];
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_bin.c:282:9:  [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(bd->swizzled_ptrs, ptr_list, count * sizeof(void**));
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_bin.c:310:14:  [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 md5_orig[16];
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_bin.c:311:14:  [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 digest[16];
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_bin.c:338: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(bd->md5, md5_orig, 16); /* add back md5 checksum */
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_bin_api.h:45:14:  [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 md5[16];
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_cache.c:377:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen(filename, "rb");
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_cache.c:417: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 key[MAXPATHLEN] = {0,};
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_cache.c:447:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file[MAXPATHLEN]={0,};
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_cache.c:1196: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(dst, src, sizeof(src[0]));
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_cache.c:1256:13:  [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(&newp->pDataPtr, newp->pData, sizeof(void*));
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_cache.c:1329: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(dst, src, sizeof(src[0]));
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_globals.h:47: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 tracking_key[64];
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_globals.h:50: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 filename[128];
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_globals.h:51: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 name[64];
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_iterator.c:636: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(&apc_iterator_object_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_lock.c:186: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).
        (*lock) = open(lock_path, O_RDWR|O_CREAT, 0666);
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_mmap.c:78:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open("/dev/zero", O_RDWR, S_IRUSR | S_IWUSR);
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_mmap.c:117:14:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
        fd = mkstemp(file_mask);
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_pool.c:196:8:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
       memcpy(block, decaff, redsize );\
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_pool.c:503:9:  [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(q, p, n);
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_sma.c:310: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(&mask[strlen(mask)-6], "XXXXXX", 6);
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_sma.c:474: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(q, s, len);
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/php_apc.c:292:6:  [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[65];
data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_cache.c:540:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp = fopen(filename, "rb");
data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_cache.c:579: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 key[MAXPATHLEN] = {0,};
data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_cache.c:614:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file[MAXPATHLEN]={0,};
data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_iterator.c:593: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(&apc_iterator_object_handlers, zend_get_std_object_handlers(), sizeof(zend_object_handlers));
data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_lock.c:285:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	*lock = mkstemp(lock_path);
data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_mmap.c:76:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open("/dev/zero", O_RDWR, S_IRUSR | S_IWUSR);
data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_mmap.c:87:8:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
		fd = mkstemp(file_mask);
data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_persist.c:249: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(ptr, val, size);
data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_persist.c:262: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(ZSTR_VAL(str), orig_buf, buf_len);
data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_persist.c:535: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(ht, orig_ht, sizeof(HashTable));
data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_persist.c:544: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(HT_GET_DATA_ADDR(ht), HT_GET_DATA_ADDR(orig_ht), HT_HASH_SIZE(ht->nTableMask));
data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_sma.c:330: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(&mask[strlen(mask)-6], "XXXXXX", 6);
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc.c:101: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(s);
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc.c:114:39:  [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).
    return s != NULL ? apc_xmemcpy(s, strlen(s)+1, f TSRMLS_CC) : NULL;
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc.c:166: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).
    slen = strlen(s);
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc.c:167: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).
    tlen = strlen(t);
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc.c:179:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int src_len = strlen(s);
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc.c:216: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).
    end  = strlen(s) - 1;
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_cache.c:429:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            key_len = strlen(key)+1;
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_cache.c:1114: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).
	    len = strlen(str) + 1;
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_iterator.c:188:52:  [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).
        rval = (pcre_exec(iterator->re, NULL, key, strlen(key), 0, 0, NULL, 0) >= 0);
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_lock.c:89:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(0);
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_mmap.c:67: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).
    if(!file_mask || (file_mask && !strlen(file_mask))) {
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_pool.c:491: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).
    return s != NULL ? apc_pmemcpy(s, (strlen(s) + 1), pool TSRMLS_CC) : NULL;
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_rfc1867.c:104: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).
                int prefix_len = strlen(APCG(rfc1867_prefix));
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_rfc1867.c:106:79:  [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(data->name && !strncasecmp(data->name, APCG(rfc1867_name), strlen(APCG(rfc1867_name))) 
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_sma.c:288:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
       (mask && !strlen(mask)) ||
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_sma.c:310: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).
			memcpy(&mask[strlen(mask)-6], "XXXXXX", 6);
data/php-apcu-5.1.18+4.0.11/apcu-4.0.11/apc_sma.c:466: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(s)+1;
data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_cache.c:591:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			key_len = strlen(key);
data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_lock.c:201:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(0);
data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_mmap.c:65: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).
	if(!file_mask || (file_mask && !strlen(file_mask))) {
data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_sma.c:308:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	   (mask && !strlen(mask)) ||
data/php-apcu-5.1.18+4.0.11/apcu-5.1.18/apc_sma.c:330: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).
			memcpy(&mask[strlen(mask)-6], "XXXXXX", 6);

ANALYSIS SUMMARY:

Hits = 70
Lines analyzed = 18348 in approximately 0.51 seconds (36072 lines/second)
Physical Source Lines of Code (SLOC) = 11058
Hits@level = [0]  17 [1]  22 [2]  41 [3]   1 [4]   6 [5]   0
Hits@level+ = [0+]  87 [1+]  70 [2+]  48 [3+]   7 [4+]   6 [5+]   0
Hits/KSLOC@level+ = [0+] 7.86761 [1+] 6.33026 [2+] 4.34075 [3+] 0.633026 [4+] 0.542594 [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.