You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[utils] LoadFileData() segfaults when dataSize param is NULL #3365
For most of the raylib functions is up to the user to validate the inputs, if raylib should consider all possible bad-use scenarios it would require reviewing most of the library functions and it will increase source-code complexity.
Reacted by Cole Tobin, danylo, Lorenzo Giuliani, kayomn, charlesrw1 and ecler
changed the title [-]LoadFileData segfaults when dataSize param is NULL[/-][+][utils] `LoadFileData()` segfaults when dataSize param is `NULL`[/+]on Oct 3, 2023
Activity
raysan5 commentedon Oct 2, 2023
For most of the raylib functions is up to the user to validate the inputs, if raylib should consider all possible bad-use scenarios it would require reviewing most of the library functions and it will increase source-code complexity.
[-]LoadFileData segfaults when dataSize param is NULL[/-][+][utils] `LoadFileData()` segfaults when dataSize param is `NULL`[/+]raysan5 commentedon Oct 3, 2023
It's up to the user to avoid this kind of bad-use cases, same issue will happen with most raylib functions receiving some pointer.
vittorioromeo commentedon May 2, 2024
@raysan5:
raylibshould at the very leastassertin this case.