We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 751c841 commit dfe51aaCopy full SHA for dfe51aa
src/ui/webeiddialog.cpp
@@ -292,8 +292,9 @@ QString WebEidDialog::getPin()
292
// QString uses QAtomicPointer internally and is thread-safe.
293
// There should be only single reference and this is transferred to the caller for safety
294
QString ret = pin;
295
- eraseData(pin);
296
- pin.clear();
+ // Cannot use eraseData because we have to force Qt copy-on-write
+ pin.fill('\0');
297
+ pin.clear();
298
return ret;
299
}
300
0 commit comments