godot/modules/gdnative/nativescript
Frank Secilia a4a0e64245 Fix indexing failure in NativeScriptLanguage::unregister_binding_functions.
binding_functions.size() and an instance's binding_data.size() can get out of sync. They sync up when an instance's bindings are requested. When binding functions are registered after creating an instance's bindings, the instance's bindings are out of sync until requested again. If they're never requested, they're never synced.

unregister_binding_functions indexes into binding_data, but only checks that its safe to index into binding_functions. When they're out of sync, indexing fails.

This revision checks that it's safe to index into binding_data.
2019-05-15 15:28:55 -04:00
..
api_generator.cpp Sort data exported to the api.json file for GDNative 2019-04-19 23:13:02 +10:00
api_generator.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
godot_nativescript.cpp Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
nativescript.cpp Fix indexing failure in NativeScriptLanguage::unregister_binding_functions. 2019-05-15 15:28:55 -04:00
nativescript.h [GDNative] fix NativeScript leak in editor 2019-03-22 12:54:19 +01:00
register_types.cpp Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
register_types.h Update copyright statements to 2019 2019-01-01 12:58:10 +01:00
SCsub SCons: Build thirdparty code in own env, disable warnings 2018-09-28 14:07:39 +02:00