godot/core/io
David Nikdel 4d498e18ec Remove nondeterminism in pck_packer
PCK files (like other build products) should be deterministic based on their inputs. Removed calls to Math::rand() that are being used to generate padding.

Looks like these were introduced as part of adding encryption support, but the padding being random does not have any cryptographic significance. This can be trivially inferred since file blocks that happen to be aligned don't get padding anyway.

If there's a desire to indroduce something that functions as a nonce it should probably be added explicitly and only if encryption is enabled.
remove Math::rand() calls in editor_export_platform.cpp

follow up to make consistent with pck_packer

(cherry picked from commit 067807c1cb)
2023-10-24 16:33:53 +02:00
..
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
compression.cpp Linux: Allow unbundling brotli to use system library 2023-07-10 17:11:22 +02:00
compression.h Expose brotli decompression to the scripting API. 2023-03-29 22:43:36 +03:00
config_file.cpp Merge pull request #68450 from KoBeWi/bracket_escapist 2023-01-12 21:53:15 +01:00
config_file.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
dir_access.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
dir_access.h Support long path in file access on windows 2023-05-05 10:04:39 +02:00
dtls_server.cpp [NET] Refactor TLS configuration. 2023-01-28 11:08:02 +01:00
dtls_server.h [NET] Refactor TLS configuration. 2023-01-28 11:08:02 +01:00
file_access.cpp Improve error reporting when parsing CSV translation file 2023-06-19 12:47:44 +02:00
file_access.h Support long path in file access on windows 2023-05-05 10:04:39 +02:00
file_access_compressed.cpp Merge pull request #72288 from MewPurPur/use-string-repeat 2023-05-05 09:56:48 -07:00
file_access_compressed.h Restore FileAccess.close method. 2023-02-16 15:34:20 +02:00
file_access_encrypted.cpp Restore FileAccess.close method. 2023-02-16 15:34:20 +02:00
file_access_encrypted.h Restore FileAccess.close method. 2023-02-16 15:34:20 +02:00
file_access_memory.cpp Fix moving position indicator out of bounds in FileAccessMemory 2023-04-04 10:10:25 +02:00
file_access_memory.h Restore FileAccess.close method. 2023-02-16 15:34:20 +02:00
file_access_pack.cpp PCK file path improvements 2023-05-22 15:03:05 -03:00
file_access_pack.h PCK file path improvements 2023-05-22 15:03:05 -03:00
file_access_zip.cpp Fix error when non-ASCII characters in resource pack path 2023-07-10 17:11:22 +02:00
file_access_zip.h Restore FileAccess.close method. 2023-02-16 15:34:20 +02:00
http_client.cpp Fix HTTPClient _request using wrong size 2023-04-10 11:45:41 +02:00
http_client.h [NET] Refactor TLS configuration. 2023-01-28 11:08:02 +01:00
http_client_tcp.cpp [TLS] Fix crashes trying to use TLS when not available. 2023-05-12 20:08:10 +02:00
http_client_tcp.h [NET] Refactor TLS configuration. 2023-01-28 11:08:02 +01:00
image.cpp Grayscale fix for Image::premultiply_alpha() and Image::convert(FORMAT_L8) while using REC.709, with added test case 2023-05-27 18:01:44 -05:00
image.h Refactor high quality texture import 2023-01-30 15:53:23 +01:00
image_loader.cpp Cleanup unused engine code v2 2023-01-19 13:02:18 +01:00
image_loader.h Cleanup unused engine code v2 2023-01-19 13:02:18 +01:00
ip.cpp Display `BitField[Enum]` in docs to distinguish from `Enum` 2023-06-15 17:23:02 +03:00
ip.h Display `BitField[Enum]` in docs to distinguish from `Enum` 2023-06-15 17:23:02 +03:00
ip_address.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
ip_address.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
json.cpp Merge pull request #72288 from MewPurPur/use-string-repeat 2023-05-05 09:56:48 -07:00
json.h Fixes to JSON as resource 2023-01-14 14:41:51 +01:00
logger.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
logger.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
marshalls.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
marshalls.h Convert en_GB spelling to en_US with codespell 2023-01-23 11:02:20 +01:00
missing_resource.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
missing_resource.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
net_socket.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
net_socket.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
packed_data_container.cpp Improve and document PackedDataContainer 2023-04-29 00:29:40 +02:00
packed_data_container.h Improve and document PackedDataContainer 2023-04-29 00:29:40 +02:00
packet_peer.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
packet_peer.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
packet_peer_dtls.cpp [NET] Refactor TLS configuration. 2023-01-28 11:08:02 +01:00
packet_peer_dtls.h [NET] Refactor TLS configuration. 2023-01-28 11:08:02 +01:00
packet_peer_udp.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
packet_peer_udp.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
pck_packer.cpp Remove nondeterminism in pck_packer 2023-10-24 16:33:53 +02:00
pck_packer.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
remote_filesystem_client.cpp Fix various typos with codespell 2023-10-03 20:45:35 +02:00
remote_filesystem_client.h Fix GCC -Wmaybe-uninitialized warnings 2023-09-20 22:44:04 +02:00
resource.cpp Clear the previously set state when configuring for a new scene root node 2023-10-19 21:49:00 +02:00
resource.h Clear the previously set state when configuring for a new scene root node 2023-10-19 21:49:00 +02:00
resource_format_binary.cpp Fix missing UID handling for binary formats 2023-06-16 13:40:10 +02:00
resource_format_binary.h Avoid interaction issues between resource loading threads 2023-05-10 18:53:41 +02:00
resource_importer.cpp Ability to change a resource UID from API 2023-01-09 18:52:00 +01:00
resource_importer.h Ability to change a resource UID from API 2023-01-09 18:52:00 +01:00
resource_loader.cpp Merge pull request #78977 from RandomShaper/workaround_tls_shutdown 2023-07-03 19:43:07 +02:00
resource_loader.h Workaround resource loading crashes due to buggy TLS 2023-07-03 13:54:55 +02:00
resource_saver.cpp Use enum instead of int in virtual methods return type 2023-01-31 19:06:49 +01:00
resource_saver.h Use enum instead of int in virtual methods return type 2023-01-31 19:06:49 +01:00
resource_uid.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
resource_uid.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
stream_peer.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
stream_peer.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
stream_peer_gzip.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
stream_peer_gzip.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
stream_peer_tcp.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
stream_peer_tcp.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
stream_peer_tls.cpp [Net] Remove StreamPeerTLS.blocking_handshake option. 2023-01-28 11:08:02 +01:00
stream_peer_tls.h [Net] Remove StreamPeerTLS.blocking_handshake option. 2023-01-28 11:08:02 +01:00
tcp_server.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
tcp_server.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
translation_loader_po.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
translation_loader_po.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
udp_server.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
udp_server.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
xml_parser.cpp Display `BitField[Enum]` in docs to distinguish from `Enum` 2023-06-15 17:23:02 +03:00
xml_parser.h Display `BitField[Enum]` in docs to distinguish from `Enum` 2023-06-15 17:23:02 +03:00
zip_io.cpp Fix buffer over-read and memory leaks when using long filepaths in a zip archive and improved robustness of long filepaths and reading files. 2023-05-31 13:11:59 +00:00
zip_io.h Fix buffer over-read and memory leaks when using long filepaths in a zip archive and improved robustness of long filepaths and reading files. 2023-05-31 13:11:59 +00:00