Home GnuPG
Diffusion GPGME 5811d069d3b3

qt, cpp: Support larger size-hint on 32 bit builds

Description

qt, cpp: Support larger size-hint on 32 bit builds

* NEWS: Mention this.
* lang/cpp/src/data.h, lang/cpp/src/data.cpp (Data::setSizeHint): New.
* lang/qt/src/qgpgmedecryptjob.cpp,
 lang/qt/src/qgpgmedecryptverifyarchivejob.cpp,
 lang/qt/src/qgpgmedecryptverifyjob.cpp,
 lang/qt/src/qgpgmeencryptjob.cpp,
 lang/qt/src/qgpgmesignencryptjob.cpp,
 lang/qt/src/qgpgmesignjob.cpp,
 lang/qt/src/qgpgmeverifydetachedjob.cpp,
 lang/qt/src/qgpgmeverifyopaquejob.cpp: Set size for input IODevice.

This fixes the case where the old detection of the size of QIOdevice
using seek would overflow and instead explicitly uses QIODevice::size
to check for the size and pass it through as an uint64.

Details

Provenance
aheineckeAuthored on Jun 16 2023, 2:33 PM
Parents
rMcbcea4a09b13: cpp: Expose gpgme_data_set_flag through cpp API
Branches
Unknown
Tags
Unknown
Tasks
T6534: gpg's progress_filter needs to use uint64_t