Blame SOURCES/dovecot-2.2.36-cve_2019_7524part2of2.patch
|
|
11c5e2 |
From df17cee615377f2474c86eb6a5b3fe5caa8b70fe Mon Sep 17 00:00:00 2001
|
|
|
11c5e2 |
From: Timo Sirainen <timo.sirainen@open-xchange.com>
|
|
|
11c5e2 |
Date: Mon, 4 Feb 2019 19:25:13 -0800
|
|
|
11c5e2 |
Subject: [PATCH] fts: Fix buffer overflow when reading oversized fts header
|
|
|
11c5e2 |
|
|
|
11c5e2 |
---
|
|
|
11c5e2 |
src/plugins/fts/fts-api.c | 2 +-
|
|
|
11c5e2 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
11c5e2 |
|
|
|
11c5e2 |
diff --git a/src/plugins/fts/fts-api.c b/src/plugins/fts/fts-api.c
|
|
|
11c5e2 |
index 5a5b2a919e..4f8a1c125d 100644
|
|
|
11c5e2 |
--- a/src/plugins/fts/fts-api.c
|
|
|
11c5e2 |
+++ b/src/plugins/fts/fts-api.c
|
|
|
11c5e2 |
@@ -425,7 +425,7 @@ bool fts_index_get_header(struct mailbox *box, struct fts_index_header *hdr_r)
|
|
|
11c5e2 |
i_zero(hdr_r);
|
|
|
11c5e2 |
ret = FALSE;
|
|
|
11c5e2 |
} else {
|
|
|
11c5e2 |
- memcpy(hdr_r, data, data_size);
|
|
|
11c5e2 |
+ memcpy(hdr_r, data, sizeof(*hdr_r));
|
|
|
11c5e2 |
ret = TRUE;
|
|
|
11c5e2 |
}
|
|
|
11c5e2 |
mail_index_view_close(&view);
|