Possible stack corruption in DFW\check_dependencies [CORE1051] #1470
Labels
affect-version: 1.0.0
affect-version: 1.0.1
affect-version: 1.0.2
affect-version: 1.0.3
affect-version: 1.5.0
affect-version: 1.5.1
affect-version: 1.5.2
affect-version: 1.5.3
affect-version: 2.0.0
fix-version: 1.5.4
fix-version: 2.0.1
fix-version: 2.1 Alpha 1
priority: major
qa: cannot be tested
type: bug
Submitted by: @hvlad
DFW\check_dependencies have a variable
SLONG dep_counts[obj_count];
but obj_count is not a number of object types.
Look at obj.h :
...
const int obj_count = 11;
const int obj_user_group = 12;
const int obj_sql_role = 13;
const int obj_generator = 14;
const int obj_udf = 15;
const int obj_blob_filter = 16;
const int obj_collation = 17;
Proposed solution is to create
obj_type_MAX = 18
and use it in DFW\check_dependencies instead of obj_count. Remove obj_count as it is not used anywhere
Also remove from RDB$TYPES record described not existed object type "DEPENDENT_COUNT"
Commits: 639278c 2e51ae8 a810712
The text was updated successfully, but these errors were encountered: