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/libdbd-oracle-perl-1.80/oci8.c Examining data/libdbd-oracle-perl-1.80/dbdimp.c Examining data/libdbd-oracle-perl-1.80/Oracle.h Examining data/libdbd-oracle-perl-1.80/dbivport.h Examining data/libdbd-oracle-perl-1.80/ocitrace.h Examining data/libdbd-oracle-perl-1.80/dbdimp.h FINAL RESULTS: data/libdbd-oracle-perl-1.80/dbdimp.c:159:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(ora_home_key, "SOFTWARE\\ORACLE\\HOME%s", last_home_id); data/libdbd-oracle-perl-1.80/dbdimp.c:1758: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(phs->name, start); data/libdbd-oracle-perl-1.80/oci8.c:1452:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf,"fetching field %d of %d. LONG value truncated from %lu to %lu. %s", data/libdbd-oracle-perl-1.80/oci8.c:2040:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf,"fetching %s. LOB value truncated from %ld to %ld. %s", data/libdbd-oracle-perl-1.80/oci8.c:2109:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf,"fetching %s. LOB and the read bufer is only %lubytes, and the ora_ncs_buff_mtpl is %d, which is too small. Try setting ora_ncs_buff_mtpl to %d", data/libdbd-oracle-perl-1.80/oci8.c:2341:4: [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((signed char*)str_buf, s_tz_hour); data/libdbd-oracle-perl-1.80/oci8.c:2342:4: [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((signed char*)str_buf, s_tz_min); data/libdbd-oracle-perl-1.80/oci8.c:4241:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf,"ORA-%05d error on field %d of %d, ora_type %d%s",rc, i+1, num_fields, fbh->dbtype, hint); data/libdbd-oracle-perl-1.80/oci8.c:4644:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(sql_field, "%s%s \"%s\"", data/libdbd-oracle-perl-1.80/dbdimp.c:153:12: [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. char *e = getenv(name); data/libdbd-oracle-perl-1.80/oci8.c:1008:32: [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 (!SvOK(ora_pad_empty) && getenv("ORAPERL_PAD_EMPTY")) data/libdbd-oracle-perl-1.80/oci8.c:1009:34: [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. sv_setiv(ora_pad_empty, atoi(getenv("ORAPERL_PAD_EMPTY"))); data/libdbd-oracle-perl-1.80/dbdimp.c:150: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 last_home_id[WIN32_REG_BUFSIZE+1]; data/libdbd-oracle-perl-1.80/dbdimp.c:151: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 ora_home_key[WIN32_REG_BUFSIZE+1]; data/libdbd-oracle-perl-1.80/dbdimp.c:561: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 (((char *)imp_dbh) + DBH_DUP_OFF, ((char *)shared_dbh) + DBH_DUP_OFF, DBH_DUP_LEN) ; data/libdbd-oracle-perl-1.80/dbdimp.c:926:4: [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((char*)imp_dbh->session_tag, "csid=%d,ncsid=%d", charsetid, ncharsetid); data/libdbd-oracle-perl-1.80/dbdimp.c:1039: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(SvPVX(shared_dbh_priv_sv) + DBH_DUP_OFF, ((char *)imp_dbh) + DBH_DUP_OFF, DBH_DUP_LEN) ; data/libdbd-oracle-perl-1.80/dbdimp.c:1716:4: [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(start,":p%d", ++idx); /* '?' -> ':p1' (etc) */ data/libdbd-oracle-perl-1.80/dbdimp.c:1722:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). idx = atoi(src); data/libdbd-oracle-perl-1.80/dbdimp.c:2069:21: [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( phs->array_buf+phs->maxlen*i, data/libdbd-oracle-perl-1.80/dbdimp.c:3337: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 namebuf[32]; data/libdbd-oracle-perl-1.80/dbdimp.c:3356: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(namebuf, ":p%d", (int)SvIV(ph_namesv)); data/libdbd-oracle-perl-1.80/dbdimp.c:3987: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 namebuf[30]; data/libdbd-oracle-perl-1.80/dbdimp.c:4081:5: [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(namebuf, ":p%d", i+1); data/libdbd-oracle-perl-1.80/dbdimp.h:300: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 name[1]; /* struct is malloc'd bigger as needed */ data/libdbd-oracle-perl-1.80/oci8.c:136:2: [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(SvPVX(sv),"(UNKNOWN OCI EXECUTE MODE %d)", mode); data/libdbd-oracle-perl-1.80/oci8.c:172: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(SvPVX(sv),"(UNKNOWN SQL TYPECODE %d)", dbtype); data/libdbd-oracle-perl-1.80/oci8.c:220:2: [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(SvPVX(sv),"(UNKNOWN OCI TYPECODE %d)", typecode); data/libdbd-oracle-perl-1.80/oci8.c:242:2: [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(SvPVX(sv),"(UNKNOWN OCI STATUS %d)", status); data/libdbd-oracle-perl-1.80/oci8.c:259:2: [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(SvPVX(sv),"(UNKNOWN OCI DEFINE MODE %d)", options); data/libdbd-oracle-perl-1.80/oci8.c:281:2: [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(SvPVX(sv),"(UNKNOWN BIND MODE %d)", options); data/libdbd-oracle-perl-1.80/oci8.c:347:2: [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(SvPVX(sv),"(UNKNOWN OCI MODE %d)", mode); data/libdbd-oracle-perl-1.80/oci8.c:369:2: [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(SvPVX(sv),"(STMT TYPE %d)", stmt_type); data/libdbd-oracle-perl-1.80/oci8.c:387:2: [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(SvPVX(sv),"UNKNOWN RC=%d)", rc); data/libdbd-oracle-perl-1.80/oci8.c:917: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[99]; data/libdbd-oracle-perl-1.80/oci8.c:925:2: [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,"error possibly near <*> indicator at char %d in '", data/libdbd-oracle-perl-1.80/oci8.c:1009:29: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). sv_setiv(ora_pad_empty, atoi(getenv("ORAPERL_PAD_EMPTY"))); data/libdbd-oracle-perl-1.80/oci8.c:1287: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(fb_ary->cb_abuf+fb_ary->piece_count*fb_ary->bufl,fb_ary->abuf,fb_ary->bufl ); data/libdbd-oracle-perl-1.80/oci8.c:1451: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[300]; data/libdbd-oracle-perl-1.80/oci8.c:1829: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(dest_bufp, buffer, amtp); data/libdbd-oracle-perl-1.80/oci8.c:2039:4: [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[300]; data/libdbd-oracle-perl-1.80/oci8.c:2108:4: [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[300]; data/libdbd-oracle-perl-1.80/oci8.c:2130: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[11]; data/libdbd-oracle-perl-1.80/oci8.c:2131:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(buf,"bytes"); data/libdbd-oracle-perl-1.80/oci8.c:2133:4: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(buf,"characters"); data/libdbd-oracle-perl-1.80/oci8.c:2185: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 name[64]; data/libdbd-oracle-perl-1.80/oci8.c:2186:2: [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(name, "field %d of %d", fbh->field_num, DBIc_NUM_FIELDS(fbh->imp_sth)); data/libdbd-oracle-perl-1.80/oci8.c:2324:4: [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 s_tz_hour[3]="000"; data/libdbd-oracle-perl-1.80/oci8.c:2325:4: [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 s_tz_min[3]="000"; data/libdbd-oracle-perl-1.80/oci8.c:2335:5: [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(s_tz_hour," %03d",tz_hour); data/libdbd-oracle-perl-1.80/oci8.c:2337:5: [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(s_tz_hour," %02d",tz_hour); data/libdbd-oracle-perl-1.80/oci8.c:2340:4: [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(s_tz_min,":%02d", tz_minute); data/libdbd-oracle-perl-1.80/oci8.c:2741: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(fb_ary->cb_abuf,fb_ary->abuf,fb_ary->bufl ); data/libdbd-oracle-perl-1.80/oci8.c:2751: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(fb_ary->cb_abuf+imp_sth->piece_size*(fb_ary->piece_count),fb_ary->abuf,fb_ary->bufl ); data/libdbd-oracle-perl-1.80/oci8.c:2831: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(fb_ary->cb_abuf+fb_ary->piece_count*imp_sth->piece_size,fb_ary->abuf,buflen ); data/libdbd-oracle-perl-1.80/oci8.c:3530:4: [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[99]; data/libdbd-oracle-perl-1.80/oci8.c:3531:4: [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,"field_%d_name_too_long", i); data/libdbd-oracle-perl-1.80/oci8.c:4178:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char errstr[256]; data/libdbd-oracle-perl-1.80/oci8.c:4184:8: [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(errstr, data/libdbd-oracle-perl-1.80/oci8.c:4192:8: [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(errstr, data/libdbd-oracle-perl-1.80/oci8.c:4217:4: [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[200]; data/libdbd-oracle-perl-1.80/oci8.c:4321: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[6]; data/libdbd-oracle-perl-1.80/oci8.c:4322: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, "%02X ", (int)(((ub1*)rowid)[i])); data/libdbd-oracle-perl-1.80/oci8.c:4428: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 new_tablename[100]; data/libdbd-oracle-perl-1.80/oci8.c:4460: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 syn_name[100]; data/libdbd-oracle-perl-1.80/oci8.c:4611:4: [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 sql_field[200]; data/libdbd-oracle-perl-1.80/dbdimp.c:872:33: [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). imp_dbh->driver_name, (ub4)strlen(imp_dbh->driver_name), data/libdbd-oracle-perl-1.80/dbdimp.c:888: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). (ub4)strlen(dbname), data/libdbd-oracle-perl-1.80/dbdimp.c:893: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). (ub4)strlen(uid), data/libdbd-oracle-perl-1.80/dbdimp.c:895: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). (ub4)strlen(pwd), data/libdbd-oracle-perl-1.80/dbdimp.c:929: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). pool->pool_name, (ub4)strlen((char *)pool->pool_name), data/libdbd-oracle-perl-1.80/dbdimp.c:930: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). imp_dbh->session_tag, (ub4)strlen((char *)imp_dbh->session_tag), &rettag, &rettagl, &imp_dbh->session_tag_found, status); data/libdbd-oracle-perl-1.80/dbdimp.c:994:32: [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). imp_dbh->driver_name, (ub4)strlen(imp_dbh->driver_name), data/libdbd-oracle-perl-1.80/dbdimp.c:1179:32: [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). imp_dbh->session_tag, (ub4)strlen((char *)imp_dbh->session_tag), imp_dbh->session_tag_found ? OCI_DEFAULT : OCI_SESSRLS_RETAG, status); data/libdbd-oracle-perl-1.80/dbdimp.c:1649:28: [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). Newz(0,imp_sth->statement,strlen(statement) * 10,char); data/libdbd-oracle-perl-1.80/dbdimp.c:1717: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). dest = start+strlen(start); data/libdbd-oracle-perl-1.80/dbdimp.c:2108: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). (text*)phs->name, (sb4)strlen(phs->name), data/libdbd-oracle-perl-1.80/dbdimp.c:2544:51: [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). (text*)phs->name, (sb4)strlen(phs->name), data/libdbd-oracle-perl-1.80/dbdimp.c:2891: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). (text*)phs->name, (sb4)strlen(phs->name), data/libdbd-oracle-perl-1.80/dbdimp.c:2946:9: [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). (sb4)strlen(phs->name), data/libdbd-oracle-perl-1.80/dbdimp.c:3133:28: [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). (text*)phs->name, (sb4)strlen(phs->name), data/libdbd-oracle-perl-1.80/dbdimp.c:3227: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). (text*)phs->name, (sb4)strlen(phs->name), data/libdbd-oracle-perl-1.80/dbdimp.c:3358: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). name_len = strlen(name); data/libdbd-oracle-perl-1.80/dbdimp.c:3833: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). (text*)phs->name, (sb4)strlen(phs->name), data/libdbd-oracle-perl-1.80/dbdimp.c:4083: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). namebuf, strlen(namebuf), 0); data/libdbd-oracle-perl-1.80/oci8.c:1065:36: [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). (text*)imp_sth->statement, (ub4)strlen(imp_sth->statement), data/libdbd-oracle-perl-1.80/oci8.c:3533:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). atrlen = strlen(fbh->name); data/libdbd-oracle-perl-1.80/oci8.c:4263:6: [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(*pwdp)==0 && strchr(*uidp,'/')) { data/libdbd-oracle-perl-1.80/oci8.c:4277: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). *uidp, strlen(*uidp), data/libdbd-oracle-perl-1.80/oci8.c:4281:6: [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(*pwdp)) ? *pwdp : NULL, strlen(*pwdp), data/libdbd-oracle-perl-1.80/oci8.c:4281: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). (strlen(*pwdp)) ? *pwdp : NULL, strlen(*pwdp), data/libdbd-oracle-perl-1.80/oci8.c:4373:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(p, start, *len); data/libdbd-oracle-perl-1.80/oci8.c:4455:69: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). OCIDescribeAny_log_stat(imp_sth, imp_sth->svchp, errhp, tablename, strlen(tablename), data/libdbd-oracle-perl-1.80/oci8.c:4463:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(syn_name,tablename,strlen(tablename)); data/libdbd-oracle-perl-1.80/oci8.c:4463: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). strncpy(syn_name,tablename,strlen(tablename)); data/libdbd-oracle-perl-1.80/oci8.c:4476:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(new_tablename,syn_schema,syn_schema_len); data/libdbd-oracle-perl-1.80/oci8.c:4479:3: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(new_tablename, tablename,tn_len); data/libdbd-oracle-perl-1.80/oci8.c:4491:69: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). OCIDescribeAny_log_stat(imp_sth, imp_sth->svchp, errhp, tablename, strlen(tablename), data/libdbd-oracle-perl-1.80/oci8.c:4497:70: [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). OCIDescribeAny_log_stat(imp_sth, imp_sth->svchp, errhp, tablename, strlen(tablename), data/libdbd-oracle-perl-1.80/oci8.c:4722:61: [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 **phs_svp = hv_fetch(imp_sth->all_params_hv, fbh->name,strlen(fbh->name), 0); data/libdbd-oracle-perl-1.80/ocitrace.h:523: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). (text*)dbname, (sb4)strlen(dbname), md); \ data/libdbd-oracle-perl-1.80/ocitrace.h:527:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). ul_t(strlen(dbname)), oci_mode(md),ul_t(md),oci_status_name(stat)),stat : stat ANALYSIS SUMMARY: Hits = 102 Lines analyzed = 10985 in approximately 0.41 seconds (27085 lines/second) Physical Source Lines of Code (SLOC) = 8357 Hits@level = [0] 0 [1] 36 [2] 54 [3] 3 [4] 9 [5] 0 Hits@level+ = [0+] 102 [1+] 102 [2+] 66 [3+] 12 [4+] 9 [5+] 0 Hits/KSLOC@level+ = [0+] 12.2053 [1+] 12.2053 [2+] 7.89757 [3+] 1.43592 [4+] 1.07694 [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.