segfault in GCRYCTL_SET_THREAD_CBS

Werner Koch wk at gnupg.org
Wed Oct 28 14:54:03 CET 2009


On Tue, 27 Oct 2009 23:50, dkg at fifthhorseman.net said:

-   ret = gcry_control(GCRYCTL_SET_THREAD_CBS, gcry_threads_pthread);
+   ret = gcry_control(GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);

This is the usual problem with general purpose ioctl-alike fucntions:
You don't have any type checking.  I added examples to the docs.

Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gcrypt-devel mailing list