aboutsummaryrefslogtreecommitdiffstats
path: root/testing/s-nail/fix-inv-mem-access.patch
diff options
context:
space:
mode:
authorSteffen (Daode) Nurpmeso <steffen@sdaoden.eu>2018-03-09 20:51:40 +0100
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-03-12 08:40:00 +0000
commit47c5ac1c7aa1fec8c641da76d1dc33192360f6eb (patch)
tree4a0bd500d5f59b6668a64daa9a0e99bf7cfb5bd1 /testing/s-nail/fix-inv-mem-access.patch
parentaa1451cd338713944975240130f4bc2b3c5c88f5 (diff)
downloadaports-47c5ac1c7aa1fec8c641da76d1dc33192360f6eb.tar.bz2
aports-47c5ac1c7aa1fec8c641da76d1dc33192360f6eb.tar.xz
testing/s-nail: fix invalid mem access, reenable tests, take maintainership..
The reported crash (for v14.9.9) does not happen in EVP_cleanup(), even though the instrumented code apparantly said so, but the actual cause was a memory access on an already freed pointer that sneaked into the release (which has not seen thorough testing, also apparantly).
Diffstat (limited to 'testing/s-nail/fix-inv-mem-access.patch')
-rw-r--r--testing/s-nail/fix-inv-mem-access.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/s-nail/fix-inv-mem-access.patch b/testing/s-nail/fix-inv-mem-access.patch
new file mode 100644
index 0000000000..1ef30a719e
--- /dev/null
+++ b/testing/s-nail/fix-inv-mem-access.patch
@@ -0,0 +1,10 @@
+--- a/mime.c 2018-03-09 20:24:35.737754669 +0100
++++ b/mime.c 2018-03-09 20:24:39.107748465 +0100
+@@ -678,7 +678,6 @@ mime_write_tohdr_a(struct str *in, FILE
+ xin.l = PTR2SIZE(cp - lastcp);
+ if ((sz = a_mime__convhdra(&xin, f, colp, msh)) < 0)
+ goto jleave;
+- xin.s[xin.l] = '<';
+ lastcp = cp;
+ } else {
+ cp = lastcp;