raylib/src
Repository files (latest commit first)
Filename Latest commit message Latest commit date
greymoth da23f43a1c [rcore] Add gamepad >= 0 lower-bound guard to six sibling functions
Commit 3edfe194 added a `gamepad >= 0` lower-bound check to
GetGamepadAxisCount() and GetGamepadName(), but six sibling functions
were left with only the upper-bound check (`gamepad < MAX_GAMEPADS`).
A negative signed int passes that check and triggers out-of-bounds
access on CORE.Input.Gamepad.ready[gamepad] and related arrays (UB in C).

Apply the same `(gamepad >= 0) &&` guard added in 3edfe194 to:
- IsGamepadAvailable
- IsGamepadButtonPressed
- IsGamepadButtonDown
- IsGamepadButtonReleased
- IsGamepadButtonUp
- GetGamepadAxisMovement
2026-06-27 01:37:32 +09:00
..
external Reemove trailing spaces 2026-06-16 21:12:12 +02:00
platforms Format tweaks 2026-06-19 12:27:02 +02:00
CMakeLists.txt [CMake] Properly remove raudio.c and rmodels.c if they're disabled modules (#5878) 2026-05-29 18:16:17 +02:00
config.h Revert "Enable GPU skinning for GL 3.3+, (#5902)" 2026-06-01 20:42:48 +02:00
Makefile [makefile] ANDROID_ARCH check (#5888) 2026-05-26 18:13:58 +02:00
minshell.html Update minshell.html 2025-12-30 22:05:37 +01:00
raudio.c Format tweaks 2026-06-19 12:27:02 +02:00
raylib.dll.rc Updated Windows resource file 2026-04-12 10:24:35 +02:00
raylib.dll.rc.data Updated Windows resource file 2026-04-12 10:24:35 +02:00
raylib.h WARNING: BREAKING: REDESIGNED: ImageDraw() API, align with DrawTexture() 2026-06-07 21:53:07 +02:00
raylib.ico Update raylib.ico 2024-11-14 16:40:04 +01:00
raylib.rc update raylib.rc to 6.0 (2026) (#5748) 2026-04-12 10:23:09 +02:00
raylib.rc.data Updated Windows resource file 2026-04-12 10:24:35 +02:00
raymath.h Format tweaks 2026-06-19 12:27:02 +02:00
rcamera.h Update typos/grammar (#5759) 2026-04-15 09:18:30 +02:00
rcore.c [rcore] Add gamepad >= 0 lower-bound guard to six sibling functions 2026-06-27 01:37:32 +09:00
rgestures.h Reviewed comments, remove article usage 2026-06-03 21:02:59 +02:00
rglfw.c Update year to 2026 2026-01-02 13:40:15 +01:00
rlgl.h [rlgl] Fix matrix stack overflow in rlPushMatrix() (#5935) 2026-06-24 16:38:08 +02:00
rmodels.c Update rmodels.c 2026-06-24 10:38:20 +02:00
rshapes.c Reviewed parameter names, added comment about order 2026-06-07 21:26:32 +02:00
rtext.c [rtext] Fix buffer overflow in TextReplaceBetween() (#5936) 2026-06-24 16:41:19 +02:00
rtextures.c Reemove trailing spaces 2026-06-16 21:12:12 +02:00
shell.html REVIEWED: Fullscreen request #5601 2026-03-02 13:16:43 +01:00