mirror of https://github.com/godotengine/godot
The error check was added for `FileAccessUnix` but it's not an error when both
`p_src` and `p_length` are zero.
Added correct error checks to all implementations to prevent the actual
erroneous case: `p_src` is nullptr but `p_length > 0` (risk of null pointer
indexing).
Fixes #33564.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| SCsub | ||
| dir_access_unix.cpp | ||
| dir_access_unix.h | ||
| file_access_unix.cpp | ||
| file_access_unix.h | ||
| ip_unix.cpp | ||
| ip_unix.h | ||
| net_socket_posix.cpp | ||
| net_socket_posix.h | ||
| os_unix.cpp | ||
| os_unix.h | ||
| syslog_logger.cpp | ||
| syslog_logger.h | ||
| thread_posix.cpp | ||
| thread_posix.h | ||