Skip to content

Commit 7fbf999

Browse files
committed
ReviveOverlay: Add assertions to ensure proper capacity.
1 parent 71fc833 commit 7fbf999

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ReviveOverlay/windowsservices.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ bool WindowsServices::PromptCredentials(QString& user, QString& password, bool f
114114
user.resize(userSize - 1);
115115
password.reserve(passwordSize);
116116
password.resize(passwordSize - 1);
117+
Q_ASSERT(user.capacity() == userSize);
118+
Q_ASSERT(password.capacity() == passwordSize);
117119

118120
CredUnPackAuthenticationBufferW(0,
119121
authBuffer, authSize,

0 commit comments

Comments
 (0)