Skip to content

Commit f4c7ab2

Browse files
committed
fix: prevent undefined behavior by initializing usr, userSet and typeSet in get_db_creator
1 parent cfcb213 commit f4c7ab2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/burp/restore.epp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9098,9 +9098,10 @@ bool get_db_creator(BurpGlobals* tdgbl)
90989098
**************************************/
90999099
att_type attribute;
91009100
scan_attr_t scan_next_attr;
9101-
TEXT usr[GDS_NAME_LEN];
9101+
TEXT usr[GDS_NAME_LEN] = {0};
91029102
SSHORT uType = 0;
9103-
bool userSet, typeSet;
9103+
bool userSet = false;
9104+
bool typeSet = false;
91049105

91059106
userSet = typeSet = false;
91069107

0 commit comments

Comments
 (0)