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/isomaster-1.3.13/bk/bkWrite.c Examining data/isomaster-1.3.13/bk/bkError.c Examining data/isomaster-1.3.13/bk/bkWrite7x.h Examining data/isomaster-1.3.13/bk/bkSet.h Examining data/isomaster-1.3.13/bk/bkTime.h Examining data/isomaster-1.3.13/bk/printsizes.c Examining data/isomaster-1.3.13/bk/bkInternal.h Examining data/isomaster-1.3.13/bk/bkExtract.c Examining data/isomaster-1.3.13/bk/bkMangle.c Examining data/isomaster-1.3.13/bk/bkRead.c Examining data/isomaster-1.3.13/bk/bkIoWrappers.c Examining data/isomaster-1.3.13/bk/bk.h Examining data/isomaster-1.3.13/bk/bkMangle.h Examining data/isomaster-1.3.13/bk/bkMisc.h Examining data/isomaster-1.3.13/bk/bkGet.h Examining data/isomaster-1.3.13/bk/bkPath.c Examining data/isomaster-1.3.13/bk/bkAdd.c Examining data/isomaster-1.3.13/bk/bkTime.c Examining data/isomaster-1.3.13/bk/bkRead.h Examining data/isomaster-1.3.13/bk/bkError.h Examining data/isomaster-1.3.13/bk/bkIoWrappers.h Examining data/isomaster-1.3.13/bk/bkWrite.h Examining data/isomaster-1.3.13/bk/bkCache.c Examining data/isomaster-1.3.13/bk/bkDelete.c Examining data/isomaster-1.3.13/bk/bkLink.c Examining data/isomaster-1.3.13/bk/bkSort.c Examining data/isomaster-1.3.13/bk/bkGet.c Examining data/isomaster-1.3.13/bk/bkAdd.h Examining data/isomaster-1.3.13/bk/bkMisc.c Examining data/isomaster-1.3.13/bk/bkSet.c Examining data/isomaster-1.3.13/bk/example.c Examining data/isomaster-1.3.13/bk/bkCache.h Examining data/isomaster-1.3.13/bk/bkWrite7x.c Examining data/isomaster-1.3.13/bk/bkLink.h Examining data/isomaster-1.3.13/bk/bkExtract.h Examining data/isomaster-1.3.13/bk/bkRead7x.h Examining data/isomaster-1.3.13/bk/bkPath.h Examining data/isomaster-1.3.13/bk/bkSort.h Examining data/isomaster-1.3.13/bk/bkDelete.h Examining data/isomaster-1.3.13/bk/bkRead7x.c Examining data/isomaster-1.3.13/boot.c Examining data/isomaster-1.3.13/editfile.c Examining data/isomaster-1.3.13/fsbrowser.c Examining data/isomaster-1.3.13/settings.c Examining data/isomaster-1.3.13/boot.h Examining data/isomaster-1.3.13/isobrowser.c Examining data/isomaster-1.3.13/error.c Examining data/isomaster-1.3.13/isomaster.h Examining data/isomaster-1.3.13/error.h Examining data/isomaster-1.3.13/editfile.h Examining data/isomaster-1.3.13/about.h Examining data/isomaster-1.3.13/fsbrowser.h Examining data/isomaster-1.3.13/browser.h Examining data/isomaster-1.3.13/window.h Examining data/isomaster-1.3.13/isomaster.c Examining data/isomaster-1.3.13/settings.h Examining data/isomaster-1.3.13/window.c Examining data/isomaster-1.3.13/browser.c Examining data/isomaster-1.3.13/iniparser-2.17/src/strlib.h Examining data/isomaster-1.3.13/iniparser-2.17/src/dictionary.h Examining data/isomaster-1.3.13/iniparser-2.17/src/iniparser.c Examining data/isomaster-1.3.13/iniparser-2.17/src/iniparser.h Examining data/isomaster-1.3.13/iniparser-2.17/src/dictionary.c Examining data/isomaster-1.3.13/iniparser-2.17/src/strlib.c Examining data/isomaster-1.3.13/iniparser-2.17/test/iniexample.c Examining data/isomaster-1.3.13/isobrowser.h Examining data/isomaster-1.3.13/about.c FINAL RESULTS: data/isomaster-1.3.13/bk/bkAdd.c:179:20: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. numChars = readlink(srcPathAndName, newSymLink->target, data/isomaster-1.3.13/bk/bkAdd.c:56:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(lastName, nameToUse); data/isomaster-1.3.13/bk/bkAdd.c:85:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(BK_BASE_PTR(newDir)->name, lastName); data/isomaster-1.3.13/bk/bkAdd.c:118:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(BK_BASE_PTR(newFile)->name, lastName); data/isomaster-1.3.13/bk/bkAdd.c:131:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(newFile->pathAndName, srcPathAndName); data/isomaster-1.3.13/bk/bkAdd.c:173:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(BK_BASE_PTR(newSymLink)->name, lastName); data/isomaster-1.3.13/bk/bkAdd.c:213: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(newSrcPathAndName, srcPath); data/isomaster-1.3.13/bk/bkAdd.c:245:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(newSrcPathAndName + srcPathLen, dirEnt->d_name); data/isomaster-1.3.13/bk/bkAdd.c:394: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(volInfo->bootRecordPathAndName, srcPathAndName); data/isomaster-1.3.13/bk/bkAdd.c:440: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(BK_BASE_PTR(newDir)->name, newDirName); data/isomaster-1.3.13/bk/bkExtract.c:304: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(newDestDir, destDir); data/isomaster-1.3.13/bk/bkExtract.c:309:9: [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(newDestDir, BK_BASE_PTR(srcDir)->name); data/isomaster-1.3.13/bk/bkExtract.c:311:9: [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(newDestDir, nameToUse); data/isomaster-1.3.13/bk/bkExtract.c:405: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(destPathAndName, destDir); data/isomaster-1.3.13/bk/bkExtract.c:409:9: [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(destPathAndName, BK_BASE_PTR(srcFileInTree)->name); data/isomaster-1.3.13/bk/bkExtract.c:411:9: [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(destPathAndName, nameToUse); data/isomaster-1.3.13/bk/bkExtract.c:476: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(destPathAndName, destDir); data/isomaster-1.3.13/bk/bkExtract.c:480:9: [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(destPathAndName, BK_BASE_PTR(srcLink)->name); data/isomaster-1.3.13/bk/bkExtract.c:482:9: [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(destPathAndName, nameToUse); data/isomaster-1.3.13/bk/bkLink.c:43:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((*newLink)->pathAndName, pathAndName); data/isomaster-1.3.13/bk/bkMangle.c:203: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(newFile->pathAndName, origFile->pathAndName); data/isomaster-1.3.13/bk/bkMangle.c:258: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(currentChild->name9660, newName9660); data/isomaster-1.3.13/bk/bkMangle.c:267: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(currentChild->nameJoliet, newNameJoliet); data/isomaster-1.3.13/bk/bkMangle.c:405:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(newName + 9, extension); data/isomaster-1.3.13/bk/bkMangle.c:503: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(newName, base); data/isomaster-1.3.13/bk/bkMangle.c:512:9: [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(newName, hashStr); data/isomaster-1.3.13/bk/bkMangle.c:517:9: [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(newName, extension); data/isomaster-1.3.13/bk/bkMangle.c:610: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(newName, base); data/isomaster-1.3.13/bk/bkMangle.c:614:9: [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(newName, extension); data/isomaster-1.3.13/bk/bkRead.c:889:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((*specialFile)->name, BK_BASE_PTR(file)->name); data/isomaster-1.3.13/bk/bkRead.c:890:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((*specialFile)->original9660name, BK_BASE_PTR(file)->original9660name); data/isomaster-1.3.13/bk/bkSet.c:137:13: [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(child->name, newName); data/isomaster-1.3.13/bk/bkWrite.c:2211:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((char*)aString, volInfo->volId); data/isomaster-1.3.13/bk/bkWrite.c:2400: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((char*)aString, volInfo->publisher); data/isomaster-1.3.13/boot.c:67:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(GBLappSettings.lastBootRecordDir, lastBootRecordDir); data/isomaster-1.3.13/boot.c:185:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(GBLappSettings.lastBootRecordDir, lastBootRecordDir); data/isomaster-1.3.13/boot.c:286: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(fullItemName, GBLisoCurrentDir); data/isomaster-1.3.13/boot.c:287: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(fullItemName, itemName); data/isomaster-1.3.13/browser.c:102:13: [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(pathAndName, GBLfsCurrentDir); data/isomaster-1.3.13/browser.c:103:13: [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(pathAndName, newDirName); data/isomaster-1.3.13/editfile.c:66: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(newNode->pathAndName, pathAndName); data/isomaster-1.3.13/editfile.c:286: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(pathAndNameOnFs, GBLfsCurrentDir); data/isomaster-1.3.13/editfile.c:287: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(pathAndNameOnFs, itemName); data/isomaster-1.3.13/editfile.c:296: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(pathAndNameInTempDir, GBLappSettings.tempDir); data/isomaster-1.3.13/editfile.c:300: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(pathAndNameInTempDir, randomizedItemName); data/isomaster-1.3.13/editfile.c:334:9: [4] (shell) execlp: 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. execlp(GBLappSettings.editor, "editor", pathAndNameInTempDir, NULL); data/isomaster-1.3.13/editfile.c:382: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(pathAndNameOnIso, GBLisoCurrentDir); data/isomaster-1.3.13/editfile.c:383: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(pathAndNameOnIso, itemName); data/isomaster-1.3.13/editfile.c:392: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(pathAndNameOnFs, GBLappSettings.tempDir); data/isomaster-1.3.13/editfile.c:396: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(pathAndNameOnFs, randomizedItemName); data/isomaster-1.3.13/editfile.c:432:9: [4] (shell) execlp: 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. execlp(GBLappSettings.editor, "editor", pathAndNameOnFs, NULL); data/isomaster-1.3.13/editfile.c:619: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(pathAndNameOnFs, GBLfsCurrentDir); data/isomaster-1.3.13/editfile.c:620: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(pathAndNameOnFs, itemName); data/isomaster-1.3.13/editfile.c:629: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(pathAndNameInTempDir, GBLappSettings.tempDir); data/isomaster-1.3.13/editfile.c:633: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(pathAndNameInTempDir, randomizedItemName); data/isomaster-1.3.13/editfile.c:667:9: [4] (shell) execlp: 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. execlp(GBLappSettings.viewer, "viewer", pathAndNameInTempDir, NULL); data/isomaster-1.3.13/editfile.c:714: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(pathAndNameOnIso, GBLisoCurrentDir); data/isomaster-1.3.13/editfile.c:715: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(pathAndNameOnIso, itemName); data/isomaster-1.3.13/editfile.c:724: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(pathAndNameOnFs, GBLappSettings.tempDir); data/isomaster-1.3.13/editfile.c:728: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(pathAndNameOnFs, randomizedItemName); data/isomaster-1.3.13/editfile.c:764:9: [4] (shell) execlp: 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. execlp(GBLappSettings.viewer, "viewer", pathAndNameOnFs, NULL); data/isomaster-1.3.13/fsbrowser.c:64:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(newPathTerminated, newPath); data/isomaster-1.3.13/fsbrowser.c:288:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(nextItemPathAndName, newDirStr); data/isomaster-1.3.13/fsbrowser.c:289:9: [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(nextItemPathAndName, nextItem->d_name); data/isomaster-1.3.13/fsbrowser.c:370: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(GBLfsCurrentDir, newDirStr); data/isomaster-1.3.13/fsbrowser.c:425: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(newCurrentDir, GBLfsCurrentDir); data/isomaster-1.3.13/fsbrowser.c:476: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(selectedPathAndName, GBLfsCurrentDir); data/isomaster-1.3.13/fsbrowser.c:477: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(selectedPathAndName, name); data/isomaster-1.3.13/fsbrowser.c:538: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(fsCurrentDir, GBLfsCurrentDir); data/isomaster-1.3.13/iniparser-2.17/src/iniparser.c:44:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(longkey, "%s:%s", sec, key); data/isomaster-1.3.13/iniparser-2.17/src/iniparser.c:46:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(longkey, sec); data/isomaster-1.3.13/iniparser-2.17/src/iniparser.c:196:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(keym, "%s:", secname); data/isomaster-1.3.13/iniparser-2.17/src/iniparser.c:494: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(sec, strlwc(sec)); data/isomaster-1.3.13/iniparser-2.17/src/iniparser.c:499: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(key, strlwc(strcrop(key))); data/isomaster-1.3.13/iniparser-2.17/src/iniparser.c:507: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(val, strcrop(val)); data/isomaster-1.3.13/iniparser-2.17/src/strlib.c:146: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(l, s); data/isomaster-1.3.13/iniparser-2.17/src/strlib.c:183: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(l, s); data/isomaster-1.3.13/isobrowser.c:103:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(newPathTerminated, newPath); data/isomaster-1.3.13/isobrowser.c:206:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(fullItemName, GBLfsCurrentDir); data/isomaster-1.3.13/isobrowser.c:207:9: [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(fullItemName, itemName); data/isomaster-1.3.13/isobrowser.c:637: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(GBLisoCurrentDir, newDirStr); data/isomaster-1.3.13/isobrowser.c:680:13: [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(fullItemName, GBLisoCurrentDir); data/isomaster-1.3.13/isobrowser.c:681:13: [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(fullItemName, itemName); data/isomaster-1.3.13/isobrowser.c:719: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(fullItemName, GBLisoCurrentDir); data/isomaster-1.3.13/isobrowser.c:720: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(fullItemName, itemName); data/isomaster-1.3.13/isobrowser.c:841:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(fullItemName, GBLisoCurrentDir); data/isomaster-1.3.13/isobrowser.c:842:9: [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(fullItemName, itemName); data/isomaster-1.3.13/isobrowser.c:952: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(fullItemName, GBLisoCurrentDir); data/isomaster-1.3.13/isobrowser.c:953: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(fullItemName, itemName); data/isomaster-1.3.13/isobrowser.c:1036: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(newCurrentDir, GBLisoCurrentDir); data/isomaster-1.3.13/isobrowser.c:1115:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(newCurrentDir, GBLisoCurrentDir); data/isomaster-1.3.13/isobrowser.c:1116:9: [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(newCurrentDir, name); data/isomaster-1.3.13/isobrowser.c:1361: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(openIsoPathAndName, filename); data/isomaster-1.3.13/isobrowser.c:1386:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(windowTitle, filename); data/isomaster-1.3.13/isobrowser.c:1388:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(windowTitle, filename + lastSlashIndex + 1); data/isomaster-1.3.13/isobrowser.c:1468:13: [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(GBLappSettings.lastIsoDir, lastIsoDir); data/isomaster-1.3.13/isobrowser.c:1535: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(isoCurrentDir, GBLisoCurrentDir); data/isomaster-1.3.13/isobrowser.c:1587: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(fullItemName, GBLisoCurrentDir); data/isomaster-1.3.13/isobrowser.c:1588: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(fullItemName, itemName); data/isomaster-1.3.13/isobrowser.c:1779:13: [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(GBLappSettings.lastIsoDir, lastIsoDir); data/isomaster-1.3.13/isobrowser.c:1803:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(nameWithExtension, filename); data/isomaster-1.3.13/settings.c:241:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(GBLuserHomeDir, userHomeDir); data/isomaster-1.3.13/settings.c:248:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(GBLuserHomeDir, userHomeDir); data/isomaster-1.3.13/settings.c:285: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(*destStr, DEFAULT_TEMP_DIR); data/isomaster-1.3.13/settings.c:305: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(configFileName, GBLuserHomeDir); data/isomaster-1.3.13/settings.c:435:13: [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(GBLappSettings.lastIsoDir, tempStr); data/isomaster-1.3.13/settings.c:454:13: [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(GBLappSettings.lastBootRecordDir, tempStr); data/isomaster-1.3.13/settings.c:485:13: [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(GBLappSettings.editor, DEFAULT_EDITOR); data/isomaster-1.3.13/settings.c:492:13: [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(GBLappSettings.editor, tempStr); data/isomaster-1.3.13/settings.c:501:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(GBLappSettings.editor, DEFAULT_EDITOR); data/isomaster-1.3.13/settings.c:514:13: [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(GBLappSettings.viewer, DEFAULT_VIEWER); data/isomaster-1.3.13/settings.c:521:13: [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(GBLappSettings.viewer, tempStr); data/isomaster-1.3.13/settings.c:530:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(GBLappSettings.viewer, DEFAULT_VIEWER); data/isomaster-1.3.13/settings.c:547:13: [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(GBLappSettings.tempDir, tempStr); data/isomaster-1.3.13/settings.c:620: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(GBLappSettings.recentlyOpen[i], tempStr); data/isomaster-1.3.13/settings.c:639:13: [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(GBLappSettings.fsDrive, tempStr); data/isomaster-1.3.13/settings.c:773:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(GBLappSettings.editor, gtk_entry_get_text(GTK_ENTRY(prefWidgets.editor))); data/isomaster-1.3.13/settings.c:780:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(GBLappSettings.viewer, gtk_entry_get_text(GTK_ENTRY(prefWidgets.viewer))); data/isomaster-1.3.13/settings.c:787:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(GBLappSettings.tempDir, gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(prefWidgets.tempDir))); data/isomaster-1.3.13/settings.c:820: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(configFileName, GBLuserHomeDir); data/isomaster-1.3.13/editfile.c:517:29: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. oneRandomChar = random(); data/isomaster-1.3.13/isomaster.c:128:5: [3] (random) srandom: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srandom((int)time(NULL)); data/isomaster-1.3.13/settings.c:203: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. userHomeDir = getenv("HOME"); data/isomaster-1.3.13/bk/bk.h:94:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char original9660name[15]; /* 8.3 + ";1" max */ data/isomaster-1.3.13/bk/bk.h:95:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[NCHARS_FILE_ID_MAX_STORE]; /* '\0' terminated */ data/isomaster-1.3.13/bk/bk.h:128:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char head[MAX_NBYTES_HARDLINK_HEAD]; data/isomaster-1.3.13/bk/bk.h: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 target[NCHARS_SYMLINK_TARGET_MAX]; data/isomaster-1.3.13/bk/bk.h:183:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char warningMessage[BK_WARNING_MAX_LEN]; data/isomaster-1.3.13/bk/bk.h:192:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char readWriteBuffer[READ_WRITE_BUFFER_SIZE]; data/isomaster-1.3.13/bk/bk.h:193:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char readWriteBuffer2[READ_WRITE_BUFFER_SIZE]; data/isomaster-1.3.13/bk/bk.h:209:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char volId[33]; data/isomaster-1.3.13/bk/bk.h:210:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char publisher[129]; data/isomaster-1.3.13/bk/bk.h:211:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dataPreparer[129]; data/isomaster-1.3.13/bk/bkAdd.c:37:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lastName[NCHARS_FILE_ID_MAX_STORE]; data/isomaster-1.3.13/bk/bkAdd.c:300:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lastName[NCHARS_FILE_ID_MAX_STORE]; data/isomaster-1.3.13/bk/bkExtract.c:65:23: [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). srcFile = open(volInfo->bootRecordOnImage->pathAndName, O_RDONLY, 0); data/isomaster-1.3.13/bk/bkExtract.c:82:23: [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). srcFile = open(volInfo->bootRecordPathAndName, O_RDONLY, 0); data/isomaster-1.3.13/bk/bkExtract.c:90:16: [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). destFile = open(destPathAndName, O_WRONLY | O_CREAT | O_TRUNC, data/isomaster-1.3.13/bk/bkExtract.c:375:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). srcFile = open(srcFileInTree->pathAndName, O_RDONLY, 0); data/isomaster-1.3.13/bk/bkExtract.c:427:16: [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). destFile = open(destPathAndName, O_WRONLY | O_CREAT | O_TRUNC, destFilePerms); data/isomaster-1.3.13/bk/bkInternal.h:59:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name9660[NBYTES_FILE_ID_MAX_9660]; /* 8.3 + ";1" max */ data/isomaster-1.3.13/bk/bkInternal.h:60:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nameRock[NCHARS_FILE_ID_MAX_STORE]; data/isomaster-1.3.13/bk/bkInternal.h:61:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nameJoliet[NCHARS_FILE_ID_MAX_JOLIET]; data/isomaster-1.3.13/bk/bkInternal.h:103:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char target[NCHARS_SYMLINK_TARGET_MAX]; data/isomaster-1.3.13/bk/bkLink.c:139:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char head[MAX_NBYTES_HARDLINK_HEAD]; data/isomaster-1.3.13/bk/bkLink.c:177:32: [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). origFile = open(currentLink->pathAndName, O_RDONLY, 0); data/isomaster-1.3.13/bk/bkLink.c:193:31: [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). newFile = open(pathAndName, O_RDONLY, 0); data/isomaster-1.3.13/bk/bkLink.c:246:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). srcFile = open(pathAndName, O_RDONLY, 0); data/isomaster-1.3.13/bk/bkMangle.c:109:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char newName9660[name9660len]; /* for remangling */ data/isomaster-1.3.13/bk/bkMangle.c:111:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char newNameJoliet[NCHARS_FILE_ID_MAX_JOLIET]; /* for remangling */ data/isomaster-1.3.13/bk/bkMangle.c:295:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char base[7]; /* max 6 chars */ data/isomaster-1.3.13/bk/bkMangle.c:296:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char extension[4]; /* max 3 chars */ data/isomaster-1.3.13/bk/bkMangle.c:419:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char base[NCHARS_FILE_ID_MAX_JOLIET]; /* '\0' terminated */ data/isomaster-1.3.13/bk/bkMangle.c:420:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char extension[6]; /* max 3 chars */ data/isomaster-1.3.13/bk/bkMangle.c:424:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hashStr[5]; /* '\0' terminated */ data/isomaster-1.3.13/bk/bkMangle.c:533:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char base[9]; /* max 9 chars */ data/isomaster-1.3.13/bk/bkMangle.c:534:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char extension[4]; /* max 3 chars */ data/isomaster-1.3.13/bk/bkRead.c:69:32: [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). volInfo->imageForReading = open(filename, O_RDONLY, 0); data/isomaster-1.3.13/bk/bkRead.c:127:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char escapeSequence[3]; /* only interested in a joliet sequence */ data/isomaster-1.3.13/bk/bkRead.c:128:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char timeString[17]; /* for creation time */ data/isomaster-1.3.13/bk/bkRead.c:131:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char elToritoSig[24]; data/isomaster-1.3.13/bk/bkRead.c:139:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sPsUentry[7]; /* su entry SP */ data/isomaster-1.3.13/bk/bkRead.c:522: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. char nameAsOnDisk[UCHAR_MAX]; data/isomaster-1.3.13/bk/bkRead.c:524: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. char nameInAscii[UCHAR_MAX]; data/isomaster-1.3.13/bk/bkRead.c:747:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nameAsOnDisk[UCHAR_MAX + 1]; data/isomaster-1.3.13/bk/bkRead.c:826:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nameAsOnDisk[UCHAR_MAX]; data/isomaster-1.3.13/bk/bkRead.c:828:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nameInAscii[UCHAR_MAX]; data/isomaster-1.3.13/bk/bkRead7x.c:29:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char array[2]; data/isomaster-1.3.13/bk/bkRead7x.c:45:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char array[4]; data/isomaster-1.3.13/bk/bkRead7x.c:65:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char both[8]; data/isomaster-1.3.13/bk/bkTime.c:27:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(longString, "%4d%02d%02d%02d%02d%02d%02d", data/isomaster-1.3.13/bk/bkTime.c:62:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[5]; data/isomaster-1.3.13/bk/bkWrite.c:92:32: [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). volInfo->imageForWriting = open(newImagePathAndName, data/isomaster-1.3.13/bk/bkWrite.c:190:23: [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). srcFile = open(volInfo->bootRecordPathAndName, O_RDONLY, 0); data/isomaster-1.3.13/bk/bkWrite.c:437:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). srcFile = open(file->pathAndName, O_RDONLY, 0); data/isomaster-1.3.13/bk/bkWrite.c:885:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char aString[256]; data/isomaster-1.3.13/bk/bkWrite.c:1135:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buffer[NBYTES_LOGICAL_BLOCK]; data/isomaster-1.3.13/bk/bkWrite.c:1200:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[NBYTES_LOGICAL_BLOCK]; data/isomaster-1.3.13/bk/bkWrite.c:1324:31: [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). srcFile = open(FILETW_PTR(child)->pathAndName, O_RDONLY, 0); data/isomaster-1.3.13/bk/bkWrite.c:1355:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char bootInfoTable[56]; data/isomaster-1.3.13/bk/bkWrite.c:1460:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char jolietName[512]; /* don't see why would ever want data/isomaster-1.3.13/bk/bkWrite.c:1500:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char CErecord[28]; data/isomaster-1.3.13/bk/bkWrite.c:1816:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char record[46]; data/isomaster-1.3.13/bk/bkWrite.c:1859:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char recordStart[5]; data/isomaster-1.3.13/bk/bkWrite.c:1893:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char record[36]; data/isomaster-1.3.13/bk/bkWrite.c:2086:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char record[7]; data/isomaster-1.3.13/bk/bkWrite.c:2116:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char aString[6]; data/isomaster-1.3.13/bk/bkWrite.c:2125: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((char*)aString, "CD001"); data/isomaster-1.3.13/bk/bkWrite.c:2158:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char aString[129]; data/isomaster-1.3.13/bk/bkWrite.c:2175: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((char*)aString, "CD001"); data/isomaster-1.3.13/bk/bkWrite.c:2196: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((char*)aString, " "); data/isomaster-1.3.13/bk/bkWrite.c:2527:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fourBytes[4]; data/isomaster-1.3.13/bk/bkWrite7x.c:32:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char preparedValue[2]; data/isomaster-1.3.13/bk/bkWrite7x.c:47:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char preparedValue[2]; data/isomaster-1.3.13/bk/bkWrite7x.c:57:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char preparedValue[4]; data/isomaster-1.3.13/bk/bkWrite7x.c:69:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char preparedValue[4]; data/isomaster-1.3.13/bk/bkWrite7x.c:86:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char preparedValue[4]; data/isomaster-1.3.13/bk/bkWrite7x.c:98:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char preparedValue[8]; data/isomaster-1.3.13/boot.c:315:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[100]; data/isomaster-1.3.13/boot.c:348:9: [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(str, _("Boot record type: No Emulation")); data/isomaster-1.3.13/boot.c:350:9: [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(str, _("Boot record type: 1200KiB Floppy")); data/isomaster-1.3.13/boot.c:352:9: [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(str, _("Boot record type: 1440KiB Floppy")); data/isomaster-1.3.13/boot.c:354:9: [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(str, _("Boot record type: 2880KiB Floppy")); data/isomaster-1.3.13/boot.c:356:9: [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(str, "Boot record type: error"); data/isomaster-1.3.13/browser.c:186:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sizeStr[20]; data/isomaster-1.3.13/browser.c:216:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sizeStr[20]; data/isomaster-1.3.13/editfile.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 buffer[blockSize]; data/isomaster-1.3.13/editfile.c:129:15: [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). srcFile = open(src, O_RDONLY); data/isomaster-1.3.13/editfile.c:133:16: [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). destFile = open(dest, O_WRONLY | O_CREAT | O_EXCL, 0600); data/isomaster-1.3.13/editfile.c:493:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char randomStr[RANDOM_STR_NAME_LEN]; data/isomaster-1.3.13/iniparser-2.17/src/dictionary.c:56: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(newptr, ptr, size); data/isomaster-1.3.13/iniparser-2.17/src/dictionary.c:236: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). return atoi(v); data/isomaster-1.3.13/iniparser-2.17/src/dictionary.c:409:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sval[MAXVALSZ]; data/isomaster-1.3.13/iniparser-2.17/src/dictionary.c:410:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(sval, "%d", val); data/isomaster-1.3.13/iniparser-2.17/src/dictionary.c:431:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sval[MAXVALSZ]; data/isomaster-1.3.13/iniparser-2.17/src/dictionary.c:432:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(sval, "%g", val); data/isomaster-1.3.13/iniparser-2.17/src/dictionary.c:480:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cval[90] ; data/isomaster-1.3.13/iniparser-2.17/src/dictionary.c:489: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(cval, "%04d", i); data/isomaster-1.3.13/iniparser-2.17/src/dictionary.c:494: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(cval, "%04d", i); data/isomaster-1.3.13/iniparser-2.17/src/dictionary.c:502: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(cval, "%04d", i); data/isomaster-1.3.13/iniparser-2.17/src/iniparser.c:40:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char longkey[2*ASCIILINESZ+1]; data/isomaster-1.3.13/iniparser-2.17/src/iniparser.c:175:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char keym[ASCIILINESZ+1]; data/isomaster-1.3.13/iniparser-2.17/src/iniparser.c:464:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lin[ASCIILINESZ+1]; data/isomaster-1.3.13/iniparser-2.17/src/iniparser.c:465:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sec[ASCIILINESZ+1]; data/isomaster-1.3.13/iniparser-2.17/src/iniparser.c:466:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char key[ASCIILINESZ+1]; data/isomaster-1.3.13/iniparser-2.17/src/iniparser.c:467:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char val[ASCIILINESZ+1]; data/isomaster-1.3.13/iniparser-2.17/src/iniparser.c:472:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((ini=fopen(ininame, "r"))==NULL) { data/isomaster-1.3.13/iniparser-2.17/src/strlib.c:56:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char l[ASCIILINESZ+1]; data/isomaster-1.3.13/iniparser-2.17/src/strlib.c:87:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char l[ASCIILINESZ+1]; data/isomaster-1.3.13/iniparser-2.17/src/strlib.c:141:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char l[ASCIILINESZ+1]; data/isomaster-1.3.13/iniparser-2.17/src/strlib.c:175:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char l[ASCIILINESZ+1]; data/isomaster-1.3.13/iniparser-2.17/test/iniexample.c:28:8: [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). ini = fopen("example.ini", "w"); data/isomaster-1.3.13/isobrowser.c:174:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sizeStr[20]; data/isomaster-1.3.13/isobrowser.c:807:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sizeStr[20]; data/isomaster-1.3.13/isobrowser.c:1159:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sizeStr[20]; data/isomaster-1.3.13/isobrowser.c:1365:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sizeStr[20]; data/isomaster-1.3.13/isobrowser.c:1389: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(windowTitle, " - ISO Master"); data/isomaster-1.3.13/isobrowser.c:1814:17: [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(nameWithExtension, ".iso"); data/isomaster-1.3.13/isobrowser.c:1839:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[1024]; data/isomaster-1.3.13/isobrowser.c:1846:18: [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). sourceFile = open(TEMPFILENAME, O_RDONLY); data/isomaster-1.3.13/isobrowser.c:1862:16: [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). destFile = open(openIsoPathAndName, O_WRONLY | O_CREAT); data/isomaster-1.3.13/settings.c:306: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(configFileName, ".isomaster"); data/isomaster-1.3.13/settings.c:610: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. char configNameStr[20] = "ui:recentlyopen"; data/isomaster-1.3.13/settings.c:635:13: [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(GBLappSettings.fsDrive, "c:\\"); data/isomaster-1.3.13/settings.c:645: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(GBLappSettings.fsDrive, "c:\\"); data/isomaster-1.3.13/settings.c:797:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char numberStr[20]; data/isomaster-1.3.13/settings.c:821: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(configFileName, ".isomaster"); data/isomaster-1.3.13/settings.c:823: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). fileToWrite = fopen(configFileName, "w"); data/isomaster-1.3.13/settings.c:895:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char configNameStr[20] = "ui:recentlyopen"; data/isomaster-1.3.13/bk/bkAdd.c:54: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). if(strlen(nameToUse) > NCHARS_FILE_ID_MAX_STORE - 1) data/isomaster-1.3.13/bk/bkAdd.c:130: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). newFile->pathAndName = malloc(strlen(srcPathAndName) + 1); data/isomaster-1.3.13/bk/bkAdd.c:206: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). srcPathLen = strlen(srcPath); data/isomaster-1.3.13/bk/bkAdd.c:217:9: [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(newSrcPathAndName, "/"); data/isomaster-1.3.13/bk/bkAdd.c:236: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). if(strlen(dirEnt->d_name) > NCHARS_FILE_ID_MAX_STORE - 1) data/isomaster-1.3.13/bk/bkAdd.c:388:45: [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). volInfo->bootRecordPathAndName = malloc(strlen(srcPathAndName) + 1); data/isomaster-1.3.13/bk/bkAdd.c:415: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). nameLen = strlen(newDirName); data/isomaster-1.3.13/bk/bkExtract.c:298: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). newDestDir = malloc(strlen(destDir) + strlen(BK_BASE_PTR(srcDir)->name) + 2); data/isomaster-1.3.13/bk/bkExtract.c:298:47: [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). newDestDir = malloc(strlen(destDir) + strlen(BK_BASE_PTR(srcDir)->name) + 2); data/isomaster-1.3.13/bk/bkExtract.c:300: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). newDestDir = malloc(strlen(destDir) + strlen(nameToUse) + 2); data/isomaster-1.3.13/bk/bkExtract.c:300:47: [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). newDestDir = malloc(strlen(destDir) + strlen(nameToUse) + 2); data/isomaster-1.3.13/bk/bkExtract.c:305: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(destDir[strlen(destDir) - 1] != '/') data/isomaster-1.3.13/bk/bkExtract.c:306:9: [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(newDestDir, "/"); data/isomaster-1.3.13/bk/bkExtract.c:394: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). destPathAndName = malloc(strlen(destDir) + data/isomaster-1.3.13/bk/bkExtract.c:395: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). strlen(BK_BASE_PTR(srcFileInTree)->name) + 2); data/isomaster-1.3.13/bk/bkExtract.c:397: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). destPathAndName = malloc(strlen(destDir) + strlen(nameToUse) + 2); data/isomaster-1.3.13/bk/bkExtract.c:397:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). destPathAndName = malloc(strlen(destDir) + strlen(nameToUse) + 2); data/isomaster-1.3.13/bk/bkExtract.c:406: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(destDir[strlen(destDir) - 1] != '/') data/isomaster-1.3.13/bk/bkExtract.c:407:9: [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(destPathAndName, "/"); data/isomaster-1.3.13/bk/bkExtract.c:469: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). destPathAndName = malloc(strlen(destDir) + data/isomaster-1.3.13/bk/bkExtract.c:470: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). strlen(BK_BASE_PTR(srcLink)->name) + 2); data/isomaster-1.3.13/bk/bkExtract.c:472: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). destPathAndName = malloc(strlen(destDir) + strlen(nameToUse) + 2); data/isomaster-1.3.13/bk/bkExtract.c:472:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). destPathAndName = malloc(strlen(destDir) + strlen(nameToUse) + 2); data/isomaster-1.3.13/bk/bkExtract.c:477: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(destDir[strlen(destDir) - 1] != '/') data/isomaster-1.3.13/bk/bkExtract.c:478:9: [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(destPathAndName, "/"); data/isomaster-1.3.13/bk/bkGet.c:186: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). pathStrLen = strlen(pathStr); data/isomaster-1.3.13/bk/bkGet.c:212:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(currentDirName, &(pathStr[1]), count - 1); data/isomaster-1.3.13/bk/bkIoWrappers.c:34:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(file, dest, numBytes); data/isomaster-1.3.13/bk/bkIoWrappers.c:65:12: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return read(volInfo->imageForReading, dest, numBytes); data/isomaster-1.3.13/bk/bkLink.c:40: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). (*newLink)->pathAndName = malloc(strlen(pathAndName) + 1); data/isomaster-1.3.13/bk/bkMangle.c:153:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((*currentNewChild)->name9660, currentOrigChild->original9660name, NBYTES_FILE_ID_MAX_9660); data/isomaster-1.3.13/bk/bkMangle.c:158:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((*currentNewChild)->nameRock, currentOrigChild->name, NCHARS_FILE_ID_MAX_STORE); data/isomaster-1.3.13/bk/bkMangle.c:195:47: [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). newFile->pathAndName = malloc(strlen(origFile->pathAndName) + 1); data/isomaster-1.3.13/bk/bkMangle.c:210:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(SYMLINKTW_PTR(*currentNewChild)->target, data/isomaster-1.3.13/bk/bkMangle.c:382: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). hash = hashString(origName, strlen(origName)); data/isomaster-1.3.13/bk/bkMangle.c:490: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). hash = hashString(origName, strlen(origName)); data/isomaster-1.3.13/bk/bkMangle.c:508: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). if(strlen(newName) >= NCHARS_FILE_ID_MAX_JOLIET - 1 - 1 - 4 - 1 - 5) data/isomaster-1.3.13/bk/bkMangle.c:511:9: [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(newName, "~"); data/isomaster-1.3.13/bk/bkMangle.c:516:9: [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(newName, "."); data/isomaster-1.3.13/bk/bkMangle.c:613:9: [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(newName, "."); data/isomaster-1.3.13/bk/bkPath.c:37: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). nameLen = strlen(name); data/isomaster-1.3.13/bk/bkPath.c:166: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). srcLen = strlen(srcPathAndName); data/isomaster-1.3.13/bk/bkPath.c:221: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). pathStrLen = strlen(strPath); data/isomaster-1.3.13/bk/bkPath.c:265:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pathPath->children[numChildrenDone], nextChild, nextChildLen); data/isomaster-1.3.13/bk/bkPath.c:295: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). nameLen = strlen(name); data/isomaster-1.3.13/bk/bkRead.c:49: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). srcLen = strlen(src); data/isomaster-1.3.13/bk/bkRead.c:56:5: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(dest, src, srcLen); data/isomaster-1.3.13/bk/bkRead.c:87:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(filename); data/isomaster-1.3.13/bk/bkRead.c:507:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(BK_BASE_PTR(dir)->original9660name, BK_BASE_PTR(dir)->name, 14); data/isomaster-1.3.13/bk/bkRead.c:542:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(BK_BASE_PTR(dir)->name, nameInAscii, lenFileId9660); data/isomaster-1.3.13/bk/bkRead.c:808:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(BK_BASE_PTR(file)->original9660name, nameAsOnDisk, 14); data/isomaster-1.3.13/bk/bkRead.c:813:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(BK_BASE_PTR(file)->name, nameAsOnDisk, NCHARS_FILE_ID_MAX_STORE - 1); data/isomaster-1.3.13/bk/bkRead.c:846: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( strlen(nameInAscii) > NCHARS_FILE_ID_MAX_STORE - 1 ) data/isomaster-1.3.13/bk/bkRead.c:849:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(BK_BASE_PTR(file)->name, nameInAscii, NCHARS_FILE_ID_MAX_STORE - 1); data/isomaster-1.3.13/bk/bkRead.c:1064:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(dest + numCharsReadAlready, (char*)suFields + count + 5, usableLenThisNM); data/isomaster-1.3.13/bk/bkRead.c:1171:21: [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((*dest)->target, "/"); data/isomaster-1.3.13/bk/bkRead.c:1260: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). for(count = strlen(str) - 1; str[count] == ' '; count--) data/isomaster-1.3.13/bk/bkSet.c:91: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). newNameLen = strlen(newName); data/isomaster-1.3.13/bk/bkSet.c:273:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(volInfo->publisher, publisher, 128); data/isomaster-1.3.13/bk/bkSet.c:288:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(volInfo->volId, volName, 32); data/isomaster-1.3.13/bk/bkSort.c:31: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). leftLen = strlen(leftStr); data/isomaster-1.3.13/bk/bkSort.c:32: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). rightLen = strlen(rightStr); data/isomaster-1.3.13/bk/bkTime.c:70:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(str, longString, 4); data/isomaster-1.3.13/bk/bkTime.c:79:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(str, longString + 4, 2); data/isomaster-1.3.13/bk/bkTime.c:88:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(str, longString + 6, 2); data/isomaster-1.3.13/bk/bkTime.c:97:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(str, longString + 8, 2); data/isomaster-1.3.13/bk/bkTime.c:106:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(str, longString + 10, 2); data/isomaster-1.3.13/bk/bkTime.c:115:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(str, longString + 12, 2); data/isomaster-1.3.13/bk/bkWrite.c:979: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). lenFileId = 2 * strlen(node->nameJoliet); data/isomaster-1.3.13/bk/bkWrite.c:982: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). lenFileId = strlen(node->name9660); data/isomaster-1.3.13/bk/bkWrite.c:1005:45: [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). 2 * strlen(node->nameJoliet)); data/isomaster-1.3.13/bk/bkWrite.c:1065: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). if(wcSeekTell(volInfo) - startPos < (int)strlen(node->nameRock) + 5) data/isomaster-1.3.13/bk/bkWrite.c:1074:59: [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). rc = writeRockNM(volInfo, node->nameRock, strlen(node->nameRock), false); data/isomaster-1.3.13/bk/bkWrite.c:1150:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy((char*)&(buffer[4]), "Edited with ISO Master", 22); data/isomaster-1.3.13/bk/bkWrite.c:1212:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy((char*)buffer + 1, "CD001", 5); data/isomaster-1.3.13/bk/bkWrite.c:1217:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(&(buffer[7]), "EL TORITO SPECIFICATION", 23); data/isomaster-1.3.13/bk/bkWrite.c:1509: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). fullNameLen = strlen(node->nameRock); data/isomaster-1.3.13/bk/bkWrite.c:1700: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). fileIdLen = 2 * strlen(BASETW_PTR(dir)->nameJoliet); data/isomaster-1.3.13/bk/bkWrite.c:1704: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). fileIdLen = strlen(BASETW_PTR(dir)->name9660); data/isomaster-1.3.13/bk/bkWrite.c:1841:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(&(record[8]), "IEEE_P1282", 10); data/isomaster-1.3.13/bk/bkWrite.c:1844:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(&(record[18]), "DRAFT_1_12", 10); data/isomaster-1.3.13/bk/bkWrite.c:1847:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(&(record[28]), "ADOPTED_1994_07_08", 18); data/isomaster-1.3.13/bk/bkWrite.c:1945: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). targetLen = strlen(symlink->target); data/isomaster-1.3.13/bk/bkWrite.c:2053:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char*)record + recordCount + 2, symlink->target + stringCount, numBytesToSkip); data/isomaster-1.3.13/bk/bkWrite.c:2213: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). for(count = strlen((char*)aString); count < 32; count++) data/isomaster-1.3.13/bk/bkWrite.c:2404: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). for(count = strlen((char*)aString); count < 128; count++) data/isomaster-1.3.13/boot.c:58: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). strlen(lastBootRecordDir) > strlen(GBLappSettings.lastBootRecordDir)) data/isomaster-1.3.13/boot.c:58: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). strlen(lastBootRecordDir) > strlen(GBLappSettings.lastBootRecordDir)) data/isomaster-1.3.13/boot.c:65:55: [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). GBLappSettings.lastBootRecordDir = malloc(strlen(lastBootRecordDir) + 1); data/isomaster-1.3.13/boot.c:176: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). strlen(lastBootRecordDir) > strlen(GBLappSettings.lastBootRecordDir)) data/isomaster-1.3.13/boot.c:176: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). strlen(lastBootRecordDir) > strlen(GBLappSettings.lastBootRecordDir)) data/isomaster-1.3.13/boot.c:183:55: [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). GBLappSettings.lastBootRecordDir = malloc(strlen(lastBootRecordDir) + 1); data/isomaster-1.3.13/boot.c:281: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). fullItemName = (char*)malloc(strlen(GBLisoCurrentDir) + strlen(itemName) + 1); data/isomaster-1.3.13/boot.c:281:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fullItemName = (char*)malloc(strlen(GBLisoCurrentDir) + strlen(itemName) + 1); data/isomaster-1.3.13/browser.c:97: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). pathAndName = malloc(strlen(GBLfsCurrentDir) + strlen(newDirName) + 1); data/isomaster-1.3.13/browser.c:97:60: [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). pathAndName = malloc(strlen(GBLfsCurrentDir) + strlen(newDirName) + 1); data/isomaster-1.3.13/editfile.c:62: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). newNode->pathAndName = malloc(strlen(pathAndName) + 1); data/isomaster-1.3.13/editfile.c:283:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pathAndNameOnFs = malloc(strlen(GBLfsCurrentDir) + strlen(itemName) + 1); data/isomaster-1.3.13/editfile.c:283:56: [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). pathAndNameOnFs = malloc(strlen(GBLfsCurrentDir) + strlen(itemName) + 1); data/isomaster-1.3.13/editfile.c:291: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). pathAndNameInTempDir = malloc(strlen(GBLappSettings.tempDir) + data/isomaster-1.3.13/editfile.c:292: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). strlen(randomizedItemName) + 2); data/isomaster-1.3.13/editfile.c:298: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(pathAndNameInTempDir, "/"); /* doesn't hurt even if not needed */ data/isomaster-1.3.13/editfile.c:379: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). pathAndNameOnIso = malloc(strlen(GBLisoCurrentDir) + strlen(itemName) + 1); data/isomaster-1.3.13/editfile.c:379: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). pathAndNameOnIso = malloc(strlen(GBLisoCurrentDir) + strlen(itemName) + 1); data/isomaster-1.3.13/editfile.c:387:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pathAndNameOnFs = malloc(strlen(GBLappSettings.tempDir) + data/isomaster-1.3.13/editfile.c:388:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(randomizedItemName) + 2); data/isomaster-1.3.13/editfile.c:394: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(pathAndNameOnFs, "/"); /* doesn't hurt even if not needed */ data/isomaster-1.3.13/editfile.c:496: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(sourceName) > MAX_RANDOM_BASE_NAME_LEN) data/isomaster-1.3.13/editfile.c:499:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sourceNameLen = strlen(sourceName); data/isomaster-1.3.13/editfile.c:530:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(newName, randomStr, RANDOM_STR_NAME_LEN); data/isomaster-1.3.13/editfile.c:532: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(newName, "-"); data/isomaster-1.3.13/editfile.c:533:5: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(newName, sourceName, sourceNameLen); data/isomaster-1.3.13/editfile.c:616:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pathAndNameOnFs = malloc(strlen(GBLfsCurrentDir) + strlen(itemName) + 1); data/isomaster-1.3.13/editfile.c:616:56: [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). pathAndNameOnFs = malloc(strlen(GBLfsCurrentDir) + strlen(itemName) + 1); data/isomaster-1.3.13/editfile.c:624: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). pathAndNameInTempDir = malloc(strlen(GBLappSettings.tempDir) + data/isomaster-1.3.13/editfile.c:625: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). strlen(randomizedItemName) + 2); data/isomaster-1.3.13/editfile.c:631: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(pathAndNameInTempDir, "/"); /* doesn't hurt even if not needed */ data/isomaster-1.3.13/editfile.c:711: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). pathAndNameOnIso = malloc(strlen(GBLisoCurrentDir) + strlen(itemName) + 1); data/isomaster-1.3.13/editfile.c:711: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). pathAndNameOnIso = malloc(strlen(GBLisoCurrentDir) + strlen(itemName) + 1); data/isomaster-1.3.13/editfile.c:719:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pathAndNameOnFs = malloc(strlen(GBLappSettings.tempDir) + data/isomaster-1.3.13/editfile.c:720:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(randomizedItemName) + 2); data/isomaster-1.3.13/editfile.c:726: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(pathAndNameOnFs, "/"); /* doesn't hurt even if not needed */ data/isomaster-1.3.13/fsbrowser.c:54: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(newPath[strlen(newPath) - 1] == '/') data/isomaster-1.3.13/fsbrowser.c:60: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). newPathTerminated = malloc(strlen(newPath) + 2); data/isomaster-1.3.13/fsbrowser.c:65:9: [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(newPathTerminated, "/"); data/isomaster-1.3.13/fsbrowser.c:257: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). nextItemPathAndName = (char*)malloc(strlen(newDirStr) + 257); data/isomaster-1.3.13/fsbrowser.c:274: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). if(strlen(nextItem->d_name) > 256) data/isomaster-1.3.13/fsbrowser.c:367:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). GBLfsCurrentDir = (char*)malloc(strlen(newDirStr) + 1); data/isomaster-1.3.13/fsbrowser.c:422: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). newCurrentDir = (char*)malloc(strlen(GBLfsCurrentDir) + 1); data/isomaster-1.3.13/fsbrowser.c:429: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). for(count = strlen(newCurrentDir) - 1; !done; count--) data/isomaster-1.3.13/fsbrowser.c:472: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). selectedPathAndName = (char*)malloc(strlen(GBLfsCurrentDir) + strlen(name) + 2); data/isomaster-1.3.13/fsbrowser.c:472: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). selectedPathAndName = (char*)malloc(strlen(GBLfsCurrentDir) + strlen(name) + 2); data/isomaster-1.3.13/fsbrowser.c:483:9: [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(selectedPathAndName, "/"); data/isomaster-1.3.13/fsbrowser.c:495:13: [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(selectedPathAndName, "/"); data/isomaster-1.3.13/fsbrowser.c:502: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). int strLen = strlen(name); data/isomaster-1.3.13/fsbrowser.c:535: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). fsCurrentDir = malloc(strlen(GBLfsCurrentDir) + 1); data/isomaster-1.3.13/iniparser-2.17/src/dictionary.c:85: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). len = strlen(key); data/isomaster-1.3.13/iniparser-2.17/src/iniparser.c:194: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). seclen = (int)strlen(secname); data/isomaster-1.3.13/iniparser-2.17/src/strlib.c:147: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). last = l + strlen(l); data/isomaster-1.3.13/iniparser-2.17/src/strlib.c:184: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). last = l + strlen(l); data/isomaster-1.3.13/isobrowser.c:93: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(newPath[strlen(newPath) - 1] == '/') data/isomaster-1.3.13/isobrowser.c:99: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). newPathTerminated = malloc(strlen(newPath) + 2); data/isomaster-1.3.13/isobrowser.c:104:9: [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(newPathTerminated, "/"); data/isomaster-1.3.13/isobrowser.c:201:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fullItemName = (char*)malloc(strlen(GBLfsCurrentDir) + strlen(itemName) + 1); data/isomaster-1.3.13/isobrowser.c:201:64: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fullItemName = (char*)malloc(strlen(GBLfsCurrentDir) + strlen(itemName) + 1); data/isomaster-1.3.13/isobrowser.c:634:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). GBLisoCurrentDir = (char*)malloc(strlen(newDirStr) + 1); data/isomaster-1.3.13/isobrowser.c:675: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). fullItemName = malloc(strlen(GBLisoCurrentDir) + strlen(itemName) + 1); data/isomaster-1.3.13/isobrowser.c:675: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). fullItemName = malloc(strlen(GBLisoCurrentDir) + strlen(itemName) + 1); data/isomaster-1.3.13/isobrowser.c:714: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). fullItemName = malloc(strlen(GBLisoCurrentDir) + strlen(itemName) + 1); data/isomaster-1.3.13/isobrowser.c:714: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). fullItemName = malloc(strlen(GBLisoCurrentDir) + strlen(itemName) + 1); data/isomaster-1.3.13/isobrowser.c:836:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fullItemName = (char*)malloc(strlen(GBLisoCurrentDir) + strlen(itemName) + 1); data/isomaster-1.3.13/isobrowser.c:836: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). fullItemName = (char*)malloc(strlen(GBLisoCurrentDir) + strlen(itemName) + 1); data/isomaster-1.3.13/isobrowser.c:947: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). fullItemName = (char*)malloc(strlen(GBLisoCurrentDir) + strlen(itemName) + 1); data/isomaster-1.3.13/isobrowser.c:947:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fullItemName = (char*)malloc(strlen(GBLisoCurrentDir) + strlen(itemName) + 1); data/isomaster-1.3.13/isobrowser.c:1033: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). newCurrentDir = (char*)malloc(strlen(GBLisoCurrentDir) + 1); data/isomaster-1.3.13/isobrowser.c:1040: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). for(count = strlen(newCurrentDir) - 1; !done && count >= 0; count--) data/isomaster-1.3.13/isobrowser.c:1110: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). newCurrentDir = (char*)malloc(strlen(GBLisoCurrentDir) + strlen(name) + 2); data/isomaster-1.3.13/isobrowser.c:1110:66: [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). newCurrentDir = (char*)malloc(strlen(GBLisoCurrentDir) + strlen(name) + 2); data/isomaster-1.3.13/isobrowser.c:1117:9: [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(newCurrentDir, "/"); data/isomaster-1.3.13/isobrowser.c:1360: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). openIsoPathAndName = malloc(strlen(filename) + 1); data/isomaster-1.3.13/isobrowser.c:1371: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). int filenameLen = strlen(filename); data/isomaster-1.3.13/isobrowser.c:1373:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* windowTitle = malloc(filenameLen + strlen(" - ISO Master") + 1); data/isomaster-1.3.13/isobrowser.c:1459: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). if(GBLappSettings.lastIsoDir != NULL && strlen(lastIsoDir) > strlen(GBLappSettings.lastIsoDir)) data/isomaster-1.3.13/isobrowser.c:1459:74: [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(GBLappSettings.lastIsoDir != NULL && strlen(lastIsoDir) > strlen(GBLappSettings.lastIsoDir)) data/isomaster-1.3.13/isobrowser.c:1466:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). GBLappSettings.lastIsoDir = malloc(strlen(lastIsoDir) + 1); data/isomaster-1.3.13/isobrowser.c:1531: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). isoCurrentDir = malloc(strlen(GBLisoCurrentDir) + 1); data/isomaster-1.3.13/isobrowser.c:1582: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). fullItemName = (char*)malloc(strlen(GBLisoCurrentDir) + strlen(itemName) + 1); data/isomaster-1.3.13/isobrowser.c:1582:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fullItemName = (char*)malloc(strlen(GBLisoCurrentDir) + strlen(itemName) + 1); data/isomaster-1.3.13/isobrowser.c:1770: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). if(GBLappSettings.lastIsoDir != NULL && strlen(lastIsoDir) > strlen(GBLappSettings.lastIsoDir)) data/isomaster-1.3.13/isobrowser.c:1770:74: [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(GBLappSettings.lastIsoDir != NULL && strlen(lastIsoDir) > strlen(GBLappSettings.lastIsoDir)) data/isomaster-1.3.13/isobrowser.c:1777:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). GBLappSettings.lastIsoDir = malloc(strlen(lastIsoDir) + 1); data/isomaster-1.3.13/isobrowser.c:1799: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). nameWithExtension = malloc(strlen(filename) + 5); data/isomaster-1.3.13/isobrowser.c:1878:27: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((numBytesRead = read(sourceFile, line, sizeof(line))) > 0) data/isomaster-1.3.13/settings.c:86: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). timeStr[strlen(timeStr) - 1] = '\0'; /* remove the trailing newline */ data/isomaster-1.3.13/settings.c:212:9: [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(GBLuserHomeDir, "/"); data/isomaster-1.3.13/settings.c:227:9: [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(GBLuserHomeDir, "/"); data/isomaster-1.3.13/settings.c:235: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). pathLen = strlen(userHomeDir); data/isomaster-1.3.13/settings.c:249:9: [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(GBLuserHomeDir, "/"); data/isomaster-1.3.13/settings.c:282: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). *destStr = malloc(strlen(DEFAULT_TEMP_DIR) + 1); data/isomaster-1.3.13/settings.c:301: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). configFileName = malloc(strlen(GBLuserHomeDir) + strlen(".isomaster") + 1); data/isomaster-1.3.13/settings.c:301: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). configFileName = malloc(strlen(GBLuserHomeDir) + strlen(".isomaster") + 1); data/isomaster-1.3.13/settings.c:432:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). GBLappSettings.lastIsoDir = malloc(strlen(tempStr) +1); data/isomaster-1.3.13/settings.c:451:55: [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). GBLappSettings.lastBootRecordDir = malloc(strlen(tempStr) +1); data/isomaster-1.3.13/settings.c:482: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). GBLappSettings.editor = malloc(strlen(DEFAULT_EDITOR) + 1); data/isomaster-1.3.13/settings.c:489: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). GBLappSettings.editor = malloc(strlen(tempStr) + 1); data/isomaster-1.3.13/settings.c:498: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). GBLappSettings.editor = malloc(strlen(DEFAULT_EDITOR) + 1); data/isomaster-1.3.13/settings.c:511: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). GBLappSettings.viewer = malloc(strlen(DEFAULT_VIEWER) + 1); data/isomaster-1.3.13/settings.c:518: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). GBLappSettings.viewer = malloc(strlen(tempStr) + 1); data/isomaster-1.3.13/settings.c:527: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). GBLappSettings.viewer = malloc(strlen(DEFAULT_VIEWER) + 1); data/isomaster-1.3.13/settings.c:544:45: [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). GBLappSettings.tempDir = malloc(strlen(tempStr) + 1); data/isomaster-1.3.13/settings.c:617: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). GBLappSettings.recentlyOpen[i] = malloc(strlen(tempStr) + 1); data/isomaster-1.3.13/settings.c:770: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). GBLappSettings.editor = malloc(strlen(gtk_entry_get_text(GTK_ENTRY(prefWidgets.editor))) + 1); data/isomaster-1.3.13/settings.c:777: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). GBLappSettings.viewer = malloc(strlen(gtk_entry_get_text(GTK_ENTRY(prefWidgets.viewer))) + 1); data/isomaster-1.3.13/settings.c:784: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). GBLappSettings.tempDir = malloc(strlen(gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(prefWidgets.tempDir))) + 1); data/isomaster-1.3.13/settings.c:816: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). configFileName = malloc(strlen(GBLuserHomeDir) + strlen(".isomaster") + 1); data/isomaster-1.3.13/settings.c:816: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). configFileName = malloc(strlen(GBLuserHomeDir) + strlen(".isomaster") + 1); ANALYSIS SUMMARY: Hits = 445 Lines analyzed = 16727 in approximately 0.54 seconds (31207 lines/second) Physical Source Lines of Code (SLOC) = 11222 Hits@level = [0] 132 [1] 196 [2] 126 [3] 3 [4] 119 [5] 1 Hits@level+ = [0+] 577 [1+] 445 [2+] 249 [3+] 123 [4+] 120 [5+] 1 Hits/KSLOC@level+ = [0+] 51.4169 [1+] 39.6543 [2+] 22.1886 [3+] 10.9606 [4+] 10.6933 [5+] 0.0891107 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.