1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-22 15:06:45 +00:00

[3.x] Fix shader compiler asan out of bounds

(cherry picked from commit aa0b91ca52)
This commit is contained in:
dzil123
2022-11-16 06:33:40 -08:00
committed by Haoyu Qiu
parent c3210df448
commit d6812ff7b9
5 changed files with 34 additions and 0 deletions

View File

@@ -114,6 +114,8 @@ static int _get_datatype_size(SL::DataType p_type) {
return 16;
case SL::TYPE_STRUCT:
return 0;
default: {
}
}
ERR_FAIL_V(0);
@@ -185,6 +187,8 @@ static int _get_datatype_alignment(SL::DataType p_type) {
return 16;
case SL::TYPE_STRUCT:
return 0;
default: {
}
}
ERR_FAIL_V(0);