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/redland-bindings-1.0.17.1+dfsg/ruby/redland_wrap.c Examining data/redland-bindings-1.0.17.1+dfsg/perl/CORE_wrap.c Examining data/redland-bindings-1.0.17.1+dfsg/lua/redland_wrap.c Examining data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c Examining data/redland-bindings-1.0.17.1+dfsg/php/php_redland.h Examining data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c FINAL RESULTS: data/redland-bindings-1.0.17.1+dfsg/lua/redland_wrap.c:659: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(r,name); data/redland-bindings-1.0.17.1+dfsg/lua/redland_wrap.c:1231:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(output, "<%s userdata: %lX>", className, userData); data/redland-bindings-1.0.17.1+dfsg/perl/CORE_wrap.c:658: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(r,name); data/redland-bindings-1.0.17.1+dfsg/perl/CORE_wrap.c:1240: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(r,SWIG_Perl_TypeProxyName(type)); data/redland-bindings-1.0.17.1+dfsg/perl/CORE_wrap.c:1468:8: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. #ifdef access data/redland-bindings-1.0.17.1+dfsg/perl/CORE_wrap.c:1469:10: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. #undef access data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:659: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(r,name); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:848:9: [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(classname, SWIG_PREFIX); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:849:9: [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(classname + SWIG_PREFIX_LEN, type_name); data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:662: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(r,name); data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:802:25: [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. # define PyOS_snprintf _snprintf data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:804:25: [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. # define PyOS_snprintf snprintf data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:821:9: [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. res = vsnprintf(buf, sizeof(buf), fmt, ap); data/redland-bindings-1.0.17.1+dfsg/ruby/redland_wrap.c:766: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(r,name); data/redland-bindings-1.0.17.1+dfsg/ruby/redland_wrap.c:1495:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(klass_name, "TYPE%s", type->name); data/redland-bindings-1.0.17.1+dfsg/ruby/redland_wrap.c:1551:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(klass_name, "TYPE%s", type->name); data/redland-bindings-1.0.17.1+dfsg/ruby/redland_wrap.c:1686: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(r, type->name); data/redland-bindings-1.0.17.1+dfsg/lua/redland_wrap.c:610:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char hex[17] = "0123456789abcdef"; data/redland-bindings-1.0.17.1+dfsg/lua/redland_wrap.c:847: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 data[1]; /* arbitary amount of data */ data/redland-bindings-1.0.17.1+dfsg/lua/redland_wrap.c:1230: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 output[256]; data/redland-bindings-1.0.17.1+dfsg/lua/redland_wrap.c:1481: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(raw->data,ptr,size); /* copy the data */ data/redland-bindings-1.0.17.1+dfsg/lua/redland_wrap.c:1493: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(ptr,raw->data,size); /* copy it */ data/redland-bindings-1.0.17.1+dfsg/lua/redland_wrap.c:1565:25: [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. lua_pushstring(L,(char *) constants[i].pvalue); data/redland-bindings-1.0.17.1+dfsg/perl/CORE_wrap.c:609:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char hex[17] = "0123456789abcdef"; data/redland-bindings-1.0.17.1+dfsg/perl/CORE_wrap.c:1235: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 result[1024]; data/redland-bindings-1.0.17.1+dfsg/perl/CORE_wrap.c:1459: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). #ifdef open data/redland-bindings-1.0.17.1+dfsg/perl/CORE_wrap.c:1460:10: [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). #undef open data/redland-bindings-1.0.17.1+dfsg/perl/CORE_wrap.c:1622:20: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. *cptr = (char *)memcpy((char *)malloc((size)*sizeof(char)), cstr, sizeof(char)*(size)); data/redland-bindings-1.0.17.1+dfsg/perl/CORE_wrap.c:9655:27: [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. sv_setpv(sv, (const char *) swig_constants[i].pvalue); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:610:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char hex[17] = "0123456789abcdef"; data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:1282:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:1362:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:1401:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:1487:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:1524:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:1534:13: [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. arg3 = (char *) Z_STRVAL_PP(args[2]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:1571:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:2015:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:2080:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:2283:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:2372:13: [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. arg3 = (char *) Z_STRVAL_PP(args[2]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:2414:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:2476:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:2486:15: [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. arg3 = (char *) Z_STRVAL_PP(args[2]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:2538:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:2548:15: [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. arg3 = (char *) Z_STRVAL_PP(args[2]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:2634:15: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:3571:13: [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. arg3 = (char *) Z_STRVAL_PP(args[2]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:3795:13: [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. arg4 = (char *) Z_STRVAL_PP(args[3]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:3805:15: [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. arg5 = (char *) Z_STRVAL_PP(args[4]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:3873:13: [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. arg4 = (char *) Z_STRVAL_PP(args[3]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:3883:13: [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. arg5 = (char *) Z_STRVAL_PP(args[4]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:5008:15: [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. arg3 = (char *) Z_STRVAL_PP(args[2]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:5019:15: [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. arg4 = (char *) Z_STRVAL_PP(args[3]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:5111:15: [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. arg3 = (char *) Z_STRVAL_PP(args[2]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:5122:15: [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. arg4 = (char *) Z_STRVAL_PP(args[3]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:5251:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:5261:13: [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. arg3 = (char *) Z_STRVAL_PP(args[2]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:5271:13: [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. arg4 = (char *) Z_STRVAL_PP(args[3]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:5354:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:5392:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:5402:13: [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. arg3 = (char *) Z_STRVAL_PP(args[2]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:5573:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:5624:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:5676:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:5734:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:5870:13: [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. arg1 = (char *) Z_STRVAL_PP(args[0]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:5880:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:5890:13: [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. arg3 = (char *) Z_STRVAL_PP(args[2]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:5932:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:5942:13: [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. arg3 = (char *) Z_STRVAL_PP(args[2]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:5952:13: [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. arg4 = (char *) Z_STRVAL_PP(args[3]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:6088:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:6107:13: [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. arg4 = (char *) Z_STRVAL_PP(args[3]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:6520:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:6587:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:6644:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:6654:13: [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. arg3 = (char *) Z_STRVAL_PP(args[2]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:6761:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:6771:13: [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. arg3 = (char *) Z_STRVAL_PP(args[2]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:6977:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:7015:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:7025:13: [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. arg3 = (char *) Z_STRVAL_PP(args[2]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:7094:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:7146:13: [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. arg2 = (char *) Z_STRVAL_PP(args[1]); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:7382:13: [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. arg3 = (char *) Z_STRVAL_PP(args[2]); data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:613:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char hex[17] = "0123456789abcdef"; data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:774: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(newstr, cstr, len+1); data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:818:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[SWIG_PYBUFFER_SIZE * 2]; data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:1602: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 result[SWIG_BUFFER_SIZE]; data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:1991: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 result[SWIG_BUFFER_SIZE]; data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:2005: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 result[SWIG_BUFFER_SIZE]; data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:2016: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 result[SWIG_BUFFER_SIZE]; data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:2150:7: [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(pack, ptr, size); data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:2168: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(ptr, sobj->pack, size); data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:2792: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 mesg[256]; data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:3093:22: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. *cptr = (char *)memcpy((char *)malloc((len + 1)*sizeof(char)), cstr, sizeof(char)*(len + 1)); data/redland-bindings-1.0.17.1+dfsg/ruby/redland_wrap.c:717:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char hex[17] = "0123456789abcdef"; data/redland-bindings-1.0.17.1+dfsg/ruby/redland_wrap.c:1089:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128]; data/redland-bindings-1.0.17.1+dfsg/ruby/redland_wrap.c:1102:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf( buf, "%d of type ", argn-1 ); data/redland-bindings-1.0.17.1+dfsg/ruby/redland_wrap.c:1681: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 result[1024]; data/redland-bindings-1.0.17.1+dfsg/ruby/redland_wrap.c:1945:20: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. *cptr = (char *)memcpy((char *)malloc((size)*sizeof(char)), cstr, sizeof(char)*(size)); data/redland-bindings-1.0.17.1+dfsg/lua/redland_wrap.c:363: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). const char* te = tb + strlen(tb); data/redland-bindings-1.0.17.1+dfsg/lua/redland_wrap.c:382: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). const char* te = tb + strlen(tb); data/redland-bindings-1.0.17.1+dfsg/lua/redland_wrap.c:658: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(name) + 1 > (bsz - (r - buff))) return 0; data/redland-bindings-1.0.17.1+dfsg/lua/redland_wrap.c:679:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t lname = (name ? strlen(name) : 0); data/redland-bindings-1.0.17.1+dfsg/lua/redland_wrap.c:684:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(r,name,lname+1); data/redland-bindings-1.0.17.1+dfsg/perl/CORE_wrap.c:362: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). const char* te = tb + strlen(tb); data/redland-bindings-1.0.17.1+dfsg/perl/CORE_wrap.c:381: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). const char* te = tb + strlen(tb); data/redland-bindings-1.0.17.1+dfsg/perl/CORE_wrap.c:657: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(name) + 1 > (bsz - (r - buff))) return 0; data/redland-bindings-1.0.17.1+dfsg/perl/CORE_wrap.c:678:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t lname = (name ? strlen(name) : 0); data/redland-bindings-1.0.17.1+dfsg/perl/CORE_wrap.c:683:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(r,name,lname+1); data/redland-bindings-1.0.17.1+dfsg/perl/CORE_wrap.c:1237: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). if ((2*sz + 1 + strlen(SWIG_Perl_TypeProxyName(type))) > 1000) return; data/redland-bindings-1.0.17.1+dfsg/perl/CORE_wrap.c:1329:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sv_magic(sv,sv,'U',name,strlen(name)); data/redland-bindings-1.0.17.1+dfsg/perl/CORE_wrap.c:1426:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #ifdef read data/redland-bindings-1.0.17.1+dfsg/perl/CORE_wrap.c:1427:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #undef read data/redland-bindings-1.0.17.1+dfsg/perl/CORE_wrap.c:1637:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (psize) *psize = vptr ? (strlen(vptr) + 1) : 0; data/redland-bindings-1.0.17.1+dfsg/perl/CORE_wrap.c:1791:48: [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 SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:363: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). const char* te = tb + strlen(tb); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:382: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). const char* te = tb + strlen(tb); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:658: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(name) + 1 > (bsz - (r - buff))) return 0; data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:679:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t lname = (name ? strlen(name) : 0); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:684:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(r,name,lname+1); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:745:102: [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). #define SWIG_STRING_CONSTANT(N, V) zend_register_stringl_constant((char*)#N, sizeof(#N), (char*)(V), strlen(V), CONST_CS | CONST_PERSISTENT, module_number TSRMLS_CC) data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:842: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). type_name_len = strlen(type_name); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:8953: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). z_var->value.str.len = strlen(librdf_short_copyright_string); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:8966: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). z_var->value.str.len = strlen(librdf_copyright_string); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:8979: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). z_var->value.str.len = strlen(librdf_version_string); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:9020: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). z_var->value.str.len = strlen(raptor_version_string); data/redland-bindings-1.0.17.1+dfsg/php/redland_wrap.c:9061: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). z_var->value.str.len = strlen(rasqal_version_string); data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:366: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). const char* te = tb + strlen(tb); data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:385: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). const char* te = tb + strlen(tb); data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:661: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(name) + 1 > (bsz - (r - buff))) return 0; data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:682:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t lname = (name ? strlen(name) : 0); data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:687:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(r,name,lname+1); data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:855:91: [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). # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:3118:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0; data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:3289:48: [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 SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:12554:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t size = strlen(name)+1; data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:12557:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(gv->name,name,size); data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:12619: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). strlen(const_table[j].name)) == 0) { data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:12630:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:12634:15: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buff, methods[i].ml_doc, ldoc); data/redland-bindings-1.0.17.1+dfsg/python/Redland_wrap.c:12636:15: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(buff, "swig_ptr: ", 10); data/redland-bindings-1.0.17.1+dfsg/ruby/redland_wrap.c:470: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). const char* te = tb + strlen(tb); data/redland-bindings-1.0.17.1+dfsg/ruby/redland_wrap.c:489: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). const char* te = tb + strlen(tb); data/redland-bindings-1.0.17.1+dfsg/ruby/redland_wrap.c:765: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(name) + 1 > (bsz - (r - buff))) return 0; data/redland-bindings-1.0.17.1+dfsg/ruby/redland_wrap.c:786:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t lname = (name ? strlen(name) : 0); data/redland-bindings-1.0.17.1+dfsg/ruby/redland_wrap.c:791:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(r,name,lname+1); data/redland-bindings-1.0.17.1+dfsg/ruby/redland_wrap.c:847:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #ifdef read data/redland-bindings-1.0.17.1+dfsg/ruby/redland_wrap.c:848:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). # undef read data/redland-bindings-1.0.17.1+dfsg/ruby/redland_wrap.c:1494: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). char *klass_name = (char *) malloc(4 + strlen(type->name) + 1); data/redland-bindings-1.0.17.1+dfsg/ruby/redland_wrap.c:1550: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). klass_name = (char *) malloc(4 + strlen(type->name) + 1); data/redland-bindings-1.0.17.1+dfsg/ruby/redland_wrap.c:1683: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). if ((2*sz + 1 + strlen(type->name)) > 1000) return 0; data/redland-bindings-1.0.17.1+dfsg/ruby/redland_wrap.c:1960:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (psize) *psize = vptr ? (strlen((char*)vptr) + 1) : 0; data/redland-bindings-1.0.17.1+dfsg/ruby/redland_wrap.c:2104:48: [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 SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0)); ANALYSIS SUMMARY: Hits = 156 Lines analyzed = 48769 in approximately 1.32 seconds (36837 lines/second) Physical Source Lines of Code (SLOC) = 39669 Hits@level = [0] 74 [1] 54 [2] 85 [3] 0 [4] 17 [5] 0 Hits@level+ = [0+] 230 [1+] 156 [2+] 102 [3+] 17 [4+] 17 [5+] 0 Hits/KSLOC@level+ = [0+] 5.79798 [1+] 3.93254 [2+] 2.57128 [3+] 0.428546 [4+] 0.428546 [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.