1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Werner Koch 101ba4f18a
kbx: Fix keyboxd searching with multiple patterns.
* kbx/keybox-search-desc.h (struct keydb_search_desc): New flag
name_used.
* common/userids.c (classify_user_id): Set flag.
* kbx/kbxserver.c (struct search_backing_store_s): New.
(cmd_search): use a backing store for the const pointers.
(kbxd_start_command_handler): Release the backing store.
--

Well, the search object partly uses buffers but also const
pointers (for strings and the serial number).  This when assigning
such objects to an another one we should really take a deep copy and
not just copy the pointer.  The more clean solution would have been to
provide a storage option the search object but that needs checking the
code at too many places so that I decided to use a separate backing
store array here.

Signed-off-by: Werner Koch <wk@gnupg.org>
2021-07-08 13:57:13 +02:00
..
2020-09-24 10:37:41 +02:00
2018-10-25 16:53:05 -04:00
2015-10-28 10:20:17 +01:00
2021-01-11 14:19:06 +01:00
2020-02-18 18:07:46 -05:00
2015-11-17 12:50:22 +01:00
2017-04-28 10:06:33 +09:00
2021-03-10 12:33:08 +01:00
2017-02-21 13:11:46 -05:00
2018-10-25 16:53:05 -04:00
2018-10-25 16:53:05 -04:00
2019-04-16 13:24:10 +09:00
2021-05-20 14:31:23 +02:00
2019-07-12 12:11:26 +09:00
2020-02-18 18:07:46 -05:00
2016-03-02 14:27:30 +01:00
2021-04-13 14:57:51 +09:00
2018-10-25 16:53:05 -04:00
2018-10-24 15:56:18 -04:00
2020-11-05 11:19:15 -08:00
2021-03-26 14:30:58 +01:00
2021-02-10 08:32:57 +01:00
2021-01-11 14:19:06 +01:00
2019-10-01 10:32:31 +02:00
2018-10-24 15:56:18 -04:00
2020-02-18 18:07:46 -05:00
2020-02-18 18:07:46 -05:00
2020-02-18 18:07:46 -05:00
2020-09-11 15:23:22 +02:00
2020-04-24 15:37:48 +02:00
2017-02-21 13:11:46 -05:00

Common functionality used by all modules of GnuPG.