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/simplescreenrecorder-0.4.2/glinject/GLInject.cpp
Examining data/simplescreenrecorder-0.4.2/glinject/GLInject.h
Examining data/simplescreenrecorder-0.4.2/glinject/GLXFrameGrabber.cpp
Examining data/simplescreenrecorder-0.4.2/glinject/GLXFrameGrabber.h
Examining data/simplescreenrecorder-0.4.2/glinject/Global.h
Examining data/simplescreenrecorder-0.4.2/glinject/Hook.cpp
Examining data/simplescreenrecorder-0.4.2/glinject/SSRVideoStreamWriter.cpp
Examining data/simplescreenrecorder-0.4.2/glinject/SSRVideoStreamWriter.h
Examining data/simplescreenrecorder-0.4.2/glinject/ShmStructs.h
Examining data/simplescreenrecorder-0.4.2/glinject/elfhacks.c
Examining data/simplescreenrecorder-0.4.2/glinject/elfhacks.h
Examining data/simplescreenrecorder-0.4.2/src/AV/AVWrapper.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/AVWrapper.h
Examining data/simplescreenrecorder-0.4.2/src/AV/FastResampler.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/FastResampler.h
Examining data/simplescreenrecorder-0.4.2/src/AV/FastResampler_FirFilter.h
Examining data/simplescreenrecorder-0.4.2/src/AV/FastResampler_FirFilter_Fallback.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/FastResampler_FirFilter_SSE2.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/FastScaler.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/FastScaler.h
Examining data/simplescreenrecorder-0.4.2/src/AV/FastScaler_Convert.h
Examining data/simplescreenrecorder-0.4.2/src/AV/FastScaler_Convert_Fallback.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/FastScaler_Convert_SSSE3.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/FastScaler_Scale.h
Examining data/simplescreenrecorder-0.4.2/src/AV/FastScaler_Scale_Fallback.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/FastScaler_Scale_Generic.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/FastScaler_Scale_Generic.h
Examining data/simplescreenrecorder-0.4.2/src/AV/FastScaler_Scale_SSSE3.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/Input/ALSAInput.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/Input/ALSAInput.h
Examining data/simplescreenrecorder-0.4.2/src/AV/Input/GLInjectInput.h
Examining data/simplescreenrecorder-0.4.2/src/AV/Input/JACKInput.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/Input/JACKInput.h
Examining data/simplescreenrecorder-0.4.2/src/AV/Input/PulseAudioInput.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/Input/PulseAudioInput.h
Examining data/simplescreenrecorder-0.4.2/src/AV/Input/SSRVideoStream.h
Examining data/simplescreenrecorder-0.4.2/src/AV/Input/SSRVideoStreamReader.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/Input/SSRVideoStreamReader.h
Examining data/simplescreenrecorder-0.4.2/src/AV/Input/SSRVideoStreamWatcher.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/Input/SSRVideoStreamWatcher.h
Examining data/simplescreenrecorder-0.4.2/src/AV/Input/X11Input.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/Input/X11Input.h
Examining data/simplescreenrecorder-0.4.2/src/AV/Input/GLInjectInput.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/Output/AudioEncoder.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/Output/AudioEncoder.h
Examining data/simplescreenrecorder-0.4.2/src/AV/Output/BaseEncoder.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/Output/BaseEncoder.h
Examining data/simplescreenrecorder-0.4.2/src/AV/Output/Muxer.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/Output/Muxer.h
Examining data/simplescreenrecorder-0.4.2/src/AV/Output/OutputManager.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/Output/OutputManager.h
Examining data/simplescreenrecorder-0.4.2/src/AV/Output/OutputSettings.h
Examining data/simplescreenrecorder-0.4.2/src/AV/Output/SyncDiagram.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/Output/SyncDiagram.h
Examining data/simplescreenrecorder-0.4.2/src/AV/Output/Synchronizer.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/Output/Synchronizer.h
Examining data/simplescreenrecorder-0.4.2/src/AV/Output/VideoEncoder.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/Output/VideoEncoder.h
Examining data/simplescreenrecorder-0.4.2/src/AV/Output/X264Presets.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/Output/X264Presets.h
Examining data/simplescreenrecorder-0.4.2/src/AV/SampleCast.h
Examining data/simplescreenrecorder-0.4.2/src/AV/SimpleSynth.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/SimpleSynth.h
Examining data/simplescreenrecorder-0.4.2/src/AV/SourceSink.cpp
Examining data/simplescreenrecorder-0.4.2/src/AV/SourceSink.h
Examining data/simplescreenrecorder-0.4.2/src/Benchmark.cpp
Examining data/simplescreenrecorder-0.4.2/src/Benchmark.h
Examining data/simplescreenrecorder-0.4.2/src/GUI/AudioPreviewer.cpp
Examining data/simplescreenrecorder-0.4.2/src/GUI/AudioPreviewer.h
Examining data/simplescreenrecorder-0.4.2/src/GUI/DialogGLInject.cpp
Examining data/simplescreenrecorder-0.4.2/src/GUI/DialogGLInject.h
Examining data/simplescreenrecorder-0.4.2/src/GUI/DialogRecordSchedule.cpp
Examining data/simplescreenrecorder-0.4.2/src/GUI/DialogRecordSchedule.h
Examining data/simplescreenrecorder-0.4.2/src/GUI/ElidedLabel.cpp
Examining data/simplescreenrecorder-0.4.2/src/GUI/ElidedLabel.h
Examining data/simplescreenrecorder-0.4.2/src/GUI/HiddenScrollArea.cpp
Examining data/simplescreenrecorder-0.4.2/src/GUI/HiddenScrollArea.h
Examining data/simplescreenrecorder-0.4.2/src/GUI/HotkeyListener.cpp
Examining data/simplescreenrecorder-0.4.2/src/GUI/HotkeyListener.h
Examining data/simplescreenrecorder-0.4.2/src/GUI/Icons.cpp
Examining data/simplescreenrecorder-0.4.2/src/GUI/Icons.h
Examining data/simplescreenrecorder-0.4.2/src/GUI/MainWindow.cpp
Examining data/simplescreenrecorder-0.4.2/src/GUI/MainWindow.h
Examining data/simplescreenrecorder-0.4.2/src/GUI/PageDone.cpp
Examining data/simplescreenrecorder-0.4.2/src/GUI/PageDone.h
Examining data/simplescreenrecorder-0.4.2/src/GUI/PageInput.cpp
Examining data/simplescreenrecorder-0.4.2/src/GUI/PageInput.h
Examining data/simplescreenrecorder-0.4.2/src/GUI/PageOutput.cpp
Examining data/simplescreenrecorder-0.4.2/src/GUI/PageOutput.h
Examining data/simplescreenrecorder-0.4.2/src/GUI/PageRecord.cpp
Examining data/simplescreenrecorder-0.4.2/src/GUI/PageRecord.h
Examining data/simplescreenrecorder-0.4.2/src/GUI/PageWelcome.cpp
Examining data/simplescreenrecorder-0.4.2/src/GUI/PageWelcome.h
Examining data/simplescreenrecorder-0.4.2/src/GUI/ProfileBox.cpp
Examining data/simplescreenrecorder-0.4.2/src/GUI/ProfileBox.h
Examining data/simplescreenrecorder-0.4.2/src/GUI/VideoPreviewer.cpp
Examining data/simplescreenrecorder-0.4.2/src/GUI/VideoPreviewer.h
Examining data/simplescreenrecorder-0.4.2/src/GUI/WidgetRack.cpp
Examining data/simplescreenrecorder-0.4.2/src/GUI/WidgetRack.h
Examining data/simplescreenrecorder-0.4.2/src/Global.h
Examining data/simplescreenrecorder-0.4.2/src/Main.cpp
Examining data/simplescreenrecorder-0.4.2/src/NVidia.cpp
Examining data/simplescreenrecorder-0.4.2/src/NVidia.h
Examining data/simplescreenrecorder-0.4.2/src/common/CPUFeatures.cpp
Examining data/simplescreenrecorder-0.4.2/src/common/CPUFeatures.h
Examining data/simplescreenrecorder-0.4.2/src/common/CommandLineOptions.cpp
Examining data/simplescreenrecorder-0.4.2/src/common/CommandLineOptions.h
Examining data/simplescreenrecorder-0.4.2/src/common/Dialogs.cpp
Examining data/simplescreenrecorder-0.4.2/src/common/Dialogs.h
Examining data/simplescreenrecorder-0.4.2/src/common/EnumStrings.h
Examining data/simplescreenrecorder-0.4.2/src/common/LockFreeMessageQueue.h
Examining data/simplescreenrecorder-0.4.2/src/common/Logger.cpp
Examining data/simplescreenrecorder-0.4.2/src/common/Logger.h
Examining data/simplescreenrecorder-0.4.2/src/common/MutexDataPair.h
Examining data/simplescreenrecorder-0.4.2/src/common/QueueBuffer.h
Examining data/simplescreenrecorder-0.4.2/src/common/TempBuffer.h

