You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
3 years ago
..
cpp-btree Update: Merge branch 'jgrpp_master_cmake' into jgrpp_cmake 4 years ago
md5 Add: introduce CMake for project management 4 years ago
mingw-std-threads MinGW std:🧵 suppress redundancy warning for non-debug builds 3 years ago
opengl Codechange: [Win32] Try to get an OpenGL 3.2+ context if possible. 3 years ago
optional Use 3rd party optional wrapper, always use local verison on Apple 3 years ago
os2 Add: introduce CMake for project management 4 years ago
squirrel Fix #9267, 47a99bb: [Squirrel] Heap use after free 3 years ago
CMakeLists.txt Merge tag '1.11.0-beta2' into jgrpp 3 years ago
README.licensing (svn r25781) -Doc: Add licensing section to readme.txt. 11 years ago

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.