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/hdf-eos4-2.20v1.00/gctp/src/bceafor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/wviiinv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/ceainv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/goodinv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/lamazfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/alconfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/gctp.c Examining data/hdf-eos4-2.20v1.00/gctp/src/molwinv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/somfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/ceafor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/wivinv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/sphdz.c Examining data/hdf-eos4-2.20v1.00/gctp/src/obleqinv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/millinv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/omerfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/orthinv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/aziminv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/inv_init.c Examining data/hdf-eos4-2.20v1.00/gctp/src/untfz.c Examining data/hdf-eos4-2.20v1.00/gctp/src/equiinv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/stplninv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/polyfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/paksz.c Examining data/hdf-eos4-2.20v1.00/gctp/src/robfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/alconinv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/haminv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/sininv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/isinusinv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/sinfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/tmfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/merinv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/azimfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/polyinv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/eqconfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/for_init.c Examining data/hdf-eos4-2.20v1.00/gctp/src/gvnspfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/alberinv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/goodfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/stplnfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/molwfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/wviifor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/tminv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/gnominv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/imolwinv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/lamccinv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/millfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/hamfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/eqconinv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/br_gctp.c Examining data/hdf-eos4-2.20v1.00/gctp/src/psinv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/sterinv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/merfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/vandgfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/lamccfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/cproj.c Examining data/hdf-eos4-2.20v1.00/gctp/src/robinv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/alberfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/psfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/bceainv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/sominv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/equifor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/utmfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/imolwfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/gnomfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/orthfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/lamazinv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/sterfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/report.c Examining data/hdf-eos4-2.20v1.00/gctp/src/isinusfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/vandginv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/omerinv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/utminv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/obleqfor.c Examining data/hdf-eos4-2.20v1.00/gctp/src/gvnspinv.c Examining data/hdf-eos4-2.20v1.00/gctp/src/wivfor.c Examining data/hdf-eos4-2.20v1.00/gctp/include/gctp_prototypes.h Examining data/hdf-eos4-2.20v1.00/gctp/include/bcea.h Examining data/hdf-eos4-2.20v1.00/gctp/include/proj.h Examining data/hdf-eos4-2.20v1.00/gctp/include/cproj_prototypes.h Examining data/hdf-eos4-2.20v1.00/gctp/include/isin.h Examining data/hdf-eos4-2.20v1.00/gctp/include/cproj.h Examining data/hdf-eos4-2.20v1.00/src/PTapi.c Examining data/hdf-eos4-2.20v1.00/src/EHapi.c Examining data/hdf-eos4-2.20v1.00/src/SWapi.c Examining data/hdf-eos4-2.20v1.00/src/GDapi.c Examining data/hdf-eos4-2.20v1.00/include/HDFEOSVersion.h Examining data/hdf-eos4-2.20v1.00/include/HdfEosDef.h Examining data/hdf-eos4-2.20v1.00/include/cfortHdf.h Examining data/hdf-eos4-2.20v1.00/include/ease.h Examining data/hdf-eos4-2.20v1.00/testdrivers/Common/runTests.cpp Examining data/hdf-eos4-2.20v1.00/testdrivers/swath/testswath.c Examining data/hdf-eos4-2.20v1.00/testdrivers/swath/tutils.h Examining data/hdf-eos4-2.20v1.00/testdrivers/grid/testgrid.c Examining data/hdf-eos4-2.20v1.00/testdrivers/grid/tutils.h Examining data/hdf-eos4-2.20v1.00/testdrivers/point/tutils.h Examining data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c Examining data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleGrid.c Examining data/hdf-eos4-2.20v1.00/samples/SetupGrid.c Examining data/hdf-eos4-2.20v1.00/samples/InquireGrid.c Examining data/hdf-eos4-2.20v1.00/samples/SubsetSwath.c Examining data/hdf-eos4-2.20v1.00/samples/ReadLevels.c Examining data/hdf-eos4-2.20v1.00/samples/DefineFields.c Examining data/hdf-eos4-2.20v1.00/samples/WriteLevels.c Examining data/hdf-eos4-2.20v1.00/samples/WriteGDflds.c Examining data/hdf-eos4-2.20v1.00/samples/ReadGDflds.c Examining data/hdf-eos4-2.20v1.00/samples/WriteFields.c Examining data/hdf-eos4-2.20v1.00/samples/ReadFields.c Examining data/hdf-eos4-2.20v1.00/samples/InquireSwath.c Examining data/hdf-eos4-2.20v1.00/samples/DefineGDflds.c Examining data/hdf-eos4-2.20v1.00/samples/DefineLevels.c Examining data/hdf-eos4-2.20v1.00/samples/SetupPoint.c Examining data/hdf-eos4-2.20v1.00/samples/WriteDimscaleGrid.c Examining data/hdf-eos4-2.20v1.00/samples/UpdateLevels.c Examining data/hdf-eos4-2.20v1.00/samples/ReadDimscaleGrid.c Examining data/hdf-eos4-2.20v1.00/samples/SubsetPoint.c Examining data/hdf-eos4-2.20v1.00/samples/SetupSwath.c Examining data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleSwath.c Examining data/hdf-eos4-2.20v1.00/samples/WriteDimscaleSwath.c Examining data/hdf-eos4-2.20v1.00/samples/SubsetGrid.c Examining data/hdf-eos4-2.20v1.00/samples/AppendField.c Examining data/hdf-eos4-2.20v1.00/samples/ReadDimscaleSwath.c Examining data/hdf-eos4-2.20v1.00/config/cmake/xlatefile.c Examining data/hdf-eos4-2.20v1.00/config/cmake/EOSTests.c Examining data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c FINAL RESULTS: data/hdf-eos4-2.20v1.00/testdrivers/Common/runTests.cpp:216:5: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod 755 $DIFF_ERROR_FILE data/hdf-eos4-2.20v1.00/config/cmake/EOSTests.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/hdf-eos4-2.20v1.00/config/cmake/EOSTests.c:245:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(s, formatString, x); data/hdf-eos4-2.20v1.00/config/cmake/xlatefile.c:26:17: [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(argbuf, &argv[3][2]); data/hdf-eos4-2.20v1.00/gctp/src/report.c:112:4: [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(err_file,efile); data/hdf-eos4-2.20v1.00/gctp/src/report.c:125:4: [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(err_file,efile); data/hdf-eos4-2.20v1.00/gctp/src/report.c:146:4: [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(parm_file,pfile); data/hdf-eos4-2.20v1.00/gctp/src/report.c:159:4: [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(parm_file,pfile); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:43:11: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. while(fscanf(fp, "%lf %f %f %f %f %s", data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:90:11: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. while(fscanf(fp, "%s %lf %lf %d %s", desc, &lon, &lat, &date, id) != -1) data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:128:11: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. while(fscanf(fp, "%lf %f %f %s", &time, &rain, &temp, id) != -1) data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:176:11: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. while(fscanf(fp, "%s %d %d %s", desc, &date, &dum, id) != -1) data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:211:11: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. while(fscanf(fp, "%lf %lf %lf %f %f %s", data/hdf-eos4-2.20v1.00/src/EHapi.c:105:35: [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. EHopen(const char *filename, intn access) data/hdf-eos4-2.20v1.00/src/EHapi.c:159: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. if (access != DFACC_READ) data/hdf-eos4-2.20v1.00/src/EHapi.c:191:14: [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. switch (access) data/hdf-eos4-2.20v1.00/src/EHapi.c:407:7: [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(errbuf, filename); data/hdf-eos4-2.20v1.00/src/EHapi.c:446:39: [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. HEreport("Access Code: %d (%s).\n", access, filename); data/hdf-eos4-2.20v1.00/src/EHapi.c:573:11: [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. uint8 * access) data/hdf-eos4-2.20v1.00/src/EHapi.c:706:5: [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(filename, fname); data/hdf-eos4-2.20v1.00/src/EHapi.c:746:21: [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. uint8 access; /* Access code */ data/hdf-eos4-2.20v1.00/src/EHapi.c:757:67: [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. status = EHchkfid(fid, "EHgetversion", &dum, &sdInterfaceID, &access); data/hdf-eos4-2.20v1.00/src/EHapi.c:1239:6: [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(liststr, dstr); data/hdf-eos4-2.20v1.00/src/EHapi.c:1445:5: [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(tempdimlist, dimlist); data/hdf-eos4-2.20v1.00/src/EHapi.c:2147:6: [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(utlstr, colon2 + 1); data/hdf-eos4-2.20v1.00/src/EHapi.c:2153:2: [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(utlstr, utlstr2); data/hdf-eos4-2.20v1.00/src/EHapi.c:2209:6: [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(utlstr, colon2 + 1); data/hdf-eos4-2.20v1.00/src/EHapi.c:2215:2: [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(utlstr, utlstr2); data/hdf-eos4-2.20v1.00/src/EHapi.c:2303:2: [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(utlstr, colon + 1); data/hdf-eos4-2.20v1.00/src/EHapi.c:2378:2: [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(utlstr, metastr); data/hdf-eos4-2.20v1.00/src/EHapi.c:2388:2: [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(utlstr, metastr); data/hdf-eos4-2.20v1.00/src/EHapi.c:2397:2: [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(utlstr, metastr); data/hdf-eos4-2.20v1.00/src/EHapi.c:2406:2: [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(utlstr, metastr); data/hdf-eos4-2.20v1.00/src/EHapi.c:2526:5: [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(retstr, parameter); data/hdf-eos4-2.20v1.00/src/EHapi.c:3320: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(tmpname, name); data/hdf-eos4-2.20v1.00/src/EHapi.c:3434:4: [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(attrnames, name); data/hdf-eos4-2.20v1.00/src/EHapi.c:3438: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(attrnames, name); data/hdf-eos4-2.20v1.00/src/EHapi.c:3550: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(name,tempname); data/hdf-eos4-2.20v1.00/src/EHapi.c:3562:4: [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(objectlist, name); data/hdf-eos4-2.20v1.00/src/EHapi.c:3566: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(objectlist, name); data/hdf-eos4-2.20v1.00/src/GDapi.c:967:2: [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(tmpdimname, dimname); data/hdf-eos4-2.20v1.00/src/GDapi.c:1075:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(projparmbuf, utlbuf); data/hdf-eos4-2.20v1.00/src/GDapi.c:2152:7: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. sscanf(&utlstr[1], fmt, data/hdf-eos4-2.20v1.00/src/GDapi.c:2984: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(dimlist, dimstr); data/hdf-eos4-2.20v1.00/src/GDapi.c:3275:5: [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(errmsg, errmsg1); data/hdf-eos4-2.20v1.00/src/GDapi.c:3276:5: [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(errmsg, errmsg2); data/hdf-eos4-2.20v1.00/src/GDapi.c:3341:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(dimbuf, dimlist); data/hdf-eos4-2.20v1.00/src/GDapi.c:3345: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(dimbuf, dimlist); data/hdf-eos4-2.20v1.00/src/GDapi.c:3351:6: [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(dimbuf, dimlist); data/hdf-eos4-2.20v1.00/src/GDapi.c:3358:2: [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(dimlist0, dimbuf); data/hdf-eos4-2.20v1.00/src/GDapi.c:3434:7: [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(utlbuf, dimcheck); data/hdf-eos4-2.20v1.00/src/GDapi.c:3439:7: [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(utlbuf, dimcheck); data/hdf-eos4-2.20v1.00/src/GDapi.c:3568:7: [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(GDXSDname, fieldname); data/hdf-eos4-2.20v1.00/src/GDapi.c:3615:7: [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(GDXSDdims, dimlist0); data/hdf-eos4-2.20v1.00/src/GDapi.c:3678:7: [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(utlbuf, gridname); data/hdf-eos4-2.20v1.00/src/GDapi.c:3879:7: [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(utlbuf2, parmbuf); data/hdf-eos4-2.20v1.00/src/GDapi.c:3889:7: [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(utlbuf2, parmbuf); data/hdf-eos4-2.20v1.00/src/GDapi.c:3900:7: [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(utlbuf2, parmbuf); data/hdf-eos4-2.20v1.00/src/GDapi.c:3903:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(utlbuf, utlbuf2); data/hdf-eos4-2.20v1.00/src/GDapi.c:3929:7: [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(utlbuf2, parmbuf); data/hdf-eos4-2.20v1.00/src/GDapi.c:3932:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(utlbuf, utlbuf2); data/hdf-eos4-2.20v1.00/src/GDapi.c:4412:6: [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(utlbuf, gridname); data/hdf-eos4-2.20v1.00/src/GDapi.c:4912:6: [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(utlbuf, gridname); data/hdf-eos4-2.20v1.00/src/GDapi.c:5089:6: [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(utlbuf, gridname); data/hdf-eos4-2.20v1.00/src/GDapi.c:5289:6: [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(utlbuf, gridname); data/hdf-eos4-2.20v1.00/src/GDapi.c:6791: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(dimnames, utlstr); data/hdf-eos4-2.20v1.00/src/GDapi.c:6967: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(fieldlist, utlstr); data/hdf-eos4-2.20v1.00/src/GDapi.c:7167:6: [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(utlstr, &valName[0][0]); data/hdf-eos4-2.20v1.00/src/GDapi.c:7334:6: [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(name, fieldname); data/hdf-eos4-2.20v1.00/src/GDapi.c:7405:6: [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(name, fieldname); data/hdf-eos4-2.20v1.00/src/GDapi.c:7896: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(utlbuf, nambuf); data/hdf-eos4-2.20v1.00/src/GDapi.c:7903:4: [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(utlbuf, nambuf); data/hdf-eos4-2.20v1.00/src/GDapi.c:7947: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(dimbuf2, gridname); data/hdf-eos4-2.20v1.00/src/GDapi.c:11693:21: [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(GDXRegion[i]->DimNamePtr[j],GDXRegion[oldregionID]->DimNamePtr[j]); data/hdf-eos4-2.20v1.00/src/GDapi.c:14223:2: [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(lastables,ptr); data/hdf-eos4-2.20v1.00/src/PTapi.c:91:29: [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. PTopen(char *filename, intn access) data/hdf-eos4-2.20v1.00/src/PTapi.c:98:28: [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. fid = EHopen(filename, access); data/hdf-eos4-2.20v1.00/src/PTapi.c:147:21: [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. uint8 access; /* Read/Write file access code */ data/hdf-eos4-2.20v1.00/src/PTapi.c:171:65: [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. status = EHchkfid(fid, pointname, &HDFfid, &sdInterfaceID, &access); data/hdf-eos4-2.20v1.00/src/PTapi.c:313:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(utlbuf, utlbuf2); data/hdf-eos4-2.20v1.00/src/PTapi.c:402:21: [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. uint8 access; /* Read/Write access code */ data/hdf-eos4-2.20v1.00/src/PTapi.c:436:26: [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. sdInterfaceID, &access); data/hdf-eos4-2.20v1.00/src/PTapi.c:1067: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(levelname, name); data/hdf-eos4-2.20v1.00/src/PTapi.c:1651:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(utlbuf, levelname); data/hdf-eos4-2.20v1.00/src/SWapi.c:431:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(utlbuf, utlbuf2); data/hdf-eos4-2.20v1.00/src/SWapi.c:954:2: [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(tmpdimname, dimname); data/hdf-eos4-2.20v1.00/src/SWapi.c:1391:6: [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(utlbuf, swathname); data/hdf-eos4-2.20v1.00/src/SWapi.c:1718:6: [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(utlbuf, swathname); data/hdf-eos4-2.20v1.00/src/SWapi.c:1898:6: [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(utlbuf, swathname); data/hdf-eos4-2.20v1.00/src/SWapi.c:2098:6: [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(utlbuf, swathname); data/hdf-eos4-2.20v1.00/src/SWapi.c:2906:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(dimlist, dimstr); data/hdf-eos4-2.20v1.00/src/SWapi.c:2935:5: [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(tmpfieldname, fieldname); data/hdf-eos4-2.20v1.00/src/SWapi.c:3713:2: [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(dimbuf, dimlist); data/hdf-eos4-2.20v1.00/src/SWapi.c:3755:7: [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(utlbuf, dimcheck); data/hdf-eos4-2.20v1.00/src/SWapi.c:3760:7: [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(utlbuf, dimcheck); data/hdf-eos4-2.20v1.00/src/SWapi.c:3930: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(utlbuf, fieldname); data/hdf-eos4-2.20v1.00/src/SWapi.c:4044: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(SWXSDname, fieldname); data/hdf-eos4-2.20v1.00/src/SWapi.c:4090: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(SWXSDdims, dimlist); data/hdf-eos4-2.20v1.00/src/SWapi.c:4134: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(utlbuf, swathname); data/hdf-eos4-2.20v1.00/src/SWapi.c:4266:7: [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(utlbuf2, compparmbuf); data/hdf-eos4-2.20v1.00/src/SWapi.c:4276:7: [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(utlbuf2, compparmbuf); data/hdf-eos4-2.20v1.00/src/SWapi.c:4287:7: [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(utlbuf2, compparmbuf); data/hdf-eos4-2.20v1.00/src/SWapi.c:4293:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(utlbuf, utlbuf2); data/hdf-eos4-2.20v1.00/src/SWapi.c:5218: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(dimnames, utlstr); data/hdf-eos4-2.20v1.00/src/SWapi.c:5382: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(dimmaps, utlstr); data/hdf-eos4-2.20v1.00/src/SWapi.c:5389:8: [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(dimmaps, utlstr); data/hdf-eos4-2.20v1.00/src/SWapi.c:5548: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(idxmaps, utlstr); data/hdf-eos4-2.20v1.00/src/SWapi.c:5566:8: [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(idxmaps, utlstr); data/hdf-eos4-2.20v1.00/src/SWapi.c:5744:8: [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(utlstr, utlstr2); data/hdf-eos4-2.20v1.00/src/SWapi.c:5761: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(fieldlist, utlstr); data/hdf-eos4-2.20v1.00/src/SWapi.c:6108:6: [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(utlstr, &valName[0][0]); data/hdf-eos4-2.20v1.00/src/SWapi.c:6920:7: [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(attrName, fieldname); data/hdf-eos4-2.20v1.00/src/SWapi.c:8168:16: [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). (void) strcpy(geodim,dimlist); data/hdf-eos4-2.20v1.00/src/SWapi.c:9260:23: [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(geodim, tgeodim); data/hdf-eos4-2.20v1.00/src/SWapi.c:9283:23: [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(geodim,dimlist); data/hdf-eos4-2.20v1.00/src/SWapi.c:9284:23: [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(dimlist,dgeodim); data/hdf-eos4-2.20v1.00/src/SWapi.c:10472:19: [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(geodim, tgeodim); data/hdf-eos4-2.20v1.00/src/SWapi.c:10497:23: [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(geodim,dimlist); data/hdf-eos4-2.20v1.00/src/SWapi.c:10498:23: [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(dimlist,dgeodim); data/hdf-eos4-2.20v1.00/src/SWapi.c:11916:8: [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(tfieldname, dfieldlist); data/hdf-eos4-2.20v1.00/src/SWapi.c:11922:8: [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(tfieldname, fieldname); data/hdf-eos4-2.20v1.00/src/SWapi.c:12168:6: [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(name, fieldname); data/hdf-eos4-2.20v1.00/src/SWapi.c:12235:6: [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(name, fieldname); data/hdf-eos4-2.20v1.00/src/SWapi.c:12787: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(utlbuf, nambuf); data/hdf-eos4-2.20v1.00/src/SWapi.c:12798:4: [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(utlbuf, nambuf); data/hdf-eos4-2.20v1.00/src/SWapi.c:12857: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(dimbuf2, swathname); data/hdf-eos4-2.20v1.00/src/SWapi.c:13948: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(dimlist, tempdimlist); data/hdf-eos4-2.20v1.00/testdrivers/grid/testgrid.c:358:4: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system("rm Grid2.hdf"); data/hdf-eos4-2.20v1.00/testdrivers/grid/testgrid.c:360:4: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system("del Grid2.hdf"); data/hdf-eos4-2.20v1.00/testdrivers/grid/testgrid.c:391:4: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system("rm Grid3.hdf"); data/hdf-eos4-2.20v1.00/testdrivers/grid/testgrid.c:393:4: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system("del Grid3.hdf"); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:450:10: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. while(fscanf(fp,"%s %lf %lf %d %s", desc,&lon,&lat,&date,id) != -1) data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:510:10: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. while(fscanf(fp,"%lf %f %f %s", &time, &rain, &temp, id) != -1) data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:588:10: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. while(fscanf(fp, "%lf %f %f %f %f %s", &time,&conc[0],&conc[1],&conc[2],&conc[3],spc) != -1) data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:631:10: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. while(fscanf(fp, "%s %d %d %s", desc, &date, &dum, id) != -1) data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:666:10: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. while(fscanf(fp, "%lf %lf %lf %f %f %s", &time,&lon,&lat,&rain,&temp,id) != -1) data/hdf-eos4-2.20v1.00/testdrivers/swath/testswath.c:187:4: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system("rm Swath_1.hdf"); data/hdf-eos4-2.20v1.00/testdrivers/swath/testswath.c:188:4: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system("rm Swath_2.hdf"); data/hdf-eos4-2.20v1.00/testdrivers/swath/testswath.c:190:4: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system("del Swath_1.hdf"); data/hdf-eos4-2.20v1.00/testdrivers/swath/testswath.c:191:4: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system("del Swath_2.hdf"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:72:7: [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(outstr, gridname); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:75:7: [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(gridname, outstr); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:115:7: [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(Com->inputFile, argv[1]); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:116:7: [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(Com->gridName, argv[2]); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:121:7: [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(Com->outFileFlag, argv[4]); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:135:7: [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(Com->inputFile, argv[1]); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:136:7: [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(Com->gridName, argv[2]); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:138:7: [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(Com->outputFile_nxny, argv[3]); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:139:7: [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(Com->outputFile_lat, argv[3]); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:140:7: [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(Com->outputFile_lon, argv[3]); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:144:7: [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(Com->outFileFlag, argv[4]); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:151:7: [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(Com->inputFile, argv[1]); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:152:7: [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(Com->gridName, argv[2]); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:154:7: [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(Com->outputFile_nxny, argv[3]); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:155:7: [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(Com->outputFile_lat, argv[3]); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:156:7: [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(Com->outputFile_lon, argv[3]); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:167:7: [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(Com->inputFile, argv[1]); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:168:7: [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(Com->gridName, argv[2]); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:268: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(tmp_gridlist, gridlist); data/hdf-eos4-2.20v1.00/src/GDapi.c:14210:19: [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. ptr = (char *)getenv("STPDATADIR"); data/hdf-eos4-2.20v1.00/src/GDapi.c:14215:21: [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. ptr = (char *)getenv("MRTDATADIR"); data/hdf-eos4-2.20v1.00/src/GDapi.c:14221:16: [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. ptr = (char *)getenv("PWD"); data/hdf-eos4-2.20v1.00/src/GDapi.c:14226:16: [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. ptr = (char *)getenv("STPDATADIR"); data/hdf-eos4-2.20v1.00/config/cmake/EOSTests.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/hdf-eos4-2.20v1.00/config/cmake/EOSTests.c:357: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/hdf-eos4-2.20v1.00/config/cmake/EOSTests.c:393: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/hdf-eos4-2.20v1.00/config/cmake/xlatefile.c:11: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 argbuf[8]; data/hdf-eos4-2.20v1.00/config/cmake/xlatefile.c:19:26: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if(NULL == (infile = fopen(argv[1], "rb"))) data/hdf-eos4-2.20v1.00/config/cmake/xlatefile.c:21:27: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if(NULL == (outfile = fopen(argv[2], "wb+"))) data/hdf-eos4-2.20v1.00/config/cmake/xlatefile.c:27:31: [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). stripXlines = atoi(argbuf); data/hdf-eos4-2.20v1.00/gctp/src/azimfor.c:82: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 mess[80]; /* error message buffer */ data/hdf-eos4-2.20v1.00/gctp/src/azimfor.c:96: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(mess,"Point projects into a circle of radius = %12.2lf",con); data/hdf-eos4-2.20v1.00/gctp/src/lamazfor.c:163: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 mess[60]; data/hdf-eos4-2.20v1.00/gctp/src/lamazfor.c:178: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(mess, "Point projects to a circle of radius = %lf\n", 2.0 * R); data/hdf-eos4-2.20v1.00/gctp/src/report.c:53:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char parm_file[256]; data/hdf-eos4-2.20v1.00/gctp/src/report.c:54:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char err_file[256]; data/hdf-eos4-2.20v1.00/gctp/src/report.c:81:19: [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). fptr_e = (FILE *)fopen(err_file,"a"); data/hdf-eos4-2.20v1.00/gctp/src/report.c:191:29: [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). fptr_p = (FILE *)fopen(parm_file,"a"); data/hdf-eos4-2.20v1.00/gctp/src/report.c:203:27: [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). fptr_p = (FILE *)fopen(parm_file,"a"); data/hdf-eos4-2.20v1.00/gctp/src/report.c:218:27: [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). fptr_p = (FILE *)fopen(parm_file,"a"); data/hdf-eos4-2.20v1.00/gctp/src/report.c:231:25: [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). fptr_p = (FILE *)fopen(parm_file,"a"); data/hdf-eos4-2.20v1.00/gctp/src/report.c:243:23: [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). fptr_p = (FILE *)fopen(parm_file,"a"); data/hdf-eos4-2.20v1.00/gctp/src/report.c:255:24: [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). fptr_p = (FILE *)fopen(parm_file,"a"); data/hdf-eos4-2.20v1.00/gctp/src/report.c:267:24: [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). fptr_p = (FILE *)fopen(parm_file,"a"); data/hdf-eos4-2.20v1.00/gctp/src/report.c:278:24: [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). fptr_p = (FILE *)fopen(parm_file,"a"); data/hdf-eos4-2.20v1.00/gctp/src/report.c:293:24: [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). fptr_p = (FILE *)fopen(parm_file,"a"); data/hdf-eos4-2.20v1.00/gctp/src/report.c:308:24: [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). fptr_p = (FILE *)fopen(parm_file,"a"); data/hdf-eos4-2.20v1.00/gctp/src/report.c:323:24: [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). fptr_p = (FILE *)fopen(parm_file,"a"); data/hdf-eos4-2.20v1.00/gctp/src/report.c:336:24: [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). fptr_p = (FILE *)fopen(parm_file,"a"); data/hdf-eos4-2.20v1.00/gctp/src/report.c:347:24: [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). fptr_p = (FILE *)fopen(parm_file,"a"); data/hdf-eos4-2.20v1.00/gctp/src/report.c:358:24: [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). fptr_p = (FILE *)fopen(parm_file,"a"); data/hdf-eos4-2.20v1.00/gctp/src/somfor.c:182: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 errorbuf[80]; data/hdf-eos4-2.20v1.00/gctp/src/somfor.c:232: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. L260: sprintf(errorbuf,"50 iterations without conv\n"); data/hdf-eos4-2.20v1.00/gctp/src/stplnfor.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 pname[32]; data/hdf-eos4-2.20v1.00/gctp/src/stplnfor.c:66: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 buf[100]; data/hdf-eos4-2.20v1.00/gctp/src/stplnfor.c:73: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 swap[16]; data/hdf-eos4-2.20v1.00/gctp/src/stplnfor.c:110: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,"Illegal zone #%4ld for spheroid #%4ld",zone,sphere); data/hdf-eos4-2.20v1.00/gctp/src/stplnfor.c:116:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ptr = fopen(fn27,"r"); data/hdf-eos4-2.20v1.00/gctp/src/stplnfor.c:118:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). ptr = fopen(fn83,"r"); data/hdf-eos4-2.20v1.00/gctp/src/stplnfor.c:152: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(buf,"Illegal zone #%4ld for spheroid #%4ld",zone,sphere); data/hdf-eos4-2.20v1.00/gctp/src/stplninv.c:63: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 pname[33]; data/hdf-eos4-2.20v1.00/gctp/src/stplninv.c:64: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 buf[100]; data/hdf-eos4-2.20v1.00/gctp/src/stplninv.c:71: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 swap[16]; data/hdf-eos4-2.20v1.00/gctp/src/stplninv.c:109: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(buf,"Illegal zone #%4ld for spheroid #%4ld",zone,sphere); data/hdf-eos4-2.20v1.00/gctp/src/stplninv.c:115:13: [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). ptr = fopen(fn27,"r"); data/hdf-eos4-2.20v1.00/gctp/src/stplninv.c:117:13: [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). ptr = fopen(fn83,"r"); data/hdf-eos4-2.20v1.00/gctp/src/stplninv.c:152: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(buf,"Illegal zone #%4ld for spheroid #%4ld",zone,sphere); data/hdf-eos4-2.20v1.00/include/cfortHdf.h:961: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. #define ESTRING static char AA0[MAX_LEN_FORTRAN_FUNCTION_STRING+1]; \ data/hdf-eos4-2.20v1.00/include/cfortHdf.h:968: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. #define ESTRING static char AA0[MAX_LEN_FORTRAN_FUNCTION_STRING+1]; \ data/hdf-eos4-2.20v1.00/include/cfortHdf.h:973: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. #define ESTRING static char A0[MAX_LEN_FORTRAN_FUNCTION_STRING+1]; \ data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1515:45: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. ((B=malloc(D+1))[D]='\0', memcpy(B,A,D), kill_trailing(B,' ')) data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1554:33: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define RRRRPSTR( A,B,D) if (B) memcpy(A,B,PGSMIN(strlen(B),D)), \ data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1641:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(AS->dsc$a_pointer,A0, PGSMIN(AS->dsc$w_length,(A0==NULL?0:strlen(A0))) ); \ data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1648:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(_fcdtocp(AS),A0, PGSMIN(_fcdlen(AS),(A0==NULL?0:strlen(A0))) ); \ data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1653:26: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. #define KSTRING memcpy(AS,A0, PGSMIN(D0,(A0==NULL?0:strlen(A0))) ); \ data/hdf-eos4-2.20v1.00/samples/DefineGDflds.c:20: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 fieldlist[255]; data/hdf-eos4-2.20v1.00/samples/DefineLevels.c:16: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 fldlist[255]; data/hdf-eos4-2.20v1.00/samples/DefineLevels.c:46:2: [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(fldlist, "Time,Concentration,Species"); data/hdf-eos4-2.20v1.00/samples/DefineLevels.c:76:2: [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(fldlist, "Label,Longitude,Latitude,DeployDate,ID"); data/hdf-eos4-2.20v1.00/samples/DefineLevels.c:99:2: [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(fldlist, "Time,Rainfall,Temperature,ID"); data/hdf-eos4-2.20v1.00/samples/DefineLevels.c:144:2: [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(fldlist, "Label,DeployDate,Weight,ID"); data/hdf-eos4-2.20v1.00/samples/DefineLevels.c:166:2: [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(fldlist, "Time,Longitude,Latitude,Rainfall,Temperature,ID"); data/hdf-eos4-2.20v1.00/samples/InquireGrid.c:23: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 dimname[1024], fieldlist[1024]; data/hdf-eos4-2.20v1.00/samples/InquireSwath.c:18: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 *dimname, *dimmap, *fieldlist, dimlist[80]; data/hdf-eos4-2.20v1.00/samples/ReadDimscaleGrid.c:25: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 label[16], unit[16], format[16]; data/hdf-eos4-2.20v1.00/samples/ReadDimscaleSwath.c:32: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 label[16], unit[16], format[16]; data/hdf-eos4-2.20v1.00/samples/ReadDimscaleSwath.c:33: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 label2[16], unit2[16], format2[16]; data/hdf-eos4-2.20v1.00/samples/ReadDimscaleSwath.c:34: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 label3[16], unit3[16], format3[16]; data/hdf-eos4-2.20v1.00/samples/ReadLevels.c:17: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 *pntr, *buffer, id[2], desc[16], spc[8]; data/hdf-eos4-2.20v1.00/samples/ReadLevels.c:18: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 fldlist[128], *attrnames; data/hdf-eos4-2.20v1.00/samples/ReadLevels.c:84:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&time, pntr, 8); data/hdf-eos4-2.20v1.00/samples/ReadLevels.c:86:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(conc, pntr, 4*4); data/hdf-eos4-2.20v1.00/samples/ReadLevels.c:88:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(spc, pntr, 4); data/hdf-eos4-2.20v1.00/samples/ReadLevels.c:155: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(desc, pntr, 8); data/hdf-eos4-2.20v1.00/samples/ReadLevels.c:158:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&lon, pntr, 8); data/hdf-eos4-2.20v1.00/samples/ReadLevels.c:160:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&lat, pntr, 8); data/hdf-eos4-2.20v1.00/samples/ReadLevels.c:162:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&date, pntr, 4); data/hdf-eos4-2.20v1.00/samples/ReadLevels.c:164:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(id, pntr, 1); data/hdf-eos4-2.20v1.00/samples/ReadLevels.c:218:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&time, pntr, 8); data/hdf-eos4-2.20v1.00/samples/ReadLevels.c:220:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&rain, pntr, 4); data/hdf-eos4-2.20v1.00/samples/ReadLevels.c:222:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&temp, pntr, 4); data/hdf-eos4-2.20v1.00/samples/ReadLevels.c:224:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(id, pntr, 1); data/hdf-eos4-2.20v1.00/samples/UpdateLevels.c:15: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 datbuf[1024]; data/hdf-eos4-2.20v1.00/samples/UpdateLevels.c:50:6: [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(datbuf, &f64, 8); data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleGrid.c:20: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 label[16]; data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleGrid.c:21: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 unit[16]; data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleGrid.c:22: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 format[16]; data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleGrid.c:81:2: [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(label, "X Dimension"); data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleGrid.c:82:2: [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(unit, "meters"); data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleGrid.c:83:2: [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(format, "F7.2"); data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleGrid.c:94:2: [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(label, "Time Dim"); data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleGrid.c:96:2: [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(format, "I3"); data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleGrid.c:147:2: [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(label, "Y Dimension"); data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleGrid.c:148:2: [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(unit, "meters"); data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleGrid.c:149:2: [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(format, "F7.2"); data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleGrid.c:160:2: [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(label, "Bands"); data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleGrid.c:161:2: [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(unit, "None"); data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleGrid.c:162:2: [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(format, "I2"); data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleGrid.c:203:5: [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(label, "Y Dimension"); data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleGrid.c:204:5: [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(unit, "Decimal Degrees"); data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleGrid.c:205:5: [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(format, "F7.2"); data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleSwath.c:17: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 label[16]; data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleSwath.c:18: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 unit[16]; data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleSwath.c:19: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 format[16]; data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleSwath.c:63:2: [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(label, "GeoTrack"); data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleSwath.c:64:2: [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(unit, "Degree"); data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleSwath.c:65:2: [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(format, "F2"); data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleSwath.c:96:2: [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(label, "Bands"); data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleSwath.c:97:2: [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(unit, "none"); data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleSwath.c:98:2: [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(format, "I2"); data/hdf-eos4-2.20v1.00/samples/WriteDimscaleGrid.c:20: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 label[16]; data/hdf-eos4-2.20v1.00/samples/WriteDimscaleGrid.c:21: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 unit[16]; data/hdf-eos4-2.20v1.00/samples/WriteDimscaleGrid.c:22: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 format[16]; data/hdf-eos4-2.20v1.00/samples/WriteDimscaleGrid.c:81:2: [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(label, "X Dimension"); data/hdf-eos4-2.20v1.00/samples/WriteDimscaleGrid.c:82:2: [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(unit, "meters"); data/hdf-eos4-2.20v1.00/samples/WriteDimscaleGrid.c:83:2: [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(format, "F7.2"); data/hdf-eos4-2.20v1.00/samples/WriteDimscaleGrid.c:94:2: [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(label, "Time Dim"); data/hdf-eos4-2.20v1.00/samples/WriteDimscaleGrid.c:96:2: [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(format, "I3"); data/hdf-eos4-2.20v1.00/samples/WriteDimscaleGrid.c:147:2: [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(label, "Y Dimension"); data/hdf-eos4-2.20v1.00/samples/WriteDimscaleGrid.c:148:2: [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(unit, "meters"); data/hdf-eos4-2.20v1.00/samples/WriteDimscaleGrid.c:149:2: [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(format, "F7.2"); data/hdf-eos4-2.20v1.00/samples/WriteDimscaleGrid.c:160:2: [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(label, "Bands"); data/hdf-eos4-2.20v1.00/samples/WriteDimscaleGrid.c:161:2: [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(unit, "None"); data/hdf-eos4-2.20v1.00/samples/WriteDimscaleGrid.c:162:2: [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(format, "I2"); data/hdf-eos4-2.20v1.00/samples/WriteDimscaleGrid.c:203:5: [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(label, "Y Dimension"); data/hdf-eos4-2.20v1.00/samples/WriteDimscaleGrid.c:204:5: [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(unit, "Decimal Degrees"); data/hdf-eos4-2.20v1.00/samples/WriteDimscaleGrid.c:205:5: [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(format, "F7.2"); data/hdf-eos4-2.20v1.00/samples/WriteDimscaleSwath.c:17: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 label[16]; data/hdf-eos4-2.20v1.00/samples/WriteDimscaleSwath.c:18: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 unit[16]; data/hdf-eos4-2.20v1.00/samples/WriteDimscaleSwath.c:19: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 format[16]; data/hdf-eos4-2.20v1.00/samples/WriteDimscaleSwath.c:63:2: [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(label, "GeoTrack"); data/hdf-eos4-2.20v1.00/samples/WriteDimscaleSwath.c:64:2: [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(unit, "Degree"); data/hdf-eos4-2.20v1.00/samples/WriteDimscaleSwath.c:65:2: [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(format, "F2"); data/hdf-eos4-2.20v1.00/samples/WriteDimscaleSwath.c:96:2: [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(label, "Bands"); data/hdf-eos4-2.20v1.00/samples/WriteDimscaleSwath.c:97:2: [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(unit, "none"); data/hdf-eos4-2.20v1.00/samples/WriteDimscaleSwath.c:98:2: [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(format, "I2"); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:14: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 buffer[10000], spc[8]; data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:38:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("simple.txt", "r"); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:50:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pntr, &time, 8); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:52:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pntr, conc, 4*4); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:54:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pntr, spc + 1, 4); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:80:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("fixedBuoy0.txt", "r"); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:99:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pntr, desc + 1, 8); /* +1 is to ignore first single quote data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:102:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pntr, &lon, 8); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:104:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pntr, &lat, 8); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:106:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pntr, &date, 4); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:108:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pntr, id + 1, 1); /* +1 is to ignore first single quote data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:123:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("fixedBuoy1.txt", "r"); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:134:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pntr, &time, 8); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:136:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pntr, &rain, 4); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:138:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pntr, &temp, 4); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:140:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pntr, id + 1, 1); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:171:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("floatBuoy0.txt", "r"); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:185:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pntr, desc + 1, 8); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:187:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pntr, &date, 4); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:189:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pntr, &wgt, 2); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:191:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pntr, id + 1, 1); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:206:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("floatBuoy1.txt", "r"); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:218:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pntr, &time, 8); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:220:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pntr, &lon, 8); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:222:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pntr, &lat, 8); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:224:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pntr, &rain, 4); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:226:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pntr, &temp, 4); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:228:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pntr, id + 1, 1); data/hdf-eos4-2.20v1.00/src/EHapi.c:121: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 errbuf[UTLSTR_MAX_SIZE];/* Error report buffer */ data/hdf-eos4-2.20v1.00/src/EHapi.c:123: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 hdfeosVersion[32]; /* HDFEOS version string */ data/hdf-eos4-2.20v1.00/src/EHapi.c:228:7: [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(metabuf, "GROUP=SwathStructure\n"); data/hdf-eos4-2.20v1.00/src/EHapi.c:229:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(metabuf, "END_GROUP=SwathStructure\n"); data/hdf-eos4-2.20v1.00/src/EHapi.c:230:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(metabuf, "GROUP=GridStructure\n"); data/hdf-eos4-2.20v1.00/src/EHapi.c:231:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(metabuf, "END_GROUP=GridStructure\n"); data/hdf-eos4-2.20v1.00/src/EHapi.c:232:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(metabuf, "GROUP=PointStructure\n"); data/hdf-eos4-2.20v1.00/src/EHapi.c:233:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(metabuf, "END_GROUP=PointStructure\n"); data/hdf-eos4-2.20v1.00/src/EHapi.c:234:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(metabuf, "END\n"); data/hdf-eos4-2.20v1.00/src/EHapi.c:329:6: [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(metabuf, "GROUP=SwathStructure\n"); data/hdf-eos4-2.20v1.00/src/EHapi.c:330:6: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(metabuf, "END_GROUP=SwathStructure\n"); data/hdf-eos4-2.20v1.00/src/EHapi.c:331:6: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(metabuf, "GROUP=GridStructure\n"); data/hdf-eos4-2.20v1.00/src/EHapi.c:332:6: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(metabuf, "END_GROUP=GridStructure\n"); data/hdf-eos4-2.20v1.00/src/EHapi.c:333:6: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(metabuf, "GROUP=PointStructure\n"); data/hdf-eos4-2.20v1.00/src/EHapi.c:334:6: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(metabuf, "END_GROUP=PointStructure\n"); data/hdf-eos4-2.20v1.00/src/EHapi.c:335:6: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(metabuf, "END\n"); data/hdf-eos4-2.20v1.00/src/EHapi.c:408:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(errbuf, "\" (opened for READONLY access)"); data/hdf-eos4-2.20v1.00/src/EHapi.c:409:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(errbuf, " does not exist."); data/hdf-eos4-2.20v1.00/src/EHapi.c:515: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 errbuf[128]; data/hdf-eos4-2.20v1.00/src/EHapi.c:752: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 attrname[16]; /* Attribute name */ data/hdf-eos4-2.20v1.00/src/EHapi.c:1113: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 buffer[128];/* Buffer to hold "test" string entry */ data/hdf-eos4-2.20v1.00/src/EHapi.c:1149:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, ptr[indx], slen[indx]); data/hdf-eos4-2.20v1.00/src/EHapi.c:1215: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 dstr[2]; /* string version of input variable "delim" */ data/hdf-eos4-2.20v1.00/src/EHapi.c:1232:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(liststr + off, ptr[i], slen + 1); data/hdf-eos4-2.20v1.00/src/EHapi.c:1296: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[UTLSTR_MAX_SIZE]; /* Object name */ data/hdf-eos4-2.20v1.00/src/EHapi.c:1711:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(outstring + listlen, ptr[i], slen[i]); data/hdf-eos4-2.20v1.00/src/EHapi.c:1813: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 *ptr[8]; /* String pointer array (for dim map parsing) */ data/hdf-eos4-2.20v1.00/src/EHapi.c:1814: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 type[32]; /* Number type descriptor string */ data/hdf-eos4-2.20v1.00/src/EHapi.c:1815: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 *metaArr[2]; /* Array of metadata positions */ data/hdf-eos4-2.20v1.00/src/EHapi.c:1898:2: [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(utlstr, "GROUP=SwathStructure"); data/hdf-eos4-2.20v1.00/src/EHapi.c:1901:2: [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(utlstr, "GROUP=GridStructure"); data/hdf-eos4-2.20v1.00/src/EHapi.c:1904:2: [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(utlstr, "GROUP=PointStructure"); data/hdf-eos4-2.20v1.00/src/EHapi.c:1957:6: [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(type, "DFNT_UCHAR8"); data/hdf-eos4-2.20v1.00/src/EHapi.c:1960:6: [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(type, "DFNT_CHAR8"); data/hdf-eos4-2.20v1.00/src/EHapi.c:1963:6: [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(type, "DFNT_FLOAT32"); data/hdf-eos4-2.20v1.00/src/EHapi.c:1966:6: [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(type, "DFNT_FLOAT64"); data/hdf-eos4-2.20v1.00/src/EHapi.c:1969:6: [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(type, "DFNT_INT8"); data/hdf-eos4-2.20v1.00/src/EHapi.c:1972:6: [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(type, "DFNT_UINT8"); data/hdf-eos4-2.20v1.00/src/EHapi.c:1975:6: [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(type, "DFNT_INT16"); data/hdf-eos4-2.20v1.00/src/EHapi.c:1978:6: [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(type, "DFNT_UINT16"); data/hdf-eos4-2.20v1.00/src/EHapi.c:1981:6: [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(type, "DFNT_INT32"); data/hdf-eos4-2.20v1.00/src/EHapi.c:1984:6: [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(type, "DFNT_UINT32"); data/hdf-eos4-2.20v1.00/src/EHapi.c:1999:2: [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(utlstr, "\t\tGROUP=Dimension"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2002:2: [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(utlstr, "\t\tEND_GROUP=Dimension"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2028:2: [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(utlstr, "\t\tGROUP=DimensionMap"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2031:2: [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(utlstr, "\t\tEND_GROUP=DimensionMap"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2066:2: [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(utlstr, "\t\tGROUP=IndexDimensionMap"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2069:2: [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(utlstr, "\t\tEND_GROUP=IndexDimensionMap"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2102:2: [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(utlstr, "\t\tGROUP=GeoField"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2105:2: [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(utlstr, "\t\tEND_GROUP=GeoField"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2164:9: [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(utlstr, "\t\tGROUP=DataField"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2167:2: [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(utlstr, "\t\tEND_GROUP=DataField"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2226:2: [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(utlstr, "\t\tGROUP=MergedFields"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2229:2: [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(utlstr, "\t\tEND_GROUP=MergedFields"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2267:2: [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(utlstr, "\t\tGROUP=Level"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2270:2: [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(utlstr, "\n\t\tEND_GROUP=Level"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2302:2: [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(utlstr, "\t\t\t\tLevelName=\""); data/hdf-eos4-2.20v1.00/src/EHapi.c:2306:2: [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(utlstr, "\t\t\tEND_GROUP=Level_"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2335:2: [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(utlstr, "\t\tGROUP=LevelLink"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2338:2: [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(utlstr, "\t\tEND_GROUP=LevelLink"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2376:2: [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(utlstr, "\t\tGROUP=Dimension"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2386:2: [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(utlstr, "END_GROUP=SwathStructure"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2395:2: [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(utlstr, "END_GROUP=GridStructure"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2404:2: [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(utlstr, "END_GROUP=PointStructure"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2453: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(metaptr, utlstr, seglen); data/hdf-eos4-2.20v1.00/src/EHapi.c:2549:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(retstr, metaptrs[0] + slen, newline - metaptrs[0] - slen); data/hdf-eos4-2.20v1.00/src/EHapi.c:2686:2: [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(utlstr, "GROUP=SwathStructure"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2689:2: [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(utlstr, "GROUP=GridStructure"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2692:2: [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(utlstr, "GROUP=PointStructure"); data/hdf-eos4-2.20v1.00/src/EHapi.c:2852:6: [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(fillbuf + i * size, fillval, size); data/hdf-eos4-2.20v1.00/src/EHapi.c:2892:6: [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(fillbuf + i * size, fillval, size); data/hdf-eos4-2.20v1.00/src/EHapi.c:2935: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. fillbuf = (char *) malloc(dims[rank - 1] * size * n); data/hdf-eos4-2.20v1.00/src/EHapi.c:2947:6: [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(fillbuf + i * size, fillval, size); data/hdf-eos4-2.20v1.00/src/EHapi.c:3374: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[80]; /* Attribute name */ data/hdf-eos4-2.20v1.00/src/EHapi.c:3496: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[80]; /* Object name */ data/hdf-eos4-2.20v1.00/src/EHapi.c:3497: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 a_class[UTLSTR_MAX_SIZE]; /* Object class */ data/hdf-eos4-2.20v1.00/src/EHapi.c:3498: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 tempname[UTLSTR_MAX_SIZE]; data/hdf-eos4-2.20v1.00/src/EHapi.c:3720:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fp = fopen(filename,"r")) == NULL) data/hdf-eos4-2.20v1.00/src/GDapi.c:105: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 GDXSDname[HDFE_NAMBUFSIZE]; data/hdf-eos4-2.20v1.00/src/GDapi.c:106: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 GDXSDdims[HDFE_DIMBUFSIZE]; data/hdf-eos4-2.20v1.00/src/GDapi.c:144: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 *DimNamePtr[8]; data/hdf-eos4-2.20v1.00/src/GDapi.c:330: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[UTLSTR_MAX_SIZE]; /* Vgroup name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:331: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 a_class[UTLSTR_MAX_SIZE]; /* Vgroup class */ data/hdf-eos4-2.20v1.00/src/GDapi.c:332: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 errbuf[256];/* Buffer for error message */ data/hdf-eos4-2.20v1.00/src/GDapi.c:333: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 utlbuf[1024]; /* Utility buffer */ data/hdf-eos4-2.20v1.00/src/GDapi.c:334: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 header[128];/* Structural metadata header string */ data/hdf-eos4-2.20v1.00/src/GDapi.c:335: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 footer[256];/* Structural metadata footer string */ data/hdf-eos4-2.20v1.00/src/GDapi.c:336: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 refstr1[128]; /* Upper left ref string (metadata) */ data/hdf-eos4-2.20v1.00/src/GDapi.c:337: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 refstr2[128]; /* Lower right ref string (metadata) */ data/hdf-eos4-2.20v1.00/src/GDapi.c:484:7: [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(refstr1, "DEFAULT"); data/hdf-eos4-2.20v1.00/src/GDapi.c:485:7: [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(refstr2, "DEFAULT"); data/hdf-eos4-2.20v1.00/src/GDapi.c:513:6: [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(errbuf, data/hdf-eos4-2.20v1.00/src/GDapi.c:515:6: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(errbuf, " (%s)"); data/hdf-eos4-2.20v1.00/src/GDapi.c:604: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[UTLSTR_MAX_SIZE]; /* Vgroup name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:605: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 a_class[UTLSTR_MAX_SIZE]; /* Vgroup class */ data/hdf-eos4-2.20v1.00/src/GDapi.c:606: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 errbuf[256];/* Buffer for error message */ data/hdf-eos4-2.20v1.00/src/GDapi.c:607: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 acsCode[1]; /* Read/Write access char: "r/w" */ data/hdf-eos4-2.20v1.00/src/GDapi.c:800:6: [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(errbuf, data/hdf-eos4-2.20v1.00/src/GDapi.c:802:6: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(errbuf, " (%s)"); data/hdf-eos4-2.20v1.00/src/GDapi.c:942: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 gridname[80] /* Grid name */ ; data/hdf-eos4-2.20v1.00/src/GDapi.c:1023: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 utlbuf[1024]; /* Utility Buffer */ data/hdf-eos4-2.20v1.00/src/GDapi.c:1024: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 projparmbuf[512]; /* Projection parameter metadata data/hdf-eos4-2.20v1.00/src/GDapi.c:1026: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 gridname[80]; /* Grid Name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:1052:7: [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(utlbuf, "0,"); data/hdf-eos4-2.20v1.00/src/GDapi.c:1177: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 utlbuf[128];/* Utility Buffer */ data/hdf-eos4-2.20v1.00/src/GDapi.c:1178: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 gridname[80]; /* Grid Name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:1536: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 utlbuf[64]; /* Utility buffer */ data/hdf-eos4-2.20v1.00/src/GDapi.c:1537: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 gridname[80]; /* Grid name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:1613: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 utlbuf[64]; /* Utility buffer */ data/hdf-eos4-2.20v1.00/src/GDapi.c:1614: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 gridname[80]; /* Grid name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:1697: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 *metaptrs[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/GDapi.c:1698: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 gridname[80]; /* Grid Name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:1755: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). size = atoi(utlstr); data/hdf-eos4-2.20v1.00/src/GDapi.c:1826: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 *metaptrs[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/GDapi.c:1827: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 gridname[80]; /* Grid Name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:1868:15: [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). *xdimsize = atoi(utlstr); data/hdf-eos4-2.20v1.00/src/GDapi.c:1886:15: [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). *ydimsize = atoi(utlstr); data/hdf-eos4-2.20v1.00/src/GDapi.c:2018: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 *metaptrs[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/GDapi.c:2019: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 gridname[80]; /* Grid Name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:2021: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 fmt[96]; /* Format String */ data/hdf-eos4-2.20v1.00/src/GDapi.c:2104:19: [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). *zonecode = atoi(utlstr); data/hdf-eos4-2.20v1.00/src/GDapi.c:2144:7: [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(fmt, "%lf,"); data/hdf-eos4-2.20v1.00/src/GDapi.c:2146:4: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(fmt, "%lf,"); data/hdf-eos4-2.20v1.00/src/GDapi.c:2147:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(fmt, "%lf"); data/hdf-eos4-2.20v1.00/src/GDapi.c:2186:21: [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). *spherecode = atoi(utlstr); data/hdf-eos4-2.20v1.00/src/GDapi.c:2244: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 *metaptrs[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/GDapi.c:2245: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 gridname[80]; /* Grid Name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:2376: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 *metaptrs[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/GDapi.c:2377: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 gridname[80]; /* Grid Name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:2502: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 *metaptrs[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/GDapi.c:2503: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 gridname[80]; /* Grid Name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:2511: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[2048]; /* Field Names */ data/hdf-eos4-2.20v1.00/src/GDapi.c:2514:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *HDFcomp[6] = {"HDFE_COMP_NONE", "HDFE_COMP_RLE", data/hdf-eos4-2.20v1.00/src/GDapi.c:2843: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 *metaptrs[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/GDapi.c:2844: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 gridname[80]; /* Grid Name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:2846: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 *ptr[8]; /* String pointers for parsed string */ data/hdf-eos4-2.20v1.00/src/GDapi.c:2847: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 dimstr[64]; /* Individual dimension entry string */ data/hdf-eos4-2.20v1.00/src/GDapi.c:2956: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(dimstr, ptr[i] + 1, slen[i] - 2); data/hdf-eos4-2.20v1.00/src/GDapi.c:3118: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 dimlist[UTLSTR_MAX_SIZE]; data/hdf-eos4-2.20v1.00/src/GDapi.c:3223: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 utlbuf[512];/* Utility buffer */ data/hdf-eos4-2.20v1.00/src/GDapi.c:3224: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 utlbuf2[256]; /* Utility buffer 1 */ data/hdf-eos4-2.20v1.00/src/GDapi.c:3225: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 *ptr[32]; /* String pointer array */ data/hdf-eos4-2.20v1.00/src/GDapi.c:3226: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 gridname[80]; /* Grid name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:3227: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 parmbuf[128]; /* Parameter string buffer */ data/hdf-eos4-2.20v1.00/src/GDapi.c:3228: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 errbuf1[128]; /* Error buffer 1 */ data/hdf-eos4-2.20v1.00/src/GDapi.c:3229: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 errbuf2[128]; /* Error buffer 2 */ data/hdf-eos4-2.20v1.00/src/GDapi.c:3234: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 errmsg[128]; /* Tiling error message */ data/hdf-eos4-2.20v1.00/src/GDapi.c:3238:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *HDFcomp[6] = {"HDFE_COMP_NONE", "HDFE_COMP_RLE", data/hdf-eos4-2.20v1.00/src/GDapi.c:3264:5: [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(errbuf1, "GDXSDname array too small.\nPlease increase "); data/hdf-eos4-2.20v1.00/src/GDapi.c:3265:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(errbuf1, "size of HDFE_NAMBUFSIZE in \"HdfEosDef.h\".\n"); data/hdf-eos4-2.20v1.00/src/GDapi.c:3266:5: [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(errbuf2, "GDXSDdims array too small.\nPlease increase "); data/hdf-eos4-2.20v1.00/src/GDapi.c:3267:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(errbuf2, "size of HDFE_DIMBUFSIZE in \"HdfEosDef.h\".\n"); data/hdf-eos4-2.20v1.00/src/GDapi.c:3340: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(dimbuf, "SOMBlockDim,"); data/hdf-eos4-2.20v1.00/src/GDapi.c:3383:6: [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(dimcheck, dimbuf, comma - dimbuf); data/hdf-eos4-2.20v1.00/src/GDapi.c:3592:4: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(GDXSDdims, "ONE,"); data/hdf-eos4-2.20v1.00/src/GDapi.c:3675: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(utlbuf, ptr[i], slen[i]); data/hdf-eos4-2.20v1.00/src/GDapi.c:4015: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 fieldname[2048]; /* Field Names */ data/hdf-eos4-2.20v1.00/src/GDapi.c:4016: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 dimlist[HDFE_DIMBUFSIZE];/* Dimension list */ data/hdf-eos4-2.20v1.00/src/GDapi.c:4190: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 utlbuf[512];/* Utility buffer */ data/hdf-eos4-2.20v1.00/src/GDapi.c:4191: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 gridname[80]; /* Grid name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:4192: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 parmbuf[128]; /* Parameter string buffer */ data/hdf-eos4-2.20v1.00/src/GDapi.c:4215: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[2048]; /* Field Names */ data/hdf-eos4-2.20v1.00/src/GDapi.c:4220: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 dimlist[HDFE_DIMBUFSIZE];/* Dimension list */ data/hdf-eos4-2.20v1.00/src/GDapi.c:4409:6: [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(utlbuf, dimname, slen); data/hdf-eos4-2.20v1.00/src/GDapi.c:4688: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 fieldname[2048]; /* Field Names */ data/hdf-eos4-2.20v1.00/src/GDapi.c:4691: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 dimlist[HDFE_DIMBUFSIZE];/* Dimension list */ data/hdf-eos4-2.20v1.00/src/GDapi.c:4838: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 utlbuf[512]; /* Utility buffer */ data/hdf-eos4-2.20v1.00/src/GDapi.c:4839: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 gridname[80]; /* Grid name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:4840: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 parmbuf[128]; /* Parameter string buffer */ data/hdf-eos4-2.20v1.00/src/GDapi.c:4845: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[2048]; /* Field Names */ data/hdf-eos4-2.20v1.00/src/GDapi.c:4847: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 dimlist[HDFE_DIMBUFSIZE];/* Dimension list */ data/hdf-eos4-2.20v1.00/src/GDapi.c:4909:6: [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(utlbuf, dimname, slen); data/hdf-eos4-2.20v1.00/src/GDapi.c:5017: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 utlbuf[512];/* Utility buffer */ data/hdf-eos4-2.20v1.00/src/GDapi.c:5018: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 gridname[80]; /* Grid name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:5019: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 parmbuf[128]; /* Parameter string buffer */ data/hdf-eos4-2.20v1.00/src/GDapi.c:5023: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[2048]; /* Field Names */ data/hdf-eos4-2.20v1.00/src/GDapi.c:5024: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 dimlist[HDFE_DIMBUFSIZE];/* Dimension list */ data/hdf-eos4-2.20v1.00/src/GDapi.c:5086:6: [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(utlbuf, dimname, slen); data/hdf-eos4-2.20v1.00/src/GDapi.c:5216: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 utlbuf[512]; /* Utility buffer */ data/hdf-eos4-2.20v1.00/src/GDapi.c:5217: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 gridname[80]; /* Grid name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:5218: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 parmbuf[128]; /* Parameter string buffer */ data/hdf-eos4-2.20v1.00/src/GDapi.c:5222: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[2048]; /* Field Names */ data/hdf-eos4-2.20v1.00/src/GDapi.c:5224: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 dimlist[HDFE_DIMBUFSIZE];/* Dimension list */ data/hdf-eos4-2.20v1.00/src/GDapi.c:5286:6: [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(utlbuf, dimname, slen); data/hdf-eos4-2.20v1.00/src/GDapi.c:5383: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 utlbuf[256];/* Utility buffer */ data/hdf-eos4-2.20v1.00/src/GDapi.c:5384: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 gridname[80]; /* Grid name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:5582: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[2048]; /* Merged-Field Names */ data/hdf-eos4-2.20v1.00/src/GDapi.c:5583: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 gridname[80]; /* Grid Name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:5586: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 *metaptrs[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/GDapi.c:5825: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 dimlist[HDFE_DIMBUFSIZE];/* Dimension list */ data/hdf-eos4-2.20v1.00/src/GDapi.c:6227: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 dimlist[HDFE_DIMBUFSIZE];/* Dimension list */ data/hdf-eos4-2.20v1.00/src/GDapi.c:6331: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 dimlist[HDFE_DIMBUFSIZE];/* Dimension list */ data/hdf-eos4-2.20v1.00/src/GDapi.c:6717: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 *metaptrs[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/GDapi.c:6718: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 gridname[80]; /* Grid Name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:6764: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(utlstr, "\t\tOBJECT="); data/hdf-eos4-2.20v1.00/src/GDapi.c:6799:11: [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). size = atoi(utlstr); data/hdf-eos4-2.20v1.00/src/GDapi.c:6873: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 *metaptrs[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/GDapi.c:6874: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 gridname[80]; /* Grid Name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:6876: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 *ptr[8]; /* String pointer array */ data/hdf-eos4-2.20v1.00/src/GDapi.c:6949:8: [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(utlstr, "\t\t\t\t"); data/hdf-eos4-2.20v1.00/src/GDapi.c:6950:8: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(utlstr, "DataFieldName"); data/hdf-eos4-2.20v1.00/src/GDapi.c:7088: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 *metaptrs[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/GDapi.c:7089: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 gridname[80]; /* Grid Name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:7091: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 valName[2][32]; /* Strings to search for */ data/hdf-eos4-2.20v1.00/src/GDapi.c:7129: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(&valName[0][0], "DimensionName"); data/hdf-eos4-2.20v1.00/src/GDapi.c:7144: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(&valName[0][0], "DataFieldName"); data/hdf-eos4-2.20v1.00/src/GDapi.c:7158:6: [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(&valName[0][0], "\t\tOBJECT"); data/hdf-eos4-2.20v1.00/src/GDapi.c:7305: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[84]; /* Fill value "attribute" name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:7306: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 dimlist[HDFE_DIMBUFSIZE];/* Dimension list */ data/hdf-eos4-2.20v1.00/src/GDapi.c:7333:6: [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(name, "_FV_"); data/hdf-eos4-2.20v1.00/src/GDapi.c:7391: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[84]; /* Fill value "attribute" name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:7392: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 dimlist[HDFE_DIMBUFSIZE];/* Dimension list */ data/hdf-eos4-2.20v1.00/src/GDapi.c:7404:6: [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(name, "_FV_"); data/hdf-eos4-2.20v1.00/src/GDapi.c:7543: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 *ptr1[3]; /* String pointer array */ data/hdf-eos4-2.20v1.00/src/GDapi.c:7544: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 *ptr2[3]; /* String pointer array */ data/hdf-eos4-2.20v1.00/src/GDapi.c:7545: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 dimbuf1[128]; /* Dimension buffer 1 */ data/hdf-eos4-2.20v1.00/src/GDapi.c:7546: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 dimbuf2[128]; /* Dimension buffer 2 */ data/hdf-eos4-2.20v1.00/src/GDapi.c:7547: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 gridname[VGNAMELENMAX + 1]; /* Grid name */ data/hdf-eos4-2.20v1.00/src/GDapi.c:7549: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 fillval[32];/* Fill value buffer */ data/hdf-eos4-2.20v1.00/src/GDapi.c:7815: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(match, &GDXSDcomb[5 * i], 20); data/hdf-eos4-2.20v1.00/src/GDapi.c:7816: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(nambuf, nameptr[i], namelen[i]); data/hdf-eos4-2.20v1.00/src/GDapi.c:7818: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(dimbuf1, dimptr[i], dimlen[i]); data/hdf-eos4-2.20v1.00/src/GDapi.c:7833: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(dimbuf2, dimptr[j], dimlen[j]); data/hdf-eos4-2.20v1.00/src/GDapi.c:7855: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(nambuf + strlen(nambuf), data/hdf-eos4-2.20v1.00/src/GDapi.c:7892: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(utlbuf, "MRGFLD_"); data/hdf-eos4-2.20v1.00/src/GDapi.c:7893: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(utlbuf + 7, nameptr0[0], namelen0[0]); data/hdf-eos4-2.20v1.00/src/GDapi.c:7929: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(dimbuf2, ptr1[k + 1], slen1[k + 1]); data/hdf-eos4-2.20v1.00/src/GDapi.c:7934: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(dimbuf2, ptr1[k], slen1[k]); data/hdf-eos4-2.20v1.00/src/GDapi.c:7958: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(utlbuf, nameptr0[k], namelen0[k]); data/hdf-eos4-2.20v1.00/src/GDapi.c:11054: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 dimlist[256]; /* Dimension list */ data/hdf-eos4-2.20v1.00/src/GDapi.c:11058: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 errbuf[256];/* Error buffer */ data/hdf-eos4-2.20v1.00/src/GDapi.c:11388: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 dimlist[256]; /* Dimension list */ data/hdf-eos4-2.20v1.00/src/GDapi.c:11392: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 errbuf[256];/* Error buffer */ data/hdf-eos4-2.20v1.00/src/GDapi.c:11779:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(GDXRegion[regionID]->DimNamePtr[j], \ data/hdf-eos4-2.20v1.00/src/GDapi.c:11824:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dimlist, vertObj, 4); data/hdf-eos4-2.20v1.00/src/GDapi.c:11848: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(GDXRegion[regionID]->DimNamePtr[j], data/hdf-eos4-2.20v1.00/src/GDapi.c:11876:18: [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. vertArr = (char *) calloc(dims[0], size); data/hdf-eos4-2.20v1.00/src/GDapi.c:11893:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&vertINT16, vertArr + i * size, size); data/hdf-eos4-2.20v1.00/src/GDapi.c:11913: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(&vertINT16, vertArr + i * size, size); data/hdf-eos4-2.20v1.00/src/GDapi.c:11934:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&vertINT32, vertArr + i * size, size); data/hdf-eos4-2.20v1.00/src/GDapi.c:11954: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(&vertINT32, vertArr + i * size, size); data/hdf-eos4-2.20v1.00/src/GDapi.c:11974:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&vertFLT32, vertArr + i * size, size); data/hdf-eos4-2.20v1.00/src/GDapi.c:11994: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(&vertFLT32, vertArr + i * size, size); data/hdf-eos4-2.20v1.00/src/GDapi.c:12015:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&vertFLT64, vertArr + i * size, size); data/hdf-eos4-2.20v1.00/src/GDapi.c:12035: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(&vertFLT64, vertArr + i * size, size); data/hdf-eos4-2.20v1.00/src/GDapi.c:12103: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 utlbuf[16]; data/hdf-eos4-2.20v1.00/src/GDapi.c:12105: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(utlbuf, vertObj, 4); data/hdf-eos4-2.20v1.00/src/GDapi.c:13109: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(&i16[k], data/hdf-eos4-2.20v1.00/src/GDapi.c:13135: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(&i32[k], data/hdf-eos4-2.20v1.00/src/GDapi.c:13158: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(&f32[k], data/hdf-eos4-2.20v1.00/src/GDapi.c:13182: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(&f64[k], data/hdf-eos4-2.20v1.00/src/GDapi.c:13251: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 dimlist[HDFE_DIMBUFSIZE];/* Dimension list */ data/hdf-eos4-2.20v1.00/src/GDapi.c:13378: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 dimlist[HDFE_DIMBUFSIZE];/* Dimension list */ data/hdf-eos4-2.20v1.00/src/GDapi.c:13473: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 dimlist[HDFE_DIMBUFSIZE];/* Dimension list */ data/hdf-eos4-2.20v1.00/src/GDapi.c:13573: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 dimlist[HDFE_DIMBUFSIZE];/* Dimension list */ data/hdf-eos4-2.20v1.00/src/GDapi.c:13631: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 dimlist[HDFE_DIMBUFSIZE];/* Dimension list */ data/hdf-eos4-2.20v1.00/src/GDapi.c:13689: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 dimlist[HDFE_DIMBUFSIZE];/* Dimension list */ data/hdf-eos4-2.20v1.00/src/GDapi.c:13810: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 dimlist[HDFE_DIMBUFSIZE];/* Dimension list */ data/hdf-eos4-2.20v1.00/src/GDapi.c:14206: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 lastables[256]; data/hdf-eos4-2.20v1.00/src/GDapi.c:14222:2: [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(lastables, "STPDATADIR="); data/hdf-eos4-2.20v1.00/src/GDapi.c:14224:2: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(lastables,"/lib/ext/eosdata"); data/hdf-eos4-2.20v1.00/src/PTapi.c:161: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[UTLSTR_MAX_SIZE]; /* Vgroup name */ data/hdf-eos4-2.20v1.00/src/PTapi.c:162: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 a_class[UTLSTR_MAX_SIZE]; /* Vgroup class */ data/hdf-eos4-2.20v1.00/src/PTapi.c:163: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 utlbuf[UTLSTR_MAX_SIZE];/* Utility buffer */ data/hdf-eos4-2.20v1.00/src/PTapi.c:164: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 utlbuf2[128]; /* Utility buffer 2 */ data/hdf-eos4-2.20v1.00/src/PTapi.c:307:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(utlbuf, "\t\tGROUP=Level\n"); data/hdf-eos4-2.20v1.00/src/PTapi.c:308:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(utlbuf, "\t\tEND_GROUP=Level\n"); data/hdf-eos4-2.20v1.00/src/PTapi.c:309:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(utlbuf, "\t\tGROUP=LevelLink\n"); data/hdf-eos4-2.20v1.00/src/PTapi.c:310:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(utlbuf, "\t\tEND_GROUP=LevelLink\n"); data/hdf-eos4-2.20v1.00/src/PTapi.c:325:6: [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(utlbuf, data/hdf-eos4-2.20v1.00/src/PTapi.c:327:6: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(utlbuf, " (%s)"); data/hdf-eos4-2.20v1.00/src/PTapi.c:682: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 *pntr[VSFIELDMAX]; /* String pointer array */ data/hdf-eos4-2.20v1.00/src/PTapi.c:683: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 utlbuf[256];/* Utility Buffer */ data/hdf-eos4-2.20v1.00/src/PTapi.c:750: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(utlbuf, pntr[j], slen[j]); data/hdf-eos4-2.20v1.00/src/PTapi.c:821: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 fieldbuf[VSFIELDMAX * FIELDNAMELENMAX]; data/hdf-eos4-2.20v1.00/src/PTapi.c:925: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[VSNAMELENMAX]; /* Level name */ data/hdf-eos4-2.20v1.00/src/PTapi.c:1016: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[VSNAMELENMAX]; /* Level name */ data/hdf-eos4-2.20v1.00/src/PTapi.c:1131: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[UTLSTR_MAX_SIZE]; /* Vgroup name */ data/hdf-eos4-2.20v1.00/src/PTapi.c:1132: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 a_class[UTLSTR_MAX_SIZE]; /* Vgroup class */ data/hdf-eos4-2.20v1.00/src/PTapi.c:1133: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 errbuf[256];/* Buffer for error message */ data/hdf-eos4-2.20v1.00/src/PTapi.c:1134: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 acsCode[1]; /* Read/Write access char: "r/w" */ data/hdf-eos4-2.20v1.00/src/PTapi.c:1264: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(errbuf, "Point: \"%s\" does not exist "); data/hdf-eos4-2.20v1.00/src/PTapi.c:1265:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(errbuf, "within HDF file.\n"); data/hdf-eos4-2.20v1.00/src/PTapi.c:1276:6: [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(errbuf, data/hdf-eos4-2.20v1.00/src/PTapi.c:1278:6: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(errbuf, " (%s)"); data/hdf-eos4-2.20v1.00/src/PTapi.c:1346: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 pointname[80]; /* Point name */ data/hdf-eos4-2.20v1.00/src/PTapi.c:1347: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 utlbuf[256];/* Utility buffer */ data/hdf-eos4-2.20v1.00/src/PTapi.c:1350: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 *pntr[VSFIELDMAX]; /* String pointer array */ data/hdf-eos4-2.20v1.00/src/PTapi.c:1400:6: [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(utlbuf, pntr[i], slen[i]); data/hdf-eos4-2.20v1.00/src/PTapi.c:1442: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(utlbuf, pntr[i], slen[i]); data/hdf-eos4-2.20v1.00/src/PTapi.c:1608: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(zerobuf, &m1, 4); data/hdf-eos4-2.20v1.00/src/PTapi.c:1648: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(utlbuf, pntr[i], slen[i]); data/hdf-eos4-2.20v1.00/src/PTapi.c:1731: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 pointname[80]; /* Point name */ data/hdf-eos4-2.20v1.00/src/PTapi.c:1732: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 utlbuf[256];/* Utility buffer */ data/hdf-eos4-2.20v1.00/src/PTapi.c:1921: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 *metaptrs[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/PTapi.c:1922: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 name1[80]; /* Name string 1 */ data/hdf-eos4-2.20v1.00/src/PTapi.c:1923: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 name2[80]; /* Name string 2 */ data/hdf-eos4-2.20v1.00/src/PTapi.c:1924: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 utlbuf[256];/* Utility buffer */ data/hdf-eos4-2.20v1.00/src/PTapi.c:2349: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 utlbuf[256];/* Utility buffer */ data/hdf-eos4-2.20v1.00/src/PTapi.c:2512: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 utlbuf[256];/* Utility buffer */ data/hdf-eos4-2.20v1.00/src/PTapi.c:2631: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 utlbuf[32]; /* Utility buffer */ data/hdf-eos4-2.20v1.00/src/PTapi.c:2848: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 utlbuf[32]; /* Utility buffer */ data/hdf-eos4-2.20v1.00/src/PTapi.c:2944: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 utlbuf[VSFIELDMAX * FIELDNAMELENMAX]; data/hdf-eos4-2.20v1.00/src/PTapi.c:3210: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 utlbuf[256];/* Utility buffer */ data/hdf-eos4-2.20v1.00/src/PTapi.c:3211: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 *pntr[VSFIELDMAX]; /* String pointer array */ data/hdf-eos4-2.20v1.00/src/PTapi.c:3212: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 utlbuf2[256]; /* Utility buffer 2 */ data/hdf-eos4-2.20v1.00/src/PTapi.c:3213: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 allfields[VSFIELDMAX * FIELDNAMELENMAX]; data/hdf-eos4-2.20v1.00/src/PTapi.c:3215: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 *ptrn2[VSFIELDMAX]; /* String pointer array 2 */ data/hdf-eos4-2.20v1.00/src/PTapi.c:3271: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(utlbuf, pntr[i], slen[i]); data/hdf-eos4-2.20v1.00/src/PTapi.c:3317: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(utlbuf, pntr[i], slen[i]); data/hdf-eos4-2.20v1.00/src/PTapi.c:3330: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(utlbuf2, ptrn2[j], slen2[j]); data/hdf-eos4-2.20v1.00/src/PTapi.c:3384: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(buf + offset[j], ptr, fldlen[j]); data/hdf-eos4-2.20v1.00/src/PTapi.c:3540: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 utlbuf[256];/* Utility buffer */ data/hdf-eos4-2.20v1.00/src/PTapi.c:3541: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 *pntr[VSFIELDMAX]; /* String pointer array */ data/hdf-eos4-2.20v1.00/src/PTapi.c:3598: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(utlbuf, pntr[i], slen[i]); data/hdf-eos4-2.20v1.00/src/PTapi.c:5075: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 *ptr[VSFIELDMAX]; /* String pointer array */ data/hdf-eos4-2.20v1.00/src/PTapi.c:5076: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 utlbuf[256];/* Utility Buffer */ data/hdf-eos4-2.20v1.00/src/PTapi.c:5121: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(utlbuf, ptr[i], slen[i]); data/hdf-eos4-2.20v1.00/src/PTapi.c:5288: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(recs, PTXRegion[regionID]->recPtr[level], data/hdf-eos4-2.20v1.00/src/PTapi.c:5402: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 *ptr[VSFIELDMAX]; /* String pointer array */ data/hdf-eos4-2.20v1.00/src/PTapi.c:5403: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 utlbuf[256];/* Utility Buffer */ data/hdf-eos4-2.20v1.00/src/PTapi.c:5444: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(utlbuf, ptr[i], slen[i]); data/hdf-eos4-2.20v1.00/src/PTapi.c:5785: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(&vertINT16, vertArr + i * size, size); data/hdf-eos4-2.20v1.00/src/PTapi.c:5808: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(&vertUINT16, vertArr + i * size, size); data/hdf-eos4-2.20v1.00/src/PTapi.c:5831: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(&vertINT32, vertArr + i * size, size); data/hdf-eos4-2.20v1.00/src/PTapi.c:5855: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(&vertFLOAT32, vertArr + i * size, size); data/hdf-eos4-2.20v1.00/src/PTapi.c:5879: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(&vertFLOAT64, vertArr + i * size, size); data/hdf-eos4-2.20v1.00/src/PTapi.c:5927:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(PTXRegion[regionID]->recPtr[i], data/hdf-eos4-2.20v1.00/src/SWapi.c:92: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 SWXSDname[HDFE_NAMBUFSIZE]; data/hdf-eos4-2.20v1.00/src/SWapi.c:93: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 SWXSDdims[HDFE_DIMBUFSIZE]; data/hdf-eos4-2.20v1.00/src/SWapi.c:144: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 *DimNamePtr[8]; data/hdf-eos4-2.20v1.00/src/SWapi.c:279: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[UTLSTR_MAX_SIZE]; /* Vgroup name */ data/hdf-eos4-2.20v1.00/src/SWapi.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 a_class[UTLSTR_MAX_SIZE]; /* Vgroup class */ data/hdf-eos4-2.20v1.00/src/SWapi.c:281: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 errbuf[256];/* Buffer for error message */ data/hdf-eos4-2.20v1.00/src/SWapi.c:282: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 utlbuf[UTLSTR_MAX_SIZE];/* Utility buffer */ data/hdf-eos4-2.20v1.00/src/SWapi.c:283: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 utlbuf2[32];/* Utility buffer 2 */ data/hdf-eos4-2.20v1.00/src/SWapi.c:417:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(utlbuf, "\t\tGROUP=Dimension\n"); data/hdf-eos4-2.20v1.00/src/SWapi.c:418:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(utlbuf, "\t\tEND_GROUP=Dimension\n"); data/hdf-eos4-2.20v1.00/src/SWapi.c:419:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(utlbuf, "\t\tGROUP=DimensionMap\n"); data/hdf-eos4-2.20v1.00/src/SWapi.c:420:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(utlbuf, "\t\tEND_GROUP=DimensionMap\n"); data/hdf-eos4-2.20v1.00/src/SWapi.c:421:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(utlbuf, "\t\tGROUP=IndexDimensionMap\n"); data/hdf-eos4-2.20v1.00/src/SWapi.c:422:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(utlbuf, "\t\tEND_GROUP=IndexDimensionMap\n"); data/hdf-eos4-2.20v1.00/src/SWapi.c:423:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(utlbuf, "\t\tGROUP=GeoField\n"); data/hdf-eos4-2.20v1.00/src/SWapi.c:424:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(utlbuf, "\t\tEND_GROUP=GeoField\n"); data/hdf-eos4-2.20v1.00/src/SWapi.c:425:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(utlbuf, "\t\tGROUP=DataField\n"); data/hdf-eos4-2.20v1.00/src/SWapi.c:426:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(utlbuf, "\t\tEND_GROUP=DataField\n"); data/hdf-eos4-2.20v1.00/src/SWapi.c:427:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(utlbuf, "\t\tGROUP=MergedFields\n"); data/hdf-eos4-2.20v1.00/src/SWapi.c:428:3: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(utlbuf, "\t\tEND_GROUP=MergedFields\n"); data/hdf-eos4-2.20v1.00/src/SWapi.c:443:6: [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(errbuf, data/hdf-eos4-2.20v1.00/src/SWapi.c:445:6: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(errbuf, " (%s)"); data/hdf-eos4-2.20v1.00/src/SWapi.c:537: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[UTLSTR_MAX_SIZE]; /* Vgroup name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:538: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 a_class[UTLSTR_MAX_SIZE]; /* Vgroup class */ data/hdf-eos4-2.20v1.00/src/SWapi.c:539: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 errbuf[256];/* Buffer for error message */ data/hdf-eos4-2.20v1.00/src/SWapi.c:540: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 acsCode[1]; /* Read/Write access char: "r/w" */ data/hdf-eos4-2.20v1.00/src/SWapi.c:798:6: [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(errbuf, data/hdf-eos4-2.20v1.00/src/SWapi.c:800:6: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(errbuf, " (%s)"); data/hdf-eos4-2.20v1.00/src/SWapi.c:930: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 swathname[80] /* Swath name */ ; data/hdf-eos4-2.20v1.00/src/SWapi.c:1010: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 *metaptrs[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/SWapi.c:1011: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 swathname[80]; /* Swath Name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:1068:19: [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). size = (int32)atoi(utlstr); data/hdf-eos4-2.20v1.00/src/SWapi.c:1072:19: [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). size = (int32)atoi(utlstr); data/hdf-eos4-2.20v1.00/src/SWapi.c:1150: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 fieldname[2048]; /* Field Names */ data/hdf-eos4-2.20v1.00/src/SWapi.c:1151: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 dimlist[HDFE_DIMBUFSIZE];/* Dimension list */ data/hdf-eos4-2.20v1.00/src/SWapi.c:1312: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 utlbuf[UTLSTR_MAX_SIZE];/* Utility buffer */ data/hdf-eos4-2.20v1.00/src/SWapi.c:1313: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 *ptr[32]; /* String pointer array */ data/hdf-eos4-2.20v1.00/src/SWapi.c:1314: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 swathname[80]; /* Swath name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:1315: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 parmbuf[128]; /* Parameter string buffer */ data/hdf-eos4-2.20v1.00/src/SWapi.c:1323: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[2048]; /* Field Names */ data/hdf-eos4-2.20v1.00/src/SWapi.c:1388:6: [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(utlbuf, dimname, slen); data/hdf-eos4-2.20v1.00/src/SWapi.c:1494: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 fieldname[2048]; /* Field Names */ data/hdf-eos4-2.20v1.00/src/SWapi.c:1497: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 dimlist[HDFE_DIMBUFSIZE];/* Dimension list */ data/hdf-eos4-2.20v1.00/src/SWapi.c:1644: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 utlbuf[UTLSTR_MAX_SIZE]; /* Utility buffer */ data/hdf-eos4-2.20v1.00/src/SWapi.c:1645: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 swathname[80]; /* Swath name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:1646: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 parmbuf[128]; /* Parameter string buffer */ data/hdf-eos4-2.20v1.00/src/SWapi.c:1651: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[2048]; /* Field Names */ data/hdf-eos4-2.20v1.00/src/SWapi.c:1715:6: [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(utlbuf, dimname, slen); data/hdf-eos4-2.20v1.00/src/SWapi.c:1825: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 utlbuf[UTLSTR_MAX_SIZE];/* Utility buffer */ data/hdf-eos4-2.20v1.00/src/SWapi.c:1826: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 *ptr[32]; /* String pointer array */ data/hdf-eos4-2.20v1.00/src/SWapi.c:1827: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 swathname[80]; /* Swath name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:1828: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 parmbuf[128]; /* Parameter string buffer */ data/hdf-eos4-2.20v1.00/src/SWapi.c:1832: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[2048]; /* Field Names */ data/hdf-eos4-2.20v1.00/src/SWapi.c:1895:6: [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(utlbuf, dimname, slen); data/hdf-eos4-2.20v1.00/src/SWapi.c:2025: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 utlbuf[UTLSTR_MAX_SIZE]; /* Utility buffer */ data/hdf-eos4-2.20v1.00/src/SWapi.c:2026: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 swathname[80]; /* Swath name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:2027: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 parmbuf[128]; /* Parameter string buffer */ data/hdf-eos4-2.20v1.00/src/SWapi.c:2031: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[2048]; /* Field Names */ data/hdf-eos4-2.20v1.00/src/SWapi.c:2095:6: [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(utlbuf, dimname, slen); data/hdf-eos4-2.20v1.00/src/SWapi.c:2195: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 *metaptrs[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/SWapi.c:2196: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 swathname[80]; /* Swath Name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:2244:13: [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). *offset = atoi(utlstr); data/hdf-eos4-2.20v1.00/src/SWapi.c:2258:16: [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). *increment = atoi(utlstr); data/hdf-eos4-2.20v1.00/src/SWapi.c:2326: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 utlbuf[256];/* Utility buffer */ data/hdf-eos4-2.20v1.00/src/SWapi.c:2409: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 *metaptrs[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/SWapi.c:2410: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 swathname[80]; /* Swath Name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:2418: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[2048]; /* Field Names */ data/hdf-eos4-2.20v1.00/src/SWapi.c:2421:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *HDFcomp[6] = {"HDFE_COMP_NONE", "HDFE_COMP_RLE", data/hdf-eos4-2.20v1.00/src/SWapi.c:2758: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 *metaptrs[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/SWapi.c:2759: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 swathname[80]; /* Swath Name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:2761: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 *ptr[8]; /* String pointers for parsed string */ data/hdf-eos4-2.20v1.00/src/SWapi.c:2762: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 dimstr[64]; /* Individual dimension entry string */ data/hdf-eos4-2.20v1.00/src/SWapi.c:2897:6: [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(dimstr, ptr[i] + 1, slen[i] - 2); data/hdf-eos4-2.20v1.00/src/SWapi.c:3280: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 mapname[80];/* Mapping name (geodim/datadim) */ data/hdf-eos4-2.20v1.00/src/SWapi.c:3281: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 swathname[80]; /* Swath name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:3379: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 mapname[80];/* Mapping name (geodim/datadim) */ data/hdf-eos4-2.20v1.00/src/SWapi.c:3380: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 swathname[80]; /* Swath name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:3381: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 utlbuf[256];/* Utility buffer */ data/hdf-eos4-2.20v1.00/src/SWapi.c:3442:6: [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(buf, l_index, 4 * gsize); data/hdf-eos4-2.20v1.00/src/SWapi.c:3654: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 utlbuf[UTLSTR_MAX_SIZE];/* Utility buffer */ data/hdf-eos4-2.20v1.00/src/SWapi.c:3655: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 utlbuf2[UTLSTR_MAX_SIZE]; /* Utility buffer 2 */ data/hdf-eos4-2.20v1.00/src/SWapi.c:3656: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 *ptr[32]; /* String pointer array */ data/hdf-eos4-2.20v1.00/src/SWapi.c:3657: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 swathname[80]; /* Swath name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:3658: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 errbuf1[128]; /* Error message buffer 1 */ data/hdf-eos4-2.20v1.00/src/SWapi.c:3659: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 errbuf2[128]; /* Error message buffer 2 */ data/hdf-eos4-2.20v1.00/src/SWapi.c:3660: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 compparmbuf[128]; /* Compression parameter string buffer */ data/hdf-eos4-2.20v1.00/src/SWapi.c:3665:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char *HDFcomp[6] = {"HDFE_COMP_NONE", "HDFE_COMP_RLE", data/hdf-eos4-2.20v1.00/src/SWapi.c:3684:5: [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(errbuf1, "SWXSDname array too small.\nPlease increase "); data/hdf-eos4-2.20v1.00/src/SWapi.c:3685:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(errbuf1, "size of HDFE_NAMBUFSIZE in \"HdfEosDef.h\".\n"); data/hdf-eos4-2.20v1.00/src/SWapi.c:3686:5: [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(errbuf2, "SWXSDdims array too small.\nPlease increase "); data/hdf-eos4-2.20v1.00/src/SWapi.c:3687:5: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(errbuf2, "size of HDFE_DIMBUFSIZE in \"HdfEosDef.h\".\n"); data/hdf-eos4-2.20v1.00/src/SWapi.c:3734:6: [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(dimcheck, dimbuf, comma - dimbuf); data/hdf-eos4-2.20v1.00/src/SWapi.c:4068:8: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(SWXSDdims, "ONE,"); data/hdf-eos4-2.20v1.00/src/SWapi.c:4131: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(utlbuf, ptr[i], slen[i]); data/hdf-eos4-2.20v1.00/src/SWapi.c:4468: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 utlbuf[256];/* Utility buffer */ data/hdf-eos4-2.20v1.00/src/SWapi.c:4469: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 swathname[80]; /* Swath name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:4533: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 utlbuf[256];/* Utility buffer */ data/hdf-eos4-2.20v1.00/src/SWapi.c:4534: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 swathname[80]; /* Swath name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:5138: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 *metaptrs[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/SWapi.c:5139: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 swathname[80]; /* Swath Name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:5234:20: [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). size = (int32)atoi(utlstr); data/hdf-eos4-2.20v1.00/src/SWapi.c:5238:20: [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). size = (int32)atoi(utlstr); data/hdf-eos4-2.20v1.00/src/SWapi.c:5317: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 *metaptrs[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/SWapi.c:5318: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 swathname[80]; /* Swath Name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:5396: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). off = atoi(utlstr); data/hdf-eos4-2.20v1.00/src/SWapi.c:5404:11: [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). incr = atoi(utlstr); data/hdf-eos4-2.20v1.00/src/SWapi.c:5482: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 *metaptrs[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/SWapi.c:5483: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 swathname[80]; /* Swath Name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:5646: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 *metaptrs[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/SWapi.c:5647: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 swathname[80]; /* Swath Name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:5650: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 *ptr[8]; /* String pointer array */ data/hdf-eos4-2.20v1.00/src/SWapi.c:5694: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(utlstr2, "GeoFieldName"); data/hdf-eos4-2.20v1.00/src/SWapi.c:5706: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(utlstr2, "DataFieldName"); data/hdf-eos4-2.20v1.00/src/SWapi.c:5743:8: [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(utlstr, "\t\t\t\t"); data/hdf-eos4-2.20v1.00/src/SWapi.c:5980: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 *metaptrs[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/SWapi.c:5981: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 swathname[80]; /* Swath Name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:5983: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 valName[2][32]; /* Strings to search for */ data/hdf-eos4-2.20v1.00/src/SWapi.c:6023: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(&valName[0][0], "DimensionName"); data/hdf-eos4-2.20v1.00/src/SWapi.c:6038: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(&valName[0][0], "GeoDimension"); data/hdf-eos4-2.20v1.00/src/SWapi.c:6039: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(&valName[1][0], "DataDimension"); data/hdf-eos4-2.20v1.00/src/SWapi.c:6054: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(&valName[0][0], "GeoDimension"); data/hdf-eos4-2.20v1.00/src/SWapi.c:6055: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(&valName[1][0], "DataDimension"); data/hdf-eos4-2.20v1.00/src/SWapi.c:6070: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(&valName[0][0], "GeoFieldName"); data/hdf-eos4-2.20v1.00/src/SWapi.c:6085: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(&valName[0][0], "DataFieldName"); data/hdf-eos4-2.20v1.00/src/SWapi.c:6099:6: [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(&valName[0][0], "\t\tOBJECT"); data/hdf-eos4-2.20v1.00/src/SWapi.c:6344: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[2048]; /* Merged-Field Names */ data/hdf-eos4-2.20v1.00/src/SWapi.c:6345: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 swathname[80]; /* Swath Name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:6348: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 *metaptrs[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/SWapi.c:6585: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 attrName[80]; /* Name of fill value attribute */ data/hdf-eos4-2.20v1.00/src/SWapi.c:6586: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 *ptr[64]; /* String pointer array */ data/hdf-eos4-2.20v1.00/src/SWapi.c:6587: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 fieldlist[256]; /* Vdata field list */ data/hdf-eos4-2.20v1.00/src/SWapi.c:6919:7: [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(attrName, "_FV_"); data/hdf-eos4-2.20v1.00/src/SWapi.c:6936:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf + i * recsize + mrgOffset, data/hdf-eos4-2.20v1.00/src/SWapi.c:6945: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(buf, datbuf, count[0] * recsize); data/hdf-eos4-2.20v1.00/src/SWapi.c:6951:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf + i * recsize * incr[0] + mrgOffset, data/hdf-eos4-2.20v1.00/src/SWapi.c:7428: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 dimlist[256]; /* Dimension list (geolocation data/hdf-eos4-2.20v1.00/src/SWapi.c:7430: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 latName[17];/* Latitude field name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:7488:5: [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(latName, "GeodeticLatitude"); data/hdf-eos4-2.20v1.00/src/SWapi.c:7495: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(latName, "Colatitude"); data/hdf-eos4-2.20v1.00/src/SWapi.c:7502:6: [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(latName, "Latitude"); data/hdf-eos4-2.20v1.00/src/SWapi.c:7621: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(&temp32, lonArr + 4 * i, 4); data/hdf-eos4-2.20v1.00/src/SWapi.c:7623: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(lonArr + 8 * i, &temp64, 8); data/hdf-eos4-2.20v1.00/src/SWapi.c:7625: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(&temp32, latArr + 4 * i, 4); data/hdf-eos4-2.20v1.00/src/SWapi.c:7627: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(latArr + 8 * i, &temp64, 8); data/hdf-eos4-2.20v1.00/src/SWapi.c:7656: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(&lonTestVal, &lonArr[8 * (i * edge[1] + j)], 8); data/hdf-eos4-2.20v1.00/src/SWapi.c:7657: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(&latTestVal, &latArr[8 * (i * edge[1] + j)], 8); data/hdf-eos4-2.20v1.00/src/SWapi.c:7722: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. lonArr = (char *) calloc(dims[1], sizeof(float64)); data/hdf-eos4-2.20v1.00/src/SWapi.c:7730: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. latArr = (char *) calloc(dims[1], sizeof(float64)); data/hdf-eos4-2.20v1.00/src/SWapi.c:7796: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(&temp32, lonArr + 4 * j, 4); data/hdf-eos4-2.20v1.00/src/SWapi.c:7798: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(lonArr + 8 * j, &temp64, 8); data/hdf-eos4-2.20v1.00/src/SWapi.c:7800: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(&temp32, latArr + 4 * j, 4); data/hdf-eos4-2.20v1.00/src/SWapi.c:7802: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(latArr + 8 * j, &temp64, 8); data/hdf-eos4-2.20v1.00/src/SWapi.c:7813:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&lonTestVal, &lonArr[8 * j], 8); data/hdf-eos4-2.20v1.00/src/SWapi.c:7814:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&latTestVal, &latArr[8 * j], 8); data/hdf-eos4-2.20v1.00/src/SWapi.c:8086: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 dimlist[256]; /* Dimension list (geolocation data/hdf-eos4-2.20v1.00/src/SWapi.c:8088: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 latName[17];/* Latitude field name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:8146:8: [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(latName, "GeodeticLatitude"); data/hdf-eos4-2.20v1.00/src/SWapi.c:8153: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(latName, "Colatitude"); data/hdf-eos4-2.20v1.00/src/SWapi.c:8160:6: [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(latName, "Latitude"); data/hdf-eos4-2.20v1.00/src/SWapi.c:8285: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(&temp32, lonArr + 4 * i, 4); data/hdf-eos4-2.20v1.00/src/SWapi.c:8287: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(lonArr + 8 * i, &temp64, 8); data/hdf-eos4-2.20v1.00/src/SWapi.c:8289: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(&temp32, latArr + 4 * i, 4); data/hdf-eos4-2.20v1.00/src/SWapi.c:8291: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(latArr + 8 * i, &temp64, 8); data/hdf-eos4-2.20v1.00/src/SWapi.c:8319: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(&lonTestVal, &lonArr[8 * (i * edge[1] + j)], 8); data/hdf-eos4-2.20v1.00/src/SWapi.c:8320: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(&latTestVal, &latArr[8 * (i * edge[1] + j)], 8); data/hdf-eos4-2.20v1.00/src/SWapi.c:8385: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. lonArr = (char *) calloc(dims[1], sizeof(float64)); data/hdf-eos4-2.20v1.00/src/SWapi.c:8392: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. latArr = (char *) calloc(dims[1], sizeof(float64)); data/hdf-eos4-2.20v1.00/src/SWapi.c:8454: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(&temp32, lonArr + 4 * j, 4); data/hdf-eos4-2.20v1.00/src/SWapi.c:8456: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(lonArr + 8 * j, &temp64, 8); data/hdf-eos4-2.20v1.00/src/SWapi.c:8458: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(&temp32, latArr + 4 * j, 4); data/hdf-eos4-2.20v1.00/src/SWapi.c:8460: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(latArr + 8 * j, &temp64, 8); data/hdf-eos4-2.20v1.00/src/SWapi.c:8471:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&lonTestVal, &lonArr[8 * j], 8); data/hdf-eos4-2.20v1.00/src/SWapi.c:8472:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&latTestVal, &latArr[8 * j], 8); data/hdf-eos4-2.20v1.00/src/SWapi.c:8741: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 dimlist[256]; /* Dimension list (geolocation data/hdf-eos4-2.20v1.00/src/SWapi.c:9075: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 dimlist[256]; /* Dimension list */ data/hdf-eos4-2.20v1.00/src/SWapi.c:9076: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 geodim[256];/* Geolocation field dimension list */ data/hdf-eos4-2.20v1.00/src/SWapi.c:9077: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 tgeodim[256];/* Time field dimension list */ data/hdf-eos4-2.20v1.00/src/SWapi.c:9078: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 dgeodim[256];/* Data field dimension list for subsetting */ data/hdf-eos4-2.20v1.00/src/SWapi.c:9079: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 utlbuf[256];/* Utility buffer */ data/hdf-eos4-2.20v1.00/src/SWapi.c:9080: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 *ptr[64]; /* String pointer array */ data/hdf-eos4-2.20v1.00/src/SWapi.c:9304: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(utlbuf, ptr[i], slen[i]); data/hdf-eos4-2.20v1.00/src/SWapi.c:9387: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(utlbuf, ptr[i], slen[i]); data/hdf-eos4-2.20v1.00/src/SWapi.c:10359: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 dimlist[256]; /* Dimension list */ data/hdf-eos4-2.20v1.00/src/SWapi.c:10360: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 geodim[256];/* Geolocation field dimension list */ data/hdf-eos4-2.20v1.00/src/SWapi.c:10361: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 tgeodim[256];/* Time Geolocation field dimension list */ data/hdf-eos4-2.20v1.00/src/SWapi.c:10362: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 dgeodim[256];/* Data Subsetting field dimension list */ data/hdf-eos4-2.20v1.00/src/SWapi.c:10363: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 utlbuf[256];/* Utility buffer */ data/hdf-eos4-2.20v1.00/src/SWapi.c:10364: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 *ptr[64]; /* String pointer array */ data/hdf-eos4-2.20v1.00/src/SWapi.c:10518: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(utlbuf, ptr[i], slen[i]); data/hdf-eos4-2.20v1.00/src/SWapi.c:10569: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(utlbuf, ptr[i], slen[i]); data/hdf-eos4-2.20v1.00/src/SWapi.c:11227:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(SWXRegion[regionID]->DimNamePtr[j], \ data/hdf-eos4-2.20v1.00/src/SWapi.c:11262: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 dimlist[256]; /* Dimension list */ data/hdf-eos4-2.20v1.00/src/SWapi.c:11274:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dimlist, vertObj, 4); data/hdf-eos4-2.20v1.00/src/SWapi.c:11319: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(SWXRegion[regionID]->DimNamePtr[j], data/hdf-eos4-2.20v1.00/src/SWapi.c:11391:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. vertArr = (char *) calloc(dims[0], size); data/hdf-eos4-2.20v1.00/src/SWapi.c:11413: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(&vertINT16, vertArr + i * size, size); data/hdf-eos4-2.20v1.00/src/SWapi.c:11451:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&vertINT16, vertArr + i * size, size); data/hdf-eos4-2.20v1.00/src/SWapi.c:11484: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(&vertINT32, vertArr + i * size, size); data/hdf-eos4-2.20v1.00/src/SWapi.c:11522:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&vertINT32, vertArr + i * size, size); data/hdf-eos4-2.20v1.00/src/SWapi.c:11554: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(&vertFLT32, vertArr + i * size, size); data/hdf-eos4-2.20v1.00/src/SWapi.c:11592:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&vertFLT32, vertArr + i * size, size); data/hdf-eos4-2.20v1.00/src/SWapi.c:11625: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(&vertFLT64, vertArr + i * size, size); data/hdf-eos4-2.20v1.00/src/SWapi.c:11663:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&vertFLT64, vertArr + i * size, size); data/hdf-eos4-2.20v1.00/src/SWapi.c:11744: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 utlbuf[16]; /* Utility buffer */ data/hdf-eos4-2.20v1.00/src/SWapi.c:11749: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(utlbuf, vertObj, 4); data/hdf-eos4-2.20v1.00/src/SWapi.c:11847: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 dimlist[256]; /* Dimension list */ data/hdf-eos4-2.20v1.00/src/SWapi.c:11848: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 swathname[80]; data/hdf-eos4-2.20v1.00/src/SWapi.c:12139: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[84]; /* Fill value "attribute" name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:12167:6: [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(name, "_FV_"); data/hdf-eos4-2.20v1.00/src/SWapi.c:12221: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[84]; /* Fill value "attribute" name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:12234:6: [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(name, "_FV_"); data/hdf-eos4-2.20v1.00/src/SWapi.c:12370: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 *ptr1[3]; /* String pointer array */ data/hdf-eos4-2.20v1.00/src/SWapi.c:12371: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 *ptr2[3]; /* String pointer array */ data/hdf-eos4-2.20v1.00/src/SWapi.c:12372: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 dimbuf1[128]; /* Dimension buffer 1 */ data/hdf-eos4-2.20v1.00/src/SWapi.c:12373: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 dimbuf2[128]; /* Dimension buffer 2 */ data/hdf-eos4-2.20v1.00/src/SWapi.c:12374: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 swathname[VGNAMELENMAX + 1]; /* Swath name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:12376: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 fillval[32];/* Fill value buffer */ data/hdf-eos4-2.20v1.00/src/SWapi.c:12668: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(match, &SWXSDcomb[5 * i], 20); data/hdf-eos4-2.20v1.00/src/SWapi.c:12669: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(nambuf, nameptr[i], namelen[i]); data/hdf-eos4-2.20v1.00/src/SWapi.c:12671: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(dimbuf1, dimptr[i], dimlen[i]); data/hdf-eos4-2.20v1.00/src/SWapi.c:12701: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(dimbuf2, dimptr[j], dimlen[j]); data/hdf-eos4-2.20v1.00/src/SWapi.c:12725:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(nambuf + strlen(nambuf), data/hdf-eos4-2.20v1.00/src/SWapi.c:12783: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(utlbuf, "MRGFLD_"); data/hdf-eos4-2.20v1.00/src/SWapi.c:12784: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(utlbuf + 7, nameptr0[0], namelen0[0]); data/hdf-eos4-2.20v1.00/src/SWapi.c:12831: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(dimbuf2, ptr1[k + 1], slen1[k + 1]); data/hdf-eos4-2.20v1.00/src/SWapi.c:12838: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(dimbuf2, ptr1[k], slen1[k]); data/hdf-eos4-2.20v1.00/src/SWapi.c:12873: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(utlbuf, nameptr0[k], namelen0[k]); data/hdf-eos4-2.20v1.00/src/SWapi.c:12928: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(&SWX1dcomb[3 * i], data/hdf-eos4-2.20v1.00/src/SWapi.c:13780: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 *metaptrsr[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/SWapi.c:13781: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 *metaptrsi[2];/* Pointers to begin and end of SM section */ data/hdf-eos4-2.20v1.00/src/SWapi.c:13782: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 swathname[80]; /* Swath Name */ data/hdf-eos4-2.20v1.00/src/SWapi.c:13905: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 tempdimlist[HDFE_DIMBUFSIZE];/* Dimension list */ data/hdf-eos4-2.20v1.00/src/SWapi.c:13907: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 errbuf[256]; /* Error buffer */ data/hdf-eos4-2.20v1.00/src/SWapi.c:14067: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 dimlist[HDFE_DIMBUFSIZE];/* Dimension list */ data/hdf-eos4-2.20v1.00/src/SWapi.c:14069: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 errbuf[256]; /* Error buffer */ data/hdf-eos4-2.20v1.00/src/SWapi.c:14073: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 dimname0[HDFE_DIMBUFSIZE],dimname1[HDFE_DIMBUFSIZE]; data/hdf-eos4-2.20v1.00/src/SWapi.c:14074: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 geodim[256]; /* Geolocation field dimension list */ data/hdf-eos4-2.20v1.00/src/SWapi.c:14075: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 geodimbuf[256];/* Geolocation field dimension list */ data/hdf-eos4-2.20v1.00/src/SWapi.c:14078: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 *ptr[64],*ptr2[64]; /* String pointer array */ data/hdf-eos4-2.20v1.00/src/SWapi.c:14081: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 utlbuf[256]; /* Utility buffer */ data/hdf-eos4-2.20v1.00/src/SWapi.c:14125: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(geodimbuf, ptr[iDim], slen[iDim]); data/hdf-eos4-2.20v1.00/src/SWapi.c:14140: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(utlbuf, ptr2[i], slen2[i]); data/hdf-eos4-2.20v1.00/src/SWapi.c:14189:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(utlbuf, ptr2[i], slen2[i]); data/hdf-eos4-2.20v1.00/src/SWapi.c:14258: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 errbuf[256]; /* Error message buffer */ data/hdf-eos4-2.20v1.00/testdrivers/grid/testgrid.c:62: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 tmpstr[1024]; data/hdf-eos4-2.20v1.00/testdrivers/grid/testgrid.c:104:25: [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). Verbosity = atoi(argv[CLLoop + 1]); data/hdf-eos4-2.20v1.00/testdrivers/grid/testgrid.c:341: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). MESSAGE(11,fp=fopen("testgridc.txtout", "w");); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:26: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 fldbuf[255]; data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:27: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 linkfield, datbuf[1024]; data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:28: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 desc[16], id[2], buffer[10000], *pntr, *buffer2, spc[8]; data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:58:25: [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). Verbosity = atoi(argv[CLLoop + 1]); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:64:19: [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). MESSAGE(11,fp2=fopen("testpointc.txt","w");); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:148: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(fldbuf, "Time,Concentration,Species"); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:183: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(fldbuf, "Label,Longitude,Latitude,DeployDate,ID"); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:210: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(fldbuf, "Time,Rainfall,Temperature,ID"); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:261: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(fldbuf, "Label,DeployDate,Weight,ID"); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:288: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(fldbuf, "Time,Longitude,Latitude,Rainfall,Temperature,ID"); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:442:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("fixedBuoy0.txt", "r"); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:453: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(pntr, &desc, 8); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:455: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(pntr, &lon, 8); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:457: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(pntr, &lat, 8); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:459: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(pntr, &date, 4); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:461: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(pntr, &id, 1); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:502:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("fixedBuoy1.txt", "r"); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:513: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(pntr, &time, 8); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:515: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(pntr, &rain, 4); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:517: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(pntr, &temp, 4); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:519: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(pntr, &id, 1); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:584:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("simple.txt", "r"); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:592: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(pntr, &time, 8); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:594: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(pntr, conc, 4*4); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:596: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(pntr, &spc, 4); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:627:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("floatBuoy0.txt", "r"); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:637: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(pntr, &desc, 8); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:639: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(pntr, &date, 4); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:641: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(pntr, &wgt, 2); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:643: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(pntr, &id, 1); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:662:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("floatBuoy1.txt", "r"); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:670: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(pntr, &time, 8); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:672: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(pntr, &lon, 8); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:674: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(pntr, &lat, 8); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:676: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(pntr, &rain, 4); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:678: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(pntr, &temp, 4); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:680: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(pntr, &id, 1); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:1139: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(&desc, pntr, 8); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:1141: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(&lon, pntr, 8); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:1143: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(&lat, pntr, 8); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:1145: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(&date, pntr, 4); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:1147: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(&id, pntr, 1); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:1164: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(datbuf, &f64, 8); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:1324: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(&desc, pntr, 8); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:1326: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(&lon, pntr, 8); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:1328: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(&lat, pntr, 8); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:1330: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(&date, pntr, 4); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:1332: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(&id, pntr, 1); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:1394: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(&time, pntr, 8); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:1396: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(&rain, pntr, 4); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:1398: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(&temp, pntr, 4); data/hdf-eos4-2.20v1.00/testdrivers/point/testpoint.c:1400: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(&id, pntr, 1); data/hdf-eos4-2.20v1.00/testdrivers/swath/testswath.c:52: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 dimlist[128]; data/hdf-eos4-2.20v1.00/testdrivers/swath/testswath.c:99:25: [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). Verbosity = atoi(argv[CLLoop + 1]); data/hdf-eos4-2.20v1.00/testdrivers/swath/testswath.c:174: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). MESSAGE(11,fp=fopen("testswathc.txt","w");); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:53: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 inputFile[COMMAND_STRING]; data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:54: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 gridName[COMMAND_STRING]; data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:55: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 outputFile_nxny[COMMAND_STRING]; data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:56: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 outputFile_lat[COMMAND_STRING]; data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:57: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 outputFile_lon[COMMAND_STRING]; data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:58: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 outFileFlag[COMMAND_STRING]; data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:67: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 outstr[128]; data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:122:24: [2] (integer) atol: 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). Com->RowCol[0] = atol(argv[5]); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:123:24: [2] (integer) atol: 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). Com->RowCol[1] = atol(argv[6]); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:141:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(Com->outputFile_nxny,"_ASCII"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:142:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(Com->outputFile_lat,"_lat"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:143:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(Com->outputFile_lon,"_lon"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:157:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(Com->outputFile_nxny,"_ASCII"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:158:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(Com->outputFile_lat,"_lat"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:159:7: [2] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant string. strcat(Com->outputFile_lon,"_lon"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:160:7: [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(Com->outFileFlag, "-a"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:173:7: [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(Com->outFileFlag, "-a"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:208: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 gridlist[1000], tmp_gridlist[1000],*grids[20]; data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:228: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 projection[64]; data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:324:2: [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(projection,"GEOGRAPHIC"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:327: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(projection,"INTEGERIZED SINUSOIDAL"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:330:2: [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(projection,"UNIVERSAL TRANSVERSE MERCATOR"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:333: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(projection,"LAMBERT CONFORMAL CONIC"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:336:2: [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(projection,"POLAR STREOGRAPHIC"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:339:2: [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(projection,"POLYCONIC"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:342:2: [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(projection,"TRANSVERSE MERCATOR"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:345:2: [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(projection,"LAMBERT AZIMUTHAL"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:348:2: [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(projection,"HOTIN OBLIQUE MERCATOR"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:351:2: [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(projection,"SPACE OBLIQUE MERCATOR"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:354:2: [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(projection,"INTERRPTED GOODE"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:357:2: [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(projection,"STATE PLANE"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:360:2: [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(projection,"INTEGERIZED SINUSOIDAL"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:363:2: [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(projection,"SINUSOIDAL"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:366:2: [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(projection,"MERCATOR"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:369:2: [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(projection,"ALBERS CONICAL EQUAL AREA"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:373:2: [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(projection,"NOT SUPPORTED"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:569:21: [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). outfile_nxny=fopen((&Com)->outputFile_nxny, "w" ); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:570:20: [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). outfile_lat=fopen((&Com)->outputFile_lat, "wb" ); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:571:20: [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). outfile_lon=fopen((&Com)->outputFile_lon, "wb" ); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:575:21: [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). outfile_nxny=fopen((&Com)->outputFile_nxny, "w" ); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:582:21: [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). outfile_nxny=fopen((&Com)->outputFile_nxny, "w" ); data/hdf-eos4-2.20v1.00/gctp/src/report.c:66:68: [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). else if(strncmp(what, "Point projects into a circle of radius", strlen("Point projects into a circle of radius")) == 0) returnStatus = PGSGCT_E_POINT_PROJECT; data/hdf-eos4-2.20v1.00/gctp/src/report.c:107: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). if (strlen(efile) == 0) data/hdf-eos4-2.20v1.00/gctp/src/report.c:118: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). if (strlen(efile) == 0) data/hdf-eos4-2.20v1.00/gctp/src/report.c:141: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). if (strlen(pfile) == 0) data/hdf-eos4-2.20v1.00/gctp/src/report.c:152: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). if (strlen(pfile) == 0) data/hdf-eos4-2.20v1.00/include/cfortHdf.h:316: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). e = s + strlen(s); data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1159: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). #define CSTRING( A,B,C) (B.clen=strlen(A),B.f.dsc$a_pointer=A, \ data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1165: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). #define CPSTRING( A,B,C) (B.dsc$w_length=strlen(A),B.dsc$a_pointer=A, \ data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1172: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). #define CSTRING( A,B,C) (B.clen=strlen(A), \ data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1177: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). #define CPSTRING( A,B,C) (B=strlen(A), C==sizeof(char*)?0: \ data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1182: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). #define CSTRING( A,B,C) (B.clen=strlen(A), \ data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1187: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). #define CPSTRING( A,B,C) (B=strlen(A), C==sizeof(char*)?0: \ data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1554: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). #define RRRRPSTR( A,B,D) if (B) memcpy(A,B,PGSMIN(strlen(B),D)), \ data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1555:22: [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). (D>strlen(B)?memset(A+strlen(B),' ', D-strlen(B)):0), free(B); data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1555:41: [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). (D>strlen(B)?memset(A+strlen(B),' ', D-strlen(B)):0), free(B); data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1555:58: [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). (D>strlen(B)?memset(A+strlen(B),' ', D-strlen(B)):0), free(B); data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1641:67: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy(AS->dsc$a_pointer,A0, PGSMIN(AS->dsc$w_length,(A0==NULL?0:strlen(A0))) ); \ data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1642:31: [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). AS->dsc$w_length>(A0==NULL?0:strlen(A0))? \ data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1643: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). memset(AS->dsc$a_pointer+(A0==NULL?0:strlen(A0)),' ', \ data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1644:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). AS->dsc$w_length-(A0==NULL?0:strlen(A0))):0; data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1648:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy(_fcdtocp(AS),A0, PGSMIN(_fcdlen(AS),(A0==NULL?0:strlen(A0))) ); \ data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1649: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). _fcdlen(AS)>(A0==NULL?0:strlen(A0))? \ data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1650:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memset(_fcdtocp(AS)+(A0==NULL?0:strlen(A0)),' ', \ data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1651: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). _fcdlen(AS)-(A0==NULL?0:strlen(A0))):0; data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1653:62: [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 KSTRING memcpy(AS,A0, PGSMIN(D0,(A0==NULL?0:strlen(A0))) ); \ data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1654: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). D0>(A0==NULL?0:strlen(A0))?memset(AS+(A0==NULL?0:strlen(A0)), \ data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1654:67: [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). D0>(A0==NULL?0:strlen(A0))?memset(AS+(A0==NULL?0:strlen(A0)), \ data/hdf-eos4-2.20v1.00/include/cfortHdf.h:1655:65: [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). ' ', D0-(A0==NULL?0:strlen(A0))):0; data/hdf-eos4-2.20v1.00/samples/ReadLevels.c:42:5: [1] (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 character. strcpy(fldlist,""); data/hdf-eos4-2.20v1.00/samples/ReadLevels.c:110:5: [1] (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 character. strcpy(fldlist,""); data/hdf-eos4-2.20v1.00/samples/ReadLevels.c:175:5: [1] (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 character. strcpy(fldlist,""); data/hdf-eos4-2.20v1.00/samples/WriteAllDimscaleGrid.c:95:2: [1] (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 character. strcpy(unit, "s"); data/hdf-eos4-2.20v1.00/samples/WriteDimscaleGrid.c:95:2: [1] (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 character. strcpy(unit, "s"); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:48: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). spc[strlen(spc)-1] = 0; data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:84:5: [1] (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 character. strcpy(buffer,""); data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:94: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). desc[strlen(desc)-1] = 0; /* get rid of second single quote data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:96:5: [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). id[strlen(id)-1] = 0; /* get rid of second single quote data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:132:5: [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). id[strlen(id)-1] = 0; data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:182: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). desc[strlen(desc)-1] = 0; data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:183:5: [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). id[strlen(id)-1] = 0; data/hdf-eos4-2.20v1.00/samples/WriteLevels.c:216:5: [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). id[strlen(id)-1] = 0; data/hdf-eos4-2.20v1.00/src/EHapi.c:208: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). (int)strlen(hdfeosVersion), hdfeosVersion); data/hdf-eos4-2.20v1.00/src/EHapi.c:308: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). (int)strlen(hdfeosVersion), hdfeosVersion); data/hdf-eos4-2.20v1.00/src/EHapi.c:406:7: [1] (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 character. strcpy(errbuf, "\""); data/hdf-eos4-2.20v1.00/src/EHapi.c:1001: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). slen = (int32)strlen(instring); data/hdf-eos4-2.20v1.00/src/EHapi.c:1227:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). slen = (int32)strlen(ptr[i]); data/hdf-eos4-2.20v1.00/src/EHapi.c:1439: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). tempdimlist = (char *) malloc((int32)strlen(dimlist) + 1); data/hdf-eos4-2.20v1.00/src/EHapi.c:1697:5: [1] (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 character. strcpy(outstring, "("); data/hdf-eos4-2.20v1.00/src/EHapi.c:1706:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(outstring, "\""); data/hdf-eos4-2.20v1.00/src/EHapi.c:1718:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(outstring, "\""); data/hdf-eos4-2.20v1.00/src/EHapi.c:1727:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(outstring, ","); data/hdf-eos4-2.20v1.00/src/EHapi.c:1738:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(outstring, ")"); data/hdf-eos4-2.20v1.00/src/EHapi.c:1881:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). metalen = (int32)strlen(metabuf); data/hdf-eos4-2.20v1.00/src/EHapi.c:1887:22: [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). metalen = (int32)strlen(metabuf); data/hdf-eos4-2.20v1.00/src/EHapi.c:2414: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). seglen = (int32)strlen(utlstr); data/hdf-eos4-2.20v1.00/src/EHapi.c:2522: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). slen = (int32)strlen(parameter) + 1; data/hdf-eos4-2.20v1.00/src/EHapi.c:2527:5: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(retstr, "="); data/hdf-eos4-2.20v1.00/src/EHapi.c:2669: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). metalen = (int32)strlen(metabuf); data/hdf-eos4-2.20v1.00/src/EHapi.c:2675:22: [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). metalen = (int32)strlen(metabuf); data/hdf-eos4-2.20v1.00/src/EHapi.c:3319: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). tmpname = (char *)malloc(((int)strlen(name)+1)*sizeof(char)); data/hdf-eos4-2.20v1.00/src/EHapi.c:3423: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). if (memcmp(name, indxstr, strlen(indxstr)) != 0 && data/hdf-eos4-2.20v1.00/src/EHapi.c:3424: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). memcmp(name, fvstr, strlen(fvstr)) != 0 && data/hdf-eos4-2.20v1.00/src/EHapi.c:3425:22: [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). memcmp(name, bsom, strlen(bsom)) != 0) data/hdf-eos4-2.20v1.00/src/EHapi.c:3437:4: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(attrnames, ","); data/hdf-eos4-2.20v1.00/src/EHapi.c:3443: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). slen = (nattr == 1) ? (int32)strlen(name) : (int32)strlen(name) + 1; data/hdf-eos4-2.20v1.00/src/EHapi.c:3443:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). slen = (nattr == 1) ? (int32)strlen(name) : (int32)strlen(name) + 1; data/hdf-eos4-2.20v1.00/src/EHapi.c:3548: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). if ((intn) strlen(tempname) < VGNAMELENMAX) data/hdf-eos4-2.20v1.00/src/EHapi.c:3565:4: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(objectlist, ","); data/hdf-eos4-2.20v1.00/src/EHapi.c:3571:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). slen = (nobj == 1) ? (int32)strlen(name) : (int32)strlen(name) + 1; data/hdf-eos4-2.20v1.00/src/EHapi.c:3571:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). slen = (nobj == 1) ? (int32)strlen(name) : (int32)strlen(name) + 1; data/hdf-eos4-2.20v1.00/src/GDapi.c:356: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). else if ((intn) strlen(gridname) > VGNAMELENMAX) data/hdf-eos4-2.20v1.00/src/GDapi.c:966: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). tmpdimname = (char *)malloc(((int)strlen(dimname)+1)*sizeof(char)); data/hdf-eos4-2.20v1.00/src/GDapi.c:1045:6: [1] (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 character. strcpy(projparmbuf, "("); data/hdf-eos4-2.20v1.00/src/GDapi.c:1077:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). slen = (int32)strlen(projparmbuf); data/hdf-eos4-2.20v1.00/src/GDapi.c:2934:31: [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). memmove(utlstr, utlstr + 1, strlen(utlstr) - 2); data/hdf-eos4-2.20v1.00/src/GDapi.c:2935: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). utlstr[(int32)strlen(utlstr) - 2] = 0; data/hdf-eos4-2.20v1.00/src/GDapi.c:2982:8: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(dimlist, ","); data/hdf-eos4-2.20v1.00/src/GDapi.c:3295: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). dimbuf = (char *) calloc(strlen(dimlist) + 64, 1); data/hdf-eos4-2.20v1.00/src/GDapi.c:3301: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). dimlist0 = (char *) calloc(strlen(dimlist) + 64, 1); data/hdf-eos4-2.20v1.00/src/GDapi.c:3359:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(dimbuf, ","); data/hdf-eos4-2.20v1.00/src/GDapi.c:3438:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(utlbuf, ","); data/hdf-eos4-2.20v1.00/src/GDapi.c:3448: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). memmove(dimbuf, comma + 1, strlen(comma)-1); data/hdf-eos4-2.20v1.00/src/GDapi.c:3449:20: [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). dimbuf[(int32)strlen(comma)-1]= 0; data/hdf-eos4-2.20v1.00/src/GDapi.c:3467: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). if((intn) strlen(fieldname) > (256 - 7)) data/hdf-eos4-2.20v1.00/src/GDapi.c:3565: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). if ((intn) strlen(GDXSDname) + data/hdf-eos4-2.20v1.00/src/GDapi.c:3566: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). (intn) strlen(fieldname) + 2 < HDFE_NAMBUFSIZE) data/hdf-eos4-2.20v1.00/src/GDapi.c:3569:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(GDXSDname, ","); data/hdf-eos4-2.20v1.00/src/GDapi.c:3590:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((intn) strlen(GDXSDdims) + 5 < HDFE_DIMBUFSIZE) data/hdf-eos4-2.20v1.00/src/GDapi.c:3612: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). if ((intn) strlen(GDXSDdims) + data/hdf-eos4-2.20v1.00/src/GDapi.c:3613: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). (intn) strlen(dimlist0) + 2 < HDFE_DIMBUFSIZE) data/hdf-eos4-2.20v1.00/src/GDapi.c:3616:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(GDXSDdims, ";"); data/hdf-eos4-2.20v1.00/src/GDapi.c:3677:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(utlbuf, ":"); data/hdf-eos4-2.20v1.00/src/GDapi.c:3931:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(utlbuf2, ")"); data/hdf-eos4-2.20v1.00/src/GDapi.c:4408:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). slen = (int32)strlen(dimname); data/hdf-eos4-2.20v1.00/src/GDapi.c:4411:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(utlbuf, ":"); data/hdf-eos4-2.20v1.00/src/GDapi.c:4908:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). slen = (int32)strlen(dimname); data/hdf-eos4-2.20v1.00/src/GDapi.c:4911:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(utlbuf, ":"); data/hdf-eos4-2.20v1.00/src/GDapi.c:5085:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). slen = (int32)strlen(dimname); data/hdf-eos4-2.20v1.00/src/GDapi.c:5088:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(utlbuf, ":"); data/hdf-eos4-2.20v1.00/src/GDapi.c:5285:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). slen = (int32)strlen(dimname); data/hdf-eos4-2.20v1.00/src/GDapi.c:5288:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(utlbuf, ":"); data/hdf-eos4-2.20v1.00/src/GDapi.c:5447:31: [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). dimlist = (char *) calloc(strlen(fortdimlist) + 1, 1); data/hdf-eos4-2.20v1.00/src/GDapi.c:5510:31: [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). dimlist = (char *) calloc(strlen(fortdimlist) + 1, 1); data/hdf-eos4-2.20v1.00/src/GDapi.c:5673: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). memmove(name, name + 1, strlen(name) - 2); data/hdf-eos4-2.20v1.00/src/GDapi.c:5674: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). name[(int32)strlen(name) - 2] = 0; data/hdf-eos4-2.20v1.00/src/GDapi.c:6666: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). memmove(utlstr, utlstr + 1, strlen(utlstr) - 2); \ data/hdf-eos4-2.20v1.00/src/GDapi.c:6667: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). utlstr[(int32)strlen(utlstr) - 2] = 0; data/hdf-eos4-2.20v1.00/src/GDapi.c:6784: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). memmove(utlstr, utlstr + 1, strlen(utlstr) - 2); data/hdf-eos4-2.20v1.00/src/GDapi.c:6785:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). utlstr[(int32)strlen(utlstr) - 2] = 0; data/hdf-eos4-2.20v1.00/src/GDapi.c:6789:8: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(dimnames, ","); data/hdf-eos4-2.20v1.00/src/GDapi.c:6951:8: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(utlstr, "="); data/hdf-eos4-2.20v1.00/src/GDapi.c:6965:8: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(fieldlist, ","); data/hdf-eos4-2.20v1.00/src/GDapi.c:7168:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(utlstr, "="); data/hdf-eos4-2.20v1.00/src/GDapi.c:7180: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). *strbufsize += (int32)strlen(utlstr) - 2; data/hdf-eos4-2.20v1.00/src/GDapi.c:7562: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). if ((int32)strlen(GDXSDname) == 0) data/hdf-eos4-2.20v1.00/src/GDapi.c:7651: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). GDXSDname[(int32)strlen(GDXSDname) - 1] = 0; data/hdf-eos4-2.20v1.00/src/GDapi.c:7652: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). GDXSDdims[(int32)strlen(GDXSDdims) - 1] = 0; data/hdf-eos4-2.20v1.00/src/GDapi.c:7781: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). nambuf = (char *) calloc(strlen(GDXSDname) + 1, 1); data/hdf-eos4-2.20v1.00/src/GDapi.c:7794: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). utlbuf = (char *) calloc(strlen(GDXSDname) * 2 + 7, 1); data/hdf-eos4-2.20v1.00/src/GDapi.c:7854:4: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(nambuf, ","); data/hdf-eos4-2.20v1.00/src/GDapi.c:7855:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy(nambuf + strlen(nambuf), data/hdf-eos4-2.20v1.00/src/GDapi.c:7895:4: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(utlbuf, ":"); data/hdf-eos4-2.20v1.00/src/GDapi.c:7946:4: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(dimbuf2, ":"); data/hdf-eos4-2.20v1.00/src/GDapi.c:8031:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(GDXSDname, ","); data/hdf-eos4-2.20v1.00/src/GDapi.c:8032:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(GDXSDdims, ";"); data/hdf-eos4-2.20v1.00/src/GDapi.c:11691:44: [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). slendupregion = (int32)strlen(GDXRegion[oldregionID]->DimNamePtr[j]); data/hdf-eos4-2.20v1.00/src/GDapi.c:11829:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). slen = (int32)strlen(vertObj) - 4; data/hdf-eos4-2.20v1.00/src/GDapi.c:11874: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). slen = (int32)strlen(dimlist); data/hdf-eos4-2.20v1.00/src/GDapi.c:14237: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). memmove(lastables, ptr, strlen(ptr)); data/hdf-eos4-2.20v1.00/src/GDapi.c:14238: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). lastables[(int32)strlen(ptr)] = '\0'; data/hdf-eos4-2.20v1.00/src/PTapi.c:176:16: [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 ((intn) strlen(pointname) > VGNAMELENMAX) data/hdf-eos4-2.20v1.00/src/PTapi.c:872: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). *strbufsize = strlen(fieldbuf); data/hdf-eos4-2.20v1.00/src/PTapi.c:1060:20: [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). *strbufsize = strlen(name); data/hdf-eos4-2.20v1.00/src/PTapi.c:1360:16: [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 ((intn) strlen(levelname) > VSNAMELENMAX) data/hdf-eos4-2.20v1.00/src/PTapi.c:1650:3: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(utlbuf, ":"); data/hdf-eos4-2.20v1.00/src/PTapi.c:1987: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). memmove(linkfield, linkfield + 1, strlen(linkfield) - 2); data/hdf-eos4-2.20v1.00/src/PTapi.c:1988: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). linkfield[strlen(linkfield) - 2] = 0; data/hdf-eos4-2.20v1.00/src/SWapi.c:302: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). else if ((intn) strlen(swathname) > VGNAMELENMAX) data/hdf-eos4-2.20v1.00/src/SWapi.c:953: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). tmpdimname = (char *)malloc(((int)strlen(dimname)+1)*sizeof(char)); data/hdf-eos4-2.20v1.00/src/SWapi.c:1063:31: [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_utlstr = (int32)strlen(utlstr); data/hdf-eos4-2.20v1.00/src/SWapi.c:1066: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). memmove(utlstr, utlstr + 1, strlen(utlstr) - 2); data/hdf-eos4-2.20v1.00/src/SWapi.c:1067: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). utlstr[(int32)strlen(utlstr) - 2] = 0; data/hdf-eos4-2.20v1.00/src/SWapi.c:1387:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). slen = (int32)strlen(dimname); data/hdf-eos4-2.20v1.00/src/SWapi.c:1390:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(utlbuf, ":"); data/hdf-eos4-2.20v1.00/src/SWapi.c:1714:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). slen = (int32)strlen(dimname); data/hdf-eos4-2.20v1.00/src/SWapi.c:1717:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(utlbuf, ":"); data/hdf-eos4-2.20v1.00/src/SWapi.c:1894:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). slen = (int32)strlen(dimname); data/hdf-eos4-2.20v1.00/src/SWapi.c:1897:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(utlbuf, ":"); data/hdf-eos4-2.20v1.00/src/SWapi.c:2094:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). slen = (int32)strlen(dimname); data/hdf-eos4-2.20v1.00/src/SWapi.c:2097:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(utlbuf, ":"); data/hdf-eos4-2.20v1.00/src/SWapi.c:2869: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). memmove(utlstr, utlstr + 1, strlen(utlstr) - 2); data/hdf-eos4-2.20v1.00/src/SWapi.c:2870:20: [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). utlstr[(int32)strlen(utlstr) - 2] = 0; data/hdf-eos4-2.20v1.00/src/SWapi.c:2904:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(dimlist, ","); data/hdf-eos4-2.20v1.00/src/SWapi.c:2933:41: [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). tmpfieldname = (char *)malloc(((int)strlen(fieldname) + 1)*sizeof(char)); data/hdf-eos4-2.20v1.00/src/SWapi.c:3707: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). dimbuf = (char *) calloc(strlen(dimlist) + 64, 1); data/hdf-eos4-2.20v1.00/src/SWapi.c:3714:2: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(dimbuf, ","); data/hdf-eos4-2.20v1.00/src/SWapi.c:3759:7: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(utlbuf, ","); data/hdf-eos4-2.20v1.00/src/SWapi.c:3774:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (i=0; i<(int32)strlen(dimcheck) + 1; i++) data/hdf-eos4-2.20v1.00/src/SWapi.c:3815: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). if ((intn) strlen(fieldname) > VSNAMELENMAX && rank == 1 || data/hdf-eos4-2.20v1.00/src/SWapi.c:3816:10: [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). (intn) strlen(fieldname) > (256 - 7) && rank > 1) data/hdf-eos4-2.20v1.00/src/SWapi.c:3897: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). (intn) strlen(utlbuf) + data/hdf-eos4-2.20v1.00/src/SWapi.c:3898: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). (intn) strlen(fieldname) + 1 <= data/hdf-eos4-2.20v1.00/src/SWapi.c:3929:4: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(utlbuf, ","); data/hdf-eos4-2.20v1.00/src/SWapi.c:4041:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((intn) strlen(SWXSDname) + data/hdf-eos4-2.20v1.00/src/SWapi.c:4042: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). (intn) strlen(fieldname) + 2 < HDFE_NAMBUFSIZE) data/hdf-eos4-2.20v1.00/src/SWapi.c:4045:4: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(SWXSDname, ","); data/hdf-eos4-2.20v1.00/src/SWapi.c:4066: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). if ((intn) strlen(SWXSDdims) + 5 < HDFE_DIMBUFSIZE) data/hdf-eos4-2.20v1.00/src/SWapi.c:4087:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((intn) strlen(SWXSDdims) + data/hdf-eos4-2.20v1.00/src/SWapi.c:4088: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). (intn) strlen(dimlist) + 2 < HDFE_DIMBUFSIZE) data/hdf-eos4-2.20v1.00/src/SWapi.c:4091:4: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(SWXSDdims, ";"); data/hdf-eos4-2.20v1.00/src/SWapi.c:4133:4: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(utlbuf, ":"); data/hdf-eos4-2.20v1.00/src/SWapi.c:4595:31: [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). dimlist = (char *) calloc(strlen(fortdimlist) + 1, 1); data/hdf-eos4-2.20v1.00/src/SWapi.c:4662:31: [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). dimlist = (char *) calloc(strlen(fortdimlist) + 1, 1); data/hdf-eos4-2.20v1.00/src/SWapi.c:4726:31: [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). dimlist = (char *) calloc(strlen(fortdimlist) + 1, 1); data/hdf-eos4-2.20v1.00/src/SWapi.c:4789:31: [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). dimlist = (char *) calloc(strlen(fortdimlist) + 1, 1); data/hdf-eos4-2.20v1.00/src/SWapi.c:5090: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). memmove(utlstr, utlstr + 1, strlen(utlstr) - 2); \ data/hdf-eos4-2.20v1.00/src/SWapi.c:5091: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). utlstr[(int32)strlen(utlstr) - 2] = 0; data/hdf-eos4-2.20v1.00/src/SWapi.c:5215:8: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(dimnames, ","); data/hdf-eos4-2.20v1.00/src/SWapi.c:5229: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). strlen_utlstr = (int32)strlen(utlstr); data/hdf-eos4-2.20v1.00/src/SWapi.c:5232: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). memmove(utlstr, utlstr + 1, strlen(utlstr) - 2); data/hdf-eos4-2.20v1.00/src/SWapi.c:5233:20: [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). utlstr[(int32)strlen(utlstr) - 2] = 0; data/hdf-eos4-2.20v1.00/src/SWapi.c:5373:8: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(utlstr, "/"); data/hdf-eos4-2.20v1.00/src/SWapi.c:5378:8: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(dimmaps, ","); data/hdf-eos4-2.20v1.00/src/SWapi.c:5539:8: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(utlstr, "/"); data/hdf-eos4-2.20v1.00/src/SWapi.c:5544:8: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(idxmaps, ","); data/hdf-eos4-2.20v1.00/src/SWapi.c:5745:8: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(utlstr, "="); data/hdf-eos4-2.20v1.00/src/SWapi.c:5759:8: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(fieldlist, ","); data/hdf-eos4-2.20v1.00/src/SWapi.c:6109:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(utlstr, "="); data/hdf-eos4-2.20v1.00/src/SWapi.c:6121: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). *strbufsize += (int32)strlen(utlstr) - 2; data/hdf-eos4-2.20v1.00/src/SWapi.c:6426: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). memmove(name, name + 1, strlen(name) - 2); data/hdf-eos4-2.20v1.00/src/SWapi.c:6427: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). name[(int32)strlen(name) - 2] = 0; data/hdf-eos4-2.20v1.00/src/SWapi.c:11288:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). slen = (int32)strlen(vertObj) - 4; data/hdf-eos4-2.20v1.00/src/SWapi.c:11381: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). slen = (int32)strlen(dimlist); data/hdf-eos4-2.20v1.00/src/SWapi.c:11920:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). slen = (int32)strlen(fieldname); data/hdf-eos4-2.20v1.00/src/SWapi.c:12047:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). slen = (int32)strlen(tfieldname); data/hdf-eos4-2.20v1.00/src/SWapi.c:12446: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). if ((int32)strlen(SWXSDname) == 0) data/hdf-eos4-2.20v1.00/src/SWapi.c:12535: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). SWXSDname[(int32)strlen(SWXSDname) - 1] = 0; data/hdf-eos4-2.20v1.00/src/SWapi.c:12536: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). SWXSDdims[(int32)strlen(SWXSDdims) - 1] = 0; data/hdf-eos4-2.20v1.00/src/SWapi.c:12645: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). nambuf = (char *) calloc(strlen(SWXSDname) + 1, 1); data/hdf-eos4-2.20v1.00/src/SWapi.c:12651:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). utlbuf = (char *) calloc(2 * (int32)strlen(SWXSDname) + 7, 1); data/hdf-eos4-2.20v1.00/src/SWapi.c:12724:8: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(nambuf, ","); data/hdf-eos4-2.20v1.00/src/SWapi.c:12725:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy(nambuf + strlen(nambuf), data/hdf-eos4-2.20v1.00/src/SWapi.c:12786:4: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(utlbuf, ":"); data/hdf-eos4-2.20v1.00/src/SWapi.c:12856:4: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(dimbuf2, ":"); data/hdf-eos4-2.20v1.00/src/SWapi.c:12975:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(SWXSDname, ","); data/hdf-eos4-2.20v1.00/src/SWapi.c:12976:6: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(SWXSDdims, ";"); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:73:16: [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). lenstr = strlen(gridname); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:118:7: [1] (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 character. strcpy(Com->outputFile_nxny, ""); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:119:7: [1] (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 character. strcpy(Com->outputFile_lat, ""); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:120:7: [1] (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 character. strcpy(Com->outputFile_lon, ""); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:170:7: [1] (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 character. strcpy(Com->outputFile_nxny, ""); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:171:7: [1] (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 character. strcpy(Com->outputFile_lat, ""); data/hdf-eos4-2.20v1.00/util/GDconvert_ij2ll.c:172:7: [1] (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 character. strcpy(Com->outputFile_lon, ""); ANALYSIS SUMMARY: Hits = 1208 Lines analyzed = 73879 in approximately 2.89 seconds (25585 lines/second) Physical Source Lines of Code (SLOC) = 47189 Hits@level = [0] 6733 [1] 213 [2] 832 [3] 4 [4] 158 [5] 1 Hits@level+ = [0+] 7941 [1+] 1208 [2+] 995 [3+] 163 [4+] 159 [5+] 1 Hits/KSLOC@level+ = [0+] 168.281 [1+] 25.5992 [2+] 21.0854 [3+] 3.45419 [4+] 3.36943 [5+] 0.0211914 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.