godot/modules/gdscript
Hein-Pieter van Braam 38e86c8c24 Remove bounds check when resuming from yield.
The code would get a pointer to the beginning of the call_args by using
operator[] at the stack Vector. This does bound checking. When there are
no call_args this bound check fails and the error mentioned in #7796
gets triggered.

This bound check is actually not necessary as call_args just gets set to
NULL and never dereferenced. This new code will just unconditionally set
the pointer to the place where the call_args are if there are any. There
is no NULL check for call_args anywhere so this is safe.

Fixes #7796

(cherry picked from commit e8611966de)
2017-03-18 20:09:45 +01:00
..
SCsub SCsub: Add python shebang as a hint for syntax highlighting 2016-10-30 14:51:34 +01:00
config.py style: Fix PEP8 blank lines issues in Python files 2016-11-02 22:29:36 +01:00
gd_compiler.cpp Skip asserts on non-debug builds at compiler level 2017-03-13 00:23:42 +01:00
gd_compiler.h Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
gd_editor.cpp Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
gd_function.cpp Remove bounds check when resuming from yield. 2017-03-18 20:09:45 +01:00
gd_function.h Warn instad of crashing when class instance is gone after yield. Closes #5247 , probably closes other yield related crashes 2016-06-29 21:06:16 -03:00
gd_functions.cpp Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
gd_functions.h Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
gd_parser.cpp Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
gd_parser.h Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
gd_script.cpp Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
gd_script.h Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
gd_tokenizer.cpp Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
gd_tokenizer.h Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
register_types.cpp Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00
register_types.h Welcome in 2017, dear changelog reader! 2017-01-12 19:15:30 +01:00