mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-01-03 17:45:38 -05:00
Warn if result of processInPlace() is unchecked.
Fix callers accordingly.
This commit is contained in:
parent
a762cef0a9
commit
f6243675c9
7 changed files with 13 additions and 11 deletions
|
|
@ -49,7 +49,7 @@ void TestKeePass2RandomStream::test()
|
|||
|
||||
QByteArray cipherPad;
|
||||
cipherPad.fill('\0', Size);
|
||||
cipher.processInPlace(cipherPad);
|
||||
QVERIFY(cipher.processInPlace(cipherPad));
|
||||
|
||||
QByteArray cipherData;
|
||||
cipherData.resize(Size);
|
||||
|
|
@ -68,7 +68,7 @@ void TestKeePass2RandomStream::test()
|
|||
randomStreamData.append(randomStream.process(data.mid(7, 1), &ok));
|
||||
QVERIFY(ok);
|
||||
QByteArray tmpData = data.mid(8, 12);
|
||||
randomStream.processInPlace(tmpData);
|
||||
QVERIFY(randomStream.processInPlace(tmpData));
|
||||
randomStreamData.append(tmpData);
|
||||
randomStreamData.append(randomStream.process(data.mid(20, 44), &ok));
|
||||
QVERIFY(ok);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue