Fixed findings

List of Findings

Error: CPPCHECK_WARNING (CWE-664): [#def1]
SDL3-3.4.0/src/SDL_error.c:51: error[va_list_usedBeforeStarted]: va_list 'ap2' used before va_start() was called.
#   49|   
#   50|           va_copy(ap2, ap);
#   51|->         result = SDL_vsnprintf(error->str, error->len, fmt, ap2);
#   52|           va_end(ap2);
#   53|   

Error: CPPCHECK_WARNING (CWE-664): [#def2]
SDL3-3.4.0/src/SDL_error.c:61: error[va_list_usedBeforeStarted]: va_list 'ap2' used before va_start() was called.
#   59|                   error->len = len;
#   60|                   va_copy(ap2, ap);
#   61|->                 (void)SDL_vsnprintf(error->str, error->len, fmt, ap2);
#   62|                   va_end(ap2);
#   63|               }

Error: COMPILER_WARNING (CWE-704): [#def3]
SDL3-3.4.0/src/stdlib/SDL_string.c: scope_hint: In function ‘SDL_strpbrk_REAL’
SDL3-3.4.0/src/stdlib/SDL_string.c:2482:12: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type
# 2482 |     return strpbrk(str, breakset);
#      |            ^~~~~~~
# 2480|   {
# 2481|   #ifdef HAVE_STRPBRK
# 2482|->     return strpbrk(str, breakset);
# 2483|   #else
# 2484|   

Error: COMPILER_WARNING (CWE-704): [#def4]
SDL3-3.4.0/src/stdlib/SDL_string.c:2482:12: warning[-Wdiscarded-qualifiers]: return discards ‘const’ qualifier from pointer target type
# 2480|   {
# 2481|   #ifdef HAVE_STRPBRK
# 2482|->     return strpbrk(str, breakset);
# 2483|   #else
# 2484|   

Error: CPPCHECK_WARNING (CWE-457): [#def5]
SDL3-3.4.0/src/video/wayland/SDL_waylandmouse.c:900: error[uninitvar]: Uninitialized variable: seat->pointer.current_cursor
#  898|       wl_list_for_each (seat, &video_data->seat_list, link)
#  899|       {
#  900|->         if (seat->pointer.current_cursor == d) {
#  901|               Wayland_CursorStateDestroyFrameCallback(&seat->pointer.cursor_state);
#  902|   

Error: CPPCHECK_WARNING (CWE-457): [#def6]
SDL3-3.4.0/src/video/wayland/SDL_waylandmouse.c:1168: error[uninitvar]: Uninitialized variable: seat->pointer.wl_pointer
# 1166|   
# 1167|       wl_list_for_each (seat, &d->seat_list, link) {
# 1168|->         obj.wl_pointer = seat->pointer.wl_pointer;
# 1169|           obj.is_pointer = true;
# 1170|           if (mouse->focus && mouse->focus->internal == seat->pointer.focus) {

Scan Properties

analyzer-version-clippy1.95.0
analyzer-version-cppcheck2.20.0
analyzer-version-gcc16.1.1
analyzer-version-gcc-analyzer16.1.1
analyzer-version-shellcheck0.11.0
analyzer-version-unicontrol0.0.2
diffbase-analyzer-version-clippy1.95.0
diffbase-analyzer-version-cppcheck2.20.0
diffbase-analyzer-version-gcc16.1.1
diffbase-analyzer-version-gcc-analyzer16.1.1
diffbase-analyzer-version-shellcheck0.11.0
diffbase-analyzer-version-unicontrol0.0.2
diffbase-enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
diffbase-exit-code0
diffbase-hostip-172-16-1-42.us-west-2.compute.internal
diffbase-known-false-positives/usr/share/csmock/known-false-positives.js
diffbase-known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
diffbase-mock-configfedora-rawhide-x86_64
diffbase-project-nameSDL3-3.4.8-1.fc45
diffbase-store-results-to/tmp/tmpidndhcqt/SDL3-3.4.8-1.fc45.tar.xz
diffbase-time-created2026-06-01 11:28:18
diffbase-time-finished2026-06-01 11:37:23
diffbase-toolcsmock
diffbase-tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmpidndhcqt/SDL3-3.4.8-1.fc45.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmpidndhcqt/SDL3-3.4.8-1.fc45.src.rpm'
diffbase-tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9
enabled-pluginsclippy, cppcheck, gcc, shellcheck, unicontrol
exit-code0
hostip-172-16-1-42.us-west-2.compute.internal
known-false-positives/usr/share/csmock/known-false-positives.js
known-false-positives-rpmknown-false-positives-0.0.0.20260524.213755.g3c6d0be.main-1.el9.noarch
mock-configfedora-rawhide-x86_64
project-nameSDL3-3.4.0-3.fc44
store-results-to/tmp/tmps0_eoocp/SDL3-3.4.0-3.fc44.tar.xz
time-created2026-06-01 11:18:21
time-finished2026-06-01 11:27:44
titleFixed findings
toolcsmock
tool-args'/usr/bin/csmock' '-r' 'fedora-rawhide-x86_64' '-t' 'shellcheck,cppcheck,clippy,unicontrol,gcc' '-o' '/tmp/tmps0_eoocp/SDL3-3.4.0-3.fc44.tar.xz' '--gcc-analyze' '--unicontrol-notests' '--unicontrol-bidi-only' '--install' 'pam' '--gcc-analyzer-bin=/usr/bin/gcc' '/tmp/tmps0_eoocp/SDL3-3.4.0-3.fc44.src.rpm'
tool-versioncsmock-3.8.5.20260529.133039.g6f3b5c6-1.el9