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/jhdf-2.11.0+dfsg/native/hdf5lib/h5eImp.c Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5Constants.c Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5dImp.h Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5dImp.c Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5lImp.h Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5rImp.h Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/nativeData.c Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5Imp.c Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5tImp.c Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5aImp.c Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5zImp.h Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5gImp.h Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5pImp.h Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5pImp.c Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5zImp.c Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/exceptionImp.c Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5tImp.h Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5oImp.c Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.h Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5sImp.c Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5iImp.c Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5rImp.c Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5fImp.c Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5sImp.h Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5eImp.h Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5fImp.h Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5gImp.c Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5aImp.h Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5iImp.h Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5oImp.h Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5lImp.c Examining data/jhdf-2.11.0+dfsg/native/hdf5lib/h5jni.h Examining data/jhdf-2.11.0+dfsg/native/hdflib/hdfexceptionImp.c Examining data/jhdf-2.11.0+dfsg/native/hdflib/hdfr24Imp.c Examining data/jhdf-2.11.0+dfsg/native/hdflib/hdfdfsdImp.c Examining data/jhdf-2.11.0+dfsg/native/hdflib/hdfvfImp.c Examining data/jhdf-2.11.0+dfsg/native/hdflib/hdfhxImp.c Examining data/jhdf-2.11.0+dfsg/native/hdflib/hdfr8Imp.c Examining data/jhdf-2.11.0+dfsg/native/hdflib/hdfvhImp.c Examining data/jhdf-2.11.0+dfsg/native/hdflib/hdfImp.c Examining data/jhdf-2.11.0+dfsg/native/hdflib/hdfvdataImp.c Examining data/jhdf-2.11.0+dfsg/native/hdflib/hdfdfcompImp.c Examining data/jhdf-2.11.0+dfsg/native/hdflib/hdfanImp.c Examining data/jhdf-2.11.0+dfsg/native/hdflib/hdfdfanImp.c Examining data/jhdf-2.11.0+dfsg/native/hdflib/hdfstructsutil.c Examining data/jhdf-2.11.0+dfsg/native/hdflib/hdfvsqImp.c Examining data/jhdf-2.11.0+dfsg/native/hdflib/hdfdfuImp.c Examining data/jhdf-2.11.0+dfsg/native/hdflib/hdfdfpalImp.c Examining data/jhdf-2.11.0+dfsg/native/hdflib/hdfnativeImp.c Examining data/jhdf-2.11.0+dfsg/native/hdflib/hdfsdsImp.c Examining data/jhdf-2.11.0+dfsg/native/hdflib/hdfvqImp.c Examining data/jhdf-2.11.0+dfsg/native/hdflib/hdfgrImp.c Examining data/jhdf-2.11.0+dfsg/native/hdflib/hdfheImp.c Examining data/jhdf-2.11.0+dfsg/native/hdflib/hdfvgroupImp.c Examining data/jhdf-2.11.0+dfsg/config/cmake_ext_mod/HDFCXXTests.cpp Examining data/jhdf-2.11.0+dfsg/config/cmake_ext_mod/HDFTests.c Examining data/jhdf-2.11.0+dfsg/config/cmake_ext_mod/GetTimeOfDayTest.cpp FINAL RESULTS: data/jhdf-2.11.0+dfsg/config/cmake_ext_mod/HDFTests.c:244:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(formatString, "%%%sd", *currentArg); data/jhdf-2.11.0+dfsg/config/cmake_ext_mod/HDFTests.c:245:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(s, formatString, x); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5gImp.c:1027: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(*(datainfo->objname+datainfo->count), name); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5gImp.c:1034: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(*(datainfo->objname+datainfo->count), name); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5gImp.c:1071: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(*(datainfo->objname+datainfo->count), name); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5pImp.c:4110:25: [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(member_name[i], utf8); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:91: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(new_str, str->s); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:118:12: [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). return strcat(str->s, cstr); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:163:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fmt_llong, "%%%sd", H5_PRINTF_LL_WIDTH); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:164:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fmt_ullong, "%%%su", H5_PRINTF_LL_WIDTH); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:282:21: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(this_str, fmt_ullong, tmp_ullong); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:288:21: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(this_str, fmt_llong, tmp_llong); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:325:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(this_str, "%s%02x", i ? ":" : "", ucptr[i]); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:456:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(this_str, "%s%02x", i ? ":" : "", ucptr[i]); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:668:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp_str, "%s%lu", j ? "," : "(", data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:675:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp_str, "%s%lu", j ? "," : ")-(", data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:853:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp_str, "%s%lu", j ? "," : "(", data/jhdf-2.11.0+dfsg/native/hdflib/hdfImp.c:48:6: [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. jint access) data/jhdf-2.11.0+dfsg/native/hdflib/hdfImp.c:69:34: [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. retVal = Hopen((char *)file, access, 0); data/jhdf-2.11.0+dfsg/native/hdflib/hdfImp.c:338:6: [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. jint access, data/jhdf-2.11.0+dfsg/native/hdflib/hdfImp.c:346:40: [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. rval = HDFopen((char *)str, (intn) access, (int16) n_dds); data/jhdf-2.11.0+dfsg/native/hdflib/hdfsdsImp.c:51:6: [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. jint access) data/jhdf-2.11.0+dfsg/native/hdflib/hdfsdsImp.c:58:34: [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. sdid = SDstart(fname, (int32)access); data/jhdf-2.11.0+dfsg/native/hdflib/hdfvdataImp.c:53:12: [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. char *access; data/jhdf-2.11.0+dfsg/native/hdflib/hdfvdataImp.c:58:47: [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. retVal = VSattach(fid, vdata_ref, (char *)access); data/jhdf-2.11.0+dfsg/native/hdflib/hdfvdataImp.c:60:53: [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. ENVPTR->ReleaseStringUTFChars(ENVPAR accessmode,access); data/jhdf-2.11.0+dfsg/native/hdflib/hdfvgroupImp.c:67:12: [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. char *access; data/jhdf-2.11.0+dfsg/native/hdflib/hdfvgroupImp.c:72:47: [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. retVal = Vattach(fid, vgroup_ref, (char *)access); data/jhdf-2.11.0+dfsg/native/hdflib/hdfvgroupImp.c:74:53: [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. ENVPTR->ReleaseStringUTFChars(ENVPAR accessmode,access); data/jhdf-2.11.0+dfsg/native/hdflib/hdfvgroupImp.c:542:6: [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. jint access, data/jhdf-2.11.0+dfsg/native/hdflib/hdfvgroupImp.c:550:38: [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. rval = Vopen((char *)str, (intn) access, (int16) ndds); data/jhdf-2.11.0+dfsg/config/cmake_ext_mod/HDFTests.c:243: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 formatString[64]; data/jhdf-2.11.0+dfsg/config/cmake_ext_mod/HDFTests.c:335:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((fid=open("tst_file", O_CREAT | O_TRUNC | O_DIRECT, 0755))<0) data/jhdf-2.11.0+dfsg/config/cmake_ext_mod/HDFTests.c:371:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *file = fopen( argv[0], "r" ); data/jhdf-2.11.0+dfsg/native/hdf5lib/exceptionImp.c:111:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). stream = fopen(file, "a+"); data/jhdf-2.11.0+dfsg/native/hdf5lib/exceptionImp.c:200: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 * args[2]; data/jhdf-2.11.0+dfsg/native/hdf5lib/exceptionImp.c:241: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 * args[2]; data/jhdf-2.11.0+dfsg/native/hdf5lib/exceptionImp.c:280: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 * args[2]; data/jhdf-2.11.0+dfsg/native/hdf5lib/exceptionImp.c:320: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 * args[2]; data/jhdf-2.11.0+dfsg/native/hdf5lib/exceptionImp.c:359: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 * args[2]; data/jhdf-2.11.0+dfsg/native/hdf5lib/exceptionImp.c:401: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 *args[2]; data/jhdf-2.11.0+dfsg/native/hdf5lib/exceptionImp.c:469: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 * args[2]; data/jhdf-2.11.0+dfsg/native/hdf5lib/h5aImp.c:336:48: [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 *)wndata[i].p)[j++] = tmp_uchar; data/jhdf-2.11.0+dfsg/native/hdf5lib/h5aImp.c:345:52: [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 *)wndata[i].p)[j++] = tmp_uchar; data/jhdf-2.11.0+dfsg/native/hdf5lib/h5aImp.c:351:39: [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 *)wndata[i].p)[j++] = tmp_char; data/jhdf-2.11.0+dfsg/native/hdf5lib/h5aImp.c:360:43: [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 *)wndata[i].p)[j++] = tmp_char; data/jhdf-2.11.0+dfsg/native/hdf5lib/h5dImp.c:1065: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(cstr, c_buf+pos, str_len); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5dImp.c:1476:40: [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 *)wdata[i].p)[j++] = tmp_uchar; data/jhdf-2.11.0+dfsg/native/hdf5lib/h5dImp.c:1485:44: [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 *)wdata[i].p)[j++] = tmp_uchar; data/jhdf-2.11.0+dfsg/native/hdf5lib/h5dImp.c:1492:31: [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 *)wdata[i].p)[j++] = tmp_char; data/jhdf-2.11.0+dfsg/native/hdf5lib/h5dImp.c:1501:35: [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 *)wdata[i].p)[j++] = tmp_char; data/jhdf-2.11.0+dfsg/native/hdf5lib/h5dImp.c:1727:48: [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 *)wdata[i].p)[j++] = tmp_uchar; data/jhdf-2.11.0+dfsg/native/hdf5lib/h5dImp.c:1736:52: [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 *)wdata[i].p)[j++] = tmp_uchar; data/jhdf-2.11.0+dfsg/native/hdf5lib/h5dImp.c:1743:39: [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 *)wdata[i].p)[j++] = tmp_char; data/jhdf-2.11.0+dfsg/native/hdf5lib/h5dImp.c:1752:43: [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 *)wdata[i].p)[j++] = tmp_char; data/jhdf-2.11.0+dfsg/native/hdf5lib/h5fImp.c:716:14: [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). stream = fopen(file_export, "w+"); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5pImp.c:4069: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 *member_name[H5FD_MEM_NTYPES]; data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:140:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char fmt_llong[8], fmt_ullong[8]; data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:174: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(&tmp_float, ptr, sizeof(float)); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:176: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(this_str, "%g", tmp_float); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:180: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(&tmp_double, ptr, sizeof(double)); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:182: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(this_str, "%g", tmp_double); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:187: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(&tmp_ldouble, ptr, sizeof(long double)); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:189: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(this_str, "%Lf", tmp_ldouble); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:224:15: [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_uchar, ptr, sizeof(unsigned char)); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:226:15: [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(this_str, "%u", tmp_uchar); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:230:15: [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_char, ptr, sizeof(char)); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:232:15: [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(this_str, "%hhd", tmp_char); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:238:15: [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_uint, ptr, sizeof(unsigned int)); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:240:15: [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(this_str, "%u", tmp_uint); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:244:15: [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_int, ptr, sizeof(int)); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:246:15: [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(this_str, "%d", tmp_int); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:252: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(&tmp_ushort, ptr, sizeof(unsigned short)); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:254:21: [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(this_str, "%u", tmp_ushort); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:258: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(&tmp_short, ptr, sizeof(short)); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:260:21: [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(this_str, "%d", tmp_short); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:266: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(&tmp_ulong, ptr, sizeof(unsigned long)); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:268:21: [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(this_str, "%lu", tmp_ulong); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:272: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(&tmp_long, ptr, sizeof(long)); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:274:21: [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(this_str, "%ld", tmp_long); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:280: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(&tmp_ullong, ptr, sizeof(unsigned long long)); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:286: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(&tmp_llong, ptr, sizeof(long long)); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:311: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 enum_name[1024]; data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:321:7: [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(this_str, "0x%02x", ucptr[0]); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:341: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. char ref_name[1024]; data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:396:21: [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(this_str, "%u-%lu", (unsigned) oi.type, oi.addr); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:452:6: [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(this_str, "0x%02x", ucptr[0]); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:587: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 tmp_str[256]; data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:639: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 tmp_str[256]; data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:714: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 tmp_str[256]; data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:771: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 tmp_str[256]; data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:823: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 tmp_str[256]; data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:1201:29: [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(&tempuchar, &s[i], sizeof(unsigned char)); data/jhdf-2.11.0+dfsg/native/hdf5lib/nativeData.c:664:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[4]; data/jhdf-2.11.0+dfsg/native/hdf5lib/nativeData.c:737:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[4]; data/jhdf-2.11.0+dfsg/native/hdf5lib/nativeData.c:810:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[4]; data/jhdf-2.11.0+dfsg/native/hdf5lib/nativeData.c:882:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[8]; data/jhdf-2.11.0+dfsg/native/hdf5lib/nativeData.c:955:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[8]; data/jhdf-2.11.0+dfsg/native/hdf5lib/nativeData.c:1022:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[sizeof(int)]; data/jhdf-2.11.0+dfsg/native/hdf5lib/nativeData.c:1062:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[sizeof(float)]; data/jhdf-2.11.0+dfsg/native/hdf5lib/nativeData.c:1102:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[sizeof(short)]; data/jhdf-2.11.0+dfsg/native/hdf5lib/nativeData.c:1143:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[sizeof(double)]; data/jhdf-2.11.0+dfsg/native/hdf5lib/nativeData.c:1184:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[sizeof(jlong)]; data/jhdf-2.11.0+dfsg/native/hdf5lib/nativeData.c:1224:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[sizeof(jbyte)]; data/jhdf-2.11.0+dfsg/native/hdflib/hdfImp.c:199: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 s[LIBVSTR_LEN+1] ; data/jhdf-2.11.0+dfsg/native/hdflib/hdfImp.c:246: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 s[LIBVSTR_LEN+1] ; data/jhdf-2.11.0+dfsg/native/hdflib/hdfexceptionImp.c:65:1: [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 * args[2]; data/jhdf-2.11.0+dfsg/native/hdflib/hdfexceptionImp.c:94:1: [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 * args[2]; data/jhdf-2.11.0+dfsg/native/hdflib/hdfexceptionImp.c:125:1: [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 * args[2]; data/jhdf-2.11.0+dfsg/native/hdflib/hdfexceptionImp.c:153:1: [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 * args[2]; data/jhdf-2.11.0+dfsg/native/hdflib/hdfnativeImp.c:678:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[4]; data/jhdf-2.11.0+dfsg/native/hdflib/hdfnativeImp.c:751:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[4]; data/jhdf-2.11.0+dfsg/native/hdflib/hdfnativeImp.c:824:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[4]; data/jhdf-2.11.0+dfsg/native/hdflib/hdfnativeImp.c:897:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[8]; data/jhdf-2.11.0+dfsg/native/hdflib/hdfnativeImp.c:971:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[8]; data/jhdf-2.11.0+dfsg/native/hdflib/hdfnativeImp.c:1039:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[sizeof(int)]; data/jhdf-2.11.0+dfsg/native/hdflib/hdfnativeImp.c:1079:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[sizeof(float)]; data/jhdf-2.11.0+dfsg/native/hdflib/hdfnativeImp.c:1119:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[sizeof(short)]; data/jhdf-2.11.0+dfsg/native/hdflib/hdfnativeImp.c:1161:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[sizeof(double)]; data/jhdf-2.11.0+dfsg/native/hdflib/hdfnativeImp.c:1202:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[sizeof(jlong)]; data/jhdf-2.11.0+dfsg/native/hdflib/hdfnativeImp.c:1243:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[sizeof(jbyte)]; data/jhdf-2.11.0+dfsg/native/hdflib/hdfsdsImp.c:284: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[256]; /* what is the correct constant??? */ data/jhdf-2.11.0+dfsg/native/hdflib/hdfsdsImp.c:355: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 nam[256]; /* what is the correct constant??? */ data/jhdf-2.11.0+dfsg/native/hdflib/hdfvdataImp.c:146: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 nameName[VSNAMELENMAX+1]; data/jhdf-2.11.0+dfsg/native/hdflib/hdfvdataImp.c:769: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 nam[256]; /* what is the correct constant??? */ data/jhdf-2.11.0+dfsg/native/hdflib/hdfvgroupImp.c:616: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 nam[256]; /* what is the correct constant??? */ data/jhdf-2.11.0+dfsg/native/hdflib/hdfvsqImp.c:76: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 flds[4096]; data/jhdf-2.11.0+dfsg/native/hdf5lib/h5aImp.c:262:25: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(temp, utf8, length); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5aImp.c:275:25: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(temp, utf8, length); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5aImp.c:492:29: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(wsdata[i], utf8, length); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5aImp.c:567:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(wdata[i], utf8, length); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5dImp.c:1297:19: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(wdata[i], utf8, length); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5dImp.c:1398:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(temp, utf8, length); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5dImp.c:1415:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(temp, utf8, length); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5gImp.c:1026:64: [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). *(datainfo->objname+datainfo->count) = (char *) malloc(strlen(name)+1); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5gImp.c:1033:64: [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). *(datainfo->objname+datainfo->count) = (char *) malloc(strlen(name)+1); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5gImp.c:1070:63: [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). *(datainfo->objname+datainfo->count) = (char *)malloc(strlen(name)+1); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5pImp.c:4108: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). member_name[i] = (char*)malloc(strlen(utf8) + 1); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5pImp.c:4471:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(cacheinfo.trace_file_name, str, 1025); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:93:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(new_str, str->s, new_len - 1); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:112: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(str->s) + strlen(cstr); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:112: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). len = strlen(str->s) + strlen(cstr); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:201: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). size = strlen(tmp_str); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:210:6: [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(this_str, "NULL", 4); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:215:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(this_str, tmp_str, size); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:464: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). this_strlen = strlen(str->s); data/jhdf-2.11.0+dfsg/native/hdf5lib/h5util.c:1195: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). size = strlen(s); ANALYSIS SUMMARY: Hits = 147 Lines analyzed = 37160 in approximately 1.06 seconds (35170 lines/second) Physical Source Lines of Code (SLOC) = 25956 Hits@level = [0] 54 [1] 20 [2] 96 [3] 0 [4] 31 [5] 0 Hits@level+ = [0+] 201 [1+] 147 [2+] 127 [3+] 31 [4+] 31 [5+] 0 Hits/KSLOC@level+ = [0+] 7.74387 [1+] 5.66343 [2+] 4.8929 [3+] 1.19433 [4+] 1.19433 [5+] 0 Dot directories skipped = 2 (--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.