[issue50] gpgme is not largefile-safe
aegypten-issues at intevation.de
Mon Jan 26 18:11:45 CET 2004
New submission from Marc Mutz <marc at klaralvdalens-datakonsult.se>:
gpgme uses off_t, size_t et al in it's public function signatures, but fails to
provide two versions for each such function (one for sizeof(off_t) == 8 and one
for sizeof(off_t) == 4).
Because on 32bit-Linux, application developers are free to choose their off_t's
size with e.g. -D_FILE_OFFSET_BITS=64, this leads to very subtle bugs in
applications using an eight-byte off_t.
As an example, try running make check in libkdenetwork/qgpgme/tests. The seeks
fail because gpgme and qgpgme's off_t's differ in size (gpgme: 4; qgpgme: 8).
Thus callbacks are passed corrupted data and fail for one reason or another.
Thanks to dfaure for finding this one.
nosy: Marcus.Brinkmann, marc
title: gpgme is not largefile-safe
Aegypten issue tracker <aegypten-issues at intevation.de>
More information about the Gpa-dev