godot/core/io
Rémi Verschelde 089fde5c59
FileAccess: Don't err in `store_buffer` with buffer of size 0
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 01d5c463be)
2021-06-07 22:56:01 +02:00
..
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
compression.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
compression.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
config_file.cpp Add a "keep" import mode to keep files as-is and export them. 2021-03-23 15:44:24 +01:00
config_file.h Add a "keep" import mode to keep files as-is and export them. 2021-03-23 15:44:24 +01:00
dtls_server.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
dtls_server.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
file_access_compressed.cpp Allow nullptr with zero length in FileAccess get_buffer 2021-03-17 15:17:02 +01:00
file_access_compressed.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
file_access_encrypted.cpp FileAccess: Don't err in `store_buffer` with buffer of size 0 2021-06-07 22:56:01 +02:00
file_access_encrypted.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
file_access_memory.cpp FileAccess: Don't err in `store_buffer` with buffer of size 0 2021-06-07 22:56:01 +02:00
file_access_memory.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
file_access_network.cpp Allow nullptr with zero length in FileAccess get_buffer 2021-03-17 15:17:02 +01:00
file_access_network.h Modernize Thread 2021-02-18 11:58:08 +01:00
file_access_pack.cpp Allow nullptr with zero length in FileAccess get_buffer 2021-03-17 15:17:02 +01:00
file_access_pack.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
file_access_zip.cpp Fix duplicate close files when deconstructing ZipArchive 2021-05-24 12:58:36 +02:00
file_access_zip.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
http_client.cpp Fix crash on HTTPClient::poll method 2021-03-04 11:39:51 +01:00
http_client.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
image_loader.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
image_loader.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
ip.cpp Modernize atomics 2021-02-18 12:23:25 +01:00
ip.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
ip_address.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
ip_address.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
json.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
json.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
logger.cpp Logger: Cache 'flush_stdout_on_print' to improve performance, and works before ProjectSettings starts. 2021-03-02 10:26:14 +01:00
logger.h Logger: Cache 'flush_stdout_on_print' to improve performance, and works before ProjectSettings starts. 2021-03-02 10:26:14 +01:00
marshalls.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
marshalls.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
multiplayer_api.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
multiplayer_api.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
net_socket.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
net_socket.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
networked_multiplayer_peer.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
networked_multiplayer_peer.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
packet_peer.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
packet_peer.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
packet_peer_dtls.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
packet_peer_dtls.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
packet_peer_udp.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
packet_peer_udp.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
pck_packer.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
pck_packer.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
resource_format_binary.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
resource_format_binary.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
resource_importer.cpp Backport the Import Defaults Editor 2021-02-24 17:50:42 -03:00
resource_importer.h Backport the Import Defaults Editor 2021-02-24 17:50:42 -03:00
resource_loader.cpp Fix crash with user-defined `ResourceFormatLoader.load` 2021-05-09 16:15:09 +02:00
resource_loader.h Modernize Mutex 2021-02-18 11:58:08 +01:00
resource_saver.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
resource_saver.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
stream_peer.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
stream_peer.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
stream_peer_ssl.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
stream_peer_ssl.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
stream_peer_tcp.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
stream_peer_tcp.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
tcp_server.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
tcp_server.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
translation_loader_po.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
translation_loader_po.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
udp_server.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
udp_server.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
xml_parser.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
xml_parser.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
zip_io.cpp Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
zip_io.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00