mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Merge pull request #25481 from hpvb/fix-ubsan-asan-reports
Fix many asan and ubsan reported issues
This commit is contained in:
commit
13c50e8aa5
16 changed files with 198 additions and 131 deletions
|
@ -4557,6 +4557,7 @@ void GDScriptParser::_parse_class(ClassNode *p_class) {
|
|||
//variale declaration and (eventual) initialization
|
||||
|
||||
ClassNode::Member member;
|
||||
|
||||
bool autoexport = tokenizer->get_token(-1) == GDScriptTokenizer::TK_PR_EXPORT;
|
||||
if (current_export.type != Variant::NIL) {
|
||||
member._export = current_export;
|
||||
|
@ -5617,6 +5618,9 @@ GDScriptParser::DataType GDScriptParser::_type_from_gdtype(const GDScriptDataTyp
|
|||
result.script_type = p_gdtype.script_type;
|
||||
|
||||
switch (p_gdtype.kind) {
|
||||
case GDScriptDataType::UNINITIALIZED: {
|
||||
ERR_EXPLAIN("Uninitialized datatype. Please report a bug.");
|
||||
} break;
|
||||
case GDScriptDataType::BUILTIN: {
|
||||
result.kind = DataType::BUILTIN;
|
||||
} break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue