summaryrefslogtreecommitdiffstats
path: root/tests/auto/corelib/serialization/cborlargedatavalidation.cpp
Commit message (Collapse)AuthorAgeFilesLines
* CBOR support: prevent overflowing QByteArray's max allocationThiago Macieira2020-03-271-0/+134
QByteArray doesn't like it. Apply the same protection to QString, which we know uses the same backend but uses elements twice as big. That means it can contain slightly more than half as many elements, but exact half will suffice for our needs. Change-Id: Iaa63461109844e978376fffd15f9d4c7a9137856 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>