mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
kbx: Avoid use of uninitialized value.
* kbx/backend-kbx.c (be_kbx_search): Initialize skipped_long_blobs value which is passed to keybox_search and incremented there. (be_kbx_seek): Likewise. -- GnuPG-bug-id: 5393 Co-authored-by: NIIBE Yutaka <gniibe@fsij.org> Signed-off-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
parent
d24c5df52b
commit
fae1d2e2cc
@ -247,7 +247,7 @@ be_kbx_search (ctrl_t ctrl, backend_handle_t backend_hd, db_request_t request,
|
|||||||
gpg_error_t err;
|
gpg_error_t err;
|
||||||
db_request_part_t part;
|
db_request_part_t part;
|
||||||
size_t descindex;
|
size_t descindex;
|
||||||
unsigned long skipped_long_blobs;
|
unsigned long skipped_long_blobs = 0;
|
||||||
|
|
||||||
log_assert (backend_hd && backend_hd->db_type == DB_TYPE_KBX);
|
log_assert (backend_hd && backend_hd->db_type == DB_TYPE_KBX);
|
||||||
log_assert (request);
|
log_assert (request);
|
||||||
@ -302,7 +302,7 @@ be_kbx_seek (ctrl_t ctrl, backend_handle_t backend_hd,
|
|||||||
gpg_error_t err;
|
gpg_error_t err;
|
||||||
db_request_part_t part;
|
db_request_part_t part;
|
||||||
size_t descindex;
|
size_t descindex;
|
||||||
unsigned long skipped_long_blobs;
|
unsigned long skipped_long_blobs = 0;
|
||||||
KEYDB_SEARCH_DESC desc;
|
KEYDB_SEARCH_DESC desc;
|
||||||
|
|
||||||
(void)ctrl;
|
(void)ctrl;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user