The following issues were found
plugins/linux-v4l2/linux-v4l2.c
1 issues
Line: 20
#include <obs-module.h>
#include <util/platform.h>
OBS_DECLARE_MODULE()
OBS_MODULE_USE_DEFAULT_LOCALE("linux-v4l2", "en-US")
MODULE_EXPORT const char *obs_module_description(void)
{
return "Video4Linux2(V4L2) sources/virtual camera";
}
Reported by Cppcheck.
plugins/linux-v4l2/v4l2-helpers.c
1 issues
Line: 297
Column: 2
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
if (v4l2_ioctl(dev, VIDIOC_ENUM_DV_TIMINGS, &iter) < 0)
return -1;
memcpy(dvt, &iter.timings, sizeof(struct v4l2_dv_timings));
return 0;
#endif
}
Reported by FlawFinder.
plugins/mac-avcapture/left-right.hpp
1 issues
plugins/mac-capture/plugin-main.c
1 issues
Line: 3
#include <obs-module.h>
OBS_DECLARE_MODULE()
OBS_MODULE_USE_DEFAULT_LOCALE("mac-capture", "en-US")
MODULE_EXPORT const char *obs_module_description(void)
{
return "macOS audio input/output and window/display capture";
}
Reported by Cppcheck.
plugins/mac-syphon/plugin-main.c
1 issues
Line: 3
#include <obs-module.h>
OBS_DECLARE_MODULE()
OBS_MODULE_USE_DEFAULT_LOCALE("syphon", "en-US")
MODULE_EXPORT const char *obs_module_description(void)
{
return "Syphon frame sharing";
}
Reported by Cppcheck.
plugins/obs-ffmpeg/obs-ffmpeg-audio-encoders.c
1 issues
Line: 360
Column: 3
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
struct enc_encoder *enc = data;
for (size_t i = 0; i < enc->audio_planes; i++)
memcpy(enc->samples[i], frame->data[i], enc->frame_size_bytes);
return do_encode(enc, packet, received_packet);
}
static void enc_defaults(obs_data_t *settings)
Reported by FlawFinder.
plugins/obs-ffmpeg/obs-ffmpeg-mux.c
1 issues
Line: 426
Column: 2
CWE codes:
119
120
Suggestion:
Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length
static void signal_failure(struct ffmpeg_muxer *stream)
{
char error[1024];
int ret;
int code;
size_t len;
Reported by FlawFinder.
plugins/obs-ffmpeg/obs-ffmpeg.c
1 issues
Line: 15
#include <util/windows/win-version.h>
#endif
OBS_DECLARE_MODULE()
OBS_MODULE_USE_DEFAULT_LOCALE("obs-ffmpeg", "en-US")
MODULE_EXPORT const char *obs_module_description(void)
{
return "FFmpeg based sources/outputs/encoders";
}
Reported by Cppcheck.
plugins/obs-filters/async-delay-filter.c
1 issues
Line: 225
Column: 2
CWE codes:
120
Suggestion:
Make sure destination can always hold the source data
return NULL;
circlebuf_pop_front(&filter->audio_frames, NULL, sizeof(cached));
memcpy(&filter->audio_output, &cached, sizeof(cached));
if (!filter->audio_delay_reached)
filter->audio_delay_reached = true;
return &filter->audio_output;
Reported by FlawFinder.
plugins/obs-filters/obs-filters.c
1 issues
Line: 4
#include <obs-module.h>
#include "obs-filters-config.h"
OBS_DECLARE_MODULE()
OBS_MODULE_USE_DEFAULT_LOCALE("obs-filters", "en-US")
MODULE_EXPORT const char *obs_module_description(void)
{
return "OBS core filters";
}
Reported by Cppcheck.