virtualx-engine/scene
holgac 95244f0e7a Fixes #62097: infinite loop in animation compress due to too small page size
Fixed an infinite loop caused when given page size is too small to store anything.

If, in the first step of compression, we attempt a rollback, we end up calling LocalVector::resize with AnimationCompressionDataState::validated_packet_count which is -1.  This resize function takes a uint, and there's a bitshift operation that assumes that by bitshifting enough times, we'll reach a number greater than or equal to the requested memory amount, which we'll never do for uint(-1), and this causes an infinite loop.

To fix, I'm adding an early failure in case the given page size isn't enough.
2022-07-01 01:03:13 +02:00
..
2d Merge pull request #62527 from smix8/navigation_agent_property_groups 2022-06-30 01:24:05 +02:00
3d Merge pull request #62527 from smix8/navigation_agent_property_groups 2022-06-30 01:24:05 +02:00
animation Merge pull request #62510 from MinusKube/animation-reset-crash 2022-06-29 10:19:33 +02:00
audio Use suffixes for units in nodes and resources 2022-05-19 14:34:27 -05:00
debugger Remake resource thread safety and API 2022-06-22 13:46:46 +02:00
gui Fix find_next_valid_focus() freeze 2022-07-01 00:25:10 +02:00
main Merge pull request #62084 from smix8/path_debug_options_4.x 2022-06-29 20:36:43 +02:00
multiplayer Add suffixes to all nodes and resources 2022-06-11 09:41:05 -05:00
resources Fixes #62097: infinite loop in animation compress due to too small page size 2022-07-01 01:03:13 +02:00
property_utils.cpp Cleanup and move char functions to the char_utils.h header. 2022-02-04 11:35:01 +02:00
property_utils.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
register_scene_types.cpp Add dedicated macros for property name extraction 2022-05-19 14:08:47 +08:00
register_scene_types.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
scene_string_names.cpp Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
scene_string_names.h Update copyright statements to 2022 2022-01-03 21:27:34 +01:00
SCsub [Net] New replication interface, spawner and synchronizer nodes. 2022-02-04 14:56:30 +01:00