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/basket-2.49/src/xmlwork.h Examining data/basket-2.49/src/xmlwork.cpp Examining data/basket-2.49/src/variouswidgets.h Examining data/basket-2.49/src/variouswidgets.cpp Examining data/basket-2.49/src/transparentwidget.h Examining data/basket-2.49/src/transparentwidget.cpp Examining data/basket-2.49/src/tools.h Examining data/basket-2.49/src/tools.cpp Examining data/basket-2.49/src/tests/toolstest.cpp Examining data/basket-2.49/src/tests/notetest.cpp Examining data/basket-2.49/src/tests/basketviewtest.cpp Examining data/basket-2.49/src/tagsedit.h Examining data/basket-2.49/src/tagsedit.cpp Examining data/basket-2.49/src/tag.h Examining data/basket-2.49/src/tag.cpp Examining data/basket-2.49/src/systemtray.h Examining data/basket-2.49/src/systemtray.cpp Examining data/basket-2.49/src/softwareimporters.h Examining data/basket-2.49/src/softwareimporters.cpp Examining data/basket-2.49/src/settings_versionsync.h Examining data/basket-2.49/src/settings_versionsync.cpp Examining data/basket-2.49/src/settings.h Examining data/basket-2.49/src/settings.cpp Examining data/basket-2.49/src/regiongrabber.h Examining data/basket-2.49/src/regiongrabber.cpp Examining data/basket-2.49/src/password.h Examining data/basket-2.49/src/password.cpp Examining data/basket-2.49/src/noteselection.h Examining data/basket-2.49/src/noteselection.cpp Examining data/basket-2.49/src/notefactory.h Examining data/basket-2.49/src/notefactory.cpp Examining data/basket-2.49/src/noteedit.h Examining data/basket-2.49/src/noteedit.cpp Examining data/basket-2.49/src/notedrag.h Examining data/basket-2.49/src/notedrag.cpp Examining data/basket-2.49/src/notecontent.h Examining data/basket-2.49/src/notecontent.cpp Examining data/basket-2.49/src/note.h Examining data/basket-2.49/src/note.cpp Examining data/basket-2.49/src/newbasketdialog.h Examining data/basket-2.49/src/newbasketdialog.cpp Examining data/basket-2.49/src/nepomukintegration.h Examining data/basket-2.49/src/nepomukintegration.cpp Examining data/basket-2.49/src/mainwindow.h Examining data/basket-2.49/src/mainwindow.cpp Examining data/basket-2.49/src/main.cpp Examining data/basket-2.49/src/linklabel.h Examining data/basket-2.49/src/linklabel.cpp Examining data/basket-2.49/src/likeback_p.h Examining data/basket-2.49/src/likeback.h Examining data/basket-2.49/src/likeback.cpp Examining data/basket-2.49/src/ksystemtrayicon2.h Examining data/basket-2.49/src/ksystemtrayicon2.cpp Examining data/basket-2.49/src/kgpgme.h Examining data/basket-2.49/src/kgpgme.cpp Examining data/basket-2.49/src/kde4_migration.h Examining data/basket-2.49/src/kcolorcombo2.h Examining data/basket-2.49/src/kcolorcombo2.cpp Examining data/basket-2.49/src/kcm_basket.cpp Examining data/basket-2.49/src/icon_names.h Examining data/basket-2.49/src/htmlexporter.h Examining data/basket-2.49/src/htmlexporter.cpp Examining data/basket-2.49/src/history.h Examining data/basket-2.49/src/history.cpp Examining data/basket-2.49/src/global.h Examining data/basket-2.49/src/global.cpp Examining data/basket-2.49/src/gitwrapper.h Examining data/basket-2.49/src/gitwrapper.cpp Examining data/basket-2.49/src/formatimporter.h Examining data/basket-2.49/src/formatimporter.cpp Examining data/basket-2.49/src/focusedwidgets.h Examining data/basket-2.49/src/focusedwidgets.cpp Examining data/basket-2.49/src/filter.h Examining data/basket-2.49/src/filter.cpp Examining data/basket-2.49/src/file_mimetypes.h Examining data/basket-2.49/src/file_metadata.h Examining data/basket-2.49/src/file_metadata.cpp Examining data/basket-2.49/src/diskerrordialog.h Examining data/basket-2.49/src/diskerrordialog.cpp Examining data/basket-2.49/src/decoratedbasket.h Examining data/basket-2.49/src/decoratedbasket.cpp Examining data/basket-2.49/src/debugwindow.h Examining data/basket-2.49/src/debugwindow.cpp Examining data/basket-2.49/src/crashhandler.h Examining data/basket-2.49/src/crashhandler.cpp Examining data/basket-2.49/src/colorpicker.h Examining data/basket-2.49/src/colorpicker.cpp Examining data/basket-2.49/src/bnpview.h Examining data/basket-2.49/src/bnpview.cpp Examining data/basket-2.49/src/basketview.h Examining data/basket-2.49/src/basketview.cpp Examining data/basket-2.49/src/basketstatusbar.h Examining data/basket-2.49/src/basketstatusbar.cpp Examining data/basket-2.49/src/basketscene.h Examining data/basket-2.49/src/basketscene.cpp Examining data/basket-2.49/src/basketproperties.h Examining data/basket-2.49/src/basketproperties.cpp Examining data/basket-2.49/src/basketlistview.h Examining data/basket-2.49/src/basketlistview.cpp Examining data/basket-2.49/src/basketfactory.h Examining data/basket-2.49/src/basketfactory.cpp Examining data/basket-2.49/src/basket_plugin.h Examining data/basket-2.49/src/basket_plugin.cpp Examining data/basket-2.49/src/basket_part.h Examining data/basket-2.49/src/basket_part.cpp Examining data/basket-2.49/src/basket_options.h Examining data/basket-2.49/src/basket_export.h Examining data/basket-2.49/src/backup.h Examining data/basket-2.49/src/backup.cpp Examining data/basket-2.49/src/backgroundmanager.h Examining data/basket-2.49/src/backgroundmanager.cpp Examining data/basket-2.49/src/archive.h Examining data/basket-2.49/src/archive.cpp Examining data/basket-2.49/src/application.h Examining data/basket-2.49/src/application.cpp Examining data/basket-2.49/src/aboutdata.h Examining data/basket-2.49/src/aboutdata.cpp Examining data/basket-2.49/file-integration/basketthumbcreator.h Examining data/basket-2.49/file-integration/basketthumbcreator.cpp FINAL RESULTS: data/basket-2.49/src/crashhandler.cpp:47:23: [4] (shell) popen: 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. FILE *process = ::popen(command, "r"); data/basket-2.49/src/basketscene.cpp:2979:5: [3] (random) srand: 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. srand(t.hour()*12 + t.minute()*60 + t.second()*60); data/basket-2.49/file-integration/basketthumbcreator.cpp:43:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::ReadOnly)) { data/basket-2.49/file-integration/basketthumbcreator.cpp:73:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (previewFile.open(QIODevice::WriteOnly)) { data/basket-2.49/src/archive.cpp:77:9: [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). tar.open(QIODevice::WriteOnly); data/basket-2.49/src/archive.cpp:154:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::WriteOnly)) { data/basket-2.49/src/archive.cpp:171:25: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (previewFile.open(QIODevice::ReadOnly)) { data/basket-2.49/src/archive.cpp:180:25: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (archiveFile.open(QIODevice::ReadOnly)) { data/basket-2.49/src/archive.cpp:263: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). void Archive::open(const QString &path) data/basket-2.49/src/archive.cpp:272:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::ReadOnly)) { data/basket-2.49/src/archive.cpp:359:33: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (archiveFile.open(QIODevice::WriteOnly)) { data/basket-2.49/src/archive.cpp:374:25: [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). tar.open(QIODevice::ReadOnly); data/basket-2.49/src/archive.h:46:17: [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). static void open(const QString &path); data/basket-2.49/src/backup.cpp:288:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::WriteOnly)) { data/basket-2.49/src/backup.cpp:423:9: [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). tar.open(QIODevice::WriteOnly); data/basket-2.49/src/backup.cpp:449:9: [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). tar.open(QIODevice::ReadOnly); data/basket-2.49/src/basketfactory.cpp:77:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::WriteOnly)) { data/basket-2.49/src/basketscene.cpp:5183:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::ReadOnly)) { data/basket-2.49/src/basketscene.cpp:5197:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::ReadOnly)) { data/basket-2.49/src/basketscene.cpp:5305:22: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (saveFile.open(QIODevice::WriteOnly)) { data/basket-2.49/src/bnpview.cpp:276: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). Archive::open(path); data/basket-2.49/src/bnpview.cpp:2292:14: [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). Archive::open(s_fileToOpen); data/basket-2.49/src/bnpview.cpp:2308: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). Archive::open(path); data/basket-2.49/src/crashhandler.cpp:43: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 stdoutBuf[ SIZE ]; data/basket-2.49/src/crashhandler.cpp:99:7: [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). temp.open(); data/basket-2.49/src/crashhandler.cpp:234: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). if (file.open(QIODevice::ReadOnly | QIODevice::Text)) { data/basket-2.49/src/formatimporter.cpp:164:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::WriteOnly)) { data/basket-2.49/src/formatimporter.cpp:239:26: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::WriteOnly)) { data/basket-2.49/src/formatimporter.cpp:268:26: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::WriteOnly)) { data/basket-2.49/src/formatimporter.cpp:294:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::WriteOnly)) { data/basket-2.49/src/htmlexporter.cpp:209: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). if (!file.open(QIODevice::WriteOnly)) data/basket-2.49/src/htmlexporter.cpp:527:22: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::WriteOnly)) data/basket-2.49/src/htmlexporter.cpp:551:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::WriteOnly)){ data/basket-2.49/src/kgpgme.cpp:211: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 str[2] = "x"; data/basket-2.49/src/kgpgme.cpp:391:17: [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(outBuffer->data() + size, buf, ret); data/basket-2.49/src/notecontent.cpp:1235: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). buffer.open(QIODevice::ReadOnly); data/basket-2.49/src/notecontent.cpp:1261:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). buffer.open(QIODevice::WriteOnly); data/basket-2.49/src/notecontent.cpp:2598:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::ReadOnly | QIODevice::Text)) { data/basket-2.49/src/notecontent.cpp:2625:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::ReadOnly)) { data/basket-2.49/src/notedrag.cpp:71: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). if (buffer.open(QIODevice::WriteOnly)) { data/basket-2.49/src/notedrag.cpp:379: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). if (buffer.open(QIODevice::ReadOnly)) { data/basket-2.49/src/notedrag.cpp:397: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). if (buffer.open(QIODevice::ReadOnly)) { data/basket-2.49/src/notedrag.cpp:430: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). if (buffer.open(QIODevice::ReadOnly)) { data/basket-2.49/src/noteedit.cpp:520:27: [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). KStandardGuiItem::open(), data/basket-2.49/src/noteedit.cpp:547:63: [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). KStandardGuiItem::open(), data/basket-2.49/src/notefactory.cpp:301:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::WriteOnly)) { data/basket-2.49/src/notefactory.cpp:499: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). if (! file.open(QIODevice::WriteOnly)) data/basket-2.49/src/notefactory.cpp:854:10: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file.open(QIODevice::WriteOnly); data/basket-2.49/src/softwareimporters.cpp:350: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). if (file.open(QIODevice::ReadOnly)) { data/basket-2.49/src/softwareimporters.cpp:427: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). if (file.open(QIODevice::ReadOnly)) { data/basket-2.49/src/softwareimporters.cpp:524:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::ReadOnly)) { data/basket-2.49/src/softwareimporters.cpp:678:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::ReadOnly)) { data/basket-2.49/src/softwareimporters.cpp:734: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). if (file.open(QIODevice::ReadOnly)) { data/basket-2.49/src/tag.cpp:730:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QIODevice::WriteOnly)) { data/basket-2.49/src/tests/toolstest.cpp:55:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!f.open(QFile::ReadOnly | QFile::Text)) { data/basket-2.49/src/xmlwork.cpp:32: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). if (! file.open(QIODevice::ReadOnly)) { data/basket-2.49/file-integration/basketthumbcreator.cpp:76:30: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((sizeRead = file.read(buffer, qMin(BUFFER_SIZE, size))) > 0) { data/basket-2.49/file-integration/basketthumbcreator.cpp:97:29: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((sizeRead = file.read(buffer, qMin(BUFFER_SIZE, size))) > 0) { data/basket-2.49/src/archive.cpp:172:44: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((sizeRead = previewFile.read(buffer, BUFFER_SIZE)) > 0) data/basket-2.49/src/archive.cpp:181:44: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((sizeRead = archiveFile.read(buffer, BUFFER_SIZE)) > 0) data/basket-2.49/src/archive.cpp:362:45: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((sizeRead = file.read(buffer, qMin(BUFFER_SIZE, size))) > 0) { data/basket-2.49/src/archive.cpp:406:41: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((sizeRead = file.read(buffer, qMin(BUFFER_SIZE, size))) > 0) { data/basket-2.49/src/backup.cpp:258:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(300); // Not too long because if the backup process is finished, we wait for nothing data/basket-2.49/src/backup.cpp:318:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(300); // Not too long because if the restore process is finished, we wait for nothing data/basket-2.49/src/bnpview.cpp:2050:5: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(delay * 1000); data/basket-2.49/src/notecontent.cpp:1822:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). QByteArray buf = m_reply->read(bytesAvailable); ANALYSIS SUMMARY: Hits = 66 Lines analyzed = 41930 in approximately 1.09 seconds (38528 lines/second) Physical Source Lines of Code (SLOC) = 30597 Hits@level = [0] 1 [1] 10 [2] 54 [3] 1 [4] 1 [5] 0 Hits@level+ = [0+] 67 [1+] 66 [2+] 56 [3+] 2 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 2.18976 [1+] 2.15707 [2+] 1.83024 [3+] 0.0653659 [4+] 0.0326829 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.