AW: gpgme_op_decrypt segfault

Werner Koch wk at gnupg.org
Tue Jun 29 15:56:40 CEST 2021


On Tue, 29 Jun 2021 09:59, Schultschik, Sven said:

> I looked now for days at the code and didn't saw this trivial fault. The
> Nullpoint check for the outstream was missing. 

valgrind is your best friend in such cases.

> But a null point check for gpgme wouldn't be a bad idea. This way it could
> be a catchable exception.

We can do that to make things more robust but other stdio functions also
don't check for NULL.


Shalom-Salam,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20210629/713daa57/attachment.sig>


More information about the Gnupg-users mailing list