Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Openssl
提交
2d2e0479
T
Third Party Openssl
项目概览
OpenHarmony
/
Third Party Openssl
11 个月 前同步成功
通知
8
Star
18
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Openssl
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
2d2e0479
编写于
5月 07, 2014
作者:
M
Matt Caswell
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed NULL pointer dereference in PKCS7_dataDecode reported by David Ramos in PR#3339
上级
fce38211
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
8 addition
and
1 deletion
+8
-1
crypto/pkcs7/pk7_doit.c
crypto/pkcs7/pk7_doit.c
+5
-0
crypto/pkcs7/pkcs7.h
crypto/pkcs7/pkcs7.h
+1
-0
crypto/pkcs7/pkcs7err.c
crypto/pkcs7/pkcs7err.c
+2
-1
未找到文件。
crypto/pkcs7/pk7_doit.c
浏览文件 @
2d2e0479
...
...
@@ -440,6 +440,11 @@ BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert)
{
case
NID_pkcs7_signed
:
data_body
=
PKCS7_get_octet_string
(
p7
->
d
.
sign
->
contents
);
if
(
!
PKCS7_is_detached
(
p7
)
&&
data_body
==
NULL
)
{
PKCS7err
(
PKCS7_F_PKCS7_DATADECODE
,
PKCS7_R_INVALID_SIGNED_DATA_TYPE
);
goto
err
;
}
md_sk
=
p7
->
d
.
sign
->
md_algs
;
break
;
case
NID_pkcs7_signedAndEnveloped
:
...
...
crypto/pkcs7/pkcs7.h
浏览文件 @
2d2e0479
...
...
@@ -456,6 +456,7 @@ void ERR_load_PKCS7_strings(void);
#define PKCS7_R_ERROR_SETTING_CIPHER 121
#define PKCS7_R_INVALID_MIME_TYPE 131
#define PKCS7_R_INVALID_NULL_POINTER 143
#define PKCS7_R_INVALID_SIGNED_DATA_TYPE 155
#define PKCS7_R_MIME_NO_CONTENT_TYPE 132
#define PKCS7_R_MIME_PARSE_ERROR 133
#define PKCS7_R_MIME_SIG_PARSE_ERROR 134
...
...
crypto/pkcs7/pkcs7err.c
浏览文件 @
2d2e0479
/* crypto/pkcs7/pkcs7err.c */
/* ====================================================================
* Copyright (c) 1999-20
07
The OpenSSL Project. All rights reserved.
* Copyright (c) 1999-20
14
The OpenSSL Project. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
...
...
@@ -130,6 +130,7 @@ static ERR_STRING_DATA PKCS7_str_reasons[]=
{
ERR_REASON
(
PKCS7_R_ERROR_SETTING_CIPHER
),
"error setting cipher"
},
{
ERR_REASON
(
PKCS7_R_INVALID_MIME_TYPE
)
,
"invalid mime type"
},
{
ERR_REASON
(
PKCS7_R_INVALID_NULL_POINTER
),
"invalid null pointer"
},
{
ERR_REASON
(
PKCS7_R_INVALID_SIGNED_DATA_TYPE
),
"invalid signed data type"
},
{
ERR_REASON
(
PKCS7_R_MIME_NO_CONTENT_TYPE
),
"mime no content type"
},
{
ERR_REASON
(
PKCS7_R_MIME_PARSE_ERROR
)
,
"mime parse error"
},
{
ERR_REASON
(
PKCS7_R_MIME_SIG_PARSE_ERROR
),
"mime sig parse error"
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录