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/stopmotion-0.8.5/src/application/camerahandler.cpp
Examining data/stopmotion-0.8.5/src/application/camerahandler.h
Examining data/stopmotion-0.8.5/src/application/editmenuhandler.cpp
Examining data/stopmotion-0.8.5/src/application/editmenuhandler.h
Examining data/stopmotion-0.8.5/src/application/externalcommand.cpp
Examining data/stopmotion-0.8.5/src/application/externalcommand.h
Examining data/stopmotion-0.8.5/src/application/externalcommandwithtemporarydirectory.cpp
Examining data/stopmotion-0.8.5/src/application/externalcommandwithtemporarydirectory.h
Examining data/stopmotion-0.8.5/src/application/languagehandler.cpp
Examining data/stopmotion-0.8.5/src/application/languagehandler.h
Examining data/stopmotion-0.8.5/src/application/modelhandler.cpp
Examining data/stopmotion-0.8.5/src/application/modelhandler.h
Examining data/stopmotion-0.8.5/src/application/runanimationhandler.cpp
Examining data/stopmotion-0.8.5/src/application/runanimationhandler.h
Examining data/stopmotion-0.8.5/src/application/soundhandler.cpp
Examining data/stopmotion-0.8.5/src/application/soundhandler.h
Examining data/stopmotion-0.8.5/src/config.cpp
Examining data/stopmotion-0.8.5/src/config.h
Examining data/stopmotion-0.8.5/src/domain/animation/animation.cpp
Examining data/stopmotion-0.8.5/src/domain/animation/animation.h
Examining data/stopmotion-0.8.5/src/domain/animation/animationimpl.cpp
Examining data/stopmotion-0.8.5/src/domain/animation/animationimpl.h
Examining data/stopmotion-0.8.5/src/domain/animation/errorhandler.cpp
Examining data/stopmotion-0.8.5/src/domain/animation/errorhandler.h
Examining data/stopmotion-0.8.5/src/domain/animation/frame.cpp
Examining data/stopmotion-0.8.5/src/domain/animation/frame.h
Examining data/stopmotion-0.8.5/src/domain/animation/scene.cpp
Examining data/stopmotion-0.8.5/src/domain/animation/scene.h
Examining data/stopmotion-0.8.5/src/domain/animation/scenevector.cpp
Examining data/stopmotion-0.8.5/src/domain/animation/scenevector.h
Examining data/stopmotion-0.8.5/src/domain/animation/sound.cpp
Examining data/stopmotion-0.8.5/src/domain/animation/sound.h
Examining data/stopmotion-0.8.5/src/domain/animation/workspacefile.cpp
Examining data/stopmotion-0.8.5/src/domain/animation/workspacefile.h
Examining data/stopmotion-0.8.5/src/domain/domainfacade.cpp
Examining data/stopmotion-0.8.5/src/domain/domainfacade.h
Examining data/stopmotion-0.8.5/src/domain/filenamevisitor.h
Examining data/stopmotion-0.8.5/src/domain/observernotifier.cpp
Examining data/stopmotion-0.8.5/src/domain/observernotifier.h
Examining data/stopmotion-0.8.5/src/domain/undo/addallcommands.cpp
Examining data/stopmotion-0.8.5/src/domain/undo/addallcommands.h
Examining data/stopmotion-0.8.5/src/domain/undo/command.cpp
Examining data/stopmotion-0.8.5/src/domain/undo/command.h
Examining data/stopmotion-0.8.5/src/domain/undo/commandadd.cpp
Examining data/stopmotion-0.8.5/src/domain/undo/commandadd.h
Examining data/stopmotion-0.8.5/src/domain/undo/commandaddscene.cpp
Examining data/stopmotion-0.8.5/src/domain/undo/commandaddscene.h
Examining data/stopmotion-0.8.5/src/domain/undo/commandaddsound.cpp
Examining data/stopmotion-0.8.5/src/domain/undo/commandaddsound.h
Examining data/stopmotion-0.8.5/src/domain/undo/commandlogger.cpp
Examining data/stopmotion-0.8.5/src/domain/undo/commandlogger.h
Examining data/stopmotion-0.8.5/src/domain/undo/commandmove.cpp
Examining data/stopmotion-0.8.5/src/domain/undo/commandmove.h
Examining data/stopmotion-0.8.5/src/domain/undo/commandmovescene.cpp
Examining data/stopmotion-0.8.5/src/domain/undo/commandmovescene.h
Examining data/stopmotion-0.8.5/src/domain/undo/commandremove.cpp
Examining data/stopmotion-0.8.5/src/domain/undo/commandremove.h
Examining data/stopmotion-0.8.5/src/domain/undo/commandremovescene.cpp
Examining data/stopmotion-0.8.5/src/domain/undo/commandremovescene.h
Examining data/stopmotion-0.8.5/src/domain/undo/commandremovesound.cpp
Examining data/stopmotion-0.8.5/src/domain/undo/commandremovesound.h
Examining data/stopmotion-0.8.5/src/domain/undo/commandrenamesound.cpp
Examining data/stopmotion-0.8.5/src/domain/undo/commandrenamesound.h
Examining data/stopmotion-0.8.5/src/domain/undo/commandsetimage.cpp
Examining data/stopmotion-0.8.5/src/domain/undo/commandsetimage.h
Examining data/stopmotion-0.8.5/src/domain/undo/executor.cpp
Examining data/stopmotion-0.8.5/src/domain/undo/executor.h
Examining data/stopmotion-0.8.5/src/domain/undo/filelogger.cpp
Examining data/stopmotion-0.8.5/src/domain/undo/filelogger.h
Examining data/stopmotion-0.8.5/src/domain/undo/random.cpp
Examining data/stopmotion-0.8.5/src/domain/undo/random.h
Examining data/stopmotion-0.8.5/src/domain/undo/undoredoobserver.cpp
Examining data/stopmotion-0.8.5/src/domain/undo/undoredoobserver.h
Examining data/stopmotion-0.8.5/src/foundation/logger.cpp
Examining data/stopmotion-0.8.5/src/foundation/logger.h
Examining data/stopmotion-0.8.5/src/foundation/preferencestool.cpp
Examining data/stopmotion-0.8.5/src/foundation/preferencestool.h
Examining data/stopmotion-0.8.5/src/foundation/stringwriter.cpp
Examining data/stopmotion-0.8.5/src/foundation/stringwriter.h
Examining data/stopmotion-0.8.5/src/foundation/uiexception.cpp
Examining data/stopmotion-0.8.5/src/foundation/uiexception.h
Examining data/stopmotion-0.8.5/src/main.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/frontend.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/frontend.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/nonguifrontend/nonguifrontend.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/nonguifrontend/nonguifrontend.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/aboutdialog.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/aboutdialog.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/devicetab.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/devicetab.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/editobserver.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/editobserver.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/exporttab.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/exporttab.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/flexiblelineedit.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/flexiblelineedit.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/flexiblespinbox.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/flexiblespinbox.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/framebar/filenamesfromurlsiterator.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/framebar/filenamesfromurlsiterator.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/framebar/framebar.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/framebar/framebar.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/framebar/framethumbview.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/framebar/framethumbview.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/framebar/scenearrowbutton.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/framebar/scenearrowbutton.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/framebar/scenethumbview.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/framebar/scenethumbview.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/framebar/thumbdragger.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/framebar/thumbdragger.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/framebar/thumbview.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/framebar/thumbview.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/framepreferencesmenu.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/framepreferencesmenu.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/frameview.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/frameview.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/helpwindow.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/helpwindow.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/imagegrabthread.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/imagegrabthread.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/importtab.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/importtab.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/licence.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/mainwindowgui.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/mainwindowgui.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/menuframe.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/menuframe.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/preferencesmenu.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/preferencesmenu.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/qtfrontend.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/qtfrontend.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/toolsmenu.cpp
Examining data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/toolsmenu.h
Examining data/stopmotion-0.8.5/src/presentation/frontends/selection.h
Examining data/stopmotion-0.8.5/src/presentation/imagecache.cpp
Examining data/stopmotion-0.8.5/src/presentation/imagecache.h
Examining data/stopmotion-0.8.5/src/presentation/loadcache.h
Examining data/stopmotion-0.8.5/src/presentation/observer.h
Examining data/stopmotion-0.8.5/src/technical/audio/audiodriver.h
Examining data/stopmotion-0.8.5/src/technical/audio/audioformat.cpp
Examining data/stopmotion-0.8.5/src/technical/audio/audioformat.h
Examining data/stopmotion-0.8.5/src/technical/audio/oggvorbis.cpp
Examining data/stopmotion-0.8.5/src/technical/audio/oggvorbis.h
Examining data/stopmotion-0.8.5/src/technical/audio/qtaudiodriver.h
Examining data/stopmotion-0.8.5/src/technical/audio/qtaudiodriver.cpp
Examining data/stopmotion-0.8.5/src/technical/grabber/commandlinegrabber.cpp
Examining data/stopmotion-0.8.5/src/technical/grabber/commandlinegrabber.h
Examining data/stopmotion-0.8.5/src/technical/grabber/imagegrabber.cpp
Examining data/stopmotion-0.8.5/src/technical/grabber/imagegrabber.h
Examining data/stopmotion-0.8.5/src/technical/projectserializer.cpp
Examining data/stopmotion-0.8.5/src/technical/projectserializer.h
Examining data/stopmotion-0.8.5/src/technical/stringiterator.cpp
Examining data/stopmotion-0.8.5/src/technical/stringiterator.h
Examining data/stopmotion-0.8.5/src/technical/util.cpp
Examining data/stopmotion-0.8.5/src/technical/util.h
Examining data/stopmotion-0.8.5/src/technical/video/videoencoder.cpp
Examining data/stopmotion-0.8.5/src/technical/video/videoencoder.h
Examining data/stopmotion-0.8.5/src/technical/video/videofactory.cpp
Examining data/stopmotion-0.8.5/src/technical/video/videofactory.h
Examining data/stopmotion-0.8.5/src/test/fakefiles.cpp
Examining data/stopmotion-0.8.5/src/test/fakefiles.h
Examining data/stopmotion-0.8.5/src/test/hash.cpp
Examining data/stopmotion-0.8.5/src/test/hash.h
Examining data/stopmotion-0.8.5/src/test/oomteststub.cpp
Examining data/stopmotion-0.8.5/src/test/oomtestutil.cpp
Examining data/stopmotion-0.8.5/src/test/oomtestutil.h
Examining data/stopmotion-0.8.5/src/test/tcache.cpp
Examining data/stopmotion-0.8.5/src/test/tcache.h
Examining data/stopmotion-0.8.5/src/test/testhome.cpp
Examining data/stopmotion-0.8.5/src/test/testhome.h
Examining data/stopmotion-0.8.5/src/test/testundo.h
Examining data/stopmotion-0.8.5/src/test/texecutor.cpp
Examining data/stopmotion-0.8.5/src/test/texecutor.h
Examining data/stopmotion-0.8.5/src/test/tmain.cpp
Examining data/stopmotion-0.8.5/src/test/toggvorbis.cpp
Examining data/stopmotion-0.8.5/src/test/tstopmotionundo.cpp
Examining data/stopmotion-0.8.5/src/test/tstopmotionundo.h
Examining data/stopmotion-0.8.5/src/test/tworkspace.cpp
Examining data/stopmotion-0.8.5/src/test/tworkspace.h
Examining data/stopmotion-0.8.5/src/test/testundo.cpp

FINAL RESULTS:

data/stopmotion-0.8.5/src/application/languagehandler.cpp:39:28:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	QString locale = QLocale::system().name().toLower();
data/stopmotion-0.8.5/src/domain/animation/workspacefile.cpp:87:16:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	} while (0 == access(pathOut.c_str(), F_OK));
data/stopmotion-0.8.5/src/domain/animation/workspacefile.cpp:351: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(p, pathOut.c_str());
data/stopmotion-0.8.5/src/foundation/logger.cpp:34:6:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	qsm.vsprintf(msg, ap);
data/stopmotion-0.8.5/src/foundation/logger.cpp:48:6:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	qsm.vsprintf(msg, ap);
data/stopmotion-0.8.5/src/foundation/logger.cpp:58:6:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	qsm.vsprintf(msg, ap);
data/stopmotion-0.8.5/src/foundation/uiexception.cpp:69:11:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  int n = vsnprintf (0, 0, format, args);
data/stopmotion-0.8.5/src/foundation/uiexception.cpp:73:3:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  vsnprintf(p, n, format, args);
data/stopmotion-0.8.5/src/main.cpp:134:20:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			if (argc > 1 && access(argv[1], R_OK) == 0) {
data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/mainwindowgui.cpp:1138:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (first.get() && access(first.get(), R_OK) == 0) {
data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/mainwindowgui.cpp:1145:22:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (second.get() && access(second.get(), R_OK) == 0) {
data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/mainwindowgui.cpp:1152:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (third.get() && access(third.get(), R_OK) == 0) {
data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/qtfrontend.cpp:191:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (0 == access(path, R_OK)) {
data/stopmotion-0.8.5/src/technical/grabber/commandlinegrabber.cpp:39:10:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	int r = system(commandLine);
data/stopmotion-0.8.5/src/technical/projectserializer.cpp:189: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(newProjectFile, filename);
data/stopmotion-0.8.5/src/technical/util.cpp:158:13:  [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 *fp = popen(which.c_str(), "r");
data/stopmotion-0.8.5/src/technical/util.cpp:281:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (0 == access(path, F_OK))
data/stopmotion-0.8.5/src/technical/video/videoencoder.cpp:73: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(startCommand, command);
data/stopmotion-0.8.5/src/technical/video/videoencoder.cpp:84: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(stopCommand, command);
data/stopmotion-0.8.5/src/technical/video/videoencoder.cpp:95: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(outputFile, file);
data/stopmotion-0.8.5/src/test/fakefiles.cpp:112:22:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
int RealOggEmptyJpg::access(const char *name, int /*type*/) {
data/stopmotion-0.8.5/src/test/fakefiles.h:45:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	int access (const char *name, int type);
data/stopmotion-0.8.5/src/test/oomtestutil.cpp:45:5:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
int access(const char *name, int type);
data/stopmotion-0.8.5/src/test/oomtestutil.cpp:135:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	int access(const char *name, int type) {
data/stopmotion-0.8.5/src/test/oomtestutil.cpp:226:5:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
int access(const char *name, int type) {
data/stopmotion-0.8.5/src/test/oomtestutil.cpp:227:26:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	return getFileSystem()->access(name, type);
data/stopmotion-0.8.5/src/test/oomtestutil.h:45:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	virtual int access (const char *name, int type) = 0;
data/stopmotion-0.8.5/src/test/testhome.cpp:79:15:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
int TestHome::access(const char *name, int type) {
data/stopmotion-0.8.5/src/test/testhome.cpp:80:19:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	return delegate->access(name, type);
data/stopmotion-0.8.5/src/test/testhome.h:52:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	int access (const char *name, int type);
data/stopmotion-0.8.5/src/test/tstopmotionundo.cpp:55:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (0 != access(filename, F_OK))
data/stopmotion-0.8.5/src/application/externalcommandwithtemporarydirectory.cpp:52:20:  [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.
			const char* v = getenv(var);
data/stopmotion-0.8.5/src/domain/animation/workspacefile.cpp:48:7:  [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.
	s << getenv("HOME");
data/stopmotion-0.8.5/src/domain/animation/workspacefile.cpp:54:7:  [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.
	s << getenv("HOME");
data/stopmotion-0.8.5/src/domain/animation/workspacefile.cpp:346:7:  [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.
	s << getenv("HOME");
data/stopmotion-0.8.5/src/presentation/frontends/nonguifrontend/nonguifrontend.cpp:111:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		int c = getopt_long(argc, argv, "a:c:s:e:", longOptions, &optionIndex);
data/stopmotion-0.8.5/src/presentation/frontends/nonguifrontend/nonguifrontend.cpp:223:9:  [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.
		out = getenv("PWD");
data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/exporttab.cpp:358:78:  [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.
	QString file = QFileDialog::getSaveFileName(this, tr("Choose output file"), getenv("PWD"));
data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/mainwindowgui.cpp:93: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.
	  lastVisitedDir(getenv("PWD")) {
data/stopmotion-0.8.5/src/test/fakefiles.cpp:151:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
char *RealOggEmptyJpg::getenv(const char *name) {
data/stopmotion-0.8.5/src/test/fakefiles.cpp:152: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.
	return delegate->getenv(name);
data/stopmotion-0.8.5/src/test/fakefiles.h:52:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *getenv(const char *name);
data/stopmotion-0.8.5/src/test/oomtestutil.cpp:48:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
char *getenv(const char *name);
data/stopmotion-0.8.5/src/test/oomtestutil.cpp:144:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *getenv(const char *name) {
data/stopmotion-0.8.5/src/test/oomtestutil.cpp:238:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
char *getenv(const char *name) {
data/stopmotion-0.8.5/src/test/oomtestutil.cpp:239:26:  [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.
	return getFileSystem()->getenv(name);
data/stopmotion-0.8.5/src/test/oomtestutil.h:48:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	virtual char* getenv(const char *name) = 0;
data/stopmotion-0.8.5/src/test/testhome.cpp:91:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
char *TestHome::getenv(const char *name) {
data/stopmotion-0.8.5/src/test/testhome.cpp:95: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.
	return delegate->getenv(name);
data/stopmotion-0.8.5/src/test/testhome.h:55:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *getenv(const char *name);
data/stopmotion-0.8.5/src/application/externalcommandwithtemporarydirectory.cpp:35: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 msg[100];
data/stopmotion-0.8.5/src/domain/animation/animation.cpp:295:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* fh = fopen(commandLogger.path(), "w");
data/stopmotion-0.8.5/src/domain/animation/frame.cpp:81: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).
	sound->open(file, *ErrorHandler::getThrower());
data/stopmotion-0.8.5/src/domain/animation/sound.cpp:42:13:  [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 Sound::open(WorkspaceFile& file, ErrorHandler& e) {
data/stopmotion-0.8.5/src/domain/animation/sound.cpp:47:6:  [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).
	af->open();
data/stopmotion-0.8.5/src/domain/animation/sound.h:47: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).
	void open(WorkspaceFile& file, ErrorHandler& e);
data/stopmotion-0.8.5/src/domain/domainfacade.cpp:353: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).
	FILE* log = fopen(wslf.path(), "a");
data/stopmotion-0.8.5/src/domain/domainfacade.cpp:364: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).
	FILE* log = fopen(filename, "r");
data/stopmotion-0.8.5/src/domain/undo/commandaddsound.cpp:84:13:  [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).
	soundCopy->open(wf, e);
data/stopmotion-0.8.5/src/domain/undo/filelogger.h:33: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 msg[400];
data/stopmotion-0.8.5/src/foundation/preferencestool.cpp:173: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 tmp[11] = {0};
data/stopmotion-0.8.5/src/foundation/preferencestool.cpp:193:12:  [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).
	int ret = atoi((char*)tmp);
data/stopmotion-0.8.5/src/foundation/preferencestool.cpp:220: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).
	bool open(const char* filename) {
data/stopmotion-0.8.5/src/foundation/preferencestool.cpp:221:7:  [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).
		f = fopen(filename, "w");
data/stopmotion-0.8.5/src/foundation/preferencestool.cpp:235: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 (!prefs.open(preferencesFile)
data/stopmotion-0.8.5/src/main.cpp:46: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 buffer[1024];
data/stopmotion-0.8.5/src/main.cpp:60: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 buffer[1024];
data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/framebar/framebar.cpp:528: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).
	preferencesMenu->open();
data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/framepreferencesmenu.cpp:89:28:  [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 FramePreferencesMenu::open() {
data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/framepreferencesmenu.h:78: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).
	void open();
data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/menuframe.cpp:53: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).
void MenuFrame::open( )
data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/menuframe.h:92: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).
	virtual void open();
data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/qtfrontend.cpp:177:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* fh = fopen(filePath, "r");
data/stopmotion-0.8.5/src/technical/audio/audioformat.h:40: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).
	virtual int open() = 0;
data/stopmotion-0.8.5/src/technical/audio/oggvorbis.cpp:63:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(file.path(), "r");
data/stopmotion-0.8.5/src/technical/audio/oggvorbis.cpp:96: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).
int OggVorbis::open() {
data/stopmotion-0.8.5/src/technical/audio/oggvorbis.cpp:97:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(filename.path(), "r");
data/stopmotion-0.8.5/src/technical/audio/oggvorbis.h:47:6:  [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).
	int open();
data/stopmotion-0.8.5/src/technical/projectserializer.cpp:192:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(newProjectFile, ".sto");
data/stopmotion-0.8.5/src/technical/projectserializer.h:33: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 buffer[100];
data/stopmotion-0.8.5/src/technical/util.cpp:186: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((fd = open(dev, O_RDONLY)) == -1) {
data/stopmotion-0.8.5/src/technical/util.cpp:232:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *src = fopen(srcFileName, "rb");
data/stopmotion-0.8.5/src/technical/util.cpp:238:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *dest = fopen(destFileName, "wb");
data/stopmotion-0.8.5/src/technical/util.cpp:245:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[4096];
data/stopmotion-0.8.5/src/technical/util.h:36: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 msg[100];
data/stopmotion-0.8.5/src/technical/util.h:43: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 buffer[1024];
data/stopmotion-0.8.5/src/test/fakefiles.cpp:57:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
FILE* RealOggEmptyJpg::fopen(const char* filename, const char* mode) {
data/stopmotion-0.8.5/src/test/fakefiles.cpp:66:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			return delegate->fopen("resources/click.test-sound", mode);
data/stopmotion-0.8.5/src/test/fakefiles.cpp:69: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).
	return delegate->fopen(filename, mode);
data/stopmotion-0.8.5/src/test/fakefiles.cpp:75:11:  [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).
			return fopen(filename, mode);
data/stopmotion-0.8.5/src/test/fakefiles.h:39: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).
	FILE* fopen(const char* filename, const char* mode);
data/stopmotion-0.8.5/src/test/hash.cpp:54: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 buffer[256];
data/stopmotion-0.8.5/src/test/oomtestutil.cpp:39:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
FILE* fopen(const char* filename, const char* mode);
data/stopmotion-0.8.5/src/test/oomtestutil.cpp:117: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).
	FILE* fopen(const char* filename, const char* mode) {
data/stopmotion-0.8.5/src/test/oomtestutil.cpp:202:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
FILE* fopen(const char* filename, const char* mode) {
data/stopmotion-0.8.5/src/test/oomtestutil.cpp:203:26:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	return getFileSystem()->fopen(filename, mode);
data/stopmotion-0.8.5/src/test/oomtestutil.h:37:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	virtual FILE* fopen(const char* filename, const char* mode) = 0;
data/stopmotion-0.8.5/src/test/testhome.cpp:53:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
FILE* TestHome::fopen(const char* filename, const char* mode) {
data/stopmotion-0.8.5/src/test/testhome.cpp:54: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).
	return delegate->fopen(filename, mode);
data/stopmotion-0.8.5/src/test/testhome.h:44: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).
	FILE* fopen(const char* filename, const char* mode);
data/stopmotion-0.8.5/src/test/testundo.cpp:285:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* fh = fopen(path, mode);
data/stopmotion-0.8.5/src/test/testundo.cpp:288: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).
		fh = fopen(path, mode);
data/stopmotion-0.8.5/src/test/testundo.cpp:510: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 lineBuffer[lineBufferSize];
data/stopmotion-0.8.5/src/test/testundo.cpp:576: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 tmpDirName[sizeof(tmpDirTemplate)];
data/stopmotion-0.8.5/src/test/texecutor.cpp:242: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 description[512];
data/stopmotion-0.8.5/src/test/texecutor.cpp:356: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 lineBuffer[lineBufferSize];
data/stopmotion-0.8.5/src/test/texecutor.cpp:382:13:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		logFile = tmpfile();
data/stopmotion-0.8.5/src/test/toggvorbis.cpp:39: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).
int OggVorbis::open() {
data/stopmotion-0.8.5/src/test/tstopmotionundo.cpp:59:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE* f = fopen(filename, "r");
data/stopmotion-0.8.5/src/test/tstopmotionundo.cpp:216: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).
		FILE* fh = fopen(path, "r");
data/stopmotion-0.8.5/src/test/tstopmotionundo.cpp:218:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char msg[500];
data/stopmotion-0.8.5/src/test/tstopmotionundo.cpp:229: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).
		FILE* fh = fopen(path, "r");
data/stopmotion-0.8.5/src/application/externalcommandwithtemporarydirectory.cpp:38:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(msg, reason, sizeof(msg) - 1);
data/stopmotion-0.8.5/src/domain/animation/animation.cpp:202:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(soundName, sc.c_str(), size);
data/stopmotion-0.8.5/src/domain/animation/frame.cpp:78:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(soundName, cs.c_str(), size);
data/stopmotion-0.8.5/src/domain/animation/sound.cpp:61:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(a, n.c_str(), size);
data/stopmotion-0.8.5/src/domain/animation/workspacefile.cpp:89:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(path, pathOut.c_str(), size);
data/stopmotion-0.8.5/src/domain/animation/workspacefile.cpp:178:4:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	p.read(fullPath, size);
data/stopmotion-0.8.5/src/domain/animation/workspacefile.cpp:230: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).
		size_t length = 1 + nameStart + strlen(other.namePart);
data/stopmotion-0.8.5/src/domain/animation/workspacefile.cpp:234:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(fullPath, other.fullPath, length);
data/stopmotion-0.8.5/src/domain/animation/workspacefile.cpp:320:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int size = strlen(filename) + 1;
data/stopmotion-0.8.5/src/domain/animation/workspacefile.cpp:322:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(fullPath, filename, size);
data/stopmotion-0.8.5/src/domain/undo/commandrenamesound.cpp:38:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int length = strlen(newName) + 1;
data/stopmotion-0.8.5/src/domain/undo/commandrenamesound.cpp:40:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(nn, newName, length);
data/stopmotion-0.8.5/src/domain/undo/executor.cpp:83: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).
		end = p + strlen(input);
data/stopmotion-0.8.5/src/domain/undo/executor.cpp:114: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).
		end = input + strlen(input);
data/stopmotion-0.8.5/src/domain/undo/random.cpp:127:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int n = strlen(characters) + (allowNulls? 1 : 0);
data/stopmotion-0.8.5/src/foundation/preferencestool.cpp:74: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).
	unsigned long length = strlen(s) + 1;
data/stopmotion-0.8.5/src/foundation/preferencestool.cpp:76:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(preferencesFile, s, length);
data/stopmotion-0.8.5/src/foundation/uiexception.cpp:28: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).
	size_t length = strlen(s);
data/stopmotion-0.8.5/src/foundation/uiexception.cpp:30:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buffer, s, length + 1);
data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/framebar/framebar.cpp:49:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const QImage image = imageReader.read();
data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/framebar/framebar.cpp:66:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        const QImage anotherImage = anotherImageReader.read();
data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/mainwindowgui.cpp:1075: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).
				lastDot? lastDot : name + strlen(name));
data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/qtfrontend.cpp:436: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).
			start.replace(index, (int) strlen("(DEFAULTPATH)"),
data/stopmotion-0.8.5/src/presentation/frontends/qtfrontend/qtfrontend.cpp:450: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).
			prepoll.replace(index, (int) strlen("(DEFAULTPATH)"),
data/stopmotion-0.8.5/src/technical/grabber/commandlinegrabber.cpp:34: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).
	if (!commandLine || strlen(commandLine) == 0) {
data/stopmotion-0.8.5/src/technical/grabber/commandlinegrabber.cpp:143: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).
			tmp.replace(index, (int) strlen("$IMAGEFILE"), string(filePath()));
data/stopmotion-0.8.5/src/technical/grabber/imagegrabber.cpp:26: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).
	size_t pathLen = strlen(filePath) + 1;
data/stopmotion-0.8.5/src/technical/grabber/imagegrabber.cpp:28:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(path, filePath, pathLen);
data/stopmotion-0.8.5/src/technical/projectserializer.cpp:187: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).
	const size_t len = strlen(filename);
data/stopmotion-0.8.5/src/technical/projectserializer.cpp:252: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).
		nameEnd = filename + strlen(filename);
data/stopmotion-0.8.5/src/technical/projectserializer.cpp:501: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).
		size_t len = strlen(filename);
data/stopmotion-0.8.5/src/technical/projectserializer.cpp:503:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(copy, filename, len + 1);
data/stopmotion-0.8.5/src/technical/video/videoencoder.cpp:72:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	startCommand = new char[strlen(command) + 1];
data/stopmotion-0.8.5/src/technical/video/videoencoder.cpp:83: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).
	stopCommand = new char[strlen(command) + 1];
data/stopmotion-0.8.5/src/technical/video/videoencoder.cpp:94: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).
	outputFile = new char[strlen(file) + 1];
data/stopmotion-0.8.5/src/technical/video/videofactory.cpp:79: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 replaceLength = strlen(replaceWith);
data/stopmotion-0.8.5/src/technical/video/videofactory.cpp:81:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		text.replace(index, strlen(searchFor), replaceWith);
data/stopmotion-0.8.5/src/test/testhome.cpp:36:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(fakeHome, tmpdir.c_str(), bufferSize);
data/stopmotion-0.8.5/src/test/testundo.cpp:577:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tmpDirName, tmpDirTemplate, sizeof(tmpDirName));
data/stopmotion-0.8.5/src/test/texecutor.cpp:189:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(newStr, str, strAllocLen);

ANALYSIS SUMMARY:

Hits = 152
Lines analyzed = 26612 in approximately 0.82 seconds (32567 lines/second)
Physical Source Lines of Code (SLOC) = 15976
Hits@level = [0]  38 [1]  40 [2]  62 [3]  19 [4]  31 [5]   0
Hits@level+ = [0+] 190 [1+] 152 [2+] 112 [3+]  50 [4+]  31 [5+]   0
Hits/KSLOC@level+ = [0+] 11.8928 [1+] 9.51427 [2+] 7.01052 [3+] 3.12969 [4+] 1.94041 [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.