Error: COMPILER_WARNING: [#def1] SDL3-3.2.10/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-1cUyxb/src.c:5:11: note[note]: called from here Error: COMPILER_WARNING: [#def2] SDL3-3.2.10/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-1cUyxb/src.c:5:11: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI Error: GCC_ANALYZER_WARNING (CWE-457): [#def3] SDL3-3.2.10/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-1tPbXv/src.c:7:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘display’ Error: COMPILER_WARNING: [#def4] SDL3-3.2.10/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-3HF1A3/src.c:5:11: note[note]: called from here Error: COMPILER_WARNING: [#def5] SDL3-3.2.10/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-3HF1A3/src.c:5:11: warning[-Wpsabi]: AVX512F vector return without AVX512F enabled changes the ABI Error: COMPILER_WARNING: [#def6] [important] SDL3-3.2.10/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-6nPYtm/CheckSymbolExists.c:26:19: error[error]: ‘_ltoa’ undeclared (first use in this function) Error: GCC_ANALYZER_WARNING (CWE-688): [#def7] SDL3-3.2.10/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-6tuoJP/src.c:5:19: warning[-Wanalyzer-null-argument]: use of NULL where non-null expected Error: GCC_ANALYZER_WARNING (CWE-457): [#def8] SDL3-3.2.10/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-EFAjEl/src.c:25:5: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘pipes[0]’ Error: GCC_ANALYZER_WARNING (CWE-457): [#def9] SDL3-3.2.10/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-RedEHp/src.c:5:9: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘y’ Error: COMPILER_WARNING: [#def10] [important] SDL3-3.2.10/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-SYUwA4/CheckSymbolExists.c:26:19: error[error]: ‘itoa’ undeclared (first use in this function) Error: COMPILER_WARNING (CWE-686): [#def11] SDL3-3.2.10/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-e5fkGB/CheckFunctionExists.c:7:3: warning[-Wbuiltin-declaration-mismatch]: conflicting types for built-in function ‘pow’; expected ‘double(double, double)’ Error: COMPILER_WARNING: [#def12] [important] SDL3-3.2.10/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-fYnLmf/CheckSymbolExists.c:26:19: error[error]: ‘strnstr’ undeclared (first use in this function); did you mean ‘strstr’? Error: COMPILER_WARNING: [#def13] SDL3-3.2.10/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-jeBwYs/src.c:5:11: note[note]: called from here Error: COMPILER_WARNING: [#def14] SDL3-3.2.10/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-kNA1ar/src.c:6:22: note[note]: called from here Error: COMPILER_WARNING: [#def15] [important] SDL3-3.2.10/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-suHjPg/CheckSymbolExists.c:26:19: error[error]: ‘sqr’ undeclared (first use in this function); did you mean ‘sqrt’? Error: COMPILER_WARNING: [#def16] SDL3-3.2.10/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-wjCRa2/src.c:5:11: note[note]: called from here Error: COMPILER_WARNING: [#def17] SDL3-3.2.10/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-wjCRa2/src.c:5:11: warning[-Wpsabi]: AVX vector return without AVX enabled changes the ABI Error: COMPILER_WARNING: [#def18] [important] SDL3-3.2.10/redhat-linux-build/CMakeFiles/CMakeScratch/TryCompile-wv4eMH/CheckSymbolExists.c:26:19: error[error]: ‘_i64toa’ undeclared (first use in this function) Error: GCC_ANALYZER_WARNING (CWE-476): [#def19] SDL3-3.2.10/src/audio/alsa/SDL_alsa_audio.c:1251:21: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘unseen_prev_adev’ SDL3-3.2.10/src/audio/alsa/SDL_alsa_audio.c:1227:12: branch_false: following ‘false’ branch... SDL3-3.2.10/src/audio/alsa/SDL_alsa_audio.c:1236:12: branch_false: ...to here SDL3-3.2.10/src/audio/alsa/SDL_alsa_audio.c:1236:12: branch_true: following ‘true’ branch (when ‘subdev_idx == 0’)... SDL3-3.2.10/src/audio/alsa/SDL_alsa_audio.c:1237:25: branch_true: ...to here SDL3-3.2.10/src/audio/alsa/SDL_alsa_audio.c:1244:30: branch_true: following ‘true’ branch (when ‘adev’ is non-NULL)... SDL3-3.2.10/src/audio/alsa/SDL_alsa_audio.c:1246:18: branch_true: ...to here SDL3-3.2.10/src/audio/alsa/SDL_alsa_audio.c:1246:16: branch_true: following ‘true’ branch... SDL3-3.2.10/src/audio/alsa/SDL_alsa_audio.c:1251:21: danger: dereference of NULL ‘unseen_prev_adev’ # 1249| *unseen = adev->next; # 1250| } else { # 1251|-> unseen_prev_adev->next = adev->next; # 1252| } # 1253| // chain to seen Error: CPPCHECK_WARNING (CWE-664): [#def20] SDL3-3.2.10/src/core/linux/SDL_dbus.c:228: error[va_list_usedBeforeStarted]: va_list 'ap_reply' used before va_start() was called. # 226| int firstarg; # 227| va_list ap_reply; # 228|-> va_copy(ap_reply, ap); // copy the arg list so we don't compete with D-Bus for it # 229| firstarg = va_arg(ap, int); # 230| if ((firstarg == DBUS_TYPE_INVALID) || dbus.message_append_args_valist(msg, firstarg, ap)) { Error: CPPCHECK_WARNING (CWE-664): [#def21] SDL3-3.2.10/src/core/linux/SDL_dbus.c:234: error[va_list_usedBeforeStarted]: va_list 'ap_reply' used before va_start() was called. # 232| if (reply) { # 233| // skip any input args, get to output args. # 234|-> while ((firstarg = va_arg(ap_reply, int)) != DBUS_TYPE_INVALID) { # 235| // we assume D-Bus already validated all this. # 236| { Error: CPPCHECK_WARNING (CWE-664): [#def22] SDL3-3.2.10/src/core/linux/SDL_dbus.c:237: error[va_list_usedBeforeStarted]: va_list 'ap_reply' used before va_start() was called. # 235| // we assume D-Bus already validated all this. # 236| { # 237|-> void *dumpptr = va_arg(ap_reply, void *); # 238| (void)dumpptr; # 239| } Error: CPPCHECK_WARNING (CWE-664): [#def23] SDL3-3.2.10/src/core/linux/SDL_dbus.c:242: error[va_list_usedBeforeStarted]: va_list 'ap_reply' used before va_start() was called. # 240| if (firstarg == DBUS_TYPE_ARRAY) { # 241| { # 242|-> const int dumpint = va_arg(ap_reply, int); # 243| (void)dumpint; # 244| } Error: CPPCHECK_WARNING (CWE-664): [#def24] SDL3-3.2.10/src/core/linux/SDL_dbus.c:247: error[va_list_usedBeforeStarted]: va_list 'ap_reply' used before va_start() was called. # 245| } # 246| } # 247|-> firstarg = va_arg(ap_reply, int); # 248| if ((firstarg == DBUS_TYPE_INVALID) || dbus.message_get_args_valist(reply, NULL, firstarg, ap_reply)) { # 249| result = true; Error: CPPCHECK_WARNING (CWE-664): [#def25] SDL3-3.2.10/src/core/linux/SDL_dbus.c:248: error[va_list_usedBeforeStarted]: va_list 'ap_reply' used before va_start() was called. # 246| } # 247| firstarg = va_arg(ap_reply, int); # 248|-> if ((firstarg == DBUS_TYPE_INVALID) || dbus.message_get_args_valist(reply, NULL, firstarg, ap_reply)) { # 249| result = true; # 250| } Error: CPPCHECK_WARNING (CWE-664): [#def26] SDL3-3.2.10/src/core/linux/SDL_dbus.c:254: error[va_list_usedBeforeStarted]: va_list 'ap_reply' used before va_start() was called. # 252| } # 253| } # 254|-> va_end(ap_reply); # 255| dbus.message_unref(msg); # 256| } Error: GCC_ANALYZER_WARNING (CWE-457): [#def27] SDL3-3.2.10/src/events/SDL_events.c:471:70: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*event.user.data2’ SDL3-3.2.10/src/events/SDL_events.c:1905:6: enter_function: entry to ‘SDL_SendAppEvent’ SDL3-3.2.10/src/events/SDL_events.c:1912:9: branch_true: following ‘true’ branch... SDL3-3.2.10/src/events/SDL_events.c:1913:9: branch_true: ...to here SDL3-3.2.10/src/events/SDL_events.c:1920:16: branch_true: following ‘true’ branch... SDL3-3.2.10/src/events/SDL_events.c:1921:17: branch_true: ...to here SDL3-3.2.10/src/events/SDL_events.c:1921:17: call_function: calling ‘SDL_LogEvent’ from ‘SDL_SendAppEvent’ # 469| (void)SDL_snprintf(details, sizeof(details), "%s (timestamp=%u windowid=%u code=%d data1=%p data2=%p)", # 470| plusstr, (uint)event->user.timestamp, (uint)event->user.windowID, # 471|-> (int)event->user.code, event->user.data1, event->user.data2); # 472| } # 473| Error: GCC_ANALYZER_WARNING (CWE-787): [#def28] SDL3-3.2.10/src/events/imKStoUCS.c:305:16: warning[-Wanalyzer-out-of-bounds]: buffer over-read SDL3-3.2.10/src/events/imKStoUCS.c:299:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:302:9: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:302:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:304:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:304:13: branch_true: following ‘true’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:305:16: branch_true: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:305:16: danger: read of 2 bytes at offset ‘keysym * 2 + 8589933758’ exceeds ‘keysym_to_unicode_1a1_1ff’ # 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): [#def29] SDL3-3.2.10/src/events/imKStoUCS.c:307:16: warning[-Wanalyzer-out-of-bounds]: buffer over-read SDL3-3.2.10/src/events/imKStoUCS.c:299:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:302:9: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:302:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:304:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:304:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:306:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:306:13: branch_true: following ‘true’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:307:16: branch_true: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:307:16: danger: read of 2 bytes at offset ‘keysym * 2 + 8589933246’ exceeds ‘keysym_to_unicode_2a1_2fe’ # 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): [#def30] SDL3-3.2.10/src/events/imKStoUCS.c:309:16: warning[-Wanalyzer-out-of-bounds]: buffer over-read SDL3-3.2.10/src/events/imKStoUCS.c:299:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:302:9: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:302:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:304:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:304:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:306:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:306:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:308:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:308:13: branch_true: following ‘true’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:309:16: branch_true: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:309:16: danger: read of 2 bytes at offset ‘keysym * 2 + 8589932732’ exceeds ‘keysym_to_unicode_3a2_3fe’ # 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): [#def31] SDL3-3.2.10/src/events/imKStoUCS.c:311:16: warning[-Wanalyzer-out-of-bounds]: buffer over-read SDL3-3.2.10/src/events/imKStoUCS.c:299:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:302:9: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:302:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:304:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:304:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:306:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:306:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:308:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:308:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:310:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:310:13: branch_true: following ‘true’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:311:16: branch_true: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:311:16: danger: read of 2 bytes at offset ‘keysym * 2 + 8589932222’ exceeds ‘keysym_to_unicode_4a1_4df’ # 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): [#def32] SDL3-3.2.10/src/events/imKStoUCS.c:313:16: warning[-Wanalyzer-out-of-bounds]: buffer over-read SDL3-3.2.10/src/events/imKStoUCS.c:299:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:302:9: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:302:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:304:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:304:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:306:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:306:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:308:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:308:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:310:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:310:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:312:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:312:13: branch_true: following ‘true’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:313:42: branch_true: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:313:16: danger: read of 2 bytes at offset ‘keysym * 2 + 8589931744’ exceeds ‘keysym_to_unicode_590_5fe’ # 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): [#def33] SDL3-3.2.10/src/events/imKStoUCS.c:315:16: warning[-Wanalyzer-out-of-bounds]: buffer over-read SDL3-3.2.10/src/events/imKStoUCS.c:299:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:302:9: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:302:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:304:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:304:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:306:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:306:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:308:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:308:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:310:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:310:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:312:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:312:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:314:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:314:13: branch_true: following ‘true’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:315:16: branch_true: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:315:16: danger: read of 2 bytes at offset ‘keysym * 2 + 8589931264’ exceeds ‘keysym_to_unicode_680_6ff’ # 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): [#def34] SDL3-3.2.10/src/events/imKStoUCS.c:317:16: warning[-Wanalyzer-out-of-bounds]: buffer over-read SDL3-3.2.10/src/events/imKStoUCS.c:299:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:302:9: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:302:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:304:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:304:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:306:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:306:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:308:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:308:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:310:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:310:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:312:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:312:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:314:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:314:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:316:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:316:13: branch_true: following ‘true’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:317:16: branch_true: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:317:16: danger: read of 2 bytes at offset ‘keysym * 2 + 8589930686’ exceeds ‘keysym_to_unicode_7a1_7f9’ # 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): [#def35] SDL3-3.2.10/src/events/imKStoUCS.c:319:16: warning[-Wanalyzer-out-of-bounds]: buffer over-read SDL3-3.2.10/src/events/imKStoUCS.c:299:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:302:9: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:302:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:304:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:304:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:306:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:306:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:308:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:308:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:310:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:310:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:312:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:312:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:314:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:314:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:316:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:316:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:318:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:318:13: branch_true: following ‘true’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:319:16: branch_true: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:319:16: danger: read of 2 bytes at offset ‘keysym * 2 + 8589930168’ exceeds ‘keysym_to_unicode_8a4_8fe’ # 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): [#def36] SDL3-3.2.10/src/events/imKStoUCS.c:321:16: warning[-Wanalyzer-out-of-bounds]: buffer over-read SDL3-3.2.10/src/events/imKStoUCS.c:299:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:302:9: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:302:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:304:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:304:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:306:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:306:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:308:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:308:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:310:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:310:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:312:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:312:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:314:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:314:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:316:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:316:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:318:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:318:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:320:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:320:13: branch_true: following ‘true’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:321:16: branch_true: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:321:16: danger: read of 2 bytes at offset ‘keysym * 2 + 8589929538’ exceeds ‘keysym_to_unicode_9df_9f8’ # 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): [#def37] SDL3-3.2.10/src/events/imKStoUCS.c:323:16: warning[-Wanalyzer-out-of-bounds]: buffer over-read SDL3-3.2.10/src/events/imKStoUCS.c:299:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:302:9: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:302:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:304:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:304:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:306:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:306:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:308:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:308:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:310:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:310:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:312:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:312:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:314:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:314:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:316:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:316:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:318:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:318:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:320:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:320:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:322:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:322:13: branch_true: following ‘true’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:323:16: branch_true: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:323:16: danger: read of 2 bytes at offset ‘keysym * 2 + 8589929150’ exceeds ‘keysym_to_unicode_aa1_afe’ # 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): [#def38] SDL3-3.2.10/src/events/imKStoUCS.c:325:16: warning[-Wanalyzer-out-of-bounds]: buffer over-read SDL3-3.2.10/src/events/imKStoUCS.c:299:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:302:9: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:302:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:304:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:304:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:306:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:306:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:308:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:308:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:310:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:310:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:312:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:312:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:314:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:314:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:316:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:316:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:318:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:318:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:320:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:320:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:322:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:322:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:324:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:324:13: branch_true: following ‘true’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:325:16: branch_true: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:325:16: danger: read of 2 bytes at offset ‘keysym * 2 + 8589928002’ exceeds ‘keysym_to_unicode_cdf_cfa’ # 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): [#def39] SDL3-3.2.10/src/events/imKStoUCS.c:327:16: warning[-Wanalyzer-out-of-bounds]: buffer over-read SDL3-3.2.10/src/events/imKStoUCS.c:299:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:302:9: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:302:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:304:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:304:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:306:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:306:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:308:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:308:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:310:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:310:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:312:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:312:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:314:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:314:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:316:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:316:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:318:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:318:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:320:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:320:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:322:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:322:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:324:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:324:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:326:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:326:13: branch_true: following ‘true’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:327:16: branch_true: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:327:16: danger: read of 2 bytes at offset ‘keysym * 2 + 8589927614’ exceeds ‘keysym_to_unicode_da1_df9’ # 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): [#def40] SDL3-3.2.10/src/events/imKStoUCS.c:329:16: warning[-Wanalyzer-out-of-bounds]: buffer over-read SDL3-3.2.10/src/events/imKStoUCS.c:299:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:302:9: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:302:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:304:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:304:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:306:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:306:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:308:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:308:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:310:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:310:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:312:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:312:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:314:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:314:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:316:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:316:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:318:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:318:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:320:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:320:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:322:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:322:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:324:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:324:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:326:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:326:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:328:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:328:13: branch_true: following ‘true’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:329:16: branch_true: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:329:16: danger: read of 2 bytes at offset ‘keysym * 2 + 8589927104’ exceeds ‘keysym_to_unicode_ea0_eff’ # 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): [#def41] SDL3-3.2.10/src/events/imKStoUCS.c:331:16: warning[-Wanalyzer-out-of-bounds]: buffer over-read SDL3-3.2.10/src/events/imKStoUCS.c:299:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:302:9: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:302:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:304:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:304:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:306:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:306:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:308:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:308:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:310:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:310:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:312:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:312:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:314:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:314:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:316:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:316:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:318:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:318:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:320:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:320:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:322:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:322:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:324:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:324:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:326:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:326:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:328:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:328:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:330:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:330:13: branch_true: following ‘true’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:331:16: branch_true: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:331:16: danger: read of 2 bytes at offset ‘keysym * 2 + 8589925054’ exceeds ‘keysym_to_unicode_12a1_12fe’ # 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): [#def42] SDL3-3.2.10/src/events/imKStoUCS.c:333:16: warning[-Wanalyzer-out-of-bounds]: buffer over-read SDL3-3.2.10/src/events/imKStoUCS.c:299:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:302:9: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:302:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:304:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:304:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:306:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:306:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:308:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:308:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:310:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:310:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:312:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:312:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:314:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:314:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:316:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:316:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:318:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:318:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:320:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:320:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:322:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:322:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:324:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:324:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:326:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:326:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:328:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:328:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:330:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:330:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:332:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:332:13: branch_true: following ‘true’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:333:16: branch_true: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:333:16: danger: read of 2 bytes at offset ‘keysym * 2 + 8589924488’ exceeds ‘keysym_to_unicode_13bc_13be’ # 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): [#def43] SDL3-3.2.10/src/events/imKStoUCS.c:335:16: warning[-Wanalyzer-out-of-bounds]: buffer over-read SDL3-3.2.10/src/events/imKStoUCS.c:299:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:302:9: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:302:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:304:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:304:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:306:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:306:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:308:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:308:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:310:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:310:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:312:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:312:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:314:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:314:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:316:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:316:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:318:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:318:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:320:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:320:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:322:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:322:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:324:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:324:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:326:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:326:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:328:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:328:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:330:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:330:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:332:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:332:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:334:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:334:13: branch_true: following ‘true’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:335:16: branch_true: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:335:16: danger: read of 2 bytes at offset ‘keysym * 2 + 8589924030’ exceeds ‘keysym_to_unicode_14a1_14ff’ # 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): [#def44] SDL3-3.2.10/src/events/imKStoUCS.c:337:16: warning[-Wanalyzer-out-of-bounds]: buffer over-read SDL3-3.2.10/src/events/imKStoUCS.c:299:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:302:9: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:302:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:304:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:304:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:306:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:306:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:308:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:308:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:310:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:310:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:312:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:312:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:314:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:314:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:316:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:316:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:318:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:318:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:320:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:320:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:322:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:322:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:324:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:324:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:326:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:326:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:328:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:328:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:330:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:330:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:332:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:332:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:334:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:334:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:336:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:336:13: branch_true: following ‘true’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:337:16: branch_true: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:337:16: danger: read of 2 bytes at offset ‘keysym * 2 + 8589923424’ exceeds ‘keysym_to_unicode_15d0_15f6’ # 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): [#def45] SDL3-3.2.10/src/events/imKStoUCS.c:339:16: warning[-Wanalyzer-out-of-bounds]: buffer over-read SDL3-3.2.10/src/events/imKStoUCS.c:299:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:302:9: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:302:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:304:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:304:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:306:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:306:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:308:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:308:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:310:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:310:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:312:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:312:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:314:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:314:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:316:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:316:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:318:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:318:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:320:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:320:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:322:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:322:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:324:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:324:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:326:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:326:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:328:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:328:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:330:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:330:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:332:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:332:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:334:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:334:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:336:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:336:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:338:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:338:13: branch_true: following ‘true’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:339:16: branch_true: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:339:16: danger: read of 2 bytes at offset ‘keysym * 2 + 8589923008’ exceeds ‘keysym_to_unicode_16a0_16f6’ # 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): [#def46] SDL3-3.2.10/src/events/imKStoUCS.c:341:16: warning[-Wanalyzer-out-of-bounds]: buffer over-read SDL3-3.2.10/src/events/imKStoUCS.c:299:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:302:9: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:302:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:304:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:304:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:306:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:306:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:308:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:308:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:310:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:310:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:312:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:312:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:314:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:314:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:316:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:316:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:318:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:318:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:320:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:320:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:322:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:322:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:324:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:324:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:326:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:326:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:328:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:328:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:330:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:330:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:332:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:332:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:334:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:334:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:336:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:336:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:338:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:338:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:340:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:340:13: branch_true: following ‘true’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:341:16: branch_true: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:341:16: danger: read of 2 bytes at offset ‘keysym * 2 + 8589918914’ exceeds ‘keysym_to_unicode_1e9f_1eff’ # 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): [#def47] SDL3-3.2.10/src/events/imKStoUCS.c:343:16: warning[-Wanalyzer-out-of-bounds]: buffer over-read SDL3-3.2.10/src/events/imKStoUCS.c:299:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:302:9: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:302:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:304:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:304:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:306:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:306:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:308:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:308:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:310:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:310:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:312:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:312:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:314:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:314:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:316:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:316:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:318:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:318:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:320:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:320:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:322:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:322:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:324:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:324:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:326:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:326:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:328:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:328:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:330:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:330:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:332:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:332:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:334:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:334:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:336:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:336:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:338:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:338:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:340:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:340:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:342:14: branch_false: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:342:13: branch_true: following ‘true’ branch... SDL3-3.2.10/src/events/imKStoUCS.c:343:16: branch_true: ...to here SDL3-3.2.10/src/events/imKStoUCS.c:343:16: danger: read of 2 bytes at offset ‘keysym * 2 + 8589917888’ exceeds ‘keysym_to_unicode_20a0_20ac’ # 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-476): [#def48] SDL3-3.2.10/src/gpu/vulkan/SDL_gpu_vulkan.c:4445:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘swapchainSupportDetails.formats’ SDL3-3.2.10/src/gpu/vulkan/SDL_gpu_vulkan.c:9765:15: enter_function: entry to ‘VULKAN_INTERNAL_RecreateSwapchain’ SDL3-3.2.10/src/gpu/vulkan/SDL_gpu_vulkan.c:9775:17: branch_true: following ‘true’ branch (when ‘i != 3’)... SDL3-3.2.10/src/gpu/vulkan/SDL_gpu_vulkan.c:9776:13: branch_true: ...to here SDL3-3.2.10/src/gpu/vulkan/SDL_gpu_vulkan.c:9776:12: branch_false: following ‘false’ branch... SDL3-3.2.10/src/gpu/vulkan/SDL_gpu_vulkan.c:9775:43: branch_false: ...to here SDL3-3.2.10/src/gpu/vulkan/SDL_gpu_vulkan.c:9784:5: call_function: inlined call to ‘VULKAN_INTERNAL_DestroySwapchain’ from ‘VULKAN_INTERNAL_RecreateSwapchain’ branch_false: ...to here SDL3-3.2.10/src/gpu/vulkan/SDL_gpu_vulkan.c:9784:5: call_function: inlined call to ‘VULKAN_INTERNAL_DestroySwapchain’ from ‘VULKAN_INTERNAL_RecreateSwapchain’ SDL3-3.2.10/src/gpu/vulkan/SDL_gpu_vulkan.c:9784:5: call_function: inlined call to ‘VULKAN_INTERNAL_DestroySwapchain’ from ‘VULKAN_INTERNAL_RecreateSwapchain’ SDL3-3.2.10/src/gpu/vulkan/SDL_gpu_vulkan.c:9785:12: call_function: calling ‘VULKAN_INTERNAL_CreateSwapchain’ from ‘VULKAN_INTERNAL_RecreateSwapchain’ # 4443| Uint32 i; # 4444| for (i = 0; i < availableFormatsLength; i += 1) { # 4445|-> if (availableFormats[i].format == desiredFormat && # 4446| availableFormats[i].colorSpace == desiredColorSpace) { # 4447| return true; Error: GCC_ANALYZER_WARNING (CWE-476): [#def49] SDL3-3.2.10/src/gpu/vulkan/SDL_gpu_vulkan.c:4460:13: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ SDL3-3.2.10/src/gpu/vulkan/SDL_gpu_vulkan.c:9765:15: enter_function: entry to ‘VULKAN_INTERNAL_RecreateSwapchain’ SDL3-3.2.10/src/gpu/vulkan/SDL_gpu_vulkan.c:9775:17: branch_true: following ‘true’ branch (when ‘i != 3’)... SDL3-3.2.10/src/gpu/vulkan/SDL_gpu_vulkan.c:9776:13: branch_true: ...to here SDL3-3.2.10/src/gpu/vulkan/SDL_gpu_vulkan.c:9776:12: branch_false: following ‘false’ branch... SDL3-3.2.10/src/gpu/vulkan/SDL_gpu_vulkan.c:9775:43: branch_false: ...to here SDL3-3.2.10/src/gpu/vulkan/SDL_gpu_vulkan.c:9784:5: call_function: inlined call to ‘VULKAN_INTERNAL_DestroySwapchain’ from ‘VULKAN_INTERNAL_RecreateSwapchain’ branch_false: ...to here SDL3-3.2.10/src/gpu/vulkan/SDL_gpu_vulkan.c:9784:5: call_function: inlined call to ‘VULKAN_INTERNAL_DestroySwapchain’ from ‘VULKAN_INTERNAL_RecreateSwapchain’ SDL3-3.2.10/src/gpu/vulkan/SDL_gpu_vulkan.c:9784:5: call_function: inlined call to ‘VULKAN_INTERNAL_DestroySwapchain’ from ‘VULKAN_INTERNAL_RecreateSwapchain’ SDL3-3.2.10/src/gpu/vulkan/SDL_gpu_vulkan.c:9785:12: call_function: calling ‘VULKAN_INTERNAL_CreateSwapchain’ from ‘VULKAN_INTERNAL_RecreateSwapchain’ # 4458| Uint32 i; # 4459| for (i = 0; i < availablePresentModesLength; i += 1) { # 4460|-> if (availablePresentModes[i] == presentMode) { # 4461| return true; # 4462| } Error: GCC_ANALYZER_WARNING (CWE-476): [#def50] SDL3-3.2.10/src/haptic/linux/SDL_syshaptic.c:453:15: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ SDL3-3.2.10/src/haptic/linux/SDL_syshaptic.c:446:6: enter_function: entry to ‘SDL_SYS_HapticOpen’ SDL3-3.2.10/src/haptic/linux/SDL_syshaptic.c:451:12: call_function: inlined call to ‘HapticByInstanceID’ from ‘SDL_SYS_HapticOpen’ SDL3-3.2.10/src/haptic/linux/SDL_syshaptic.c:453:15: branch_false: ...to here SDL3-3.2.10/src/haptic/linux/SDL_syshaptic.c:453:15: danger: dereference of NULL ‘<unknown>’ # 451| item = HapticByInstanceID(haptic->instance_id); # 452| // Open the character device # 453|-> fd = open(item->fname, O_RDWR | O_CLOEXEC, 0); # 454| if (fd < 0) { # 455| return SDL_SetError("Haptic: Unable to open %s: %s", Error: GCC_ANALYZER_WARNING (CWE-415): [#def51] SDL3-3.2.10/src/hidapi/linux/hid.c:137:9: warning[-Wanalyzer-double-free]: double-‘free’ of ‘last_global_error_str’ SDL3-3.2.10/src/hidapi/SDL_hidapi.c:1408:29: enter_function: entry to ‘SDL_hid_enumerate_REAL’ SDL3-3.2.10/src/hidapi/SDL_hidapi.c:1436:8: branch_true: following ‘true’ branch... SDL3-3.2.10/src/hidapi/SDL_hidapi.c:1437:20: branch_true: ...to here SDL3-3.2.10/src/hidapi/SDL_hidapi.c:1437:20: call_function: calling ‘PLATFORM_hid_enumerate’ from ‘SDL_hid_enumerate_REAL’ # 135| static void register_error_str(wchar_t **error_str, const char *msg) # 136| { # 137|-> free(*error_str); # 138| #ifdef HIDAPI_USING_SDL_RUNTIME # 139| /* Thread-safe error handling */ Error: GCC_ANALYZER_WARNING (CWE-476): [#def52] SDL3-3.2.10/src/joystick/linux/SDL_sysjoystick.c:2253:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘0’ # 2251| SDL_AssertJoysticksLocked(); # 2252| # 2253|-> if (item->checked_mapping) { # 2254| if (item->mapping) { # 2255| SDL_memcpy(out, item->mapping, sizeof(*out)); Error: CPPCHECK_WARNING (CWE-758): [#def53] SDL3-3.2.10/src/joystick/virtual/SDL_virtualjoystick.c:203: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 201| if (hwdata->desc.button_mask == 0) { # 202| for (i = 0; i < hwdata->desc.nbuttons && i < sizeof(hwdata->desc.button_mask) * 8; ++i) { # 203|-> hwdata->desc.button_mask |= (1 << i); # 204| } # 205| } Error: CPPCHECK_WARNING (CWE-758): [#def54] SDL3-3.2.10/src/libm/e_atan2.c:65: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 63| return x+y; # 64| if(((hx-0x3ff00000)|lx)==0) return atan(y); /* x=1.0 */ # 65|-> m = ((hy>>31)&1)|((hx>>30)&2); /* 2*sign(x)+sign(y) */ # 66| # 67| /* when y = 0 */ Error: CPPCHECK_WARNING (CWE-758): [#def55] SDL3-3.2.10/src/libm/s_isinf.c:22: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 20| lx |= (hx & 0x7fffffff) ^ 0x7ff00000; # 21| lx |= -lx; # 22|-> return ~(lx >> 31) & (hx >> 30); # 23| } # 24| libm_hidden_def(__isinf) Error: CPPCHECK_WARNING (CWE-758): [#def56] SDL3-3.2.10/src/libm/s_isinff.c:22: error[shiftTooManyBitsSigned]: Shifting signed 32-bit value by 31 bits is undefined behaviour # 20| t ^= 0x7f800000; # 21| t |= -t; # 22|-> return ~(t >> 31) & (ix >> 30); # 23| } # 24| libm_hidden_def(__isinff) Error: GCC_ANALYZER_WARNING (CWE-401): [#def57] SDL3-3.2.10/src/stdlib/SDL_iconv.c:806:8: warning[-Wanalyzer-malloc-leak]: leak of ‘iconv_open(tocode, fromcode)’ SDL3-3.2.10/src/stdlib/SDL_iconv.c:790:7: enter_function: entry to ‘SDL_iconv_string_REAL’ SDL3-3.2.10/src/stdlib/SDL_iconv.c:805:10: call_function: inlined call to ‘SDL_iconv_open_REAL’ from ‘SDL_iconv_string_REAL’ SDL3-3.2.10/src/stdlib/SDL_iconv.c:806:8: danger: ‘iconv_open(tocode, fromcode)’ leaks here; was allocated at [(3)](sarif:/runs/0/results/0/codeFlows/0/threadFlows/0/locations/2) # 804| } # 805| cd = SDL_iconv_open(tocode, fromcode); # 806|-> if (cd == (SDL_iconv_t)-1) { # 807| return NULL; # 808| } Error: CPPCHECK_WARNING (CWE-664): [#def58] SDL3-3.2.10/src/stdlib/SDL_string.c:2388: error[va_list_usedBeforeStarted]: va_list 'aq' used before va_start() was called. # 2386| // generate the text to find the final text length # 2387| va_list aq; # 2388|-> va_copy(aq, ap); # 2389| const int utf8len = SDL_vsnprintf(tinybuf, sizeof (tinybuf), fmt_utf8, aq); # 2390| va_end(aq); Error: CPPCHECK_WARNING (CWE-664): [#def59] SDL3-3.2.10/src/stdlib/SDL_string.c:2389: error[va_list_usedBeforeStarted]: va_list 'aq' used before va_start() was called. # 2387| va_list aq; # 2388| va_copy(aq, ap); # 2389|-> const int utf8len = SDL_vsnprintf(tinybuf, sizeof (tinybuf), fmt_utf8, aq); # 2390| va_end(aq); # 2391| Error: CPPCHECK_WARNING (CWE-664): [#def60] SDL3-3.2.10/src/stdlib/SDL_string.c:2390: error[va_list_usedBeforeStarted]: va_list 'aq' used before va_start() was called. # 2388| va_copy(aq, ap); # 2389| const int utf8len = SDL_vsnprintf(tinybuf, sizeof (tinybuf), fmt_utf8, aq); # 2390|-> va_end(aq); # 2391| # 2392| if (utf8len < 0) { Error: GCC_ANALYZER_WARNING: [#def61] SDL3-3.2.10/src/test/SDL_test_font.c:54:31: warning[-Wanalyzer-imprecise-fp-arithmetic]: use of floating-point arithmetic here might yield unexpected results SDL3-3.2.10/src/test/SDL_test_font.c:44:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/test/SDL_test_font.c:48:5: branch_false: ...to here SDL3-3.2.10/src/test/SDL_test_font.c:54:31: danger: at least one operand of the size argument is of a floating-point type # 52| textwin->current = 0; # 53| textwin->numlines = (int)SDL_ceilf(h / FONT_LINE_HEIGHT); # 54|-> textwin->lines = (char **)SDL_calloc(textwin->numlines, sizeof(*textwin->lines)); # 55| if (!textwin->lines) { # 56| SDL_free(textwin); Error: GCC_ANALYZER_WARNING (CWE-457): [#def62] SDL3-3.2.10/src/video/SDL_yuv.c:2339:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dstY1’ SDL3-3.2.10/src/video/SDL_yuv.c:2315:8: branch_false: following ‘false’ branch (when ‘src != dst’)... SDL3-3.2.10/src/video/SDL_yuv.c:2319:10: branch_false: ...to here SDL3-3.2.10/src/video/SDL_yuv.c:2319:8: branch_true: following ‘true’ branch... SDL3-3.2.10/src/video/SDL_yuv.c:2323:13: branch_true: ...to here SDL3-3.2.10/src/video/SDL_yuv.c:2334:8: branch_true: following ‘true’ branch... SDL3-3.2.10/src/video/SDL_yuv.c:2339:13: branch_true: ...to here SDL3-3.2.10/src/video/SDL_yuv.c:2339:13: danger: use of uninitialized value ‘dstY1’ here # 2337| return false; # 2338| } # 2339|-> dstY2 = dstY1 + dstY_pitch; # 2340| dstU2 = dstU1 + dstUV_pitch; # 2341| dstV2 = dstV1 + dstUV_pitch; Error: GCC_ANALYZER_WARNING (CWE-457): [#def63] SDL3-3.2.10/src/video/SDL_yuv.c:2475:13: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘dstY1’ SDL3-3.2.10/src/video/SDL_yuv.c:2445:13: enter_function: entry to ‘SDL_ConvertPixels_Packed4_to_Planar2x2’ SDL3-3.2.10/src/video/SDL_yuv.c:2457:8: branch_false: following ‘false’ branch (when ‘src != dst’)... SDL3-3.2.10/src/video/SDL_yuv.c:2461:10: branch_false: ...to here SDL3-3.2.10/src/video/SDL_yuv.c:2461:8: branch_true: following ‘true’ branch... SDL3-3.2.10/src/video/SDL_yuv.c:2465:13: branch_true: ...to here SDL3-3.2.10/src/video/SDL_yuv.c:2470:10: call_function: calling ‘GetYUVPlanes’ from ‘SDL_ConvertPixels_Packed4_to_Planar2x2’ SDL3-3.2.10/src/video/SDL_yuv.c:2470:10: return_function: returning to ‘SDL_ConvertPixels_Packed4_to_Planar2x2’ from ‘GetYUVPlanes’ SDL3-3.2.10/src/video/SDL_yuv.c:2470:8: branch_true: following ‘true’ branch... SDL3-3.2.10/src/video/SDL_yuv.c:2475:13: branch_true: ...to here SDL3-3.2.10/src/video/SDL_yuv.c:2475:13: danger: use of uninitialized value ‘dstY1’ here # 2473| return false; # 2474| } # 2475|-> dstY2 = dstY1 + dstY_pitch; # 2476| dstY_pitch_left = (dstY_pitch - width); # 2477| Error: CPPCHECK_WARNING (CWE-758): [#def64] SDL3-3.2.10/src/video/offscreen/SDL_offscreenvulkan.c:102: warning[objectIndex]: The address of variable 'path' might be accessed at non-zero index. # 100| # 101| for (i = 0; i < numPaths && _this->vulkan_config.loader_handle == NULL; i++) { # 102|-> foundPath = paths[i]; # 103| _this->vulkan_config.loader_handle = SDL_LoadObject(foundPath); # 104| } Error: CPPCHECK_WARNING (CWE-457): [#def65] SDL3-3.2.10/src/video/wayland/SDL_waylandevents.c:117: error[uninitvar]: Uninitialized variable: tp->id # 115| # 116| wl_list_for_each (tp, &touch_points, link) { # 117|-> if (tp->id == id) { # 118| tp->fx = fx; # 119| tp->fy = fy; Error: CPPCHECK_WARNING (CWE-457): [#def66] SDL3-3.2.10/src/video/wayland/SDL_waylandevents.c:133: error[uninitvar]: Uninitialized variable: tp->id # 131| # 132| wl_list_for_each (tp, &touch_points, link) { # 133|-> if (tp->id == id) { # 134| if (fx) { # 135| *fx = tp->fx; Error: CPPCHECK_WARNING (CWE-457): [#def67] SDL3-3.2.10/src/video/wayland/SDL_waylandevents.c:156: error[uninitvar]: Uninitialized variable: tp->surface # 154| # 155| wl_list_for_each (tp, &touch_points, link) { # 156|-> if (tp->surface == surface) { # 157| return true; # 158| } Error: CPPCHECK_WARNING (CWE-457): [#def68] SDL3-3.2.10/src/video/wayland/SDL_waylandevents.c:1220: error[uninitvar]: Uninitialized variable: tp->surface # 1218| bool removed = false; # 1219| # 1220|-> if (tp->surface) { # 1221| SDL_WindowData *window_data = (SDL_WindowData *)wl_surface_get_user_data(tp->surface); # 1222| Error: CPPCHECK_WARNING (CWE-457): [#def69] SDL3-3.2.10/src/video/wayland/SDL_waylandevents.c:3204: error[uninitvar]: Uninitialized variables: tp.id, tp.fx, tp.fy, tp.surface, tp.link # 3202| wl_list_for_each_safe (tp, tmp, &touch_points, link) { # 3203| WAYLAND_wl_list_remove(&tp->link); # 3204|-> SDL_free(tp); # 3205| } # 3206| } Error: CPPCHECK_WARNING (CWE-457): [#def70] SDL3-3.2.10/src/video/wayland/SDL_waylandmouse.c:618: error[uninitvar]: Uninitialized variables: c.scale, c.node # 616| wl_list_for_each_safe(c, temp, &d->cursor_data.custom.scaled_cursor_cache, node) { # 617| Wayland_ReleaseSHMBuffer(&c->shmBuffer); # 618|-> SDL_free(c); # 619| } # 620| Error: GCC_ANALYZER_WARNING (CWE-476): [#def71] SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:278:9: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘*_this.gl_data’ SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:339:13: enter_function: entry to ‘X11_GL_InitExtensions’ SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:351:13: call_function: calling ‘X11_GL_GetVisual’ from ‘X11_GL_InitExtensions’ SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:351:13: return_function: returning to ‘X11_GL_InitExtensions’ from ‘X11_GL_GetVisual’ SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:352:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:386:42: branch_false: ...to here SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:386:42: call_function: calling ‘X11_GL_GetProcAddress’ from ‘X11_GL_InitExtensions’ # 276| SDL_FunctionPointer X11_GL_GetProcAddress(SDL_VideoDevice *_this, const char *proc) # 277| { # 278|-> if (_this->gl_data->glXGetProcAddress) { # 279| return _this->gl_data->glXGetProcAddress((const GLubyte *)proc); # 280| } Error: CPPCHECK_WARNING (CWE-562): [#def72] SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:635: error[returnDanglingLifetime]: Returning pointer to local variable 'out_count' that will be invalid when returning. # 633| } # 634| } # 635|-> return visualinfo; # 636| } # 637| Error: CPPCHECK_WARNING (CWE-562): [#def73] SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:635: error[returnDanglingLifetime]: Returning pointer to local variable 'vi_in' that will be invalid when returning. # 633| } # 634| } # 635|-> return visualinfo; # 636| } # 637| Error: GCC_ANALYZER_WARNING (CWE-476): [#def74] SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:667:25: warning[-Wanalyzer-null-dereference]: dereference of NULL ‘framebuffer_config’ SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:638:14: enter_function: entry to ‘X11_GL_GetVisual’ SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:645:8: branch_false: following ‘false’ branch... SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:650:9: branch_false: ...to here SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:650:8: branch_true: following ‘true’ branch... SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:651:9: branch_true: ...to here SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:650:9: branch_true: following ‘true’ branch... SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:653:13: branch_true: ...to here SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:655:9: call_function: calling ‘X11_GL_GetAttributes’ from ‘X11_GL_GetVisual’ SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:655:9: return_function: returning to ‘X11_GL_GetVisual’ from ‘X11_GL_GetAttributes’ SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:657:12: branch_true: following ‘true’ branch... SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:657:36: branch_true: ...to here SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:657:13: branch_false: following ‘false’ branch... SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:662:12: branch_false: ...to here SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:662:12: branch_true: following ‘true’ branch (when ‘transparent != 0’)... branch_true: ...to here SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:665:25: branch_true: following ‘true’ branch... SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:667:25: branch_true: ...to here SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:667:93: release_memory: ‘framebuffer_config’ is NULL SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:667:93: release_memory: ‘framebuffer_config’ is NULL SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:667:93: release_memory: ‘framebuffer_config’ is NULL SDL3-3.2.10/src/video/x11/SDL_x11opengl.c:667:25: danger: dereference of NULL ‘framebuffer_config + (long unsigned int)i * 8’ # 665| for (i = 0; i < fbcount; i++) { # 666| Uint32 format; # 667|-> vinfo = _this->gl_data->glXGetVisualFromFBConfig(display, framebuffer_config[i]); # 668| format = X11_GetPixelFormatFromVisualInfo(display, vinfo); # 669| if (SDL_ISPIXELFORMAT_ALPHA(format)) { // found! Error: CPPCHECK_WARNING (CWE-562): [#def75] SDL3-3.2.10/src/video/x11/SDL_x11opengles.c:111: error[returnDanglingLifetime]: Returning pointer to local variable 'out_count' that will be invalid when returning. # 109| X11_XFree(egl_visualinfo); # 110| egl_visualinfo = X11_XGetVisualInfo(display, VisualScreenMask | VisualIDMask, &vi_in, &out_count); # 111|-> return egl_visualinfo; # 112| } # 113| } Error: CPPCHECK_WARNING (CWE-562): [#def76] SDL3-3.2.10/src/video/x11/SDL_x11opengles.c:111: error[returnDanglingLifetime]: Returning pointer to local variable 'vi_in' that will be invalid when returning. # 109| X11_XFree(egl_visualinfo); # 110| egl_visualinfo = X11_XGetVisualInfo(display, VisualScreenMask | VisualIDMask, &vi_in, &out_count); # 111|-> return egl_visualinfo; # 112| } # 113| } Error: GCC_ANALYZER_WARNING (CWE-457): [#def77] SDL3-3.2.10/src/video/x11/xsettings-client.c:755:22: warning[-Wanalyzer-use-of-uninitialized-value]: use of uninitialized value ‘*list.next’ SDL3-3.2.10/src/video/x11/xsettings-client.c:670:1: enter_function: entry to ‘xsettings_list_copy’ SDL3-3.2.10/src/video/x11/xsettings-client.c:676:10: branch_true: following ‘true’ branch (when ‘old_iter’ is non-NULL)... SDL3-3.2.10/src/video/x11/xsettings-client.c:680:18: branch_true: ...to here SDL3-3.2.10/src/video/x11/xsettings-client.c:681:10: branch_false: following ‘false’ branch (when ‘new_node’ is non-NULL)... SDL3-3.2.10/src/video/x11/xsettings-client.c:684:27: branch_false: ...to here SDL3-3.2.10/src/video/x11/xsettings-client.c:684:27: call_function: calling ‘xsettings_setting_copy’ from ‘xsettings_list_copy’ SDL3-3.2.10/src/video/x11/xsettings-client.c:684:27: return_function: returning to ‘xsettings_list_copy’ from ‘xsettings_setting_copy’ SDL3-3.2.10/src/video/x11/xsettings-client.c:685:10: branch_false: following ‘false’ branch... SDL3-3.2.10/src/video/x11/xsettings-client.c:691:10: branch_false: ...to here SDL3-3.2.10/src/video/x11/xsettings-client.c:691:10: branch_false: following ‘false’ branch (when ‘new_iter’ is NULL)... SDL3-3.2.10/src/video/x11/xsettings-client.c:696:11: branch_false: ...to here SDL3-3.2.10/src/video/x11/xsettings-client.c:676:10: branch_true: following ‘true’ branch (when ‘old_iter’ is non-NULL)... SDL3-3.2.10/src/video/x11/xsettings-client.c:680:18: branch_true: ...to here SDL3-3.2.10/src/video/x11/xsettings-client.c:681:10: branch_false: following ‘false’ branch (when ‘new_node’ is non-NULL)... SDL3-3.2.10/src/video/x11/xsettings-client.c:684:27: branch_false: ...to here SDL3-3.2.10/src/video/x11/xsettings-client.c:684:27: call_function: calling ‘xsettings_setting_copy’ from ‘xsettings_list_copy’ SDL3-3.2.10/src/video/x11/xsettings-client.c:684:27: return_function: returning to ‘xsettings_list_copy’ from ‘xsettings_setting_copy’ SDL3-3.2.10/src/video/x11/xsettings-client.c:685:10: branch_false: following ‘false’ branch... SDL3-3.2.10/src/video/x11/xsettings-client.c:691:10: branch_false: ...to here SDL3-3.2.10/src/video/x11/xsettings-client.c:691:10: branch_true: following ‘true’ branch (when ‘new_iter’ is non-NULL)... SDL3-3.2.10/src/video/x11/xsettings-client.c:692:9: branch_true: ...to here SDL3-3.2.10/src/video/x11/xsettings-client.c:676:10: branch_true: following ‘true’ branch (when ‘old_iter’ is non-NULL)... SDL3-3.2.10/src/video/x11/xsettings-client.c:680:18: branch_true: ...to here SDL3-3.2.10/src/video/x11/xsettings-client.c:681:10: branch_true: following ‘true’ branch (when ‘new_node’ is NULL)... SDL3-3.2.10/src/video/x11/xsettings-client.c:682:9: branch_true: ...to here SDL3-3.2.10/src/video/x11/xsettings-client.c:708:3: call_function: calling ‘xsettings_list_free’ from ‘xsettings_list_copy’ # 753| while (list) # 754| { # 755|-> XSettingsList *next = list->next; # 756| # 757| xsettings_setting_free (list->setting);
analyzer-version-clippy | 1.86.0 |
analyzer-version-cppcheck | 2.17.1 |
analyzer-version-gcc | 15.0.1 |
analyzer-version-gcc-analyzer | 15.0.1 |
analyzer-version-shellcheck | 0.10.0 |
analyzer-version-unicontrol | 0.0.2 |
enabled-plugins | clippy, cppcheck, gcc, shellcheck, unicontrol |
exit-code | 0 |
host | ip-172-16-1-114.us-west-2.compute.internal |
known-false-positives | /usr/share/csmock/known-false-positives.js |
known-false-positives-rpm | known-false-positives-0.0.0.20250425.124705.g1c7c448.main-1.el9.noarch |
mock-config | fedora-rawhide-x86_64 |
project-name | SDL3-3.2.10-1.fc43 |
store-results-to | /tmp/tmp0qy77wgy/SDL3-3.2.10-1.fc43.tar.xz |
time-created | 2025-04-25 12:04:26 |
time-finished | 2025-04-25 12:11:37 |
tool | csmock |
tool-args | '/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'unicontrol,cppcheck,gcc,clippy,shellcheck' '-o' '/tmp/tmp0qy77wgy/SDL3-3.2.10-1.fc43.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmp0qy77wgy/SDL3-3.2.10-1.fc43.src.rpm' |
tool-version | csmock-3.8.1.20250422.172604.g26bc3d6-1.el9 |