Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
5.12.0
-
None
Description
// code placeholder TestResult calc_qt_sha3_256(char const* data, int len) { QTime t1 = QTime::currentTime(); QCryptographicHash hash(QCryptographicHash::Sha3_256); hash.addData(data, len); QTime t2 = QTime::currentTime(); TestResult res; res.sha = hash.result().toHex().toUpper(); res.length = len; res.time = t1.msecsTo(t2); return res; }
as codes above,
when len < 256MB, the result is correct.
when 256M < len < 512M, the app will be broken.
when 512M < len , it works but the result is wrong.
Attachments
Issue Links
- duplicates
-
QTBUG-77362 QCryptographicsHash::addData with Keccak and Sha3 algorithms crash when passing >= 256MB of data
- Closed