FINAL RESULTS:

data/simplescreenrecorder-0.4.2/glinject/SSRVideoStreamWriter.cpp:20:17:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	ssize_t size = readlink("/proc/self/exe", temp.data(), temp.size());
data/simplescreenrecorder-0.4.2/glinject/SSRVideoStreamWriter.cpp:99:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		if(chmod(m_channel_directory.c_str(), (relax_permissions)? 0777 : 0700) == -1) {
data/simplescreenrecorder-0.4.2/src/AV/Input/SSRVideoStreamWatcher.cpp:110:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		if(chmod(m_channel_directory.c_str(), (m_relax_permissions)? 0777 : 0700) == -1) {
data/simplescreenrecorder-0.4.2/glinject/Hook.cpp:254:16:  [4] (shell) execl:
  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.
extern "C" int execl(const char* filename, const char* arg, ...) {
data/simplescreenrecorder-0.4.2/glinject/Hook.cpp:269:16:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
extern "C" int execlp(const char* filename, const char* arg, ...) {
data/simplescreenrecorder-0.4.2/glinject/Hook.cpp:284:16:  [4] (shell) execle:
  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.
extern "C" int execle(const char* filename, const char* arg, ...) {
data/simplescreenrecorder-0.4.2/glinject/Hook.cpp:300:16:  [4] (shell) execv:
  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.
extern "C" int execv(const char* filename, char* const argv[]) {
data/simplescreenrecorder-0.4.2/glinject/Hook.cpp:314:16:  [4] (shell) execvp:
  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.
extern "C" int execvp(const char* filename, char* const argv[]) {
data/simplescreenrecorder-0.4.2/src/AV/Input/GLInjectInput.cpp:116:11:  [4] (shell) execl:
  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.
				res = execl("/bin/sh", "/bin/sh", "-c", command, (char*) NULL);
data/simplescreenrecorder-0.4.2/src/Main.cpp:57:33:  [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.
	if(translator_qt.load(QLocale::system(), "qt", "_", QLibraryInfo::location(QLibraryInfo::TranslationsPath))) {
data/simplescreenrecorder-0.4.2/src/Main.cpp:63:34:  [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.
	if(translator_ssr.load(QLocale::system(), "simplescreenrecorder", "_", QCoreApplication::applicationDirPath() + "/translations")) {
data/simplescreenrecorder-0.4.2/src/Main.cpp:65:41:  [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.
	} else if(translator_ssr.load(QLocale::system(), "simplescreenrecorder", "_", GetApplicationSystemDir("translations"))) {
data/simplescreenrecorder-0.4.2/glinject/GLXFrameGrabber.cpp:139:31:  [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 *ssr_glx_debug = getenv("SSR_GLX_DEBUG");
data/simplescreenrecorder-0.4.2/glinject/GLXFrameGrabber.cpp:162:29:  [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 *ssr_channel = getenv("SSR_CHANNEL");
data/simplescreenrecorder-0.4.2/glinject/SSRVideoStreamWriter.cpp:73:40:  [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 *ssr_stream_relax_permissions = getenv("SSR_STREAM_RELAX_PERMISSIONS");
data/simplescreenrecorder-0.4.2/src/Global.h:115:12:  [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 *v = getenv("XDG_SESSION_TYPE");
data/simplescreenrecorder-0.4.2/src/Global.h:122:12:  [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 *d = getenv("DISPLAY");
data/simplescreenrecorder-0.4.2/glinject/GLXFrameGrabber.cpp:48:23:  [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).
	unsigned int major = atoi(str);
data/simplescreenrecorder-0.4.2/glinject/GLXFrameGrabber.cpp:56:23:  [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).
	unsigned int minor = atoi(str + dot1 + 1);
data/simplescreenrecorder-0.4.2/glinject/GLXFrameGrabber.cpp:140:31:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if(ssr_glx_debug != NULL && atoi(ssr_glx_debug) > 0) {
data/simplescreenrecorder-0.4.2/glinject/SSRVideoStreamWriter.cpp:74:46:  [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).
		if(ssr_stream_relax_permissions != NULL && atoi(ssr_stream_relax_permissions) > 0) {
data/simplescreenrecorder-0.4.2/glinject/SSRVideoStreamWriter.cpp:114: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).
		fd.m_fd_frame = open(fd.m_filename_frame.c_str(), O_RDWR | O_CREAT | O_EXCL | O_CLOEXEC, (relax_permissions)? 0666 : 0600);
data/simplescreenrecorder-0.4.2/glinject/SSRVideoStreamWriter.cpp:126: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).
	m_fd_main = open(m_filename_main.c_str(), O_RDWR | O_CREAT | O_EXCL | O_CLOEXEC, (relax_permissions)? 0666 : 0600);
data/simplescreenrecorder-0.4.2/src/AV/FastScaler_Scale_Generic.cpp:31:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(out_data, in_data, in_stride * in_h);
data/simplescreenrecorder-0.4.2/src/AV/FastScaler_Scale_Generic.cpp:34:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(out_data, in_data, in_w * 4);
data/simplescreenrecorder-0.4.2/src/AV/Input/GLInjectInput.cpp:82: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).
				devnull = open("/dev/null", O_RDWR);
data/simplescreenrecorder-0.4.2/src/AV/Input/PulseAudioInput.cpp:367:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(buffer.data() + p, data, bytes - bytes_left);
data/simplescreenrecorder-0.4.2/src/AV/Input/PulseAudioInput.cpp:405:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(buffer.data(), (uint8_t*) data + bytes - bytes_left, bytes_left);
data/simplescreenrecorder-0.4.2/src/AV/Input/SSRVideoStreamReader.cpp:67: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).
	m_fd_main = open(m_filename_main.c_str(), O_RDWR | O_CLOEXEC);
data/simplescreenrecorder-0.4.2/src/AV/Input/SSRVideoStreamReader.cpp:90: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).
		fd.m_fd_frame = open(fd.m_filename_frame.c_str(), O_RDWR | O_CLOEXEC);
data/simplescreenrecorder-0.4.2/src/AV/Output/AudioEncoder.cpp:243:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(packet->GetPacket()->data, m_temp_buffer.data(), bytes_encoded);
data/simplescreenrecorder-0.4.2/src/AV/Output/Synchronizer.cpp:850:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
						memcpy(data_out, data_in, m_output_format->m_audio_frame_size * m_output_format->m_audio_channels * sizeof(float));
data/simplescreenrecorder-0.4.2/src/AV/Output/VideoEncoder.cpp:273:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(packet->GetPacket()->data, m_temp_buffer.data(), bytes_encoded);
data/simplescreenrecorder-0.4.2/src/GUI/HotkeyListener.cpp:133:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char mask[(XI_LASTEVENT + 7) / 8] = {0};
data/simplescreenrecorder-0.4.2/src/GUI/HotkeyListener.cpp:187:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char mask[(XI_LASTEVENT + 7) / 8] = {0};
data/simplescreenrecorder-0.4.2/src/GUI/PageRecord.cpp:1439: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).
			int fd = open(new_file.constData(), O_WRONLY | O_CREAT | O_CLOEXEC, 0600);
data/simplescreenrecorder-0.4.2/src/GUI/PageWelcome.cpp:116: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 | QIODevice::Text))
data/simplescreenrecorder-0.4.2/src/common/Logger.cpp:53: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).
	m_log_file.open(QFile::WriteOnly | QFile::Append | QFile::Text | QFile::Unbuffered);
data/simplescreenrecorder-0.4.2/src/common/QueueBuffer.h:54:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(new_buffer, m_buffer + m_read_pos, sizeof(T) * (m_write_pos - m_read_pos));
data/simplescreenrecorder-0.4.2/src/common/QueueBuffer.h:72:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(target, data, sizeof(T) * count);
data/simplescreenrecorder-0.4.2/src/common/QueueBuffer.h:85:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data, GetData(), sizeof(T) * count);
data/simplescreenrecorder-0.4.2/src/common/TempBuffer.h:53:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(temp, m_data, sizeof(T) * m_size);
data/simplescreenrecorder-0.4.2/glinject/SSRVideoStreamWriter.cpp:253: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(m_next_frame_time - timestamp);
data/simplescreenrecorder-0.4.2/src/AV/Input/GLInjectInput.cpp:140:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			num = read(feedback_pipe[0], &buf, 1);
data/simplescreenrecorder-0.4.2/src/AV/Input/GLInjectInput.cpp:325:6:  [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(20000);
data/simplescreenrecorder-0.4.2/src/AV/Input/GLInjectInput.cpp:334:6:  [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(20000);
data/simplescreenrecorder-0.4.2/src/AV/Input/JACKInput.cpp:265: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(20000);
data/simplescreenrecorder-0.4.2/src/AV/Input/SSRVideoStreamWatcher.cpp:204:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if(read(m_fd_notify, buffer.data(), buffer.size()) != (ssize_t) buffer.size()) {
data/simplescreenrecorder-0.4.2/src/AV/Input/X11Input.cpp:451: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(20000);
data/simplescreenrecorder-0.4.2/src/AV/Input/X11Input.cpp:457:6:  [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(20000);
data/simplescreenrecorder-0.4.2/src/AV/Input/X11Input.cpp:460:6:  [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(wait);
data/simplescreenrecorder-0.4.2/src/AV/Output/BaseEncoder.cpp:206: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(20000);
data/simplescreenrecorder-0.4.2/src/AV/Output/Muxer.cpp:366: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(20000);
data/simplescreenrecorder-0.4.2/src/AV/Output/OutputManager.cpp:335:3:  [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(200000);
data/simplescreenrecorder-0.4.2/src/AV/Output/OutputManager.cpp:372: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(200000);
data/simplescreenrecorder-0.4.2/src/AV/Output/Synchronizer.cpp:909:4:  [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(20000);
data/simplescreenrecorder-0.4.2/src/GUI/PageRecord.cpp:743:3:  [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(200000);
data/simplescreenrecorder-0.4.2/src/GUI/PageRecord.cpp:982:3:  [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(20000);
data/simplescreenrecorder-0.4.2/src/GUI/PageRecord.cpp:1327:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bytes = read(0, buffer.data(), buffer.size());
data/simplescreenrecorder-0.4.2/src/common/Logger.cpp:121:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			num = read(m_capture_pipe[0], buffer.Reserve(PIPE_BUF), PIPE_BUF);

ANALYSIS SUMMARY:

Hits = 60
Lines analyzed = 21850 in approximately 0.62 seconds (35102 lines/second)
Physical Source Lines of Code (SLOC) = 15245
Hits@level = [0]   3 [1]  18 [2]  25 [3]   5 [4]   9 [5]   3
Hits@level+ = [0+]  63 [1+]  60 [2+]  42 [3+]  17 [4+]  12 [5+]   3
Hits/KSLOC@level+ = [0+] 4.1325 [1+] 3.93572 [2+] 2.755 [3+] 1.11512 [4+] 0.787143 [5+] 0.196786
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.