Red Hat Bugzilla – Bug 985009
p11-kit: p11_extract_info_load_filter uninitialized result variable
Last modified: 2015-03-05 02:54:45 EST
tools/extract-info.c:p11_extract_info_load_filter() does not always write to *matches on success. (The only caller, call_all_filters(), initializes *matches to CK_TRUE, though.)
Hmmm, these are meant to be callbacks, and part of the ABI is that *matches is set to CK_TRUE when the callback is called.
I'll document this, but I don't think this is a problem.
Created attachment 774405 [details]
iter: Document guarantees for filter matches argumet
The matches argument is always initialized to CK_TRUE when a filter
is called, and it's up to filters to set it to CK_FALSE. Filters
don't need to set to CK_TRUE.
Pushed patch to p11-kit git master, and released in development version 0.19.2.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.