Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:GA
dovecot22.16060
0002-fts-Fix-buffer-overflow-when-reading-overs...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0002-fts-Fix-buffer-overflow-when-reading-oversized-fts-h.patch of Package dovecot22.16060
From d781a50c1f26ade88f9c96fa2931364e7fa8cc0b Mon Sep 17 00:00:00 2001 From: Timo Sirainen <timo.sirainen@open-xchange.com> Date: Mon, 4 Feb 2019 19:25:13 -0800 Subject: [PATCH 2/2] fts: Fix buffer overflow when reading oversized fts header --- src/plugins/fts/fts-api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/fts/fts-api.c b/src/plugins/fts/fts-api.c index 5a5b2a919..4f8a1c125 100644 --- a/src/plugins/fts/fts-api.c +++ b/src/plugins/fts/fts-api.c @@ -425,7 +425,7 @@ bool fts_index_get_header(struct mailbox *box, struct fts_index_header *hdr_r) i_zero(hdr_r); ret = FALSE; } else { - memcpy(hdr_r, data, data_size); + memcpy(hdr_r, data, sizeof(*hdr_r)); ret = TRUE; } mail_index_view_close(&view); -- 2.11.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor