SDL2-2.30.3-1.fc41
List of Defects
Error: GCC_ANALYZER_WARNING (CWE-457): [#def1]
SDL2-2.30.3-build/SDL2-2.30.3/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-UbiB13/src.c: scope_hint: In function ‘main’
SDL2-2.30.3-build/SDL2-2.30.3/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-UbiB13/src.c:7:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘display’
Error: CLANG_WARNING: [#def2]
SDL2-2.30.3-build/SDL2-2.30.3/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-UbiB13/src.c:7:13: warning[core.CallAndMessage]: 1st function call argument is an uninitialized value
Error: GCC_ANALYZER_WARNING (CWE-688): [#def3]
SDL2-2.30.3-build/SDL2-2.30.3/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-YkQzGR/src.c: scope_hint: In function ‘main’
SDL2-2.30.3-build/SDL2-2.30.3/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-YkQzGR/src.c:5:19: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected
SDL2-2.30.3-build/SDL2-2.30.3/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-YkQzGR/src.c:3: included_from: Included from here.
/usr/include/semaphore.h:63:12: note: argument 2 of ‘sem_timedwait’ must be non-null
Error: CLANG_WARNING: [#def4]
SDL2-2.30.3-build/SDL2-2.30.3/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-YkQzGR/src.c:5:19: warning[core.NonNullParamChecker]: Null pointer passed to 1st parameter expecting 'nonnull'
Error: GCC_ANALYZER_WARNING (CWE-457): [#def5]
SDL2-2.30.3-build/SDL2-2.30.3/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-mysQSm/src.c: scope_hint: In function ‘main’
SDL2-2.30.3-build/SDL2-2.30.3/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-mysQSm/src.c:5:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘y’
Error: CLANG_WARNING: [#def6]
SDL2-2.30.3-build/SDL2-2.30.3/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-mysQSm/src.c:5:9: warning[core.CallAndMessage]: 2nd function call argument is an uninitialized value
Error: CPPCHECK_WARNING: [#def7]
SDL2-2.30.3-build/SDL2-2.30.3/src/SDL.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def8]
SDL2-2.30.3-build/SDL2-2.30.3/src/SDL_assert.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def9]
SDL2-2.30.3-build/SDL2-2.30.3/src/SDL_dataqueue.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def10]
SDL2-2.30.3-build/SDL2-2.30.3/src/SDL_hints.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def11]
SDL2-2.30.3-build/SDL2-2.30.3/src/SDL_log.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def12]
SDL2-2.30.3-build/SDL2-2.30.3/src/audio/SDL_audio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def13]
SDL2-2.30.3-build/SDL2-2.30.3/src/audio/SDL_audiocvt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def14]
SDL2-2.30.3-build/SDL2-2.30.3/src/audio/SDL_audiocvt.c:823:9: warning[deadcode.DeadStores]: Value stored to 'src_channels' is never read
# 821|
# 822| cvt->len_ratio = (cvt->len_ratio * dst_channels) / src_channels;
# 823|-> src_channels = dst_channels;
# 824| }
# 825|
Error: CPPCHECK_WARNING: [#def15]
SDL2-2.30.3-build/SDL2-2.30.3/src/audio/SDL_audiodev.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def16]
SDL2-2.30.3-build/SDL2-2.30.3/src/audio/SDL_wave.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def17]
SDL2-2.30.3-build/SDL2-2.30.3/src/audio/alsa/SDL_alsa_audio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def18]
SDL2-2.30.3-build/SDL2-2.30.3/src/audio/dsp/SDL_dspaudio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def19]
SDL2-2.30.3-build/SDL2-2.30.3/src/audio/jack/SDL_jackaudio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def20]
SDL2-2.30.3-build/SDL2-2.30.3/src/audio/pipewire/SDL_pipewire.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def21]
SDL2-2.30.3-build/SDL2-2.30.3/src/audio/pipewire/SDL_pipewire.c:305: error[uninitvar]: Uninitialized variable: n->id
# 303| /* See if the node is already in the list */
# 304| spa_list_for_each (n, &hotplug_io_list, link) {
# 305|-> if (n->id == node->id) {
# 306| ret = SDL_FALSE;
# 307| goto dup_found;
Error: CPPCHECK_WARNING (CWE-457): [#def22]
SDL2-2.30.3-build/SDL2-2.30.3/src/audio/pipewire/SDL_pipewire.c:329: error[uninitvar]: Uninitialized variable: n->id
# 327| /* Find and remove the node from the list */
# 328| spa_list_for_each_safe (n, temp, &hotplug_io_list, link) {
# 329|-> if (n->id == id) {
# 330| spa_list_remove(&n->link);
# 331|
Error: CPPCHECK_WARNING (CWE-457): [#def23]
SDL2-2.30.3-build/SDL2-2.30.3/src/audio/pipewire/SDL_pipewire.c:350: error[uninitvar]: Uninitialized variable: n->path
# 348| /* Find and move the default nodes to the beginning of the list */
# 349| spa_list_for_each_safe (n, temp, &hotplug_io_list, link) {
# 350|-> if (pipewire_default_sink_id && SDL_strcmp(n->path, pipewire_default_sink_id) == 0) {
# 351| default_sink = n;
# 352| spa_list_remove(&n->link);
Error: CPPCHECK_WARNING (CWE-457): [#def24]
SDL2-2.30.3-build/SDL2-2.30.3/src/audio/pipewire/SDL_pipewire.c:374: error[uninitvar]: Uninitialized variables: n.id, n.is_capture, n.spec, n.name, n.path
# 372| spa_list_for_each_safe (n, temp, &hotplug_io_list, link) {
# 373| spa_list_remove(&n->link);
# 374|-> SDL_free(n);
# 375| }
# 376| }
Error: CPPCHECK_WARNING (CWE-457): [#def25]
SDL2-2.30.3-build/SDL2-2.30.3/src/audio/pipewire/SDL_pipewire.c:382: error[uninitvar]: Uninitialized variable: n->id
# 380| struct io_node *n, *temp;
# 381| spa_list_for_each_safe (n, temp, &hotplug_io_list, link) {
# 382|-> if (n->id == id) {
# 383| return n;
# 384| }
Error: CPPCHECK_WARNING (CWE-457): [#def26]
SDL2-2.30.3-build/SDL2-2.30.3/src/audio/pipewire/SDL_pipewire.c:393: error[uninitvar]: Uninitialized variable: n->path
# 391| struct io_node *n, *temp;
# 392| spa_list_for_each_safe (n, temp, &hotplug_io_list, link) {
# 393|-> if (SDL_strcmp(n->path, path) == 0) {
# 394| return n;
# 395| }
Error: CPPCHECK_WARNING (CWE-457): [#def27]
SDL2-2.30.3-build/SDL2-2.30.3/src/audio/pipewire/SDL_pipewire.c:423: error[uninitvar]: Uninitialized variable: node->id
# 421|
# 422| spa_list_for_each_safe (node, temp, &hotplug_pending_list, link) {
# 423|-> if (node->id == id) {
# 424| node_object_destroy(node);
# 425| }
Error: CPPCHECK_WARNING (CWE-457): [#def28]
SDL2-2.30.3-build/SDL2-2.30.3/src/audio/pipewire/SDL_pipewire.c:434: error[uninitvar]: Uninitialized variables: node.link, node.id, node.seq, node.persist, node.userdata, node.proxy, node.node_listener, node.core_listener
# 432|
# 433| spa_list_for_each_safe (node, temp, &hotplug_pending_list, link) {
# 434|-> node_object_destroy(node);
# 435| }
# 436| }
Error: CPPCHECK_WARNING (CWE-457): [#def29]
SDL2-2.30.3-build/SDL2-2.30.3/src/audio/pipewire/SDL_pipewire.c:854: error[uninitvar]: Uninitialized variable: io->is_capture
# 852|
# 853| spa_list_for_each (io, &hotplug_io_list, link) {
# 854|-> SDL_AddAudioDevice(io->is_capture, io->name, &io->spec, PW_ID_TO_HANDLE(io->id));
# 855| }
# 856|
Error: CPPCHECK_WARNING: [#def30]
SDL2-2.30.3-build/SDL2-2.30.3/src/audio/pulseaudio/SDL_pulseaudio.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def31]
SDL2-2.30.3-build/SDL2-2.30.3/src/core/linux/SDL_dbus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-664): [#def32]
SDL2-2.30.3-build/SDL2-2.30.3/src/core/linux/SDL_dbus.c:220: error[va_list_usedBeforeStarted]: va_list 'ap_reply' used before va_start() was called.
# 218| int firstarg;
# 219| va_list ap_reply;
# 220|-> va_copy(ap_reply, ap); /* copy the arg list so we don't compete with D-Bus for it */
# 221| firstarg = va_arg(ap, int);
# 222| if ((firstarg == DBUS_TYPE_INVALID) || dbus.message_append_args_valist(msg, firstarg, ap)) {
Error: CPPCHECK_WARNING (CWE-664): [#def33]
SDL2-2.30.3-build/SDL2-2.30.3/src/core/linux/SDL_dbus.c:226: error[va_list_usedBeforeStarted]: va_list 'ap_reply' used before va_start() was called.
# 224| if (reply) {
# 225| /* skip any input args, get to output args. */
# 226|-> while ((firstarg = va_arg(ap_reply, int)) != DBUS_TYPE_INVALID) {
# 227| /* we assume D-Bus already validated all this. */
# 228| {
Error: CPPCHECK_WARNING (CWE-664): [#def34]
SDL2-2.30.3-build/SDL2-2.30.3/src/core/linux/SDL_dbus.c:229: error[va_list_usedBeforeStarted]: va_list 'ap_reply' used before va_start() was called.
# 227| /* we assume D-Bus already validated all this. */
# 228| {
# 229|-> void *dumpptr = va_arg(ap_reply, void *);
# 230| (void)dumpptr;
# 231| }
Error: CPPCHECK_WARNING (CWE-664): [#def35]
SDL2-2.30.3-build/SDL2-2.30.3/src/core/linux/SDL_dbus.c:234: error[va_list_usedBeforeStarted]: va_list 'ap_reply' used before va_start() was called.
# 232| if (firstarg == DBUS_TYPE_ARRAY) {
# 233| {
# 234|-> const int dumpint = va_arg(ap_reply, int);
# 235| (void)dumpint;
# 236| }
Error: CPPCHECK_WARNING (CWE-664): [#def36]
SDL2-2.30.3-build/SDL2-2.30.3/src/core/linux/SDL_dbus.c:239: error[va_list_usedBeforeStarted]: va_list 'ap_reply' used before va_start() was called.
# 237| }
# 238| }
# 239|-> firstarg = va_arg(ap_reply, int);
# 240| if ((firstarg == DBUS_TYPE_INVALID) || dbus.message_get_args_valist(reply, NULL, firstarg, ap_reply)) {
# 241| retval = SDL_TRUE;
Error: CPPCHECK_WARNING (CWE-664): [#def37]
SDL2-2.30.3-build/SDL2-2.30.3/src/core/linux/SDL_dbus.c:240: error[va_list_usedBeforeStarted]: va_list 'ap_reply' used before va_start() was called.
# 238| }
# 239| firstarg = va_arg(ap_reply, int);
# 240|-> if ((firstarg == DBUS_TYPE_INVALID) || dbus.message_get_args_valist(reply, NULL, firstarg, ap_reply)) {
# 241| retval = SDL_TRUE;
# 242| }
Error: CPPCHECK_WARNING (CWE-664): [#def38]
SDL2-2.30.3-build/SDL2-2.30.3/src/core/linux/SDL_dbus.c:246: error[va_list_usedBeforeStarted]: va_list 'ap_reply' used before va_start() was called.
# 244| }
# 245| }
# 246|-> va_end(ap_reply);
# 247| dbus.message_unref(msg);
# 248| }
Error: CPPCHECK_WARNING (CWE-562): [#def39]
SDL2-2.30.3-build/SDL2-2.30.3/src/core/linux/SDL_dbus.c:524: error[returnDanglingLifetime]: Returning pointer to local variable 'err' that will be invalid when returning.
# 522|
# 523| if (result) {
# 524|-> return result;
# 525| }
# 526|
Error: CPPCHECK_WARNING: [#def40]
SDL2-2.30.3-build/SDL2-2.30.3/src/core/linux/SDL_evdev.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def41]
SDL2-2.30.3-build/SDL2-2.30.3/src/core/linux/SDL_evdev_capabilities.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def42]
SDL2-2.30.3-build/SDL2-2.30.3/src/core/linux/SDL_evdev_kbd.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def43]
SDL2-2.30.3-build/SDL2-2.30.3/src/core/linux/SDL_fcitx.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def44]
SDL2-2.30.3-build/SDL2-2.30.3/src/core/linux/SDL_ibus.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def45]
SDL2-2.30.3-build/SDL2-2.30.3/src/core/linux/SDL_udev.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def46]
SDL2-2.30.3-build/SDL2-2.30.3/src/cpuinfo/SDL_cpuinfo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def47]
SDL2-2.30.3-build/SDL2-2.30.3/src/SDL_internal.h:50: included_from: Included from here.
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandmessagebox.c:22: included_from: Included from here.
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandmessagebox.c: scope_hint: In function ‘get_zenity_version’
SDL2-2.30.3-build/SDL2-2.30.3/src/dynapi/SDL_dynapi_overrides.h:30:22: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘fd_pipe[1]’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandmessagebox.c:82:16: note: in expansion of macro ‘SDL_SetError’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandmessagebox.c:32: included_from: Included from here.
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandmessagebox.c:82:16: note: in expansion of macro ‘SDL_SetError’
# 28| #endif
# 29|
# 30|-> #define SDL_SetError SDL_SetError_REAL
# 31| #define SDL_Log SDL_Log_REAL
# 32| #define SDL_LogVerbose SDL_LogVerbose_REAL
Error: CPPCHECK_WARNING: [#def48]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/SDL_dropevents.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def49]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/SDL_events.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def50]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/SDL_gesture.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def51]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/SDL_keyboard.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def52]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/SDL_keysym_to_scancode.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def53]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/SDL_mouse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def54]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/SDL_touch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def55]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-787): [#def56]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c: scope_hint: In function ‘SDL_KeySymToUcs4’
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:305:41: warning[-Wanalyzer-out-of-bounds]: buffer over-read
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:305:41: note: valid subscripts for ‘keysym_to_unicode_1a1_1ff’ are ‘[0]’ to ‘[94]’
# └─────────────────┘
# ^
# 303| return keysym;
# 304| else if (keysym > 0x1a0 && keysym < 0x200)
# 305|-> return keysym_to_unicode_1a1_1ff[keysym - 0x1a1];
# 306| else if (keysym > 0x2a0 && keysym < 0x2ff)
# 307| return keysym_to_unicode_2a1_2fe[keysym - 0x2a1];
Error: GCC_ANALYZER_WARNING (CWE-787): [#def57]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:307:41: warning[-Wanalyzer-out-of-bounds]: buffer over-read
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:307:41: note: valid subscripts for ‘keysym_to_unicode_2a1_2fe’ are ‘[0]’ to ‘[93]’
# └─────────────────┘
# ^
# 305| return keysym_to_unicode_1a1_1ff[keysym - 0x1a1];
# 306| else if (keysym > 0x2a0 && keysym < 0x2ff)
# 307|-> return keysym_to_unicode_2a1_2fe[keysym - 0x2a1];
# 308| else if (keysym > 0x3a1 && keysym < 0x3ff)
# 309| return keysym_to_unicode_3a2_3fe[keysym - 0x3a2];
Error: GCC_ANALYZER_WARNING (CWE-787): [#def58]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:309:41: warning[-Wanalyzer-out-of-bounds]: buffer over-read
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:309:41: note: valid subscripts for ‘keysym_to_unicode_3a2_3fe’ are ‘[0]’ to ‘[92]’
# └─────────────────┘
# ^
# 307| return keysym_to_unicode_2a1_2fe[keysym - 0x2a1];
# 308| else if (keysym > 0x3a1 && keysym < 0x3ff)
# 309|-> return keysym_to_unicode_3a2_3fe[keysym - 0x3a2];
# 310| else if (keysym > 0x4a0 && keysym < 0x4e0)
# 311| return keysym_to_unicode_4a1_4df[keysym - 0x4a1];
Error: GCC_ANALYZER_WARNING (CWE-787): [#def59]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:311:41: warning[-Wanalyzer-out-of-bounds]: buffer over-read
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:311:41: note: valid subscripts for ‘keysym_to_unicode_4a1_4df’ are ‘[0]’ to ‘[62]’
# └─────────────────┘
# ^
# 309| return keysym_to_unicode_3a2_3fe[keysym - 0x3a2];
# 310| else if (keysym > 0x4a0 && keysym < 0x4e0)
# 311|-> return keysym_to_unicode_4a1_4df[keysym - 0x4a1];
# 312| else if (keysym > 0x589 && keysym < 0x5ff)
# 313| return keysym_to_unicode_590_5fe[keysym - 0x590];
Error: GCC_ANALYZER_WARNING (CWE-787): [#def60]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:313:41: warning[-Wanalyzer-out-of-bounds]: buffer over-read
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:313:41: note: valid subscripts for ‘keysym_to_unicode_590_5fe’ are ‘[0]’ to ‘[110]’
# └─────────────────┘
# ^
# 311| return keysym_to_unicode_4a1_4df[keysym - 0x4a1];
# 312| else if (keysym > 0x589 && keysym < 0x5ff)
# 313|-> return keysym_to_unicode_590_5fe[keysym - 0x590];
# 314| else if (keysym > 0x67f && keysym < 0x700)
# 315| return keysym_to_unicode_680_6ff[keysym - 0x680];
Error: GCC_ANALYZER_WARNING (CWE-787): [#def61]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:315:41: warning[-Wanalyzer-out-of-bounds]: buffer over-read
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:315:41: note: valid subscripts for ‘keysym_to_unicode_680_6ff’ are ‘[0]’ to ‘[127]’
# └─────────────────┘
# ^
# 313| return keysym_to_unicode_590_5fe[keysym - 0x590];
# 314| else if (keysym > 0x67f && keysym < 0x700)
# 315|-> return keysym_to_unicode_680_6ff[keysym - 0x680];
# 316| else if (keysym > 0x7a0 && keysym < 0x7fa)
# 317| return keysym_to_unicode_7a1_7f9[keysym - 0x7a1];
Error: GCC_ANALYZER_WARNING (CWE-787): [#def62]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:317:41: warning[-Wanalyzer-out-of-bounds]: buffer over-read
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:317:41: note: valid subscripts for ‘keysym_to_unicode_7a1_7f9’ are ‘[0]’ to ‘[88]’
# └─────────────────┘
# ^
# 315| return keysym_to_unicode_680_6ff[keysym - 0x680];
# 316| else if (keysym > 0x7a0 && keysym < 0x7fa)
# 317|-> return keysym_to_unicode_7a1_7f9[keysym - 0x7a1];
# 318| else if (keysym > 0x8a3 && keysym < 0x8ff)
# 319| return keysym_to_unicode_8a4_8fe[keysym - 0x8a4];
Error: GCC_ANALYZER_WARNING (CWE-787): [#def63]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:319:41: warning[-Wanalyzer-out-of-bounds]: buffer over-read
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:319:41: note: valid subscripts for ‘keysym_to_unicode_8a4_8fe’ are ‘[0]’ to ‘[90]’
# └─────────────────┘
# ^
# 317| return keysym_to_unicode_7a1_7f9[keysym - 0x7a1];
# 318| else if (keysym > 0x8a3 && keysym < 0x8ff)
# 319|-> return keysym_to_unicode_8a4_8fe[keysym - 0x8a4];
# 320| else if (keysym > 0x9de && keysym < 0x9f9)
# 321| return keysym_to_unicode_9df_9f8[keysym - 0x9df];
Error: GCC_ANALYZER_WARNING (CWE-787): [#def64]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:321:41: warning[-Wanalyzer-out-of-bounds]: buffer over-read
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:321:41: note: valid subscripts for ‘keysym_to_unicode_9df_9f8’ are ‘[0]’ to ‘[25]’
# └─────────────────┘
# ^
# 319| return keysym_to_unicode_8a4_8fe[keysym - 0x8a4];
# 320| else if (keysym > 0x9de && keysym < 0x9f9)
# 321|-> return keysym_to_unicode_9df_9f8[keysym - 0x9df];
# 322| else if (keysym > 0xaa0 && keysym < 0xaff)
# 323| return keysym_to_unicode_aa1_afe[keysym - 0xaa1];
Error: GCC_ANALYZER_WARNING (CWE-787): [#def65]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:323:41: warning[-Wanalyzer-out-of-bounds]: buffer over-read
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:323:41: note: valid subscripts for ‘keysym_to_unicode_aa1_afe’ are ‘[0]’ to ‘[93]’
# └─────────────────┘
# ^
# 321| return keysym_to_unicode_9df_9f8[keysym - 0x9df];
# 322| else if (keysym > 0xaa0 && keysym < 0xaff)
# 323|-> return keysym_to_unicode_aa1_afe[keysym - 0xaa1];
# 324| else if (keysym > 0xcde && keysym < 0xcfb)
# 325| return keysym_to_unicode_cdf_cfa[keysym - 0xcdf];
Error: GCC_ANALYZER_WARNING (CWE-787): [#def66]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:325:41: warning[-Wanalyzer-out-of-bounds]: buffer over-read
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:325:41: note: valid subscripts for ‘keysym_to_unicode_cdf_cfa’ are ‘[0]’ to ‘[27]’
# └─────────────────┘
# ^
# 323| return keysym_to_unicode_aa1_afe[keysym - 0xaa1];
# 324| else if (keysym > 0xcde && keysym < 0xcfb)
# 325|-> return keysym_to_unicode_cdf_cfa[keysym - 0xcdf];
# 326| else if (keysym > 0xda0 && keysym < 0xdfa)
# 327| return keysym_to_unicode_da1_df9[keysym - 0xda1];
Error: GCC_ANALYZER_WARNING (CWE-787): [#def67]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:327:41: warning[-Wanalyzer-out-of-bounds]: buffer over-read
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:327:41: note: valid subscripts for ‘keysym_to_unicode_da1_df9’ are ‘[0]’ to ‘[88]’
# └─────────────────┘
# ^
# 325| return keysym_to_unicode_cdf_cfa[keysym - 0xcdf];
# 326| else if (keysym > 0xda0 && keysym < 0xdfa)
# 327|-> return keysym_to_unicode_da1_df9[keysym - 0xda1];
# 328| else if (keysym > 0xe9f && keysym < 0xf00)
# 329| return keysym_to_unicode_ea0_eff[keysym - 0xea0];
Error: GCC_ANALYZER_WARNING (CWE-787): [#def68]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:329:41: warning[-Wanalyzer-out-of-bounds]: buffer over-read
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:329:41: note: valid subscripts for ‘keysym_to_unicode_ea0_eff’ are ‘[0]’ to ‘[95]’
# └─────────────────┘
# ^
# 327| return keysym_to_unicode_da1_df9[keysym - 0xda1];
# 328| else if (keysym > 0xe9f && keysym < 0xf00)
# 329|-> return keysym_to_unicode_ea0_eff[keysym - 0xea0];
# 330| else if (keysym > 0x12a0 && keysym < 0x12ff)
# 331| return keysym_to_unicode_12a1_12fe[keysym - 0x12a1];
Error: GCC_ANALYZER_WARNING (CWE-787): [#def69]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:331:43: warning[-Wanalyzer-out-of-bounds]: buffer over-read
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:331:43: note: valid subscripts for ‘keysym_to_unicode_12a1_12fe’ are ‘[0]’ to ‘[93]’
# └─────────────────┘
# ^
# 329| return keysym_to_unicode_ea0_eff[keysym - 0xea0];
# 330| else if (keysym > 0x12a0 && keysym < 0x12ff)
# 331|-> return keysym_to_unicode_12a1_12fe[keysym - 0x12a1];
# 332| else if (keysym > 0x13bb && keysym < 0x13bf)
# 333| return keysym_to_unicode_13bc_13be[keysym - 0x13bc];
Error: GCC_ANALYZER_WARNING (CWE-787): [#def70]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:333:43: warning[-Wanalyzer-out-of-bounds]: buffer over-read
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:333:43: note: valid subscripts for ‘keysym_to_unicode_13bc_13be’ are ‘[0]’ to ‘[2]’
# └─────────────────┘
# ^
# 331| return keysym_to_unicode_12a1_12fe[keysym - 0x12a1];
# 332| else if (keysym > 0x13bb && keysym < 0x13bf)
# 333|-> return keysym_to_unicode_13bc_13be[keysym - 0x13bc];
# 334| else if (keysym > 0x14a0 && keysym < 0x1500)
# 335| return keysym_to_unicode_14a1_14ff[keysym - 0x14a1];
Error: GCC_ANALYZER_WARNING (CWE-787): [#def71]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:335:43: warning[-Wanalyzer-out-of-bounds]: buffer over-read
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:335:43: note: valid subscripts for ‘keysym_to_unicode_14a1_14ff’ are ‘[0]’ to ‘[94]’
# └─────────────────┘
# ^
# 333| return keysym_to_unicode_13bc_13be[keysym - 0x13bc];
# 334| else if (keysym > 0x14a0 && keysym < 0x1500)
# 335|-> return keysym_to_unicode_14a1_14ff[keysym - 0x14a1];
# 336| else if (keysym > 0x15cf && keysym < 0x15f7)
# 337| return keysym_to_unicode_15d0_15f6[keysym - 0x15d0];
Error: GCC_ANALYZER_WARNING (CWE-787): [#def72]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:337:43: warning[-Wanalyzer-out-of-bounds]: buffer over-read
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:337:43: note: valid subscripts for ‘keysym_to_unicode_15d0_15f6’ are ‘[0]’ to ‘[38]’
# └─────────────────┘
# ^
# 335| return keysym_to_unicode_14a1_14ff[keysym - 0x14a1];
# 336| else if (keysym > 0x15cf && keysym < 0x15f7)
# 337|-> return keysym_to_unicode_15d0_15f6[keysym - 0x15d0];
# 338| else if (keysym > 0x169f && keysym < 0x16f7)
# 339| return keysym_to_unicode_16a0_16f6[keysym - 0x16a0];
Error: GCC_ANALYZER_WARNING (CWE-787): [#def73]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:339:43: warning[-Wanalyzer-out-of-bounds]: buffer over-read
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:339:43: note: valid subscripts for ‘keysym_to_unicode_16a0_16f6’ are ‘[0]’ to ‘[86]’
# └─────────────────┘
# ^
# 337| return keysym_to_unicode_15d0_15f6[keysym - 0x15d0];
# 338| else if (keysym > 0x169f && keysym < 0x16f7)
# 339|-> return keysym_to_unicode_16a0_16f6[keysym - 0x16a0];
# 340| else if (keysym > 0x1e9e && keysym < 0x1f00)
# 341| return keysym_to_unicode_1e9f_1eff[keysym - 0x1e9f];
Error: GCC_ANALYZER_WARNING (CWE-787): [#def74]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:341:43: warning[-Wanalyzer-out-of-bounds]: buffer over-read
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:341:43: note: valid subscripts for ‘keysym_to_unicode_1e9f_1eff’ are ‘[0]’ to ‘[96]’
# └─────────────────┘
# ^
# 339| return keysym_to_unicode_16a0_16f6[keysym - 0x16a0];
# 340| else if (keysym > 0x1e9e && keysym < 0x1f00)
# 341|-> return keysym_to_unicode_1e9f_1eff[keysym - 0x1e9f];
# 342| else if (keysym > 0x209f && keysym < 0x20ad)
# 343| return keysym_to_unicode_20a0_20ac[keysym - 0x20a0];
Error: GCC_ANALYZER_WARNING (CWE-787): [#def75]
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:343:43: warning[-Wanalyzer-out-of-bounds]: buffer over-read
SDL2-2.30.3-build/SDL2-2.30.3/src/events/imKStoUCS.c:343:43: note: valid subscripts for ‘keysym_to_unicode_20a0_20ac’ are ‘[0]’ to ‘[12]’
# └─────────────────┘
# ^
# 341| return keysym_to_unicode_1e9f_1eff[keysym - 0x1e9f];
# 342| else if (keysym > 0x209f && keysym < 0x20ad)
# 343|-> return keysym_to_unicode_20a0_20ac[keysym - 0x20a0];
# 344| else
# 345| return 0;
Error: GCC_ANALYZER_WARNING (CWE-401): [#def76]
SDL2-2.30.3-build/SDL2-2.30.3/src/file/SDL_rwops.c:39: included_from: Included from here.
SDL2-2.30.3-build/SDL2-2.30.3/src/file/SDL_rwops.c: scope_hint: In function ‘SDL_RWFromFP_REAL’
SDL2-2.30.3-build/SDL2-2.30.3/src/file/SDL_rwops.c:537:50: warning[-Wanalyzer-malloc-leak]: leak of ‘fopen64(file, mode)’
SDL2-2.30.3-build/SDL2-2.30.3/src/SDL_internal.h:50: included_from: Included from here.
SDL2-2.30.3-build/SDL2-2.30.3/src/file/SDL_rwops.c:31: included_from: Included from here.
SDL2-2.30.3-build/SDL2-2.30.3/src/file/SDL_rwops.c:545:12: note: in expansion of macro ‘SDL_RWFromFile’
SDL2-2.30.3-build/SDL2-2.30.3/src/file/SDL_rwops.c:632:20: note: in expansion of macro ‘fopen’
SDL2-2.30.3-build/SDL2-2.30.3/src/file/SDL_rwops.c:632:20: note: in expansion of macro ‘fopen’
SDL2-2.30.3-build/SDL2-2.30.3/src/file/SDL_rwops.c:641:21: note: in expansion of macro ‘SDL_RWFromFP’
SDL2-2.30.3-build/SDL2-2.30.3/src/file/SDL_rwops.c:641:21: note: in expansion of macro ‘SDL_RWFromFP’
SDL2-2.30.3-build/SDL2-2.30.3/src/file/SDL_rwops.c:652:12: note: in expansion of macro ‘SDL_RWFromFP’
# 535| #else
# 536| struct stat st;
# 537|-> if (fstat(fileno(f), &st) < 0 || !(S_ISREG(st.st_mode) || S_ISFIFO(st.st_mode))) {
# 538| return SDL_FALSE;
# 539| }
Error: CPPCHECK_WARNING: [#def77]
SDL2-2.30.3-build/SDL2-2.30.3/src/filesystem/unix/SDL_sysfilesystem.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def78]
SDL2-2.30.3-build/SDL2-2.30.3/src/haptic/SDL_haptic.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def79]
SDL2-2.30.3-build/SDL2-2.30.3/src/haptic/linux/SDL_syshaptic.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def80]
SDL2-2.30.3-build/SDL2-2.30.3/src/haptic/linux/SDL_syshaptic.c: scope_hint: In function ‘SDL_SYS_HapticName’
SDL2-2.30.3-build/SDL2-2.30.3/src/haptic/linux/SDL_syshaptic.c:363:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 361| /* Open the haptic device. */
# 362| name = NULL;
# 363|-> fd = open(item->fname, O_RDONLY | O_CLOEXEC, 0);
# 364|
# 365| if (fd >= 0) {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def81]
SDL2-2.30.3-build/SDL2-2.30.3/src/haptic/linux/SDL_syshaptic.c: scope_hint: In function ‘SDL_SYS_HapticOpen’
SDL2-2.30.3-build/SDL2-2.30.3/src/haptic/linux/SDL_syshaptic.c:437:19: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 435| item = HapticByDevIndex(haptic->index);
# 436| /* Open the character device */
# 437|-> fd = open(item->fname, O_RDWR | O_CLOEXEC, 0);
# 438| if (fd < 0) {
# 439| return SDL_SetError("Haptic: Unable to open %s: %s",
Error: GCC_ANALYZER_WARNING (CWE-476): [#def82]
SDL2-2.30.3-build/SDL2-2.30.3/src/hidapi/SDL_hidapi.c:580: included_from: Included from here.
SDL2-2.30.3-build/SDL2-2.30.3/src/hidapi/linux/hid.c: scope_hint: In function ‘PLATFORM_new_hid_device’
SDL2-2.30.3-build/SDL2-2.30.3/src/hidapi/linux/hid.c:119:28: warning[-Wanalyzer-possible-null-dereference]: dereference of possibly-NULL ‘dev’
# 117| {
# 118| hid_device *dev = (hid_device *)calloc(1, sizeof(hid_device));
# 119|-> dev->device_handle = -1;
# 120| dev->blocking = 1;
# 121| dev->uses_numbered_reports = 0;
Error: CLANG_WARNING: [#def83]
SDL2-2.30.3-build/SDL2-2.30.3/src/hidapi/SDL_hidapi.c:580: included_from: Included from here.
SDL2-2.30.3-build/SDL2-2.30.3/src/hidapi/linux/hid.c:266:15: warning[unix.Malloc]: Potential memory leak
# 264| /* The caller has to free the product name */
# 265| *product_name_utf8 = strdup(value);
# 266|-> found_name = 1;
# 267| } else if (strcmp(key, "HID_UNIQ") == 0) {
# 268| /* The caller has to free the serial number */
Error: CLANG_WARNING: [#def84]
SDL2-2.30.3-build/SDL2-2.30.3/src/hidapi/linux/hid.c:270:17: warning[unix.Malloc]: Potential memory leak
# 268| /* The caller has to free the serial number */
# 269| *serial_number_utf8 = strdup(value);
# 270|-> found_serial = 1;
# 271| }
# 272|
Error: GCC_ANALYZER_WARNING (CWE-457): [#def85]
SDL2-2.30.3-build/SDL2-2.30.3/src/hidapi/linux/hid.c: scope_hint: In function ‘get_device_string’
SDL2-2.30.3-build/SDL2-2.30.3/src/hidapi/linux/hid.c:388:38: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘bus_type’
SDL2-2.30.3-build/SDL2-2.30.3/src/hidapi/linux/hid.c:368:20: note: in expansion of macro ‘udev_device_new_from_devnum’
SDL2-2.30.3-build/SDL2-2.30.3/src/hidapi/linux/hid.c:370:27: note: in expansion of macro ‘udev_device_get_parent_with_subsystem_devtype’
SDL2-2.30.3-build/SDL2-2.30.3/src/hidapi/linux/hid.c:381:36: note: in expansion of macro ‘udev_device_get_sysattr_value’
# 386| &product_name_utf8);
# 387|
# 388|-> if (bus_type == BUS_BLUETOOTH) {
# 389| switch (key) {
# 390| case DEVICE_STRING_MANUFACTURER:
Error: CPPCHECK_WARNING: [#def86]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/SDL_gamecontroller.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def87]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/SDL_gamecontroller.c:2004:21: warning[unix.Malloc]: Potential leak of memory pointed to by 'mapping'
# 2002| SDL_GameControllerType type;
# 2003| if (mapping) {
# 2004|-> type_string = SDL_strstr(mapping, SDL_CONTROLLER_TYPE_FIELD);
# 2005| if (type_string) {
# 2006| type_string += SDL_CONTROLLER_TYPE_FIELD_SIZE;
Error: CPPCHECK_WARNING: [#def88]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/SDL_joystick.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def89]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/SDL_joystick.c:2495:9: warning[core.NonNullParamChecker]: Null pointer passed to 2nd parameter expecting 'nonnull'
# 2493| guid.data[15] = driver_data;
# 2494| }
# 2495|-> SDL_strlcpy((char *)guid16, product_name, available_space);
# 2496| }
# 2497| return guid;
Error: CPPCHECK_WARNING: [#def90]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/SDL_steam_virtual_gamepad.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def91]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/controller_type.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def92]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/hidapi/SDL_hidapi_gamecube.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def93]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/hidapi/SDL_hidapi_ps3.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def94]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/hidapi/SDL_hidapi_ps4.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def95]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/hidapi/SDL_hidapi_ps5.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def96]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/hidapi/SDL_hidapi_rumble.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def97]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/hidapi/SDL_hidapi_shield.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def98]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/hidapi/SDL_hidapi_steam.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def99]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/hidapi/SDL_hidapi_steam.c:758:5: warning[deadcode.DeadStores]: Value stored to 'nPadOffset' is never read
# 756| pState->sLeftPadY = clamp(nLeftPadY + nPadOffset, SDL_MIN_SINT16, SDL_MAX_SINT16);
# 757|
# 758|-> nPadOffset = 0;
# 759| if (pState->ulButtons & STEAM_RIGHTPAD_FINGERDOWN_MASK) {
# 760| nPadOffset = 1000;
Error: CLANG_WARNING: [#def100]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/hidapi/SDL_hidapi_steam.c:851:9: warning[deadcode.DeadStores]: Value stored to 'pData' is never read
# 849| int nLength = sizeof(pState->sGyroQuatW) + sizeof(pState->sGyroQuatX) + sizeof(pState->sGyroQuatY) + sizeof(pState->sGyroQuatZ);
# 850| SDL_memcpy(&pState->sGyroQuatW, pData, nLength);
# 851|-> pData += nLength;
# 852| }
# 853| return true;
Error: CPPCHECK_WARNING: [#def101]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/hidapi/SDL_hidapi_steamdeck.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-457): [#def102]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/hidapi/SDL_hidapi_steamdeck.c:245: error[uninitvar]: Uninitialized variable: pInReport->header.unReportVersion
# 243| }
# 244|
# 245|-> if (!(r == 64 && pInReport->header.unReportVersion == k_ValveInReportMsgVersion && pInReport->header.ucType == ID_CONTROLLER_DECK_STATE && pInReport->header.ucLength == 64)) {
# 246| return SDL_FALSE;
# 247| }
Error: CPPCHECK_WARNING: [#def103]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/hidapi/SDL_hidapi_switch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def104]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/hidapi/SDL_hidapi_wii.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def105]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/hidapi/SDL_hidapi_wii.c:1454:24: warning[deadcode.DeadStores]: Value stored to 'type' during its initialization is never read
# 1452| static void HandleResponse(SDL_DriverWii_Context *ctx, SDL_Joystick *joystick)
# 1453| {
# 1454|-> EWiiInputReportIDs type = ctx->m_rgucReadBuffer[0];
# 1455| WiiButtonData data;
# 1456| SDL_assert(type == k_eWiiInputReportIDs_Acknowledge || type == k_eWiiInputReportIDs_ReadMemory);
Error: CPPCHECK_WARNING: [#def106]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/hidapi/SDL_hidapi_xbox360w.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def107]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/hidapi/SDL_hidapi_xboxone.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def108]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/hidapi/SDL_hidapijoystick.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def109]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/hidapi/SDL_hidapijoystick.c:701:21: warning[deadcode.DeadStores]: Value stored to 'serial' during its initialization is never read
# 699|
# 700| if (device->serial) {
# 701|-> const char *serial = device->serial;
# 702| for (serial = device->serial; *serial; ++serial) {
# 703| if (*serial != '0') {
Error: CPPCHECK_WARNING: [#def110]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/linux/SDL_sysjoystick.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def111]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/linux/SDL_sysjoystick.c: scope_hint: In function ‘LINUX_JoystickGetGamepadMapping’
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/linux/SDL_sysjoystick.c:2331:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
# 2329| SDL_AssertJoysticksLocked();
# 2330|
# 2331|-> if (item->checked_mapping) {
# 2332| if (item->mapping) {
# 2333| SDL_memcpy(out, item->mapping, sizeof(*out));
Error: CLANG_WARNING: [#def112]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/linux/SDL_sysjoystick.c:2527:9: warning[deadcode.DeadStores]: Value stored to 'mapped' is never read
# 2525| out->rightshoulder.kind = EMappingKind_Axis;
# 2526| out->rightshoulder.target = joystick->hwdata->abs_map[ABS_HAT1X];
# 2527|-> mapped |= 0x2;
# 2528| #ifdef DEBUG_GAMEPAD_MAPPING
# 2529| SDL_Log("Mapped RIGHTSHOULDER to axis %d (ABS_HAT1X)", out->rightshoulder.target);
Error: CLANG_WARNING: [#def113]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/linux/SDL_sysjoystick.c:2623:9: warning[deadcode.DeadStores]: Value stored to 'mapped' is never read
# 2621| out->righttrigger.kind = EMappingKind_Button;
# 2622| out->righttrigger.target = joystick->hwdata->key_map[BTN_TR2];
# 2623|-> mapped |= MAPPED_TRIGGER_RIGHT;
# 2624| #ifdef DEBUG_GAMEPAD_MAPPING
# 2625| SDL_Log("Mapped RIGHTTRIGGER to button %d (BTN_TR2)", out->righttrigger.target);
Error: CLANG_WARNING: [#def114]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/linux/SDL_sysjoystick.c:2679:13: warning[deadcode.DeadStores]: Value stored to 'mapped' is never read
# 2677| out->dpup.target = hat | 0x1;
# 2678| out->dpdown.target = hat | 0x4;
# 2679|-> mapped |= MAPPED_DPAD_ALL;
# 2680| #ifdef DEBUG_GAMEPAD_MAPPING
# 2681| SDL_Log("Mapped DPUP+DOWN+LEFT+RIGHT to hat 0 (ABS_HAT0X, ABS_HAT0Y)");
Error: CLANG_WARNING: [#def115]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/linux/SDL_sysjoystick.c:2692:13: warning[deadcode.DeadStores]: Value stored to 'mapped' is never read
# 2690| out->dpup.target = joystick->hwdata->abs_map[ABS_HAT0Y];
# 2691| out->dpdown.target = joystick->hwdata->abs_map[ABS_HAT0Y];
# 2692|-> mapped |= MAPPED_DPAD_ALL;
# 2693| #ifdef DEBUG_GAMEPAD_MAPPING
# 2694| SDL_Log("Mapped DPUP+DOWN to axis %d (ABS_HAT0Y)", out->dpup.target);
Error: CPPCHECK_WARNING: [#def116]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/virtual/SDL_virtualjoystick.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def117]
SDL2-2.30.3-build/SDL2-2.30.3/src/joystick/virtual/SDL_virtualjoystick.c:163: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 161| if (hwdata->desc.button_mask == 0) {
# 162| for (i = 0; i < hwdata->desc.nbuttons && i < sizeof(hwdata->desc.button_mask) * 8; ++i) {
# 163|-> hwdata->desc.button_mask |= (1 << i);
# 164| }
# 165| }
Error: CPPCHECK_WARNING: [#def118]
SDL2-2.30.3-build/SDL2-2.30.3/src/libm/e_atan2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def119]
SDL2-2.30.3-build/SDL2-2.30.3/src/libm/e_atan2.c:64: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 62| return x+y;
# 63| if(((hx-0x3ff00000)|lx)==0) return atan(y); /* x=1.0 */
# 64|-> m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */
# 65|
# 66| /* when y = 0 */
Error: CPPCHECK_WARNING: [#def120]
SDL2-2.30.3-build/SDL2-2.30.3/src/libm/e_exp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def121]
SDL2-2.30.3-build/SDL2-2.30.3/src/libm/e_fmod.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def122]
SDL2-2.30.3-build/SDL2-2.30.3/src/libm/e_pow.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def123]
SDL2-2.30.3-build/SDL2-2.30.3/src/libm/e_rem_pio2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def124]
SDL2-2.30.3-build/SDL2-2.30.3/src/libm/e_sqrt.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def125]
SDL2-2.30.3-build/SDL2-2.30.3/src/libm/e_sqrt.c:116:17: warning[core.BitwiseShift]: Right shift by '32' overflows the capacity of 'u_int32_t'
# 114| for(i=0;(ix0&0x00100000)==0;i++) ix0<<=1;
# 115| m -= i-1;
# 116|-> ix0 |= (ix1>>(32-i));
# 117| ix1 <<= i;
# 118| }
Error: CPPCHECK_WARNING: [#def126]
SDL2-2.30.3-build/SDL2-2.30.3/src/libm/k_rem_pio2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def127]
SDL2-2.30.3-build/SDL2-2.30.3/src/libm/s_floor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def128]
SDL2-2.30.3-build/SDL2-2.30.3/src/locale/SDL_locale.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def129]
SDL2-2.30.3-build/SDL2-2.30.3/src/locale/unix/SDL_syslocale.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def130]
SDL2-2.30.3-build/SDL2-2.30.3/src/misc/unix/SDL_sysurl.c:51:16: warning[security.insecureAPI.vfork]: Call to function 'vfork' is insecure as it can lead to denial of service situations in the parent process. Replace calls to vfork with calls to the safer 'posix_spawn' function
# 49| unsetenv("LD_PRELOAD");
# 50| /* Notice this is vfork and not fork! */
# 51|-> pid2 = vfork();
# 52| if (pid2 == 0) { /* Grandchild process will try to launch the url */
# 53| execlp("xdg-open", "xdg-open", url, NULL);
Error: CPPCHECK_WARNING: [#def131]
SDL2-2.30.3-build/SDL2-2.30.3/src/power/linux/SDL_syspower.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def132]
SDL2-2.30.3-build/SDL2-2.30.3/src/render/SDL_render.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def133]
SDL2-2.30.3-build/SDL2-2.30.3/src/render/SDL_yuv_sw.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def134]
SDL2-2.30.3-build/SDL2-2.30.3/src/render/opengl/SDL_render_gl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def135]
SDL2-2.30.3-build/SDL2-2.30.3/src/render/opengl/SDL_shaders_gl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def136]
SDL2-2.30.3-build/SDL2-2.30.3/src/render/opengl/SDL_shaders_gl.c:430:17: warning[deadcode.DeadStores]: Value stored to 'frag_defines' during its initialization is never read
# 428| const int num_tmus_bound = 4;
# 429| const char *vert_defines = "";
# 430|-> const char *frag_defines = "";
# 431| int i;
# 432| GLint location;
Error: CPPCHECK_WARNING: [#def137]
SDL2-2.30.3-build/SDL2-2.30.3/src/render/opengles/SDL_render_gles.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def138]
SDL2-2.30.3-build/SDL2-2.30.3/src/render/opengles2/SDL_render_gles2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def139]
SDL2-2.30.3-build/SDL2-2.30.3/src/render/software/SDL_blendfillrect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def140]
SDL2-2.30.3-build/SDL2-2.30.3/src/render/software/SDL_blendline.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def141]
SDL2-2.30.3-build/SDL2-2.30.3/src/render/software/SDL_drawline.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def142]
SDL2-2.30.3-build/SDL2-2.30.3/src/render/software/SDL_render_sw.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def143]
SDL2-2.30.3-build/SDL2-2.30.3/src/render/software/SDL_render_sw.c: scope_hint: In function ‘SetDrawState.part.0’
SDL2-2.30.3-build/SDL2-2.30.3/src/render/software/SDL_render_sw.c:648:49: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘viewport’
SDL2-2.30.3-build/SDL2-2.30.3/src/render/software/SDL_render_sw.c: scope_hint: In function ‘SetDrawState.part.0’
SDL2-2.30.3-build/SDL2-2.30.3/src/SDL_internal.h:208: included_from: Included from here.
SDL2-2.30.3-build/SDL2-2.30.3/src/render/software/SDL_render_sw.c:21: included_from: Included from here.
SDL2-2.30.3-build/SDL2-2.30.3/redhat-linux-build/include/SDL2/SDL_assert.h:172:42: note: in expansion of macro ‘SDL_enabled_assert’
SDL2-2.30.3-build/SDL2-2.30.3/src/render/software/SDL_render_sw.c:644:9: note: in expansion of macro ‘SDL_assert_release’
SDL2-2.30.3-build/SDL2-2.30.3/src/SDL_internal.h:50: included_from: Included from here.
SDL2-2.30.3-build/SDL2-2.30.3/redhat-linux-build/include/SDL2/SDL_assert.h:155:54: note: in expansion of macro ‘SDL_ReportAssertion’
SDL2-2.30.3-build/SDL2-2.30.3/redhat-linux-build/include/SDL2/SDL_assert.h:172:42: note: in expansion of macro ‘SDL_enabled_assert’
SDL2-2.30.3-build/SDL2-2.30.3/src/render/software/SDL_render_sw.c:644:9: note: in expansion of macro ‘SDL_assert_release’
# 646| if (cliprect) {
# 647| SDL_Rect clip_rect;
# 648|-> clip_rect.x = cliprect->x + viewport->x;
# 649| clip_rect.y = cliprect->y + viewport->y;
# 650| clip_rect.w = cliprect->w;
Error: CPPCHECK_WARNING: [#def144]
SDL2-2.30.3-build/SDL2-2.30.3/src/render/software/SDL_rotate.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def145]
SDL2-2.30.3-build/SDL2-2.30.3/src/render/software/SDL_triangle.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def146]
SDL2-2.30.3-build/SDL2-2.30.3/src/sensor/SDL_sensor.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def147]
SDL2-2.30.3-build/SDL2-2.30.3/src/stdlib/SDL_iconv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-401): [#def148]
SDL2-2.30.3-build/SDL2-2.30.3/src/stdlib/SDL_iconv.c: scope_hint: In function ‘SDL_iconv_string_REAL’
SDL2-2.30.3-build/SDL2-2.30.3/src/stdlib/SDL_iconv.c:805:8: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open(tocode, fromcode)’
SDL2-2.30.3-build/SDL2-2.30.3/src/SDL_internal.h:50: included_from: Included from here.
SDL2-2.30.3-build/SDL2-2.30.3/src/stdlib/SDL_iconv.c:26: included_from: Included from here.
SDL2-2.30.3-build/SDL2-2.30.3/src/stdlib/SDL_iconv.c:789:7: note: in expansion of macro ‘SDL_iconv_string’
SDL2-2.30.3-build/SDL2-2.30.3/src/stdlib/SDL_iconv.c:804:10: note: in expansion of macro ‘SDL_iconv_open’
SDL2-2.30.3-build/SDL2-2.30.3/src/stdlib/SDL_iconv.c: scope_hint: In function ‘SDL_iconv_string_REAL’
# 803| }
# 804| cd = SDL_iconv_open(tocode, fromcode);
# 805|-> if (cd == (SDL_iconv_t)-1) {
# 806| return NULL;
# 807| }
Error: CPPCHECK_WARNING: [#def149]
SDL2-2.30.3-build/SDL2-2.30.3/src/stdlib/SDL_string.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def150]
SDL2-2.30.3-build/SDL2-2.30.3/src/test/SDL_test_common.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING (CWE-758): [#def151]
SDL2-2.30.3-build/SDL2-2.30.3/src/test/SDL_test_common.c:887: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 885| int count = 0;
# 886| for (i = 1; i <= 32; ++i) {
# 887|-> const Uint32 flag = SDL_BUTTON(i);
# 888| if ((flags & flag) == flag) {
# 889| if (count > 0) {
Error: CPPCHECK_WARNING (CWE-758): [#def152]
SDL2-2.30.3-build/SDL2-2.30.3/src/test/SDL_test_common.c:1044: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour
# 1042| count = 0;
# 1043| for (i = 0; i < 8 * sizeof(info->flags); ++i) {
# 1044|-> Uint32 flag = (1 << i);
# 1045| if (info->flags & flag) {
# 1046| if (count > 0) {
Error: CPPCHECK_WARNING: [#def153]
SDL2-2.30.3-build/SDL2-2.30.3/src/test/SDL_test_compare.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def154]
SDL2-2.30.3-build/SDL2-2.30.3/src/test/SDL_test_font.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def155]
SDL2-2.30.3-build/SDL2-2.30.3/src/test/SDL_test_harness.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def156]
SDL2-2.30.3-build/SDL2-2.30.3/src/test/SDL_test_md5.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def157]
SDL2-2.30.3-build/SDL2-2.30.3/src/test/SDL_test_memory.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def158]
SDL2-2.30.3-build/SDL2-2.30.3/src/thread/SDL_thread.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def159]
SDL2-2.30.3-build/SDL2-2.30.3/src/thread/pthread/SDL_syssem.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def160]
SDL2-2.30.3-build/SDL2-2.30.3/src/timer/SDL_timer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def161]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_RLEaccel.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def162]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_blit.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def163]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_blit_0.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def164]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_blit_A.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def165]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_blit_N.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def166]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_blit_auto.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def167]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_blit_slow.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def168]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_bmp.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def169]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_bmp.c:305:17: warning[deadcode.DeadStores]: Value stored to 'haveRGBMasks' is never read
# 303| following the legacy v1 info header, just past biSize. */
# 304| if (biCompression == BI_BITFIELDS) {
# 305|-> haveRGBMasks = SDL_TRUE;
# 306| Rmask = SDL_ReadLE32(src);
# 307| Gmask = SDL_ReadLE32(src);
Error: CLANG_WARNING: [#def170]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_bmp.c:312:21: warning[deadcode.DeadStores]: Value stored to 'haveAlphaMask' is never read
# 310| /* ...v3 adds an alpha mask. */
# 311| if (biSize >= 56) { /* BITMAPV3INFOHEADER; adds alpha mask */
# 312|-> haveAlphaMask = SDL_TRUE;
# 313| Amask = SDL_ReadLE32(src);
# 314| }
Error: CPPCHECK_WARNING: [#def171]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_egl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def172]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_fillrect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def173]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_pixels.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def174]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_rect.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def175]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_shape.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def176]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_stretch.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def177]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def178]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c: scope_hint: In function ‘SDL_LowerBlit_REAL’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:685:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘dst’
SDL2-2.30.3-build/SDL2-2.30.3/src/SDL_internal.h:50: included_from: Included from here.
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:21: included_from: Included from here.
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1006:13: note: in expansion of macro ‘SDL_GetSurfaceColorMod’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:518:5: note: in expansion of macro ‘SDL_GetSurfaceColorMod’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1006:13: note: in expansion of macro ‘SDL_GetSurfaceColorMod’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1008:13: note: in expansion of macro ‘SDL_GetSurfaceBlendMode’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:609:5: note: in expansion of macro ‘SDL_GetSurfaceBlendMode’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1008:13: note: in expansion of macro ‘SDL_GetSurfaceBlendMode’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1028:17: note: in expansion of macro ‘SDL_LowerBlit’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:680:5: note: in expansion of macro ‘SDL_LowerBlit’
# 683| /* Check to make sure the blit mapping is valid */
# 684| if ((src->map->dst != dst) ||
# 685|-> (dst->format->palette &&
# 686| src->map->dst_palette_version != dst->format->palette->version) ||
# 687| (src->format->palette &&
Error: GCC_ANALYZER_WARNING (CWE-476): [#def179]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c: scope_hint: In function ‘SDL_PrivateLowerBlitScaled.part.0’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1040:45: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘src’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1006:13: note: in expansion of macro ‘SDL_GetSurfaceColorMod’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:518:5: note: in expansion of macro ‘SDL_GetSurfaceColorMod’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1006:13: note: in expansion of macro ‘SDL_GetSurfaceColorMod’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1008:13: note: in expansion of macro ‘SDL_GetSurfaceBlendMode’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:609:5: note: in expansion of macro ‘SDL_GetSurfaceBlendMode’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1008:13: note: in expansion of macro ‘SDL_GetSurfaceBlendMode’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1028:17: note: in expansion of macro ‘SDL_LowerBlit’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:680:5: note: in expansion of macro ‘SDL_LowerBlit’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1028:17: note: in expansion of macro ‘SDL_LowerBlit’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1032:17: note: in expansion of macro ‘SDL_SetSurfaceColorMod’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:494:5: note: in expansion of macro ‘SDL_SetSurfaceColorMod’
SDL2-2.30.3-build/SDL2-2.30.3/redhat-linux-build/include/SDL2/SDL_error.h:141:41: note: in expansion of macro ‘SDL_SetError’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:499:16: note: in expansion of macro ‘SDL_InvalidParamError’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1032:17: note: in expansion of macro ‘SDL_SetSurfaceColorMod’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1033:17: note: in expansion of macro ‘SDL_SetSurfaceAlphaMod’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:536:5: note: in expansion of macro ‘SDL_SetSurfaceAlphaMod’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1033:17: note: in expansion of macro ‘SDL_SetSurfaceAlphaMod’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1034:17: note: in expansion of macro ‘SDL_SetSurfaceBlendMode’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:570:5: note: in expansion of macro ‘SDL_SetSurfaceBlendMode’
SDL2-2.30.3-build/SDL2-2.30.3/redhat-linux-build/include/SDL2/SDL_error.h:141:41: note: in expansion of macro ‘SDL_SetError’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:575:16: note: in expansion of macro ‘SDL_InvalidParamError’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1034:17: note: in expansion of macro ‘SDL_SetSurfaceBlendMode’
# 1038|
# 1039| /* Intermediate scaling */
# 1040|-> if (is_complex_copy_flags || src->format->format != dst->format->format) {
# 1041| SDL_Rect tmprect;
# 1042| SDL_Surface *tmp2 = SDL_CreateRGBSurfaceWithFormat(flags, dstrect->w, dstrect->h, 0, src->format->format);
Error: GCC_ANALYZER_WARNING (CWE-476): [#def180]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1042:105: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘src’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1006:13: note: in expansion of macro ‘SDL_GetSurfaceColorMod’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:518:5: note: in expansion of macro ‘SDL_GetSurfaceColorMod’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1006:13: note: in expansion of macro ‘SDL_GetSurfaceColorMod’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1008:13: note: in expansion of macro ‘SDL_GetSurfaceBlendMode’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:609:5: note: in expansion of macro ‘SDL_GetSurfaceBlendMode’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1008:13: note: in expansion of macro ‘SDL_GetSurfaceBlendMode’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1028:17: note: in expansion of macro ‘SDL_LowerBlit’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:680:5: note: in expansion of macro ‘SDL_LowerBlit’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1028:17: note: in expansion of macro ‘SDL_LowerBlit’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1032:17: note: in expansion of macro ‘SDL_SetSurfaceColorMod’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:494:5: note: in expansion of macro ‘SDL_SetSurfaceColorMod’
SDL2-2.30.3-build/SDL2-2.30.3/redhat-linux-build/include/SDL2/SDL_error.h:141:41: note: in expansion of macro ‘SDL_SetError’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:499:16: note: in expansion of macro ‘SDL_InvalidParamError’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1032:17: note: in expansion of macro ‘SDL_SetSurfaceColorMod’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1033:17: note: in expansion of macro ‘SDL_SetSurfaceAlphaMod’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:536:5: note: in expansion of macro ‘SDL_SetSurfaceAlphaMod’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1033:17: note: in expansion of macro ‘SDL_SetSurfaceAlphaMod’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1034:17: note: in expansion of macro ‘SDL_SetSurfaceBlendMode’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:570:5: note: in expansion of macro ‘SDL_SetSurfaceBlendMode’
SDL2-2.30.3-build/SDL2-2.30.3/redhat-linux-build/include/SDL2/SDL_error.h:141:41: note: in expansion of macro ‘SDL_SetError’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:575:16: note: in expansion of macro ‘SDL_InvalidParamError’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_surface.c:1034:17: note: in expansion of macro ‘SDL_SetSurfaceBlendMode’
# 1040| if (is_complex_copy_flags || src->format->format != dst->format->format) {
# 1041| SDL_Rect tmprect;
# 1042|-> SDL_Surface *tmp2 = SDL_CreateRGBSurfaceWithFormat(flags, dstrect->w, dstrect->h, 0, src->format->format);
# 1043| SDL_SoftStretchLinear(src, &srcrect2, tmp2, NULL);
# 1044|
Error: CPPCHECK_WARNING: [#def181]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_video.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def182]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/SDL_yuv.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def183]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/kmsdrm/SDL_kmsdrmopengles.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def184]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/kmsdrm/SDL_kmsdrmvideo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def185]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/kmsdrm/SDL_kmsdrmvideo.c:881:1: warning[unix.Malloc]: Potential leak of memory pointed to by 'dispdata'
# 879| }
# 880| }
# 881|-> } /* NOLINT(clang-analyzer-unix.Malloc): If no error `dispdata` is saved in the display */
# 882|
# 883| /* Initializes the list of SDL displays: we build a new display for each
Error: CPPCHECK_WARNING: [#def186]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/kmsdrm/SDL_kmsdrmvulkan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def187]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/offscreen/SDL_offscreenwindow.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def188]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylanddatamanager.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def189]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandevents.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def190]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandmessagebox.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-775): [#def191]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandmessagebox.c: scope_hint: In function ‘run_zenity’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandmessagebox.c:48:12: warning[-Wanalyzer-fd-leak]: leak of file descriptor ‘dup2(fd_pipe[1], 1)’
# 46| close(fd_pipe[0]); /* no reading from pipe */
# 47| /* write stdout in pipe */
# 48|-> if (dup2(fd_pipe[1], STDOUT_FILENO) == -1) {
# 49| _exit(128);
# 50| }
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def192]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandmessagebox.c:120:5: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘fd_pipe[1]’
# 118|
# 119| close(fd_pipe[0]);
# 120|-> close(fd_pipe[1]);
# 121| return -1; /* run_zenity should've called SDL_SetError() */
# 122| }
Error: GCC_ANALYZER_WARNING (CWE-1341): [#def193]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandmessagebox.c: scope_hint: In function ‘Wayland_ShowMessageBox’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandmessagebox.c:246:5: warning[-Wanalyzer-fd-double-close]: double ‘close’ of file descriptor ‘fd_pipe[1]’
# 244|
# 245| close(fd_pipe[0]);
# 246|-> close(fd_pipe[1]);
# 247| return -1; /* run_zenity() calls SDL_SetError(), so message is already set */
# 248| }
Error: CPPCHECK_WARNING: [#def194]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandmouse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def195]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandopengles.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def196]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandvideo.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def197]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandvulkan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def198]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandwindow.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def199]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandwindow.c: scope_hint: In function ‘GetFullScreenDimensions’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandwindow.c:81:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandwindow.c: scope_hint: In function ‘GetFullScreenDimensions’
# 79| /* If the application is DPI aware, we can expose the true backbuffer size */
# 80| if (window->flags & SDL_WINDOW_ALLOW_HIGHDPI) {
# 81|-> buf_width = output->native_width;
# 82| buf_height = output->native_height;
# 83| } else {
Error: CLANG_WARNING: [#def200]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandwindow.c:81:25: warning[core.NullDereference]: Access to field 'native_width' results in a dereference of a null pointer (loaded from variable 'output')
# 79| /* If the application is DPI aware, we can expose the true backbuffer size */
# 80| if (window->flags & SDL_WINDOW_ALLOW_HIGHDPI) {
# 81|-> buf_width = output->native_width;
# 82| buf_height = output->native_height;
# 83| } else {
Error: GCC_ANALYZER_WARNING (CWE-476): [#def201]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandwindow.c:96:22: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandwindow.c: scope_hint: In function ‘GetFullScreenDimensions’
# 94| fs_height = window->fullscreen_mode.h;
# 95| } else if (window->flags & SDL_WINDOW_ALLOW_HIGHDPI) {
# 96|-> fs_width = output->native_width;
# 97| fs_height = output->native_height;
# 98| } else {
Error: CLANG_WARNING: [#def202]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/wayland/SDL_waylandwindow.c:96:24: warning[core.NullDereference]: Access to field 'native_width' results in a dereference of a null pointer (loaded from variable 'output')
# 94| fs_height = window->fullscreen_mode.h;
# 95| } else if (window->flags & SDL_WINDOW_ALLOW_HIGHDPI) {
# 96|-> fs_width = output->native_width;
# 97| fs_height = output->native_height;
# 98| } else {
Error: CPPCHECK_WARNING: [#def203]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/x11/SDL_x11events.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def204]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/x11/SDL_x11framebuffer.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def205]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/x11/SDL_x11keyboard.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def206]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/x11/SDL_x11messagebox.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def207]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/x11/SDL_x11modes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def208]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/x11/SDL_x11modes.c:446:20: warning[deadcode.DeadStores]: Value stored to 'videodata' during its initialization is never read
# 444| void X11_HandleXRandREvent(_THIS, const XEvent *xevent)
# 445| {
# 446|-> SDL_VideoData *videodata = (SDL_VideoData *)_this->driverdata;
# 447| SDL_assert(xevent->type == (videodata->xrandr_event_base + RRNotify));
# 448|
Error: CPPCHECK_WARNING: [#def209]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/x11/SDL_x11mouse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def210]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/x11/SDL_x11opengl.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: GCC_ANALYZER_WARNING (CWE-476): [#def211]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/x11/SDL_x11opengl.c: scope_hint: In function ‘X11_GL_GetProcAddress’
SDL2-2.30.3-build/SDL2-2.30.3/src/video/x11/SDL_x11opengl.c:281:23: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*_this.gl_data’
# 279| void *X11_GL_GetProcAddress(_THIS, const char *proc)
# 280| {
# 281|-> if (_this->gl_data->glXGetProcAddress) {
# 282| return _this->gl_data->glXGetProcAddress((const GLubyte *)proc);
# 283| }
Error: CPPCHECK_WARNING (CWE-562): [#def212]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/x11/SDL_x11opengles.c:88: error[returnDanglingLifetime]: Returning pointer to local variable 'out_count' that will be invalid when returning.
# 86| }
# 87|
# 88|-> return egl_visualinfo;
# 89| }
# 90|
Error: CPPCHECK_WARNING (CWE-562): [#def213]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/x11/SDL_x11opengles.c:88: error[returnDanglingLifetime]: Returning pointer to local variable 'vi_in' that will be invalid when returning.
# 86| }
# 87|
# 88|-> return egl_visualinfo;
# 89| }
# 90|
Error: CPPCHECK_WARNING: [#def214]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/x11/SDL_x11video.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def215]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/x11/SDL_x11vulkan.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def216]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/x11/SDL_x11window.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def217]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/x11/SDL_x11xfixes.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def218]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/x11/SDL_x11xinput2.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CPPCHECK_WARNING: [#def219]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/x11/edid-parse.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Error: CLANG_WARNING: [#def220]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/yuv2rgb/yuv_rgb_sse.c:182: included_from: Included from here.
SDL2-2.30.3-build/SDL2-2.30.3/src/video/yuv2rgb/yuv_rgb_sse_func.h:476:4: warning[deadcode.DeadStores]: Value stored to 'ypos' is never read
# 474| uint8_t *rgb_ptr=RGB+ypos*RGB_stride;
# 475| STD_FUNCTION_NAME(width, 1, y_ptr, u_ptr, v_ptr, Y_stride, UV_stride, rgb_ptr, RGB_stride, yuv_type);
# 476|-> ypos += uv_y_sample_interval;
# 477| }
# 478|
Error: CPPCHECK_WARNING: [#def221]
SDL2-2.30.3-build/SDL2-2.30.3/src/video/yuv2rgb/yuv_rgb_std.c: information[normalCheckLevelMaxBranches]: Limiting analysis of branches. Use --check-level=exhaustive to analyze all branches.
Scan Properties
analyzer-version-clang | 18.1.7 |
analyzer-version-cppcheck | 2.14.2 |
analyzer-version-gcc | 14.1.1 |
analyzer-version-gcc-analyzer | 14.1.1 |
analyzer-version-shellcheck | 0.10.0 |
enabled-plugins | clang, cppcheck, gcc, shellcheck |
exit-code | 0 |
host | ip-172-16-1-198.us-west-2.compute.internal |
mock-config | fedora-41-x86_64 |
project-name | SDL2-2.30.3-1.fc41 |
store-results-to | /tmp/tmpue65vcjs/SDL2-2.30.3-1.fc41.tar.xz |
time-created | 2024-07-03 12:03:05 |
time-finished | 2024-07-03 12:10:10 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-41-x86_64' '-t' 'cppcheck,gcc,clang,shellcheck' '-o' '/tmp/tmpue65vcjs/SDL2-2.30.3-1.fc41.tar.xz' '--gcc-analyze' '/tmp/tmpue65vcjs/SDL2-2.30.3-1.fc41.src.rpm' |
tool-version | csmock-3.5.3-1.el9 |