CBL-Mariner/SPECS/patch/CVE-2018-6952.patch

13 строки
340 B
Diff

diff -ru a/src/pch.c b/src/pch.c
--- a/src/pch.c 2018-02-03 12:41:49.000000000 +0000
+++ b/src/pch.c 2018-11-19 22:22:57.915449671 +0000
@@ -2113,7 +2113,7 @@
}
if (p_efake >= 0) { /* fix non-freeable ptr range */
if (p_efake <= i)
- n = p_end - i + 1;
+ n = p_end - p_ptrn_lines;
else
n = -i;
p_efake += n;