Blame SOURCES/patch-2.7.6-CVE-2018-6952.patch

1bbc12
diff --git a/src/pch.c b/src/pch.c
1bbc12
index e92bc64..a500ad9 100644
1bbc12
--- a/src/pch.c
1bbc12
+++ b/src/pch.c
1bbc12
@@ -2122,7 +2122,7 @@ pch_swap (void)
1bbc12
     }
1bbc12
     if (p_efake >= 0) {			/* fix non-freeable ptr range */
1bbc12
 	if (p_efake <= i)
1bbc12
-	    n = p_end - i + 1;
1bbc12
+	    n = p_end - p_ptrn_lines;
1bbc12
 	else
1bbc12
 	    n = -i;
1bbc12
 	p_efake += n;