代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/maildrop 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From 1186c36c44ca581fd4819f59d1823d3f2ec17164 Mon Sep 17 00:00:00 2001
From: "Brian C. Lane" <bcl@brianlane.com>
Date: Wed, 8 Aug 2018 13:06:58 -0700
Subject: [PATCH] Fix SIGSEGV in reformime (#1613761)
Check for NULL section when running strtok on it for decode and
do_extract handling.
---
libs/rfc2045/reformime.c | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/libs/rfc2045/reformime.c b/libs/rfc2045/reformime.c
index 9851c65..49a0ebd 100644
--- a/libs/rfc2045/reformime.c
+++ b/libs/rfc2045/reformime.c
@@ -1164,10 +1164,11 @@ int rc=0;
}
else if (dodecode)
{
- mimesection = strtok(section,",");
+ mimesection = section ? strtok(section, ","):NULL;
do {
print_decode(p, mimesection);
- mimesection = strtok(NULL,",");
+ if (mimesection)
+ mimesection = strtok(NULL,",");
} while (mimesection != NULL);
}
else if (dorewrite)
@@ -1176,11 +1177,12 @@ int rc=0;
dsn(p, dodsn == 2);
else if (do_extract)
{
- mimesection = strtok(section,",");
+ mimesection = section ? strtok(section, ","):NULL;
do {
extract_section(p, mimesection, extract_filename,
argc-argn, argv+argn, do_extract);
- mimesection = strtok(NULL,",");
+ if (mimesection)
+ mimesection = strtok(NULL,",");
} while (mimesection != NULL);
}
else if (dovalidate)
--
2.17.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。