OpenTTD-patches/src/3rdparty
Rubidium 7274432987 Fix #9267, 47a99bb: [Squirrel] Heap use after free
Due to 47a99bb the order of elements in the garbage collection chain has
changed causing the class to be finalised before the instances of that class.
Since the instance's array of member values depends on the size of the values
in the class, the class finalisation resetting that size to 0 causes not all
finalisations to run, which subsequently causes a heap use after free. So,
just set the SQObjectPtrs to 'null' during the finalisation of the SQClass
so the SQInstance can release all instance variables during its finalisation.

(cherry picked from commit 5c01f9ea52)

See: #256
2021-05-16 09:54:56 +01:00
..
cpp-btree Update: Merge branch 'jgrpp_master_cmake' into jgrpp_cmake 2020-06-28 21:56:43 +01:00
md5 Add: introduce CMake for project management 2020-06-05 19:36:05 +02:00
mingw-std-threads MinGW std:🧵 suppress redundancy warning for non-debug builds 2021-02-16 14:22:51 +00:00
opengl Codechange: [Win32] Try to get an OpenGL 3.2+ context if possible. 2021-02-22 22:16:07 +01:00
optional Use 3rd party optional wrapper, always use local verison on Apple 2021-02-16 16:06:32 +00:00
os2 Add: introduce CMake for project management 2020-06-05 19:36:05 +02:00
squirrel Fix #9267, 47a99bb: [Squirrel] Heap use after free 2021-05-16 09:54:56 +01:00
CMakeLists.txt Merge tag '1.11.0-beta2' into jgrpp 2021-03-02 11:59:03 +00:00
README.licensing

The files in this directory are not licensed under the same terms as the
rest of OpenTTD. Licensing details can be found in OpenTTD's readme.txt
and in this directory or subdirectories as well.