cve_id
stringlengths
13
16
repo
stringclasses
12 values
repo_url
stringclasses
10 values
file_path
stringlengths
7
62
function_name
stringlengths
4
52
pa
stringlengths
50
341k
pb
stringlengths
33
341k
px
stringlengths
50
338k
py
stringlengths
33
338k
pa_sliced
stringlengths
31
44.3k
pb_sliced
stringlengths
31
44.6k
px_sliced
stringlengths
51
45.8k
py_sliced
stringlengths
33
46.9k
patch_sliced
stringlengths
0
46.8k
CVE-2022-0581
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-cms.c
dissect_cms_T_attrType
static int dissect_cms_T_attrType(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { const char *name = NULL; offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_cms_attrType, &object_identifier_id); if(object_identifier_id...
static int dissect_cms_T_attrType(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->object_identifier_id = NULL; const char *name = NULL; offset = dissect_ber_object_iden...
static int dissect_cms_T_attrType(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { const char *name = NULL; offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_cms_attrType, &object_identifier_id); if(object_identifier_id...
static int dissect_cms_T_attrType(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->object_identifier_id = NULL; const char *name = NULL; offset = dissect_ber_object_iden...
static int dissect_cms_T_attrType(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { const char *name = NULL; offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_cms_attrType, &object_identifier_id); if(object_identifier_id...
static int dissect_cms_T_attrType(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->object_identifier_id = NULL; const char *name = NULL; offset = dissect_ber_object_iden...
static int dissect_cms_T_attrType(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { const char *name = NULL; offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_cms_attrType, &object_identifier_id); if(object_identifier_id...
static int dissect_cms_T_attrType(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->object_identifier_id = NULL; const char *name = NULL; offset = dissect_ber_object_iden...
static int dissect_cms_T_attrType(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { + struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); + cms_data->object_identifier_id = NULL; const char *name = NULL; - offset = dissect_ber_object...
CVE-2022-0581
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-cms.c
dissect_cms_T_capability
static int dissect_cms_T_capability(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { const char *name = NULL; offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_cms_attrType, &object_identifier_id); if(object_identifier_...
static int dissect_cms_T_capability(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->object_identifier_id = NULL; const char *name = NULL; offset = dissect_ber_object_id...
static int dissect_cms_T_capability(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { const char *name = NULL; offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_cms_attrType, &object_identifier_id); if(object_identifier_...
static int dissect_cms_T_capability(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->object_identifier_id = NULL; const char *name = NULL; offset = dissect_ber_object_id...
static int dissect_cms_T_capability(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { const char *name = NULL; offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_cms_attrType, &object_identifier_id); if(object_identifier_...
static int dissect_cms_T_capability(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->object_identifier_id = NULL; const char *name = NULL; offset = dissect_ber_object_id...
static int dissect_cms_T_capability(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { const char *name = NULL; offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_cms_attrType, &object_identifier_id); if(object_identifier_...
static int dissect_cms_T_capability(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->object_identifier_id = NULL; const char *name = NULL; offset = dissect_ber_object_id...
static int dissect_cms_T_capability(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { + struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); + cms_data->object_identifier_id = NULL; const char *name = NULL; - offset = dissect_ber_obje...
CVE-2022-0581
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-cms.c
dissect_cms_T_content
static int dissect_cms_T_content(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); return offset; }
static int dissect_cms_T_content(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); offset=call_ber_oid_callback(cms_data->object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); r...
static int dissect_cms_T_content(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); return offset; }
static int dissect_cms_T_content(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); offset=call_ber_oid_callback(cms_data->object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); r...
static int dissect_cms_T_content(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); return offset; }
static int dissect_cms_T_content(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); offset=call_ber_oid_callback(cms_data->object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); r...
static int dissect_cms_T_content(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); return offset; }
static int dissect_cms_T_content(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); offset=call_ber_oid_callback(cms_data->object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); r...
static int dissect_cms_T_content(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { - offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); + struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); + offset=...
CVE-2022-0581
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-cms.c
dissect_cms_T_eContent
static int dissect_cms_T_eContent(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset = dissect_ber_octet_string(FALSE, actx, tree, tvb, offset, hf_index, &content_tvb); if(content_tvb) { proto_item_set_text(actx->created_item, "eContent (%u byte...
static int dissect_cms_T_eContent(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->content_tvb = NULL; offset = dissect_ber_octet_string(FALSE, actx, tree, tvb, offset, hf_i...
static int dissect_cms_T_eContent(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset = dissect_ber_octet_string(FALSE, actx, tree, tvb, offset, hf_index, &content_tvb); if(content_tvb) { proto_item_set_text(actx->created_item, "eContent (%u byte...
static int dissect_cms_T_eContent(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->content_tvb = NULL; offset = dissect_ber_octet_string(FALSE, actx, tree, tvb, offset, hf_i...
static int dissect_cms_T_eContent(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset = dissect_ber_octet_string(FALSE, actx, tree, tvb, offset, hf_index, &content_tvb); if(content_tvb) { proto_item_set_text(actx->created_item, "eContent (%u byte...
static int dissect_cms_T_eContent(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->content_tvb = NULL; offset = dissect_ber_octet_string(FALSE, actx, tree, tvb, offset, hf_i...
static int dissect_cms_T_eContent(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset = dissect_ber_octet_string(FALSE, actx, tree, tvb, offset, hf_index, &content_tvb); if(content_tvb) { proto_item_set_text(actx->created_item, "eContent (%u byte...
static int dissect_cms_T_eContent(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->content_tvb = NULL; offset = dissect_ber_octet_string(FALSE, actx, tree, tvb, offset, hf_i...
static int dissect_cms_T_eContent(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { - offset = dissect_ber_octet_string(FALSE, actx, tree, tvb, offset, hf_index, &content_tvb); - if(content_tvb) { - proto_item_set_text(actx->created_item, "eContent (%u ...
CVE-2022-0581
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-cms.c
dissect_cms_T_keyAttr
static int dissect_cms_T_keyAttr(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); return offset; }
static int dissect_cms_T_keyAttr(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); offset=call_ber_oid_callback(cms_data->object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); r...
static int dissect_cms_T_keyAttr(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); return offset; }
static int dissect_cms_T_keyAttr(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); offset=call_ber_oid_callback(cms_data->object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); r...
static int dissect_cms_T_keyAttr(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); return offset; }
static int dissect_cms_T_keyAttr(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); offset=call_ber_oid_callback(cms_data->object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); r...
static int dissect_cms_T_keyAttr(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); return offset; }
static int dissect_cms_T_keyAttr(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); offset=call_ber_oid_callback(cms_data->object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); r...
static int dissect_cms_T_keyAttr(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { - offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); + struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); + offset=...
CVE-2022-0581
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-cms.c
dissect_cms_T_keyAttrId
static int dissect_cms_T_keyAttrId(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_cms_ci_contentType, &object_identifier_id); return offset; }
static int dissect_cms_T_keyAttrId(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->object_identifier_id = NULL; offset = dissect_ber_object_identifier_str(implicit_tag, act...
static int dissect_cms_T_keyAttrId(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_cms_ci_contentType, &object_identifier_id); return offset; }
static int dissect_cms_T_keyAttrId(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->object_identifier_id = NULL; offset = dissect_ber_object_identifier_str(implicit_tag, act...
static int dissect_cms_T_keyAttrId(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_cms_ci_contentType, &object_identifier_id); return offset; }
static int dissect_cms_T_keyAttrId(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->object_identifier_id = NULL; offset = dissect_ber_object_identifier_str(implicit_tag, act...
static int dissect_cms_T_keyAttrId(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_cms_ci_contentType, &object_identifier_id); return offset; }
static int dissect_cms_T_keyAttrId(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->object_identifier_id = NULL; offset = dissect_ber_object_identifier_str(implicit_tag, act...
static int dissect_cms_T_keyAttrId(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { - offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_cms_ci_contentType, &object_identifier_id); + struct cms_private_data *cms_data = cms_ge...
CVE-2022-0581
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-cms.c
dissect_cms_T_oriType
static int dissect_cms_T_oriType(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_index, &object_identifier_id); return offset; }
static int dissect_cms_T_oriType(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->object_identifier_id = NULL; offset = dissect_ber_object_identifier_str(implicit_tag, actx,...
static int dissect_cms_T_oriType(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_index, &object_identifier_id); return offset; }
static int dissect_cms_T_oriType(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->object_identifier_id = NULL; offset = dissect_ber_object_identifier_str(implicit_tag, actx,...
static int dissect_cms_T_oriType(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_index, &object_identifier_id); return offset; }
static int dissect_cms_T_oriType(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->object_identifier_id = NULL; offset = dissect_ber_object_identifier_str(implicit_tag, actx,...
static int dissect_cms_T_oriType(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_index, &object_identifier_id); return offset; }
static int dissect_cms_T_oriType(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->object_identifier_id = NULL; offset = dissect_ber_object_identifier_str(implicit_tag, actx,...
static int dissect_cms_T_oriType(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { - offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_index, &object_identifier_id); + struct cms_private_data *cms_data = cms_get_private_data(...
CVE-2022-0581
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-cms.c
dissect_cms_T_oriValue
static int dissect_cms_T_oriValue(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); return offset; }
static int dissect_cms_T_oriValue(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); offset=call_ber_oid_callback(cms_data->object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); ...
static int dissect_cms_T_oriValue(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); return offset; }
static int dissect_cms_T_oriValue(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); offset=call_ber_oid_callback(cms_data->object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); ...
static int dissect_cms_T_oriValue(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); return offset; }
static int dissect_cms_T_oriValue(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); offset=call_ber_oid_callback(cms_data->object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); ...
static int dissect_cms_T_oriValue(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); return offset; }
static int dissect_cms_T_oriValue(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); offset=call_ber_oid_callback(cms_data->object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); ...
static int dissect_cms_T_oriValue(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { - offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); + struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); + offset...
CVE-2022-0581
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-cms.c
dissect_cms_T_otherRevInfo
static int dissect_cms_T_otherRevInfo(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); return offset; }
static int dissect_cms_T_otherRevInfo(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); offset=call_ber_oid_callback(cms_data->object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); ...
static int dissect_cms_T_otherRevInfo(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); return offset; }
static int dissect_cms_T_otherRevInfo(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); offset=call_ber_oid_callback(cms_data->object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); ...
static int dissect_cms_T_otherRevInfo(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); return offset; }
static int dissect_cms_T_otherRevInfo(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); offset=call_ber_oid_callback(cms_data->object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); ...
static int dissect_cms_T_otherRevInfo(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); return offset; }
static int dissect_cms_T_otherRevInfo(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); offset=call_ber_oid_callback(cms_data->object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); ...
static int dissect_cms_T_otherRevInfo(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { - offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); + struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); + of...
CVE-2022-0581
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-cms.c
dissect_cms_T_otherRevInfoFormat
static int dissect_cms_T_otherRevInfoFormat(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_index, &object_identifier_id); return offset; }
static int dissect_cms_T_otherRevInfoFormat(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->object_identifier_id = NULL; offset = dissect_ber_object_identifier_str(implicit...
static int dissect_cms_T_otherRevInfoFormat(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_index, &object_identifier_id); return offset; }
static int dissect_cms_T_otherRevInfoFormat(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->object_identifier_id = NULL; offset = dissect_ber_object_identifier_str(implicit...
static int dissect_cms_T_otherRevInfoFormat(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_index, &object_identifier_id); return offset; }
static int dissect_cms_T_otherRevInfoFormat(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->object_identifier_id = NULL; offset = dissect_ber_object_identifier_str(implicit...
static int dissect_cms_T_otherRevInfoFormat(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_index, &object_identifier_id); return offset; }
static int dissect_cms_T_otherRevInfoFormat(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); cms_data->object_identifier_id = NULL; offset = dissect_ber_object_identifier_str(implicit...
static int dissect_cms_T_otherRevInfoFormat(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { - offset = dissect_ber_object_identifier_str(implicit_tag, actx, tree, tvb, offset, hf_index, &object_identifier_id); + struct cms_private_data *cms_data = cms_get_pr...
CVE-2022-0581
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-cms.c
dissect_cms_T_parameters
static int dissect_cms_T_parameters(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); return offset; }
static int dissect_cms_T_parameters(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); offset=call_ber_oid_callback(cms_data->object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); ...
static int dissect_cms_T_parameters(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); return offset; }
static int dissect_cms_T_parameters(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); offset=call_ber_oid_callback(cms_data->object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); ...
static int dissect_cms_T_parameters(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); return offset; }
static int dissect_cms_T_parameters(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); offset=call_ber_oid_callback(cms_data->object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); ...
static int dissect_cms_T_parameters(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); return offset; }
static int dissect_cms_T_parameters(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); offset=call_ber_oid_callback(cms_data->object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); ...
static int dissect_cms_T_parameters(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { - offset=call_ber_oid_callback(object_identifier_id, tvb, offset, actx->pinfo, tree, NULL); + struct cms_private_data *cms_data = cms_get_private_data(actx->pinfo); + offs...
CVE-2022-0582
epan/dissectors/packet-csn1.c
csnStreamDissector
gint16 csnStreamDissector(proto_tree *tree, csnStream_t* ar, const CSN_DESCR* pDescr, tvbuff_t *tvb, void* data, int ett_csn1) { gint remaining_bits_len = ar->remaining_bits_len; gint bit_offset = ar->bit_offset; guint8* pui8 = NULL; guint16* pui16; guint32* pui32; guint8 Tag = STANDARD_TAG; ...
gint16 csnStreamDissector(proto_tree *tree, csnStream_t* ar, const CSN_DESCR* pDescr, tvbuff_t *tvb, void* data, int ett_csn1) { gint remaining_bits_len = ar->remaining_bits_len; gint bit_offset = ar->bit_offset; guint8* pui8 = NULL; guint16* pui16; guint32* pui32; guint8 Tag = STANDARD_TAG; ...
gint16 csnStreamDissector(proto_tree *tree, csnStream_t* ar, const CSN_DESCR* pDescr, tvbuff_t *tvb, void* data, int ett_csn1) { gint remaining_bits_len = ar->remaining_bits_len; gint bit_offset = ar->bit_offset; guint8* pui8 = NULL; guint16* pui16; guint32* pui32; guint8 Tag = STANDARD_TAG; ...
gint16 csnStreamDissector(proto_tree *tree, csnStream_t* ar, const CSN_DESCR* pDescr, tvbuff_t *tvb, void* data, int ett_csn1) { gint remaining_bits_len = ar->remaining_bits_len; gint bit_offset = ar->bit_offset; guint8* pui8 = NULL; guint16* pui16; guint32* pui32; guint8 Tag = STANDARD_TAG; ...
gint16 csnStreamDissector(proto_tree *tree, csnStream_t* ar, const CSN_DESCR* pDescr, tvbuff_t *tvb, void* data, int ett_csn1) { gint remaining_bits_len = ar->remaining_bits_len; gint bit_offset = ar->bit_offset; if (remaining_bits_len < 0) { return ProcessError(tree, ar->pinfo, tvb, bit_offset, CSN...
gint16 csnStreamDissector(proto_tree *tree, csnStream_t* ar, const CSN_DESCR* pDescr, tvbuff_t *tvb, void* data, int ett_csn1) { gint remaining_bits_len = ar->remaining_bits_len; gint bit_offset = ar->bit_offset; if (remaining_bits_len < 0) { return ProcessError(tree, ar->pinfo, tvb, bit_offset, CSN...
gint16 csnStreamDissector(proto_tree *tree, csnStream_t* ar, const CSN_DESCR* pDescr, tvbuff_t *tvb, void* data, int ett_csn1) { gint remaining_bits_len = ar->remaining_bits_len; gint bit_offset = ar->bit_offset; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (remaining_bits_len < 0) { return ...
gint16 csnStreamDissector(proto_tree *tree, csnStream_t* ar, const CSN_DESCR* pDescr, tvbuff_t *tvb, void* data, int ett_csn1) { gint remaining_bits_len = ar->remaining_bits_len; gint bit_offset = ar->bit_offset; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (remaining_bits_len < 0) { return ...
gint16 csnStreamDissector(proto_tree *tree, csnStream_t* ar, const CSN_DESCR* pDescr, tvbuff_t *tvb, void* data, int ett_csn1) { gint remaining_bits_len = ar->remaining_bits_len; gint bit_offset = ar->bit_offset; if (remaining_bits_len < 0) { return ProcessError(tree, ar->pinfo, tvb, bit_offset...
CVE-2022-0583
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-pvfs2.c
dissect_pvfs2_getconfig_response
static int dissect_pvfs2_getconfig_response(tvbuff_t *tvb, proto_tree *parent_tree, int offset, packet_info *pinfo) { guint32 i; guint32 total_bytes = 0, total_config_bytes = 0, total_lines = 0; guint32 bytes_processed = 0; guint32 length_remaining = 0; const char *ptr = NULL; proto_tree *tree, ...
static int dissect_pvfs2_getconfig_response(tvbuff_t *tvb, proto_tree *parent_tree, int offset, packet_info *pinfo) { guint32 i; guint32 total_bytes = 0, total_config_bytes = 0, total_lines = 0; guint32 bytes_processed = 0; guint32 length_remaining = 0; const char *ptr = NULL; proto_tree *tree, ...
static int dissect_pvfs2_getconfig_response(tvbuff_t *tvb, proto_tree *parent_tree, int offset, packet_info *pinfo) { guint32 i; guint32 total_bytes = 0, total_config_bytes = 0, total_lines = 0; guint32 bytes_processed = 0; guint32 length_remaining = 0; const char *ptr = NULL; proto_tree *tree, ...
static int dissect_pvfs2_getconfig_response(tvbuff_t *tvb, proto_tree *parent_tree, int offset, packet_info *pinfo) { guint32 i; guint32 total_bytes = 0, total_config_bytes = 0, total_lines = 0; guint32 bytes_processed = 0; guint32 length_remaining = 0; const char *ptr = NULL; proto_tree *tree, ...
static int dissect_pvfs2_getconfig_response(tvbuff_t *tvb, proto_tree *parent_tree, int offset, packet_info *pinfo) { tree = proto_tree_add_subtree(parent_tree, tvb, offset, 12, ett_pvfs_server_config, NULL, "Server Config"); total_bytes = tvb_get_letohl(tvb, offset); proto_tree_add_item(tree, hf_pvfs_getco...
static int dissect_pvfs2_getconfig_response(tvbuff_t *tvb, proto_tree *parent_tree, int offset, packet_info *pinfo) { tree = proto_tree_add_subtree(parent_tree, tvb, offset, 12, ett_pvfs_server_config, NULL, "Server Config"); total_bytes = tvb_get_letohl(tvb, offset); proto_tree_add_item(tree, hf_pvfs_getco...
static int dissect_pvfs2_getconfig_response(tvbuff_t *tvb, proto_tree *parent_tree, int offset, packet_info *pinfo) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ tree = proto_tree_add_subtree(parent_tree, tvb, offset, 12, ett_pvfs_server_config, NULL, "Server Config"); total_bytes = tvb_get_letohl(tvb, of...
static int dissect_pvfs2_getconfig_response(tvbuff_t *tvb, proto_tree *parent_tree, int offset, packet_info *pinfo) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ tree = proto_tree_add_subtree(parent_tree, tvb, offset, 12, ett_pvfs_server_config, NULL, "Server Config"); total_bytes = tvb_get_letohl(tvb, of...
static int dissect_pvfs2_getconfig_response(tvbuff_t *tvb, proto_tree *parent_tree, int offset, packet_info *pinfo) { tree = proto_tree_add_subtree(parent_tree, tvb, offset, 12, ett_pvfs_server_config, NULL, "Server Config"); total_bytes = tvb_get_letohl(tvb, offset); proto_tree_add_item(tree, hf_pvfs_g...
CVE-2022-0585
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-amp.c
dissect_amp_as_subtree
void dissect_amp_as_subtree(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) { guint64 messages = 0; unsigned int i=0; unsigned int j=0; unsigned int k=0; unsigned int numTNVCEntries = 0; proto_tree *amp_tree = NULL; proto_tree *amp_items_tree = NULL; proto_tree *amp_regi...
void dissect_amp_as_subtree(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) { guint64 messages = 0; unsigned int i=0; unsigned int j=0; unsigned int k=0; unsigned int numTNVCEntries = 0; proto_tree *amp_tree = NULL; proto_tree *amp_items_tree = NULL; proto_tree *amp_regi...
void dissect_amp_as_subtree(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) { guint64 messages = 0; unsigned int i=0; unsigned int j=0; unsigned int k=0; unsigned int numTNVCEntries = 0; proto_tree *amp_tree = NULL; proto_tree *amp_items_tree = NULL; proto_tree *amp_regi...
void dissect_amp_as_subtree(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) { guint64 messages = 0; unsigned int i=0; unsigned int j=0; unsigned int k=0; unsigned int numTNVCEntries = 0; proto_tree *amp_tree = NULL; proto_tree *amp_items_tree = NULL; proto_tree *amp_regi...
void dissect_amp_as_subtree(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) { proto_item *payload_item = NULL; proto_item *amp_message = NULL; proto_item *amp_register = NULL; proto_item *amp_report_set = NULL; proto_item *amp_report = NULL; amp_tree = proto_tree_add_subtree(tre...
void dissect_amp_as_subtree(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) { proto_item *payload_item = NULL; proto_item *amp_message = NULL; proto_item *amp_register = NULL; proto_item *amp_report_set = NULL; proto_item *amp_report = NULL; amp_tree = proto_tree_add_subtree(tre...
void dissect_amp_as_subtree(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ proto_item *payload_item = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ proto_item *amp_message = NULL; proto_item *amp_register = NULL; proto_item ...
void dissect_amp_as_subtree(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ proto_item *payload_item = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ proto_item *amp_message = NULL; proto_item *amp_register = NULL; proto_item ...
void dissect_amp_as_subtree(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) { proto_item *payload_item = NULL; proto_item *amp_message = NULL; proto_item *amp_register = NULL; proto_item *amp_report_set = NULL; proto_item *amp_report = NULL; amp_tree = proto_tree_add_subt...
CVE-2022-0585
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-amp.c
proto_register_amp
void proto_register_amp(void) { static hf_register_info hf[] = { { &hf_amp_message_header, { "AMP Message Header", "amp.message.header", FT_UT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_amp_report_data, { "Report-Data", "amp.repo...
void proto_register_amp(void) { static hf_register_info hf[] = { { &hf_amp_message_header, { "AMP Message Header", "amp.message.header", FT_UT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_amp_report_data, { "Report-Data", "amp.repo...
void proto_register_amp(void) { static hf_register_info hf[] = { { &hf_amp_message_header, { "AMP Message Header", "amp.message.header", FT_UT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_amp_report_data, { "Report-Data", "amp.repo...
void proto_register_amp(void) { static hf_register_info hf[] = { { &hf_amp_message_header, { "AMP Message Header", "amp.message.header", FT_UT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_amp_report_data, { "Report-Data", "amp.repo...
void proto_register_amp(void) { static hf_register_info hf[] = { { &hf_amp_message_header, { "AMP Message Header", "amp.message.header", FT_UT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_amp_report_data, { "Report-Data", "amp.repo...
void proto_register_amp(void) { static hf_register_info hf[] = { { &hf_amp_message_header, { "AMP Message Header", "amp.message.header", FT_UT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_amp_report_data, { "Report-Data", "amp.repo...
void proto_register_amp(void) { static hf_register_info hf[] = { { &hf_amp_message_header, { "AMP Message Header", "amp.message.header", FT_UT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_amp_report_data, { "Report-Data", "amp.repo...
void proto_register_amp(void) { static hf_register_info hf[] = { { &hf_amp_message_header, { "AMP Message Header", "amp.message.header", FT_UT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_amp_report_data, { "Report-Data", "amp.repo...
void proto_register_amp(void) { static hf_register_info hf[] = { { &hf_amp_message_header, { "AMP Message Header", "amp.message.header", FT_UT8, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_amp_report_data, { "Report-Data", ...
CVE-2022-0586
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-rtmpt.c
dissect_rtmpt
static void dissect_rtmpt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, rtmpt_packet_t *tp) { gint offset = 0; gchar *sDesc = NULL; gint deschasopcode = FALSE; gboolean haveETS = FALSE; guint32 iBodyOffset = 0; guint32 iBodyRemain = 0; col_set_str(pinfo-...
static void dissect_rtmpt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, rtmpt_packet_t *tp) { gint offset = 0; gchar *sDesc = NULL; gint deschasopcode = FALSE; gboolean haveETS = FALSE; guint32 iBodyOffset = 0; guint32 iBodyRemain = 0; col_set_str(pinfo-...
static void dissect_rtmpt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, rtmpt_packet_t *tp) { gint offset = 0; gchar *sDesc = NULL; gint deschasopcode = FALSE; gboolean haveETS = FALSE; guint32 iBodyOffset = 0; guint32 iBodyRemain = 0; col_set_str(pinfo-...
static void dissect_rtmpt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, rtmpt_packet_t *tp) { gint offset = 0; gchar *sDesc = NULL; gint deschasopcode = FALSE; gboolean haveETS = FALSE; guint32 iBodyOffset = 0; guint32 iBodyRemain = 0; col_set_str(pinfo-...
static void dissect_rtmpt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, rtmpt_packet_t *tp) { gint offset = 0; gint deschasopcode = FALSE; guint32 iBodyOffset = 0; guint32 iBodyRemain = 0; RTMPT_DEBUG("Dissect: frame=%u visited=%d len=%d tree=%p\n", pinfo->num, ...
static void dissect_rtmpt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, rtmpt_packet_t *tp) { gint offset = 0; gint deschasopcode = FALSE; guint32 iBodyOffset = 0; guint32 iBodyRemain = 0; RTMPT_DEBUG("Dissect: frame=%u visited=%d len=%d tree=%p\n", pinfo->num, ...
static void dissect_rtmpt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, rtmpt_packet_t *tp) { gint offset = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ gint deschasopcode = FALSE; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint32 iBodyOffset = 0; gu...
static void dissect_rtmpt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, rtmpt_packet_t *tp) { gint offset = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ gint deschasopcode = FALSE; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint32 iBodyOffset = 0; gu...
static void dissect_rtmpt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, rtmpt_packet_t *tp) { gint offset = 0; gint deschasopcode = FALSE; guint32 iBodyOffset = 0; guint32 iBodyRemain = 0; RTMPT_DEBUG("Dissect: frame=%u visited=%d len=%d tree=%p\n", pinfo-...
CVE-2022-0586
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-rtmpt.c
proto_register_amf
void proto_register_amf(void) { static hf_register_info hf[] = { { &hf_amf_version, { "AMF version", "amf.version", FT_UT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_amf_header_count, { "Header count", "amf.header_count", FT_UT16...
void proto_register_amf(void) { static hf_register_info hf[] = { { &hf_amf_version, { "AMF version", "amf.version", FT_UT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_amf_header_count, { "Header count", "amf.header_count", FT_UT16...
void proto_register_amf(void) { static hf_register_info hf[] = { { &hf_amf_version, { "AMF version", "amf.version", FT_UT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_amf_header_count, { "Header count", "amf.header_count", FT_UT16...
void proto_register_amf(void) { static hf_register_info hf[] = { { &hf_amf_version, { "AMF version", "amf.version", FT_UT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_amf_header_count, { "Header count", "amf.header_count", FT_UT16...
void proto_register_amf(void) { static hf_register_info hf[] = { { &hf_amf_version, { "AMF version", "amf.version", FT_UT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_amf_header_count, { "Header count", "amf.header_count", FT_UT16...
void proto_register_amf(void) { static hf_register_info hf[] = { { &hf_amf_version, { "AMF version", "amf.version", FT_UT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_amf_header_count, { "Header count", "amf.header_count", FT_UT16...
void proto_register_amf(void) { static hf_register_info hf[] = { { &hf_amf_version, { "AMF version", "amf.version", FT_UT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_amf_header_count, { "Header count", "amf.header_count", FT_UT16...
void proto_register_amf(void) { static hf_register_info hf[] = { { &hf_amf_version, { "AMF version", "amf.version", FT_UT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_amf_header_count, { "Header count", "amf.header_count", FT_UT16...
void proto_register_amf(void) { static hf_register_info hf[] = { { &hf_amf_version, { "AMF version", "amf.version", FT_UT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_amf_header_count, { "Header count", "amf.header_count"...
CVE-2022-0586
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-rtmpt.c
rtmpt_get_amf_length
static gint rtmpt_get_amf_length(tvbuff_t *tvb, gint offset) { guint8 iObjType; gint remain = tvb_reported_length_remaining(tvb, offset); guint32 depth = 0; gint itemlen = 0; gint rv = 0; while (rv == 0 || depth > 0) { if (depth > 0) { if (remain-rv < 2) { ret...
static guint32 rtmpt_get_amf_length(tvbuff_t *tvb, gint offset, proto_item* pi) { guint8 iObjType; gint remain = tvb_reported_length_remaining(tvb, offset); guint32 depth = 0; guint32 itemlen = 0; guint32 rv = 0; guint iterations = MAX_AMF_ITERATIONS; while (rv == 0 || depth > 0) { i...
static gint rtmpt_get_amf_length(tvbuff_t *tvb, gint offset) { guint8 iObjType; gint remain = tvb_reported_length_remaining(tvb, offset); guint32 depth = 0; gint itemlen = 0; gint rv = 0; while (rv == 0 || depth > 0) { if (depth > 0) { if (remain-rv < 2) { ret...
static guint32 rtmpt_get_amf_length(tvbuff_t *tvb, gint offset, proto_item* pi) { guint8 iObjType; gint remain = tvb_reported_length_remaining(tvb, offset); guint32 depth = 0; guint32 itemlen = 0; guint32 rv = 0; guint iterations = MAX_AMF_ITERATIONS; while (rv == 0 || depth > 0) { i...
static gint rtmpt_get_amf_length(tvbuff_t *tvb, gint offset) { guint32 depth = 0; gint itemlen = 0; gint rv = 0; while (rv == 0 || depth > 0) { if (depth > 0) { if (remain-rv < 2) { return remain; } itemlen = tvb_get_ntohs(tvb, offset+rv) + 2; ...
static guint32 rtmpt_get_amf_length(tvbuff_t *tvb, gint offset, proto_item* pi) { guint32 depth = 0; guint32 itemlen = 0; guint32 rv = 0; guint iterations = MAX_AMF_ITERATIONS; while (rv == 0 || depth > 0) { if (--iterations) { expert_add_info(NULL, pi, &ei_amf_loop); ...
static gint rtmpt_get_amf_length(tvbuff_t *tvb, gint offset) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint32 depth = 0; gint itemlen = 0; gint rv = 0; while (rv == 0 || depth > 0) { if (depth > 0) { if (remain-rv < 2) { return remain; } ...
static guint32 rtmpt_get_amf_length(tvbuff_t *tvb, gint offset, proto_item* pi) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint32 depth = 0; guint32 itemlen = 0; guint32 rv = 0; guint iterations = MAX_AMF_ITERATIONS; while (rv == 0 || depth > 0) { if (--iterations) { ex...
-static gint rtmpt_get_amf_length(tvbuff_t *tvb, gint offset) { +static guint32 rtmpt_get_amf_length(tvbuff_t *tvb, gint offset, proto_item* pi) { guint32 depth = 0; - gint itemlen = 0; - gint rv = 0; + guint32 itemlen = 0; + guint32 rv = 0; + guint iterations = MAX_AMF_ITERATIONS; while (rv ==...
CVE-2022-0586
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-rtmpt.c
rtmpt_get_amf_param
static gchar * rtmpt_get_amf_param(tvbuff_t *tvb, gint offset, gint param, const gchar *prop) { guint32 remain = tvb_reported_length_remaining(tvb, offset); guint32 itemlen; guint32 iStringLength; while (remain > 0 && param > 0) { itemlen = rtmpt_get_amf_length(tvb, offset); offset += it...
static gchar * rtmpt_get_amf_param(tvbuff_t *tvb, gint offset, proto_item* pi, gint param, const gchar *prop) { guint32 remain = tvb_reported_length_remaining(tvb, offset); guint32 itemlen; guint32 iStringLength; while (remain > 0 && param > 0) { itemlen = rtmpt_get_amf_length(tvb, offset, pi); ...
static gchar * rtmpt_get_amf_param(tvbuff_t *tvb, gint offset, gint param, const gchar *prop) { guint32 remain = tvb_reported_length_remaining(tvb, offset); guint32 itemlen; guint32 iStringLength; while (remain > 0 && param > 0) { itemlen = rtmpt_get_amf_length(tvb, offset); offset += it...
static gchar * rtmpt_get_amf_param(tvbuff_t *tvb, gint offset, proto_item* pi, gint param, const gchar *prop) { guint32 remain = tvb_reported_length_remaining(tvb, offset); guint32 itemlen; guint32 iStringLength; while (remain > 0 && param > 0) { itemlen = rtmpt_get_amf_length(tvb, offset, pi); ...
static gchar * rtmpt_get_amf_param(tvbuff_t *tvb, gint offset, gint param, const gchar *prop) { guint32 remain = tvb_reported_length_remaining(tvb, offset); while (remain > 0 && param > 0) { itemlen = rtmpt_get_amf_length(tvb, offset); offset += itemlen; remain -= itemlen; param-...
static gchar * rtmpt_get_amf_param(tvbuff_t *tvb, gint offset, proto_item* pi, gint param, const gchar *prop) { guint32 remain = tvb_reported_length_remaining(tvb, offset); while (remain > 0 && param > 0) { itemlen = rtmpt_get_amf_length(tvb, offset, pi); if (itemlen == 0) { break; ...
static gchar * rtmpt_get_amf_param(tvbuff_t *tvb, gint offset, gint param, const gchar *prop) { guint32 remain = tvb_reported_length_remaining(tvb, offset); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while (remain > 0 && param > 0) { itemlen = rtmpt_get_amf_length(tvb, offset); offset += ...
static gchar * rtmpt_get_amf_param(tvbuff_t *tvb, gint offset, proto_item* pi, gint param, const gchar *prop) { guint32 remain = tvb_reported_length_remaining(tvb, offset); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while (remain > 0 && param > 0) { itemlen = rtmpt_get_amf_length(tvb, offset, pi)...
-static gchar * rtmpt_get_amf_param(tvbuff_t *tvb, gint offset, gint param, const gchar *prop) { +static gchar * rtmpt_get_amf_param(tvbuff_t *tvb, gint offset, proto_item* pi, gint param, const gchar *prop) { guint32 remain = tvb_reported_length_remaining(tvb, offset); while (remain > 0 && param > 0) { - ...
CVE-2022-0586
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-rtmpt.c
rtmpt_get_amf_txid
static guint32 rtmpt_get_amf_txid(tvbuff_t *tvb, gint offset) { guint32 remain = tvb_reported_length_remaining(tvb, offset); if (remain > 0) { guint32 itemlen = rtmpt_get_amf_length(tvb, offset); if (remain<itemlen) { return 0; } offset += itemlen; remain -= i...
static guint32 rtmpt_get_amf_txid(tvbuff_t *tvb, gint offset, proto_item* pi) { guint32 remain = tvb_reported_length_remaining(tvb, offset); if (remain > 0) { guint32 itemlen = rtmpt_get_amf_length(tvb, offset, pi); if (itemlen == 0 || remain < itemlen) { return 0; } ...
static guint32 rtmpt_get_amf_txid(tvbuff_t *tvb, gint offset) { guint32 remain = tvb_reported_length_remaining(tvb, offset); if (remain > 0) { guint32 itemlen = rtmpt_get_amf_length(tvb, offset); if (remain<itemlen) { return 0; } offset += itemlen; remain -= i...
static guint32 rtmpt_get_amf_txid(tvbuff_t *tvb, gint offset, proto_item* pi) { guint32 remain = tvb_reported_length_remaining(tvb, offset); if (remain > 0) { guint32 itemlen = rtmpt_get_amf_length(tvb, offset, pi); if (itemlen == 0 || remain < itemlen) { return 0; } ...
static guint32 rtmpt_get_amf_txid(tvbuff_t *tvb, gint offset) { guint32 remain = tvb_reported_length_remaining(tvb, offset); if (remain > 0) { guint32 itemlen = rtmpt_get_amf_length(tvb, offset); if (remain<itemlen) { return 0; } offset += itemlen; remain -= i...
static guint32 rtmpt_get_amf_txid(tvbuff_t *tvb, gint offset, proto_item* pi) { guint32 remain = tvb_reported_length_remaining(tvb, offset); if (remain > 0) { guint32 itemlen = rtmpt_get_amf_length(tvb, offset, pi); if (itemlen == 0 || remain < itemlen) { return 0; } ...
static guint32 rtmpt_get_amf_txid(tvbuff_t *tvb, gint offset) { guint32 remain = tvb_reported_length_remaining(tvb, offset); if (remain > 0) { guint32 itemlen = rtmpt_get_amf_length(tvb, offset); if (remain<itemlen) { return 0; } offset += itemlen; remain -= i...
static guint32 rtmpt_get_amf_txid(tvbuff_t *tvb, gint offset, proto_item* pi) { guint32 remain = tvb_reported_length_remaining(tvb, offset); if (remain > 0) { guint32 itemlen = rtmpt_get_amf_length(tvb, offset, pi); if (itemlen == 0 || remain < itemlen) { /* PLACEHOLDER: DO NOT DELET...
-static guint32 rtmpt_get_amf_txid(tvbuff_t *tvb, gint offset) { +static guint32 rtmpt_get_amf_txid(tvbuff_t *tvb, gint offset, proto_item* pi) { guint32 remain = tvb_reported_length_remaining(tvb, offset); if (remain > 0) { - guint32 itemlen = rtmpt_get_amf_length(tvb, offset); - if (remain<ite...
CVE-2022-0586
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-rtmpt.c
rtmpt_get_packet_desc
static gchar * rtmpt_get_packet_desc(tvbuff_t *tvb, guint32 offset, guint32 remain, rtmpt_conv_t *rconv, int cdir, rtmpt_packet_t *tp, gint *deschasopcode) { if (tp->cmd == RTMPT_TYPE_CHUNK_SIZE || tp->cmd == RTMPT_TYPE_ABORT_MESSAGE || tp->cmd == RTMPT_TYPE_ACKNOWLEDGEMENT || tp->cmd == RTMPT_TYPE_WDOW) { ...
static gchar * rtmpt_get_packet_desc(tvbuff_t *tvb, guint32 offset, proto_item* pi, guint32 remain, rtmpt_conv_t *rconv, int cdir, rtmpt_packet_t *tp, gint *deschasopcode) { if (tp->cmd == RTMPT_TYPE_CHUNK_SIZE || tp->cmd == RTMPT_TYPE_ABORT_MESSAGE || tp->cmd == RTMPT_TYPE_ACKNOWLEDGEMENT || tp->cmd == RTMPT_TYPE_...
static gchar * rtmpt_get_packet_desc(tvbuff_t *tvb, guint32 offset, guint32 remain, rtmpt_conv_t *rconv, int cdir, rtmpt_packet_t *tp, gint *deschasopcode) { if (tp->cmd == RTMPT_TYPE_CHUNK_SIZE || tp->cmd == RTMPT_TYPE_ABORT_MESSAGE || tp->cmd == RTMPT_TYPE_ACKNOWLEDGEMENT || tp->cmd == RTMPT_TYPE_WDOW) { ...
static gchar * rtmpt_get_packet_desc(tvbuff_t *tvb, guint32 offset, proto_item* pi, guint32 remain, rtmpt_conv_t *rconv, int cdir, rtmpt_packet_t *tp, gint *deschasopcode) { if (tp->cmd == RTMPT_TYPE_CHUNK_SIZE || tp->cmd == RTMPT_TYPE_ABORT_MESSAGE || tp->cmd == RTMPT_TYPE_ACKNOWLEDGEMENT || tp->cmd == RTMPT_TYPE_...
static gchar * rtmpt_get_packet_desc(tvbuff_t *tvb, guint32 offset, guint32 remain, rtmpt_conv_t *rconv, int cdir, rtmpt_packet_t *tp, gint *deschasopcode) { if (tp->cmd == RTMPT_TYPE_CHUNK_SIZE || tp->cmd == RTMPT_TYPE_ABORT_MESSAGE || tp->cmd == RTMPT_TYPE_ACKNOWLEDGEMENT || tp->cmd == RTMPT_TYPE_WDOW) { } el...
static gchar * rtmpt_get_packet_desc(tvbuff_t *tvb, guint32 offset, proto_item* pi, guint32 remain, rtmpt_conv_t *rconv, int cdir, rtmpt_packet_t *tp, gint *deschasopcode) { if (tp->cmd == RTMPT_TYPE_CHUNK_SIZE || tp->cmd == RTMPT_TYPE_ABORT_MESSAGE || tp->cmd == RTMPT_TYPE_ACKNOWLEDGEMENT || tp->cmd == RTMPT_TYPE_...
static gchar * rtmpt_get_packet_desc(tvbuff_t *tvb, guint32 offset, guint32 remain, rtmpt_conv_t *rconv, int cdir, rtmpt_packet_t *tp, gint *deschasopcode) { if (tp->cmd == RTMPT_TYPE_CHUNK_SIZE || tp->cmd == RTMPT_TYPE_ABORT_MESSAGE || tp->cmd == RTMPT_TYPE_ACKNOWLEDGEMENT || tp->cmd == RTMPT_TYPE_WDOW) { /* P...
static gchar * rtmpt_get_packet_desc(tvbuff_t *tvb, guint32 offset, proto_item* pi, guint32 remain, rtmpt_conv_t *rconv, int cdir, rtmpt_packet_t *tp, gint *deschasopcode) { if (tp->cmd == RTMPT_TYPE_CHUNK_SIZE || tp->cmd == RTMPT_TYPE_ABORT_MESSAGE || tp->cmd == RTMPT_TYPE_ACKNOWLEDGEMENT || tp->cmd == RTMPT_TYPE_...
-static gchar * rtmpt_get_packet_desc(tvbuff_t *tvb, guint32 offset, guint32 remain, rtmpt_conv_t *rconv, int cdir, rtmpt_packet_t *tp, gint *deschasopcode) { +static gchar * rtmpt_get_packet_desc(tvbuff_t *tvb, guint32 offset, proto_item* pi, guint32 remain, rtmpt_conv_t *rconv, int cdir, rtmpt_packet_t *tp, gint *des...
CVE-2022-0778
OpenSSL
https://github.com/openssl/openssl
crypto/bn/bn_sqrt.c
BN_mod_sqrt
BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) { BIGNUM *ret = in; int err = 1; int r; BIGNUM *A, *b, *q, *t, *x, *y; int e, i, j; int used_ctx = 0; if (!BN_is_odd(p) || BN_abs_is_word(p, 1)) { if (BN_abs_is_word(p, 2)) { if (ret == NULL) {...
BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) { BIGNUM *ret = in; int err = 1; int r; BIGNUM *A, *b, *q, *t, *x, *y; int e, i, j; int used_ctx = 0; if (!BN_is_odd(p) || BN_abs_is_word(p, 1)) { if (BN_abs_is_word(p, 2)) { if (ret == NULL) {...
BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) { BIGNUM *ret = in; int err = 1; int r; BIGNUM *A, *b, *q, *t, *x, *y; int e, i, j; if (!BN_is_odd(p) || BN_abs_is_word(p, 1)) { if (BN_abs_is_word(p, 2)) { if (ret == NULL) { ret =...
BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) { BIGNUM *ret = in; int err = 1; int r; BIGNUM *A, *b, *q, *t, *x, *y; int e, i, j; if (!BN_is_odd(p) || BN_abs_is_word(p, 1)) { if (BN_abs_is_word(p, 2)) { if (ret == NULL) { ret =...
BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) { if (!BN_is_odd(p) || BN_abs_is_word(p, 1)) { if (BN_abs_is_word(p, 2)) { if (ret == NULL) { goto end; } if (!BN_set_word(ret, BN_is_bit_set(a, 0))) { return NU...
BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) { if (!BN_is_odd(p) || BN_abs_is_word(p, 1)) { if (BN_abs_is_word(p, 2)) { if (ret == NULL) { goto end; } if (!BN_set_word(ret, BN_is_bit_set(a, 0))) { return NU...
BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!BN_is_odd(p) || BN_abs_is_word(p, 1)) { if (BN_abs_is_word(p, 2)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ret == NULL) { goto en...
BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!BN_is_odd(p) || BN_abs_is_word(p, 1)) { if (BN_abs_is_word(p, 2)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ret == NULL) { goto en...
BIGNUM *BN_mod_sqrt(BIGNUM *in, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) { if (!BN_is_odd(p) || BN_abs_is_word(p, 1)) { if (BN_abs_is_word(p, 2)) { if (ret == NULL) { goto end; } if (!BN_set_word(ret, BN_is_bit_set(a, 0))) { r...
CVE-2022-1050
QEMU
https://github.com/qemu/qemu
hw/rdma/vmw/pvrdma_cmd.c
pvrdma_exec_cmd
int pvrdma_exec_cmd(PVRDMADev *dev) { int err = 0xFFFF; DSRInfo *dsr_info; dsr_info = &dev->dsr_info; if (dsr_info->req->hdr.cmd >= sizeof(cmd_handlers) / sizeof(struct cmd_handler)) { rdma_error_report("Unsupported command"); goto out; } if (!cmd_handlers[dsr_info->req->hdr.cmd]...
int pvrdma_exec_cmd(PVRDMADev *dev) { int err = 0xFFFF; DSRInfo *dsr_info; dsr_info = &dev->dsr_info; if (!dsr_info->dsr) { rdma_error_report("Exec command without dsr, req or rsp buffers"); goto out; } if (dsr_info->req->hdr.cmd >= sizeof(cmd_handlers) / sizeof(struct cmd_handle...
int pvrdma_exec_cmd(PVRDMADev *dev) { int err = 0xFFFF; DSRInfo *dsr_info; dsr_info = &dev->dsr_info; if (dsr_info->req->hdr.cmd >= sizeof(cmd_handlers) / sizeof(struct cmd_handler)) { rdma_error_report("Unsupported command"); goto out; } if (!cmd_handlers[dsr_info->req->hdr.cmd]...
int pvrdma_exec_cmd(PVRDMADev *dev) { int err = 0xFFFF; DSRInfo *dsr_info; dsr_info = &dev->dsr_info; if (!dsr_info->dsr) { rdma_error_report("Exec command without dsr, req or rsp buffers"); goto out; } if (dsr_info->req->hdr.cmd >= sizeof(cmd_handlers) / sizeof(struct cmd_handle...
int pvrdma_exec_cmd(PVRDMADev *dev) { dsr_info = &dev->dsr_info; if (dsr_info->req->hdr.cmd >= sizeof(cmd_handlers) / sizeof(struct cmd_handler)) { goto out; } out: set_reg_val(dev, PVRDMA_REG_ERR, err); }
int pvrdma_exec_cmd(PVRDMADev *dev) { dsr_info = &dev->dsr_info; if (!dsr_info->dsr) { rdma_error_report("Exec command without dsr, req or rsp buffers"); goto out; } if (dsr_info->req->hdr.cmd >= sizeof(cmd_handlers) / sizeof(struct cmd_handler)) { goto out; } out: set_re...
int pvrdma_exec_cmd(PVRDMADev *dev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ dsr_info = &dev->dsr_info; if (dsr_info->req->hdr.cmd >= sizeof(cmd_handlers) / sizeof(struct cmd_handler)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ goto out; } /* PLACEHOLDER: DO NOT DELETE THIS C...
int pvrdma_exec_cmd(PVRDMADev *dev) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ dsr_info = &dev->dsr_info; if (!dsr_info->dsr) { rdma_error_report("Exec command without dsr, req or rsp buffers"); goto out; } if (dsr_info->req->hdr.cmd >= sizeof(cmd_handlers) / sizeof(struct cmd_h...
int pvrdma_exec_cmd(PVRDMADev *dev) { dsr_info = &dev->dsr_info; + if (!dsr_info->dsr) { + rdma_error_report("Exec command without dsr, req or rsp buffers"); + goto out; + } if (dsr_info->req->hdr.cmd >= sizeof(cmd_handlers) / sizeof(struct cmd_handler)) { goto out; } out: ...
CVE-2022-1434
OpenSSL
https://github.com/openssl/openssl
providers/implementations/ciphers/cipher_rc4_hmac_md5.c
rc4_hmac_md5_set_ctx_params
static int rc4_hmac_md5_set_ctx_params(void *vctx, const OSSL_PARAM params[]) { PROV_RC4_HMAC_MD5_CTX *ctx = (PROV_RC4_HMAC_MD5_CTX *)vctx; const OSSL_PARAM *p; size_t sz; if (params == NULL) { return 1; } p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_KEYLEN); if (p != NULL) ...
static int rc4_hmac_md5_set_ctx_params(void *vctx, const OSSL_PARAM params[]) { PROV_RC4_HMAC_MD5_CTX *ctx = (PROV_RC4_HMAC_MD5_CTX *)vctx; const OSSL_PARAM *p; size_t sz; if (params == NULL) { return 1; } p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_KEYLEN); if (p != NULL) ...
static int rc4_hmac_md5_set_ctx_params(void *vctx, const OSSL_PARAM params[]) { PROV_RC4_HMAC_MD5_CTX *ctx = (PROV_RC4_HMAC_MD5_CTX *)vctx; const OSSL_PARAM *p; size_t sz; if (params == NULL) { return 1; } p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_KEYLEN); if (p != NULL) ...
static int rc4_hmac_md5_set_ctx_params(void *vctx, const OSSL_PARAM params[]) { PROV_RC4_HMAC_MD5_CTX *ctx = (PROV_RC4_HMAC_MD5_CTX *)vctx; const OSSL_PARAM *p; size_t sz; if (params == NULL) { return 1; } p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_KEYLEN); if (p != NULL) ...
static int rc4_hmac_md5_set_ctx_params(void *vctx, const OSSL_PARAM params[]) { if (params == NULL) { return 1; } p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_KEYLEN); p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_IVLEN); p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM...
static int rc4_hmac_md5_set_ctx_params(void *vctx, const OSSL_PARAM params[]) { if (params == NULL) { return 1; } p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_KEYLEN); p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_IVLEN); p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM...
static int rc4_hmac_md5_set_ctx_params(void *vctx, const OSSL_PARAM params[]) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (params == NULL) { return 1; } p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_KEYLEN); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ p = OSSL_PARAM_loca...
static int rc4_hmac_md5_set_ctx_params(void *vctx, const OSSL_PARAM params[]) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (params == NULL) { return 1; } p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_KEYLEN); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ p = OSSL_PARAM_loca...
static int rc4_hmac_md5_set_ctx_params(void *vctx, const OSSL_PARAM params[]) { if (params == NULL) { return 1; } p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_KEYLEN); p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_IVLEN); p = OSSL_PARAM_locate_const(params, OSSL_CIPHE...
CVE-2022-1473
OpenSSL
https://github.com/openssl/openssl
crypto/lhash/lhash.c
OPENSSL_LH_flush
void OPENSSL_LH_flush(OPENSSL_LHASH *lh) { unsigned int i; OPENSSL_LH_NODE *n, *nn; if (lh == NULL) { return; } for (i = 0; i < lh->num_nodes; i++) { n = lh->b[i]; while (n != NULL) { nn = n->next; OPENSSL_free(n); n = nn; } ...
void OPENSSL_LH_flush(OPENSSL_LHASH *lh) { unsigned int i; OPENSSL_LH_NODE *n, *nn; if (lh == NULL) { return; } for (i = 0; i < lh->num_nodes; i++) { n = lh->b[i]; while (n != NULL) { nn = n->next; OPENSSL_free(n); n = nn; } ...
void OPENSSL_LH_flush(OPENSSL_LHASH *lh) { unsigned int i; OPENSSL_LH_NODE *n, *nn; if (lh == NULL) { return; } for (i = 0; i < lh->num_nodes; i++) { n = lh->b[i]; while (n != NULL) { nn = n->next; OPENSSL_free(n); n = nn; } ...
void OPENSSL_LH_flush(OPENSSL_LHASH *lh) { unsigned int i; OPENSSL_LH_NODE *n, *nn; if (lh == NULL) { return; } for (i = 0; i < lh->num_nodes; i++) { n = lh->b[i]; while (n != NULL) { nn = n->next; OPENSSL_free(n); n = nn; } ...
void OPENSSL_LH_flush(OPENSSL_LHASH *lh) { for (i = 0; i < lh->num_nodes; i++) { } }
void OPENSSL_LH_flush(OPENSSL_LHASH *lh) { for (i = 0; i < lh->num_nodes; i++) { } lh->num_items = 0; }
void OPENSSL_LH_flush(OPENSSL_LHASH *lh) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 0; i < lh->num_nodes; i++) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } }
void OPENSSL_LH_flush(OPENSSL_LHASH *lh) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 0; i < lh->num_nodes; i++) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } lh->num_items = 0; }
void OPENSSL_LH_flush(OPENSSL_LHASH *lh) { for (i = 0; i < lh->num_nodes; i++) { } + lh->num_items = 0; }
CVE-2022-1475
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/g729_parser.c
g729_parse
static int g729_parse(AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { G729ParseContext *s = s1->priv_data; ParseContext *pc = &s->pc; int next; if (!s->block_size) { s->block_size = (avctx->bit_rate < 8000) ? G729D_...
static int g729_parse(AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { G729ParseContext *s = s1->priv_data; ParseContext *pc = &s->pc; int next; if (!s->block_size) { s->block_size = (avctx->bit_rate < 8000) ? G729D_...
static int g729_parse(AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { G729ParseContext *s = s1->priv_data; ParseContext *pc = &s->pc; int next; if (!s->block_size) { s->block_size = (avctx->bit_rate < 8000) ? G729D_...
static int g729_parse(AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { G729ParseContext *s = s1->priv_data; ParseContext *pc = &s->pc; int next; if (!s->block_size) { s->block_size = (avctx->bit_rate < 8000) ? G729D_...
static int g729_parse(AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { if (!s->block_size) { if (avctx->codec_id == AV_CODEC_ID_ACELP_KELV) { s->block_size++; } s->block_size *= avctx->channels; }...
static int g729_parse(AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { if (!s->block_size) { if (avctx->codec_id == AV_CODEC_ID_ACELP_KELV) { s->block_size++; } if (avctx->channels > 2) { ...
static int g729_parse(AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!s->block_size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (avctx->codec_id == AV_CODEC_ID_...
static int g729_parse(AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!s->block_size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (avctx->codec_id == AV_CODEC_ID_...
static int g729_parse(AVCodecParserContext *s1, AVCodecContext *avctx, const uint8_t **poutbuf, int *poutbuf_size, const uint8_t *buf, int buf_size) { if (!s->block_size) { if (avctx->codec_id == AV_CODEC_ID_ACELP_KELV) { s->block_size++; + } + if (avctx->channels > 2) { + ...
CVE-2022-2274
OpenSSL
https://github.com/openssl/openssl
crypto/bn/rsaz_exp_x2.c
ossl_rsaz_mod_exp_avx512_x2
int ossl_rsaz_mod_exp_avx512_x2(BN_ULONG *res1, const BN_ULONG *base1, const BN_ULONG *exp1, const BN_ULONG *m1, const BN_ULONG *rr1, BN_ULONG k0_1, BN_ULONG *res2, const BN_ULONG *base2, const BN_ULONG *exp2, const BN_ULONG *m2, const BN_ULONG *rr2, BN_ULONG k0_2, int factor_size) { ...
int ossl_rsaz_mod_exp_avx512_x2(BN_ULONG *res1, const BN_ULONG *base1, const BN_ULONG *exp1, const BN_ULONG *m1, const BN_ULONG *rr1, BN_ULONG k0_1, BN_ULONG *res2, const BN_ULONG *base2, const BN_ULONG *exp2, const BN_ULONG *m2, const BN_ULONG *rr2, BN_ULONG k0_2, int factor_size) { ...
int ossl_rsaz_mod_exp_avx512_x2(BN_ULONG *res1, const BN_ULONG *base1, const BN_ULONG *exp1, const BN_ULONG *m1, const BN_ULONG *rr1, BN_ULONG k0_1, BN_ULONG *res2, const BN_ULONG *base2, const BN_ULONG *exp2, const BN_ULONG *m2, const BN_ULONG *rr2, BN_ULONG k0_2, int factor_size) { ...
int ossl_rsaz_mod_exp_avx512_x2(BN_ULONG *res1, const BN_ULONG *base1, const BN_ULONG *exp1, const BN_ULONG *m1, const BN_ULONG *rr1, BN_ULONG k0_1, BN_ULONG *res2, const BN_ULONG *base2, const BN_ULONG *exp2, const BN_ULONG *m2, const BN_ULONG *rr2, BN_ULONG k0_2, int factor_size) { ...
int ossl_rsaz_mod_exp_avx512_x2(BN_ULONG *res1, const BN_ULONG *base1, const BN_ULONG *exp1, const BN_ULONG *m1, const BN_ULONG *rr1, BN_ULONG k0_1, BN_ULONG *res2, const BN_ULONG *base2, const BN_ULONG *exp2, const BN_ULONG *m2, const BN_ULONG *rr2, BN_ULONG k0_2, int factor_size) { ...
int ossl_rsaz_mod_exp_avx512_x2(BN_ULONG *res1, const BN_ULONG *base1, const BN_ULONG *exp1, const BN_ULONG *m1, const BN_ULONG *rr1, BN_ULONG k0_1, BN_ULONG *res2, const BN_ULONG *base2, const BN_ULONG *exp2, const BN_ULONG *m2, const BN_ULONG *rr2, BN_ULONG k0_2, int factor_size) { ...
int ossl_rsaz_mod_exp_avx512_x2(BN_ULONG *res1, const BN_ULONG *base1, const BN_ULONG *exp1, const BN_ULONG *m1, const BN_ULONG *rr1, BN_ULONG k0_1, BN_ULONG *res2, const BN_ULONG *base2, const BN_ULONG *exp2, const BN_ULONG *m2, const BN_ULONG *rr2, BN_ULONG k0_2, int factor_size) { ...
int ossl_rsaz_mod_exp_avx512_x2(BN_ULONG *res1, const BN_ULONG *base1, const BN_ULONG *exp1, const BN_ULONG *m1, const BN_ULONG *rr1, BN_ULONG k0_1, BN_ULONG *res2, const BN_ULONG *base2, const BN_ULONG *exp2, const BN_ULONG *m2, const BN_ULONG *rr2, BN_ULONG k0_2, int factor_size) { ...
int ossl_rsaz_mod_exp_avx512_x2(BN_ULONG *res1, const BN_ULONG *base1, const BN_ULONG *exp1, const BN_ULONG *m1, const BN_ULONG *rr1, BN_ULONG k0_1, BN_ULONG *res2, const BN_ULONG *base2, const BN_ULONG *exp2, const BN_ULONG *m2, const BN_ULONG *rr2, BN_ULONG k0_2, int factor_size) { ...
CVE-2022-23218
glibc
https://github.com/bminor/glibc
sunrpc/svc_unix.c
svcunix_create
SVCXPRT * svcunix_create (int sock, u_int sendsize, u_int recvsize, char *path) { bool_t madesock = FALSE; SVCXPRT *xprt; struct unix_rendezvous *r; struct sockaddr_un addr; socklen_t len = sizeof (struct sockaddr_in); if (sock == RPC_ANYSOCK) { if ((sock = __socket (AF_UNIX, SOCK_STREAM...
SVCXPRT * svcunix_create (int sock, u_int sendsize, u_int recvsize, char *path) { bool_t madesock = FALSE; SVCXPRT *xprt; struct unix_rendezvous *r; struct sockaddr_un addr; socklen_t len = sizeof (addr); if (__sockaddr_un_set (&addr, path) < 0) { return NULL; } if (sock == RPC_A...
SVCXPRT * svcunix_create (int sock, u_int sendsize, u_int recvsize, char *path) { bool_t madesock = FALSE; SVCXPRT *xprt; struct unix_rendezvous *r; struct sockaddr_un addr; socklen_t len = sizeof (struct sockaddr_in); if (sock == RPC_ANYSOCK) { if ((sock = __socket (AF_UNIX, SOCK_STREAM...
SVCXPRT * svcunix_create (int sock, u_int sendsize, u_int recvsize, char *path) { bool_t madesock = FALSE; SVCXPRT *xprt; struct unix_rendezvous *r; struct sockaddr_un addr; socklen_t len = sizeof (addr); if (__sockaddr_un_set (&addr, path) < 0) { return NULL; } if (sock == RPC_A...
SVCXPRT * svcunix_create (int sock, u_int sendsize, u_int recvsize, char *path) { bool_t madesock = FALSE; struct sockaddr_un addr; socklen_t len = sizeof (struct sockaddr_in); if (sock == RPC_ANYSOCK) { if ((sock = __socket (AF_UNIX, SOCK_STREAM, 0)) < 0) { return (SVCXPRT *) NULL; ...
SVCXPRT * svcunix_create (int sock, u_int sendsize, u_int recvsize, char *path) { bool_t madesock = FALSE; struct sockaddr_un addr; socklen_t len = sizeof (addr); if (__sockaddr_un_set (&addr, path) < 0) { return NULL; } if (sock == RPC_ANYSOCK) { if ((sock = __socket (AF_UNIX, S...
SVCXPRT * svcunix_create (int sock, u_int sendsize, u_int recvsize, char *path) { bool_t madesock = FALSE; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct sockaddr_un addr; socklen_t len = sizeof (struct sockaddr_in); if (sock == RPC_ANYSOCK) { if ((sock = __socket (AF_UNIX, SOCK_STREAM...
SVCXPRT * svcunix_create (int sock, u_int sendsize, u_int recvsize, char *path) { bool_t madesock = FALSE; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct sockaddr_un addr; socklen_t len = sizeof (addr); if (__sockaddr_un_set (&addr, path) < 0) { return NULL; } if (sock == RPC_A...
SVCXPRT * svcunix_create (int sock, u_int sendsize, u_int recvsize, char *path) { bool_t madesock = FALSE; struct sockaddr_un addr; - socklen_t len = sizeof (struct sockaddr_in); + socklen_t len = sizeof (addr); + if (__sockaddr_un_set (&addr, path) < 0) { + return NULL; + } if (sock ...
CVE-2022-23219
glibc
https://github.com/bminor/glibc
sunrpc/clnt_gen.c
clnt_create
CLIENT * clnt_create (const char *hostname, u_long prog, u_long vers, const char *proto) { struct protoent protobuf, *p; size_t prtbuflen; char *prttmpbuf; struct sockaddr_in sin; struct sockaddr_un sun; int sock; struct timeval tv; CLIENT *client; if (strcmp (proto, "unix") == 0) { ...
CLIENT * clnt_create (const char *hostname, u_long prog, u_long vers, const char *proto) { struct protoent protobuf, *p; size_t prtbuflen; char *prttmpbuf; struct sockaddr_in sin; struct sockaddr_un sun; int sock; struct timeval tv; CLIENT *client; if (strcmp (proto, "unix") == 0) { ...
CLIENT * clnt_create (const char *hostname, u_long prog, u_long vers, const char *proto) { struct protoent protobuf, *p; size_t prtbuflen; char *prttmpbuf; struct sockaddr_in sin; struct sockaddr_un sun; int sock; struct timeval tv; CLIENT *client; if (strcmp (proto, "unix") == 0) { ...
CLIENT * clnt_create (const char *hostname, u_long prog, u_long vers, const char *proto) { struct protoent protobuf, *p; size_t prtbuflen; char *prttmpbuf; struct sockaddr_in sin; struct sockaddr_un sun; int sock; struct timeval tv; CLIENT *client; if (strcmp (proto, "unix") == 0) { ...
CLIENT * clnt_create (const char *hostname, u_long prog, u_long vers, const char *proto) { if (strcmp (proto, "unix") == 0) { memset ((char *)&sun, 0, sizeof (sun)); sun.sun_family = AF_UNIX; strcpy (sun.sun_path, hostname); sock = RPC_ANYSOCK; client = clntunix_create (&sun,...
CLIENT * clnt_create (const char *hostname, u_long prog, u_long vers, const char *proto) { if (strcmp (proto, "unix") == 0) { if (__sockaddr_un_set (&sun, hostname) < 0) { struct rpc_createerr *ce = &get_rpc_createerr (); ce->cf_stat = RPC_SYSTEMERROR; ce->cf_error.re_err...
CLIENT * clnt_create (const char *hostname, u_long prog, u_long vers, const char *proto) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (strcmp (proto, "unix") == 0) { memset ((char *)&sun, 0, sizeof (sun)); sun.sun_family = AF_UNIX; strcpy (sun.sun_path, hostname); sock = RP...
CLIENT * clnt_create (const char *hostname, u_long prog, u_long vers, const char *proto) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (strcmp (proto, "unix") == 0) { if (__sockaddr_un_set (&sun, hostname) < 0) { struct rpc_createerr *ce = &get_rpc_createerr (); ce->cf_stat ...
CLIENT * clnt_create (const char *hostname, u_long prog, u_long vers, const char *proto) { if (strcmp (proto, "unix") == 0) { - memset ((char *)&sun, 0, sizeof (sun)); - sun.sun_family = AF_UNIX; - strcpy (sun.sun_path, hostname); + if (__sockaddr_un_set (&sun, hostname) < 0) { + ...
CVE-2022-2566
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavformat/mov.c
build_open_gop_key_points
static int build_open_gop_key_points(AVStream *st) { int k; int sample_id = 0; uint32_t cra_index; MOVStreamContext *sc = st->priv_data; if (st->codecpar->codec_id != AV_CODEC_ID_HEVC || !sc->sync_group_count) { return 0; } sc->sample_offsets_count = 0; for (uint32_t i = 0; i < s...
static int build_open_gop_key_points(AVStream *st) { int k; int sample_id = 0; uint32_t cra_index; MOVStreamContext *sc = st->priv_data; if (st->codecpar->codec_id != AV_CODEC_ID_HEVC || !sc->sync_group_count) { return 0; } sc->sample_offsets_count = 0; for (uint32_t i = 0; i < s...
static int build_open_gop_key_points(AVStream *st) { int k; int sample_id = 0; uint32_t cra_index; MOVStreamContext *sc = st->priv_data; if (st->codecpar->codec_id != AV_CODEC_ID_HEVC || !sc->sync_group_count) { return 0; } sc->sample_offsets_count = 0; for (uint32_t i = 0; i < s...
static int build_open_gop_key_points(AVStream *st) { int k; int sample_id = 0; uint32_t cra_index; MOVStreamContext *sc = st->priv_data; if (st->codecpar->codec_id != AV_CODEC_ID_HEVC || !sc->sync_group_count) { return 0; } sc->sample_offsets_count = 0; for (uint32_t i = 0; i < s...
static int build_open_gop_key_points(AVStream *st) { int sample_id = 0; MOVStreamContext *sc = st->priv_data; sc->sample_offsets_count = 0; for (uint32_t i = 0; i < sc->ctts_count; i++) sc->sample_offsets_count += sc->ctts_data[i].count; av_freep(&sc->sample_offsets); sc->sample_offsets ...
static int build_open_gop_key_points(AVStream *st) { int sample_id = 0; MOVStreamContext *sc = st->priv_data; sc->sample_offsets_count = 0; for (uint32_t i = 0; i < sc->ctts_count; i++) { if (sc->ctts_data[i].count > T_MAX - sc->sample_offsets_count) { return AVERROR(ENOMEM); ...
static int build_open_gop_key_points(AVStream *st) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int sample_id = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ MOVStreamContext *sc = st->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ sc->sample_offsets_count = 0; for (uint32_t ...
static int build_open_gop_key_points(AVStream *st) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int sample_id = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ MOVStreamContext *sc = st->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ sc->sample_offsets_count = 0; for (uint32_t ...
static int build_open_gop_key_points(AVStream *st) { int sample_id = 0; MOVStreamContext *sc = st->priv_data; sc->sample_offsets_count = 0; - for (uint32_t i = 0; i < sc->ctts_count; i++) + for (uint32_t i = 0; i < sc->ctts_count; i++) { + if (sc->ctts_data[i].count > T_MAX - sc->sample_off...
CVE-2022-27672
xen
https://github.com/xen-project/xen
xen/arch/x86/spec_ctrl.c
init_speculation_mitigations
void init_speculation_mitigations(void) { enum ind_thunk thunk = THUNK_DEFAULT; bool has_spec_ctrl, ibrs = false, hw_smt_enabled; bool cpu_has_bug_taa; uint64_t caps = 0; if ( cpu_has_arch_caps ) { rdmsrl(MSR_ARCH_CAPABILITIES, caps); } hw_smt_enabled = check_smt_enabled(); has_s...
void init_speculation_mitigations(void) { enum ind_thunk thunk = THUNK_DEFAULT; bool has_spec_ctrl, ibrs = false, hw_smt_enabled; bool cpu_has_bug_taa; uint64_t caps = 0; if ( cpu_has_arch_caps ) { rdmsrl(MSR_ARCH_CAPABILITIES, caps); } hw_smt_enabled = check_smt_enabled(); has_s...
void init_speculation_mitigations(void) { enum ind_thunk thunk = THUNK_DEFAULT; bool has_spec_ctrl, ibrs = false, hw_smt_enabled; bool cpu_has_bug_taa; uint64_t caps = 0; if ( cpu_has_arch_caps ) { rdmsrl(MSR_ARCH_CAPABILITIES, caps); } hw_smt_enabled = check_smt_enabled(); has_s...
void init_speculation_mitigations(void) { enum ind_thunk thunk = THUNK_DEFAULT; bool has_spec_ctrl, ibrs = false, hw_smt_enabled; bool cpu_has_bug_taa; uint64_t caps = 0; if ( cpu_has_arch_caps ) { rdmsrl(MSR_ARCH_CAPABILITIES, caps); } hw_smt_enabled = check_smt_enabled(); has_s...
void init_speculation_mitigations(void) { hw_smt_enabled = check_smt_enabled(); BUILD_BUG_ON(RO_MPT_VIRT_START != PML4_ADDR(256)); if ( opt_rsb_pv == -1 && boot_cpu_has(X86_FEATURE_XEN_SMEP) && !opt_pv32 && rsb_is_full_width() ) { opt_rsb_pv = 0; } xpti_init_default(caps); l1tf_calculati...
void init_speculation_mitigations(void) { hw_smt_enabled = check_smt_enabled(); BUILD_BUG_ON(RO_MPT_VIRT_START != PML4_ADDR(256)); if ( opt_rsb_pv == -1 ) { opt_rsb_pv = (opt_pv32 || !boot_cpu_has(X86_FEATURE_XEN_SMEP) || !rsb_is_full_width()); if ( !opt_rsb_pv && hw_smt_enabled && (boot_cpu...
void init_speculation_mitigations(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ hw_smt_enabled = check_smt_enabled(); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ BUILD_BUG_ON(RO_MPT_VIRT_START != PML4_ADDR(256)); if ( opt_rsb_pv == -1 && boot_cpu_has(X86_FEATURE_XEN_SMEP) && !opt_pv32 && r...
void init_speculation_mitigations(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ hw_smt_enabled = check_smt_enabled(); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ BUILD_BUG_ON(RO_MPT_VIRT_START != PML4_ADDR(256)); if ( opt_rsb_pv == -1 ) { opt_rsb_pv = (opt_pv32 || !boot_cpu_has(X86...
void init_speculation_mitigations(void) { hw_smt_enabled = check_smt_enabled(); BUILD_BUG_ON(RO_MPT_VIRT_START != PML4_ADDR(256)); - if ( opt_rsb_pv == -1 && boot_cpu_has(X86_FEATURE_XEN_SMEP) && !opt_pv32 && rsb_is_full_width() ) { - opt_rsb_pv = 0; + if ( opt_rsb_pv == -1 ) { + opt_rsb_...
CVE-2022-3109
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/vp3.c
vp3_decode_frame
static int vp3_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { AVFrame *frame = data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; Vp3DecodeContext *s = avctx->priv_data; GetBitContext gb; int i, ret; if ((ret = init_get_bits8(&gb, buf, buf...
static int vp3_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { AVFrame *frame = data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; Vp3DecodeContext *s = avctx->priv_data; GetBitContext gb; int i, ret; if ((ret = init_get_bits8(&gb, buf, buf...
static int vp3_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { AVFrame *frame = data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; Vp3DecodeContext *s = avctx->priv_data; GetBitContext gb; int i, ret; if ((ret = init_get_bits8(&gb, buf, buf...
static int vp3_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { AVFrame *frame = data; const uint8_t *buf = avpkt->data; int buf_size = avpkt->size; Vp3DecodeContext *s = avctx->priv_data; GetBitContext gb; int i, ret; if ((ret = init_get_bits8(&gb, buf, buf...
static int vp3_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { Vp3DecodeContext *s = avctx->priv_data; if (s->theora && get_bits1(&gb)) { if (s->avctx->active_thread_type&FF_THREAD_FRAME) { return AVERROR_PATCHWELCOME; } if (type == 0) { ...
static int vp3_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { Vp3DecodeContext *s = avctx->priv_data; if (s->theora && get_bits1(&gb)) { if (s->avctx->active_thread_type&FF_THREAD_FRAME) { return AVERROR_PATCHWELCOME; } if (type == 0) { ...
static int vp3_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ Vp3DecodeContext *s = avctx->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (s->theora && get_bits1(&gb)) { /* PLACEHOLDER: DO NOT DELETE THIS ...
static int vp3_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ Vp3DecodeContext *s = avctx->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (s->theora && get_bits1(&gb)) { /* PLACEHOLDER: DO NOT DELETE THIS ...
static int vp3_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { Vp3DecodeContext *s = avctx->priv_data; if (s->theora && get_bits1(&gb)) { if (s->avctx->active_thread_type&FF_THREAD_FRAME) { return AVERROR_PATCHWELCOME; } if (type == 0...
CVE-2022-3190
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-f5ethtrailer.c
dissect_old_trailer
static gint dissect_old_trailer(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { proto_tree *type_tree = NULL; proto_item *ti = NULL; guint offset = 0; guint processed = 0; f5eth_tap_data_t *tdata = (f5eth_tap_data_t *)data; guint8 type; guint8 len; guint8 ver; whil...
static gint dissect_old_trailer(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { guint offset = 0; while (tvb_reported_length_remaining(tvb, offset) >= F5_M_SANE) { guint8 len = tvb_get_guint8(tvb, offset + F5_OFF_LENGTH) + F5_OFF_VERSION; if (len > tvb_reported_length_remainin...
static gint dissect_old_trailer(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { proto_tree *type_tree = NULL; proto_item *ti = NULL; guint offset = 0; guint processed = 0; f5eth_tap_data_t *tdata = (f5eth_tap_data_t *)data; guint8 type; guint8 len; guint8 ver; whil...
static gint dissect_old_trailer(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { guint offset = 0; while (tvb_reported_length_remaining(tvb, offset) >= F5_M_SANE) { guint8 len = tvb_get_guint8(tvb, offset + F5_OFF_LENGTH) + F5_OFF_VERSION; if (len > tvb_reported_length_remainin...
static gint dissect_old_trailer(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { proto_tree *type_tree = NULL; proto_item *ti = NULL; guint offset = 0; guint processed = 0; f5eth_tap_data_t *tdata = (f5eth_tap_data_t *)data; guint8 type; guint8 len; guint8 ver; whil...
static gint dissect_old_trailer(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { guint offset = 0; while (tvb_reported_length_remaining(tvb, offset) >= F5_M_SANE) { guint8 len = tvb_get_guint8(tvb, offset + F5_OFF_LENGTH) + F5_OFF_VERSION; if (len > tvb_reported_length_remainin...
static gint dissect_old_trailer(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { proto_tree *type_tree = NULL; proto_item *ti = NULL; guint offset = 0; guint processed = 0; f5eth_tap_data_t *tdata = (f5eth_tap_data_t *)data; guint8 type; guint8 len; guint8 ver; whil...
static gint dissect_old_trailer(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { guint offset = 0; while (tvb_reported_length_remaining(tvb, offset) >= F5_M_SANE) { guint8 len = tvb_get_guint8(tvb, offset + F5_OFF_LENGTH) + F5_OFF_VERSION; if (len > tvb_reported_length_remainin...
static gint dissect_old_trailer(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { - proto_tree *type_tree = NULL; - proto_item *ti = NULL; guint offset = 0; - guint processed = 0; - f5eth_tap_data_t *tdata = (f5eth_tap_data_t *)data; - guint8 type; - guint8 len; - guint8 ver;...
CVE-2022-3341
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavformat/nutdec.c
decode_main_header
static int decode_main_header(NUTContext *nut) { AVFormatContext *s = nut->avf; AVIOContext *bc = s->pb; uint64_t tmp, end, length; unsigned int stream_count; int i, j, count, ret; int tmp_stream, tmp_mul, tmp_pts, tmp_size, tmp_res, tmp_head_idx; length = get_packetheader(nut, bc, 1, MA_STA...
static int decode_main_header(NUTContext *nut) { AVFormatContext *s = nut->avf; AVIOContext *bc = s->pb; uint64_t tmp, end, length; unsigned int stream_count; int i, j, count, ret; int tmp_stream, tmp_mul, tmp_pts, tmp_size, tmp_res, tmp_head_idx; length = get_packetheader(nut, bc, 1, MA_STA...
static int decode_main_header(NUTContext *nut) { AVFormatContext *s = nut->avf; AVIOContext *bc = s->pb; uint64_t tmp, end, length; unsigned int stream_count; int i, j, count, ret; int tmp_stream, tmp_mul, tmp_pts, tmp_size, tmp_res, tmp_head_idx; length = get_packetheader(nut, bc, 1, MA_STA...
static int decode_main_header(NUTContext *nut) { AVFormatContext *s = nut->avf; AVIOContext *bc = s->pb; uint64_t tmp, end, length; unsigned int stream_count; int i, j, count, ret; int tmp_stream, tmp_mul, tmp_pts, tmp_size, tmp_res, tmp_head_idx; length = get_packetheader(nut, bc, 1, MA_STA...
static int decode_main_header(NUTContext *nut) { AVFormatContext *s = nut->avf; AVIOContext *bc = s->pb; length = get_packetheader(nut, bc, 1, MA_STARTCODE); end = length + avio_tell(bc); nut->version = ffio_read_varlen(bc); if (nut->version > 3) { nut->minor_version = ffio_read_varlen(b...
static int decode_main_header(NUTContext *nut) { AVFormatContext *s = nut->avf; AVIOContext *bc = s->pb; length = get_packetheader(nut, bc, 1, MA_STARTCODE); end = length + avio_tell(bc); nut->version = ffio_read_varlen(bc); if (nut->version > 3) { nut->minor_version = ffio_read_varlen(b...
static int decode_main_header(NUTContext *nut) { AVFormatContext *s = nut->avf; AVIOContext *bc = s->pb; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ length = get_packetheader(nut, bc, 1, MA_STARTCODE); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ end = length + avio_tell(bc); nut->version...
static int decode_main_header(NUTContext *nut) { AVFormatContext *s = nut->avf; AVIOContext *bc = s->pb; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ length = get_packetheader(nut, bc, 1, MA_STARTCODE); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ end = length + avio_tell(bc); nut->version...
static int decode_main_header(NUTContext *nut) { AVFormatContext *s = nut->avf; AVIOContext *bc = s->pb; length = get_packetheader(nut, bc, 1, MA_STARTCODE); end = length + avio_tell(bc); nut->version = ffio_read_varlen(bc); if (nut->version > 3) { nut->minor_version = ffio_read_...
CVE-2022-3341
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavformat/nutdec.c
nut_read_header
static int nut_read_header(AVFormatContext *s) { NUTContext *nut = s->priv_data; AVIOContext *bc = s->pb; int64_t pos; int initialized_stream_count; nut->avf = s; pos = 0; do { pos = find_startcode(bc, MA_STARTCODE, pos) + 1; if (pos < 0 + 1) { av_log(s, AV_LOG_ER...
static int nut_read_header(AVFormatContext *s) { NUTContext *nut = s->priv_data; AVIOContext *bc = s->pb; int64_t pos; int initialized_stream_count, ret; nut->avf = s; pos = 0; ret = 0; do { if (ret == AVERROR(ENOMEM)) { return ret; } pos = find_startc...
static int nut_read_header(AVFormatContext *s) { NUTContext *nut = s->priv_data; AVIOContext *bc = s->pb; int64_t pos; int initialized_stream_count; nut->avf = s; pos = 0; do { pos = find_startcode(bc, MA_STARTCODE, pos) + 1; if (pos < 0 + 1) { av_log(s, AV_LOG_ER...
static int nut_read_header(AVFormatContext *s) { NUTContext *nut = s->priv_data; AVIOContext *bc = s->pb; int64_t pos; int initialized_stream_count, ret; nut->avf = s; pos = 0; ret = 0; do { if (ret == AVERROR(ENOMEM)) { return ret; } pos = find_startc...
static int nut_read_header(AVFormatContext *s) { NUTContext *nut = s->priv_data; int64_t pos; int initialized_stream_count; nut->avf = s; pos = 0; do { pos = find_startcode(bc, MA_STARTCODE, pos) + 1; if (pos < 0 + 1) { av_log(s, AV_LOG_ERROR, "No main startcode found...
static int nut_read_header(AVFormatContext *s) { NUTContext *nut = s->priv_data; int64_t pos; int initialized_stream_count, ret; nut->avf = s; pos = 0; ret = 0; do { if (ret == AVERROR(ENOMEM)) { return ret; } pos = find_startcode(bc, MA_STARTCODE, pos) + ...
static int nut_read_header(AVFormatContext *s) { NUTContext *nut = s->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int64_t pos; int initialized_stream_count; nut->avf = s; pos = 0; do { pos = find_startcode(bc, MA_STARTCODE, pos) + 1; if (pos < 0 + 1) { ...
static int nut_read_header(AVFormatContext *s) { NUTContext *nut = s->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int64_t pos; int initialized_stream_count, ret; nut->avf = s; pos = 0; ret = 0; do { if (ret == AVERROR(ENOMEM)) { return ret; } ...
static int nut_read_header(AVFormatContext *s) { NUTContext *nut = s->priv_data; int64_t pos; - int initialized_stream_count; + int initialized_stream_count, ret; nut->avf = s; pos = 0; + ret = 0; do { + if (ret == AVERROR(ENOMEM)) { + return ret; + } ...
CVE-2022-3358
OpenSSL
https://github.com/openssl/openssl
crypto/evp/digest.c
evp_md_init_internal
static int evp_md_init_internal(EVP_MD_CTX *ctx, const EVP_MD *type, const OSSL_PARAM params[], ENGE *impl) { ENGE *tmpimpl = NULL; if (ctx->pctx != NULL && EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx->pctx) && ctx->pctx->op.sig.algctx != NULL) { if (ctx->pctx->operation == EVP_PKEY_OP_SIGNCTX) { retur...
static int evp_md_init_internal(EVP_MD_CTX *ctx, const EVP_MD *type, const OSSL_PARAM params[], ENGE *impl) { ENGE *tmpimpl = NULL; if (ctx->pctx != NULL && EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx->pctx) && ctx->pctx->op.sig.algctx != NULL) { if (ctx->pctx->operation == EVP_PKEY_OP_SIGNCTX) { retur...
static int evp_md_init_internal(EVP_MD_CTX *ctx, const EVP_MD *type, const OSSL_PARAM params[], ENGE *impl) { ENGE *tmpimpl = NULL; if (ctx->pctx != NULL && EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx->pctx) && ctx->pctx->op.sig.algctx != NULL) { if (ctx->pctx->operation == EVP_PKEY_OP_SIGNCTX) { retur...
static int evp_md_init_internal(EVP_MD_CTX *ctx, const EVP_MD *type, const OSSL_PARAM params[], ENGE *impl) { ENGE *tmpimpl = NULL; if (ctx->pctx != NULL && EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx->pctx) && ctx->pctx->op.sig.algctx != NULL) { if (ctx->pctx->operation == EVP_PKEY_OP_SIGNCTX) { retur...
static int evp_md_init_internal(EVP_MD_CTX *ctx, const EVP_MD *type, const OSSL_PARAM params[], ENGE *impl) { ENGE *tmpimpl = NULL; if (ctx->pctx != NULL && EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx->pctx) && ctx->pctx->op.sig.algctx != NULL) { if (ctx->pctx->operation == EVP_PKEY_OP_SIGNCTX) { retur...
static int evp_md_init_internal(EVP_MD_CTX *ctx, const EVP_MD *type, const OSSL_PARAM params[], ENGE *impl) { ENGE *tmpimpl = NULL; if (ctx->pctx != NULL && EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx->pctx) && ctx->pctx->op.sig.algctx != NULL) { if (ctx->pctx->operation == EVP_PKEY_OP_SIGNCTX) { retur...
static int evp_md_init_internal(EVP_MD_CTX *ctx, const EVP_MD *type, const OSSL_PARAM params[], ENGE *impl) { ENGE *tmpimpl = NULL; if (ctx->pctx != NULL && EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx->pctx) && ctx->pctx->op.sig.algctx != NULL) { if (ctx->pctx->operation == EVP_PKEY_OP_SIGNCTX) { retur...
static int evp_md_init_internal(EVP_MD_CTX *ctx, const EVP_MD *type, const OSSL_PARAM params[], ENGE *impl) { ENGE *tmpimpl = NULL; if (ctx->pctx != NULL && EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx->pctx) && ctx->pctx->op.sig.algctx != NULL) { if (ctx->pctx->operation == EVP_PKEY_OP_SIGNCTX) { retur...
static int evp_md_init_internal(EVP_MD_CTX *ctx, const EVP_MD *type, const OSSL_PARAM params[], ENGE *impl) { ENGE *tmpimpl = NULL; if (ctx->pctx != NULL && EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx->pctx) && ctx->pctx->op.sig.algctx != NULL) { if (ctx->pctx->operation == EVP_PKEY_OP_SIGNCTX) { ...
CVE-2022-3358
OpenSSL
https://github.com/openssl/openssl
crypto/evp/evp_enc.c
evp_cipher_init_internal
static int evp_cipher_init_internal(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGE *impl, const unsigned char *key, const unsigned char *iv, int enc, const OSSL_PARAM params[]) { int n; ENGE *tmpimpl = NULL; if (enc == -1) { enc = ctx->encrypt; } else { if (enc) { enc = ...
static int evp_cipher_init_internal(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGE *impl, const unsigned char *key, const unsigned char *iv, int enc, const OSSL_PARAM params[]) { int n; ENGE *tmpimpl = NULL; if (enc == -1) { enc = ctx->encrypt; } else { if (enc) { enc = ...
static int evp_cipher_init_internal(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGE *impl, const unsigned char *key, const unsigned char *iv, int enc, const OSSL_PARAM params[]) { int n; ENGE *tmpimpl = NULL; ctx->iv_len = -1; if (enc == -1) { enc = ctx->encrypt; } else { if (enc...
static int evp_cipher_init_internal(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGE *impl, const unsigned char *key, const unsigned char *iv, int enc, const OSSL_PARAM params[]) { int n; ENGE *tmpimpl = NULL; ctx->iv_len = -1; if (enc == -1) { enc = ctx->encrypt; } else { if (enc...
static int evp_cipher_init_internal(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGE *impl, const unsigned char *key, const unsigned char *iv, int enc, const OSSL_PARAM params[]) { ENGE *tmpimpl = NULL; if (cipher == NULL && ctx->cipher == NULL) { return 0; } if (ctx->engine && ctx->cipher &&...
static int evp_cipher_init_internal(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGE *impl, const unsigned char *key, const unsigned char *iv, int enc, const OSSL_PARAM params[]) { ENGE *tmpimpl = NULL; if (cipher == NULL && ctx->cipher == NULL) { return 0; } if (ctx->engine && ctx->cipher &&...
static int evp_cipher_init_internal(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGE *impl, const unsigned char *key, const unsigned char *iv, int enc, const OSSL_PARAM params[]) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ENGE *tmpimpl = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ci...
static int evp_cipher_init_internal(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGE *impl, const unsigned char *key, const unsigned char *iv, int enc, const OSSL_PARAM params[]) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ENGE *tmpimpl = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ci...
static int evp_cipher_init_internal(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGE *impl, const unsigned char *key, const unsigned char *iv, int enc, const OSSL_PARAM params[]) { ENGE *tmpimpl = NULL; if (cipher == NULL && ctx->cipher == NULL) { return 0; } if (ctx->engine && ctx->cip...
CVE-2022-3602
OpenSSL
https://github.com/openssl/openssl
crypto/punycode.c
ossl_punycode_decode
int ossl_punycode_decode(const char *pEncoded, const size_t enc_len, unsigned int *pDecoded, unsigned int *pout_length) { unsigned int n = initial_n; unsigned int i = 0; unsigned int bias = initial_bias; size_t processed_in = 0, written_out = 0; unsigned int max_out = *pout_length; unsigned int ...
int ossl_punycode_decode(const char *pEncoded, const size_t enc_len, unsigned int *pDecoded, unsigned int *pout_length) { unsigned int n = initial_n; unsigned int i = 0; unsigned int bias = initial_bias; size_t processed_in = 0, written_out = 0; unsigned int max_out = *pout_length; unsigned int ...
int ossl_punycode_decode(const char *pEncoded, const size_t enc_len, unsigned int *pDecoded, unsigned int *pout_length) { unsigned int n = initial_n; unsigned int i = 0; unsigned int bias = initial_bias; size_t processed_in = 0, written_out = 0; unsigned int max_out = *pout_length; unsigned int ...
int ossl_punycode_decode(const char *pEncoded, const size_t enc_len, unsigned int *pDecoded, unsigned int *pout_length) { unsigned int n = initial_n; unsigned int i = 0; unsigned int bias = initial_bias; size_t processed_in = 0, written_out = 0; unsigned int max_out = *pout_length; unsigned int ...
int ossl_punycode_decode(const char *pEncoded, const size_t enc_len, unsigned int *pDecoded, unsigned int *pout_length) { size_t processed_in = 0, written_out = 0; unsigned int max_out = *pout_length; unsigned int basic_count = 0; for (loop = 0; loop < enc_len; loop++) { if (pEncoded[loop] == de...
int ossl_punycode_decode(const char *pEncoded, const size_t enc_len, unsigned int *pDecoded, unsigned int *pout_length) { size_t processed_in = 0, written_out = 0; unsigned int max_out = *pout_length; unsigned int basic_count = 0; for (loop = 0; loop < enc_len; loop++) { if (pEncoded[loop] == de...
int ossl_punycode_decode(const char *pEncoded, const size_t enc_len, unsigned int *pDecoded, unsigned int *pout_length) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ size_t processed_in = 0, written_out = 0; unsigned int max_out = *pout_length; unsigned int basic_count = 0; /* PLACEHOLDER: DO NOT ...
int ossl_punycode_decode(const char *pEncoded, const size_t enc_len, unsigned int *pDecoded, unsigned int *pout_length) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ size_t processed_in = 0, written_out = 0; unsigned int max_out = *pout_length; unsigned int basic_count = 0; /* PLACEHOLDER: DO NOT ...
int ossl_punycode_decode(const char *pEncoded, const size_t enc_len, unsigned int *pDecoded, unsigned int *pout_length) { size_t processed_in = 0, written_out = 0; unsigned int max_out = *pout_length; unsigned int basic_count = 0; for (loop = 0; loop < enc_len; loop++) { if (pEncoded[loop]...
CVE-2022-3724
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-usb-hid.c
get_usage_page_item_string
static gchar* get_usage_page_item_string(wmem_allocator_t *pool, guint32 usage_page, guint32 id) { const char *str = NULL; switch (usage_page) { case GENERIC_DESKTOP_CONTROLS_PAGE: str = try_val_to_str(id, usb_hid_generic_desktop_controls_usage_page_vals); break; case SIMULATION_CONTROLS...
static gchar* get_usage_page_item_string(wmem_allocator_t *pool, guint32 usage_page, guint32 id) { const char *str = NULL; const char *fmt_str = NULL; switch (usage_page) { case GENERIC_DESKTOP_CONTROLS_PAGE: str = try_val_to_str(id, usb_hid_generic_desktop_controls_usage_page_vals); bre...
static gchar* get_usage_page_item_string(guint32 usage_page, guint32 id) { const char *str = NULL; switch (usage_page) { case GENERIC_DESKTOP_CONTROLS_PAGE: str = try_val_to_str(id, usb_hid_generic_desktop_controls_usage_page_vals); break; case SIMULATION_CONTROLS_PAGE: str = try...
static gchar* get_usage_page_item_string(guint32 usage_page, guint32 id) { const char *str = NULL; const char *fmt_str = NULL; switch (usage_page) { case GENERIC_DESKTOP_CONTROLS_PAGE: str = try_val_to_str(id, usb_hid_generic_desktop_controls_usage_page_vals); break; case SIMULATION_...
static gchar* get_usage_page_item_string(wmem_allocator_t *pool, guint32 usage_page, guint32 id) { const char *str = NULL; switch (usage_page) { case GENERIC_DESKTOP_CONTROLS_PAGE: str = try_val_to_str(id, usb_hid_generic_desktop_controls_usage_page_vals); break; case SIMULATION_CONTROLS...
static gchar* get_usage_page_item_string(wmem_allocator_t *pool, guint32 usage_page, guint32 id) { const char *str = NULL; const char *fmt_str = NULL; switch (usage_page) { case GENERIC_DESKTOP_CONTROLS_PAGE: str = try_val_to_str(id, usb_hid_generic_desktop_controls_usage_page_vals); bre...
static gchar* get_usage_page_item_string(guint32 usage_page, guint32 id) { const char *str = NULL; switch (usage_page) { case GENERIC_DESKTOP_CONTROLS_PAGE: str = try_val_to_str(id, usb_hid_generic_desktop_controls_usage_page_vals); break; case SIMULATION_CONTROLS_PAGE: str = try...
static gchar* get_usage_page_item_string(guint32 usage_page, guint32 id) { const char *str = NULL; const char *fmt_str = NULL; switch (usage_page) { case GENERIC_DESKTOP_CONTROLS_PAGE: str = try_val_to_str(id, usb_hid_generic_desktop_controls_usage_page_vals); break; case SIMULATION_...
static gchar* get_usage_page_item_string(wmem_allocator_t *pool, guint32 usage_page, guint32 id) { const char *str = NULL; + const char *fmt_str = NULL; switch (usage_page) { case GENERIC_DESKTOP_CONTROLS_PAGE: str = try_val_to_str(id, usb_hid_generic_desktop_controls_usage_page_vals); ...
CVE-2022-3725
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-opus.c
opus_packet_get_samples_per_frame
static int16_t opus_packet_get_samples_per_frame(const unsigned char *data, int16_t Fs) { int audiosize; if (data[0] & 0x80) { audiosize = ((data[0] >> 3) & 0x3); audiosize = (Fs << audiosize) / 400; } else if ((data[0] & 0x60) == 0x60) { audiosize = (data[0] & 0x08) ? Fs / 50 : Fs /...
static int16_t opus_packet_get_samples_per_frame(const unsigned char *data, uint16_t Fs) { int audiosize; if (data[0] & 0x80) { audiosize = ((data[0] >> 3) & 0x3); audiosize = (Fs << audiosize) / 400; } else if ((data[0] & 0x60) == 0x60) { audiosize = (data[0] & 0x08) ? Fs / 50 : Fs ...
static int16_t opus_packet_get_samples_per_frame(const unsigned char *data, int16_t Fs) { int audiosize; if (data[0] & 0x80) { audiosize = ((data[0] >> 3) & 0x3); audiosize = (Fs << audiosize) / 400; } else if ((data[0] & 0x60) == 0x60) { audiosize = (data[0] & 0x08) ? Fs / 50 : Fs /...
static int16_t opus_packet_get_samples_per_frame(const unsigned char *data, uint16_t Fs) { int audiosize; if (data[0] & 0x80) { audiosize = ((data[0] >> 3) & 0x3); audiosize = (Fs << audiosize) / 400; } else if ((data[0] & 0x60) == 0x60) { audiosize = (data[0] & 0x08) ? Fs / 50 : Fs ...
static int16_t opus_packet_get_samples_per_frame(const unsigned char *data, int16_t Fs) { }
static int16_t opus_packet_get_samples_per_frame(const unsigned char *data, uint16_t Fs) { }
static int16_t opus_packet_get_samples_per_frame(const unsigned char *data, int16_t Fs) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int16_t opus_packet_get_samples_per_frame(const unsigned char *data, uint16_t Fs) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
-static int16_t opus_packet_get_samples_per_frame(const unsigned char *data, int16_t Fs) { +static int16_t opus_packet_get_samples_per_frame(const unsigned char *data, uint16_t Fs) { }
CVE-2022-3786
OpenSSL
https://github.com/openssl/openssl
crypto/punycode.c
ossl_a2ucompare
int ossl_a2ucompare(const char *a, const char *u) { char a_ulabel[LABEL_BUF_SIZE]; size_t a_size = sizeof(a_ulabel); if (ossl_a2ulabel(a, a_ulabel, &a_size) <= 0) { return -1; } return (strcmp(a_ulabel, u) == 0) ? 0 : 1; }
int ossl_a2ucompare(const char *a, const char *u) { char a_ulabel[LABEL_BUF_SIZE + 1]; size_t a_size = sizeof(a_ulabel); if (ossl_a2ulabel(a, a_ulabel, &a_size) <= 0) { return -1; } return strcmp(a_ulabel, u) != 0; }
int ossl_a2ucompare(const char *a, const char *u) { char a_ulabel[LABEL_BUF_SIZE]; size_t a_size = sizeof(a_ulabel); if (ossl_a2ulabel(a, a_ulabel, &a_size) <= 0) { return -1; } return (strcmp(a_ulabel, u) == 0) ? 0 : 1; }
int ossl_a2ucompare(const char *a, const char *u) { char a_ulabel[LABEL_BUF_SIZE + 1]; size_t a_size = sizeof(a_ulabel); if (ossl_a2ulabel(a, a_ulabel, &a_size) <= 0) { return -1; } return strcmp(a_ulabel, u) != 0; }
int ossl_a2ucompare(const char *a, const char *u) { char a_ulabel[LABEL_BUF_SIZE]; size_t a_size = sizeof(a_ulabel); if (ossl_a2ulabel(a, a_ulabel, &a_size) <= 0) { return -1; } return (strcmp(a_ulabel, u) == 0) ? 0 : 1; }
int ossl_a2ucompare(const char *a, const char *u) { char a_ulabel[LABEL_BUF_SIZE + 1]; size_t a_size = sizeof(a_ulabel); if (ossl_a2ulabel(a, a_ulabel, &a_size) <= 0) { return -1; } return strcmp(a_ulabel, u) != 0; }
int ossl_a2ucompare(const char *a, const char *u) { char a_ulabel[LABEL_BUF_SIZE]; size_t a_size = sizeof(a_ulabel); if (ossl_a2ulabel(a, a_ulabel, &a_size) <= 0) { return -1; } return (strcmp(a_ulabel, u) == 0) ? 0 : 1; }
int ossl_a2ucompare(const char *a, const char *u) { char a_ulabel[LABEL_BUF_SIZE + 1]; size_t a_size = sizeof(a_ulabel); if (ossl_a2ulabel(a, a_ulabel, &a_size) <= 0) { return -1; } return strcmp(a_ulabel, u) != 0; }
int ossl_a2ucompare(const char *a, const char *u) { - char a_ulabel[LABEL_BUF_SIZE]; + char a_ulabel[LABEL_BUF_SIZE + 1]; size_t a_size = sizeof(a_ulabel); if (ossl_a2ulabel(a, a_ulabel, &a_size) <= 0) { return -1; } - return (strcmp(a_ulabel, u) == 0) ? 0 : 1; + return strcmp(a_ula...
CVE-2022-3786
OpenSSL
https://github.com/openssl/openssl
crypto/punycode.c
ossl_a2ulabel
int ossl_a2ulabel(const char *in, char *out, size_t *outlen) { char *outptr = out; const char *inptr = in; size_t size = 0; int result = 1; unsigned int buf[LABEL_BUF_SIZE]; if (out == NULL) { result = 0; } while (1) { char *tmpptr = strchr(inptr, '.'); size_t del...
int ossl_a2ulabel(const char *in, char *out, size_t *outlen) { char *outptr = out; const char *inptr = in; size_t size = 0, maxsize; int result = 1; unsigned int i, j; unsigned int buf[LABEL_BUF_SIZE]; if (out == NULL) { result = 0; maxsize = 0; } else { maxsize =...
int ossl_a2ulabel(const char *in, char *out, size_t *outlen) { char *outptr = out; const char *inptr = in; size_t size = 0; int result = 1; unsigned int buf[LABEL_BUF_SIZE]; if (out == NULL) { result = 0; } while (1) { char *tmpptr = strchr(inptr, '.'); size_t del...
int ossl_a2ulabel(const char *in, char *out, size_t *outlen) { char *outptr = out; const char *inptr = in; size_t size = 0, maxsize; int result = 1; unsigned int i, j; unsigned int buf[LABEL_BUF_SIZE]; if (out == NULL) { result = 0; maxsize = 0; } else { maxsize =...
int ossl_a2ulabel(const char *in, char *out, size_t *outlen) { char *outptr = out; const char *inptr = in; size_t size = 0; int result = 1; unsigned int buf[LABEL_BUF_SIZE]; if (out == NULL) { result = 0; } while (1) { char *tmpptr = strchr(inptr, '.'); size_t del...
int ossl_a2ulabel(const char *in, char *out, size_t *outlen) { char *outptr = out; const char *inptr = in; size_t size = 0, maxsize; int result = 1; unsigned int i, j; unsigned int buf[LABEL_BUF_SIZE]; if (out == NULL) { result = 0; maxsize = 0; } else { maxsize =...
int ossl_a2ulabel(const char *in, char *out, size_t *outlen) { char *outptr = out; const char *inptr = in; size_t size = 0; int result = 1; unsigned int buf[LABEL_BUF_SIZE]; if (out == NULL) { result = 0; } while (1) { char *tmpptr = strchr(inptr, '.'); size_t del...
int ossl_a2ulabel(const char *in, char *out, size_t *outlen) { char *outptr = out; const char *inptr = in; size_t size = 0, maxsize; int result = 1; unsigned int i, j; unsigned int buf[LABEL_BUF_SIZE]; if (out == NULL) { result = 0; maxsize = 0; } else { maxsize =...
int ossl_a2ulabel(const char *in, char *out, size_t *outlen) { char *outptr = out; const char *inptr = in; - size_t size = 0; + size_t size = 0, maxsize; int result = 1; + unsigned int i, j; unsigned int buf[LABEL_BUF_SIZE]; if (out == NULL) { result = 0; + maxsize = 0...
CVE-2022-3786
OpenSSL
https://github.com/openssl/openssl
crypto/punycode.c
ossl_punycode_decode
int ossl_punycode_decode(const char *pEncoded, const size_t enc_len, unsigned int *pDecoded, unsigned int *pout_length) { unsigned int n = initial_n; unsigned int i = 0; unsigned int bias = initial_bias; size_t processed_in = 0, written_out = 0; unsigned int max_out = *pout_length; unsigned int ...
int ossl_punycode_decode(const char *pEncoded, const size_t enc_len, unsigned int *pDecoded, unsigned int *pout_length) { unsigned int n = initial_n; unsigned int i = 0; unsigned int bias = initial_bias; size_t processed_in = 0, written_out = 0; unsigned int max_out = *pout_length; unsigned int ...
int ossl_punycode_decode(const char *pEncoded, const size_t enc_len, unsigned int *pDecoded, unsigned int *pout_length) { unsigned int n = initial_n; unsigned int i = 0; unsigned int bias = initial_bias; size_t processed_in = 0, written_out = 0; unsigned int max_out = *pout_length; unsigned int ...
int ossl_punycode_decode(const char *pEncoded, const size_t enc_len, unsigned int *pDecoded, unsigned int *pout_length) { unsigned int n = initial_n; unsigned int i = 0; unsigned int bias = initial_bias; size_t processed_in = 0, written_out = 0; unsigned int max_out = *pout_length; unsigned int ...
int ossl_punycode_decode(const char *pEncoded, const size_t enc_len, unsigned int *pDecoded, unsigned int *pout_length) { unsigned int n = initial_n; unsigned int i = 0; unsigned int bias = initial_bias; size_t processed_in = 0, written_out = 0; unsigned int max_out = *pout_length; unsigned int ...
int ossl_punycode_decode(const char *pEncoded, const size_t enc_len, unsigned int *pDecoded, unsigned int *pout_length) { unsigned int n = initial_n; unsigned int i = 0; unsigned int bias = initial_bias; size_t processed_in = 0, written_out = 0; unsigned int max_out = *pout_length; unsigned int ...
int ossl_punycode_decode(const char *pEncoded, const size_t enc_len, unsigned int *pDecoded, unsigned int *pout_length) { unsigned int n = initial_n; unsigned int i = 0; unsigned int bias = initial_bias; size_t processed_in = 0, written_out = 0; unsigned int max_out = *pout_length; unsigned int ...
int ossl_punycode_decode(const char *pEncoded, const size_t enc_len, unsigned int *pDecoded, unsigned int *pout_length) { unsigned int n = initial_n; unsigned int i = 0; unsigned int bias = initial_bias; size_t processed_in = 0, written_out = 0; unsigned int max_out = *pout_length; unsigned int ...
int ossl_punycode_decode(const char *pEncoded, const size_t enc_len, unsigned int *pDecoded, unsigned int *pout_length) { unsigned int n = initial_n; unsigned int i = 0; unsigned int bias = initial_bias; size_t processed_in = 0, written_out = 0; unsigned int max_out = *pout_length; unsign...
CVE-2022-39046
glibc
https://github.com/bminor/glibc
misc/syslog.c
__vsyslog_internal
void __vsyslog_internal (int pri, const char *fmt, va_list ap, unsigned int mode_flags) { char bufs[1024]; char *buf = NULL; size_t bufsize = 0; int msgoff; int saved_errno = errno; if (pri & ~(LOG_PRIMASK | LOG_FACMASK)) { syslog (TERNALLOG, "syslog: unknown facility/priority: %x", pri)...
void __vsyslog_internal (int pri, const char *fmt, va_list ap, unsigned int mode_flags) { char bufs[1024]; char *buf = NULL; size_t bufsize = 0; int msgoff; int saved_errno = errno; if (pri & ~(LOG_PRIMASK | LOG_FACMASK)) { syslog (TERNALLOG, "syslog: unknown facility/priority: %x", pri)...
void __vsyslog_internal (int pri, const char *fmt, va_list ap, unsigned int mode_flags) { char bufs[1024]; char *buf = NULL; size_t bufsize = 0; int msgoff; int saved_errno = errno; if (pri & ~(LOG_PRIMASK | LOG_FACMASK)) { syslog (TERNALLOG, "syslog: unknown facility/priority: %x", pri)...
void __vsyslog_internal (int pri, const char *fmt, va_list ap, unsigned int mode_flags) { char bufs[1024]; char *buf = NULL; size_t bufsize = 0; int msgoff; int saved_errno = errno; if (pri & ~(LOG_PRIMASK | LOG_FACMASK)) { syslog (TERNALLOG, "syslog: unknown facility/priority: %x", pri)...
void __vsyslog_internal (int pri, const char *fmt, va_list ap, unsigned int mode_flags) { char *buf = NULL; size_t bufsize = 0; if (pri & ~(LOG_PRIMASK | LOG_FACMASK)) { syslog (TERNALLOG, "syslog: unknown facility/priority: %x", pri); pri &= LOG_PRIMASK | LOG_FACMASK; } struct clean...
void __vsyslog_internal (int pri, const char *fmt, va_list ap, unsigned int mode_flags) { char *buf = NULL; size_t bufsize = 0; if (pri & ~(LOG_PRIMASK | LOG_FACMASK)) { syslog (TERNALLOG, "syslog: unknown facility/priority: %x", pri); pri &= LOG_PRIMASK | LOG_FACMASK; } struct clean...
void __vsyslog_internal (int pri, const char *fmt, va_list ap, unsigned int mode_flags) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ char *buf = NULL; size_t bufsize = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (pri & ~(LOG_PRIMASK | LOG_FACMASK)) { syslog (TERNALLOG, "syslog: un...
void __vsyslog_internal (int pri, const char *fmt, va_list ap, unsigned int mode_flags) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ char *buf = NULL; size_t bufsize = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (pri & ~(LOG_PRIMASK | LOG_FACMASK)) { syslog (TERNALLOG, "syslog: un...
void __vsyslog_internal (int pri, const char *fmt, va_list ap, unsigned int mode_flags) { char *buf = NULL; size_t bufsize = 0; if (pri & ~(LOG_PRIMASK | LOG_FACMASK)) { syslog (TERNALLOG, "syslog: unknown facility/priority: %x", pri); pri &= LOG_PRIMASK | LOG_FACMASK; } stru...
CVE-2022-39046
glibc
https://github.com/bminor/glibc
misc/tst-syslog.c
check_openlog_message
static bool check_openlog_message (const struct msg_t *msg, int msgnum, int options, pid_t pid) { if (msgnum == 3 * array_length (priorities) - 1) { return false; } int expected_priority = priorities[msgnum % array_length (priorities)]; TEST_COMPARE (msg->priority, expected_priority); char e...
static bool check_openlog_message (const struct msg_t *msg, int msgnum, int options, pid_t pid) { if (msgnum == 3 * array_length (priorities) - 1) { return false; } int expected_priority = priorities[msgnum % array_length (priorities)]; TEST_COMPARE (msg->priority, expected_priority); char e...
static bool check_openlog_message (const struct msg_t *msg, int msgnum, int options, pid_t pid) { if (msgnum == 3 * array_length (priorities) - 1) { return false; } int expected_priority = priorities[msgnum % array_length (priorities)]; TEST_COMPARE (msg->priority, expected_priority); char e...
static bool check_openlog_message (const struct msg_t *msg, int msgnum, int options, pid_t pid) { if (msgnum == 3 * array_length (priorities) - 1) { return false; } int expected_priority = priorities[msgnum % array_length (priorities)]; TEST_COMPARE (msg->priority, expected_priority); char e...
static bool check_openlog_message (const struct msg_t *msg, int msgnum, int options, pid_t pid) { TEST_COMPARE (msg->priority, expected_priority); char expected_ident[ident_length]; snprintf (expected_ident, sizeof (expected_ident), "%s%s%.0d%s:", OPENLOG_IDENT, options & LOG_PID ? "[" : "", options & LOG_P...
static bool check_openlog_message (const struct msg_t *msg, int msgnum, int options, pid_t pid) { TEST_COMPARE (msg->priority, expected_priority); char expected_ident[IDENT_LENGTH]; snprintf (expected_ident, sizeof (expected_ident), "%s%s%.0d%s:", OPENLOG_IDENT, options & LOG_PID ? "[" : "", options & LOG_P...
static bool check_openlog_message (const struct msg_t *msg, int msgnum, int options, pid_t pid) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ TEST_COMPARE (msg->priority, expected_priority); char expected_ident[ident_length]; snprintf (expected_ident, sizeof (expected_ident), "%s%s%.0d%s:", OPENLOG_ID...
static bool check_openlog_message (const struct msg_t *msg, int msgnum, int options, pid_t pid) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ TEST_COMPARE (msg->priority, expected_priority); char expected_ident[IDENT_LENGTH]; snprintf (expected_ident, sizeof (expected_ident), "%s%s%.0d%s:", OPENLOG_ID...
static bool check_openlog_message (const struct msg_t *msg, int msgnum, int options, pid_t pid) { TEST_COMPARE (msg->priority, expected_priority); - char expected_ident[ident_length]; + char expected_ident[IDENT_LENGTH]; snprintf (expected_ident, sizeof (expected_ident), "%s%s%.0d%s:", OPENLOG_IDENT, o...
CVE-2022-39046
glibc
https://github.com/bminor/glibc
misc/tst-syslog.c
check_syslog_console
static void check_syslog_console (void) { xmkfifo (_PATH_CONSOLE, 0666); pid_t sender_pid = xfork (); if (sender_pid == 0) { send_openlog (LOG_CONS); _exit (0); } { FILE *fp = xfopen (_PATH_CONSOLE, "r+"); check_syslog_console_read (fp); xfclose (fp); } ...
static void check_syslog_console (void (*syslog_send)(int), void (*syslog_check)(FILE *fp)) { xmkfifo (_PATH_CONSOLE, 0666); pid_t sender_pid = xfork (); if (sender_pid == 0) { syslog_send (LOG_CONS); _exit (0); } { FILE *fp = xfopen (_PATH_CONSOLE, "r+"); syslog_chec...
static void check_syslog_console (void) { xmkfifo (_PATH_CONSOLE, 0666); pid_t sender_pid = xfork (); if (sender_pid == 0) { send_openlog (LOG_CONS); _exit (0); } { FILE *fp = xfopen (_PATH_CONSOLE, "r+"); check_syslog_console_read (fp); xfclose (fp); } ...
static void check_syslog_console (void (*syslog_send)(int), void (*syslog_check)(FILE *fp)) { xmkfifo (_PATH_CONSOLE, 0666); pid_t sender_pid = xfork (); if (sender_pid == 0) { syslog_send (LOG_CONS); _exit (0); } { FILE *fp = xfopen (_PATH_CONSOLE, "r+"); syslog_chec...
static void check_syslog_console (void) { xmkfifo (_PATH_CONSOLE, 0666); if (sender_pid == 0) { send_openlog (LOG_CONS); _exit (0); } { FILE *fp = xfopen (_PATH_CONSOLE, "r+"); check_syslog_console_read (fp); xfclose (fp); } }
static void check_syslog_console (void (*syslog_send)(int), void (*syslog_check)(FILE *fp)) { xmkfifo (_PATH_CONSOLE, 0666); if (sender_pid == 0) { syslog_send (LOG_CONS); _exit (0); } { FILE *fp = xfopen (_PATH_CONSOLE, "r+"); syslog_check (fp); xfclose (fp); ...
static void check_syslog_console (void) { xmkfifo (_PATH_CONSOLE, 0666); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (sender_pid == 0) { send_openlog (LOG_CONS); _exit (0); } { FILE *fp = xfopen (_PATH_CONSOLE, "r+"); check_syslog_console_read (fp); xfclo...
static void check_syslog_console (void (*syslog_send)(int), void (*syslog_check)(FILE *fp)) { xmkfifo (_PATH_CONSOLE, 0666); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (sender_pid == 0) { syslog_send (LOG_CONS); _exit (0); } { FILE *fp = xfopen (_PATH_CONSOLE, "r+"); ...
-static void check_syslog_console (void) { +static void check_syslog_console (void (*syslog_send)(int), void (*syslog_check)(FILE *fp)) { xmkfifo (_PATH_CONSOLE, 0666); if (sender_pid == 0) { - send_openlog (LOG_CONS); + syslog_send (LOG_CONS); _exit (0); } { FILE *fp...
CVE-2022-39046
glibc
https://github.com/bminor/glibc
misc/tst-syslog.c
check_syslog_perror
static void check_syslog_perror (void) { struct support_capture_subprocess result; result = support_capture_subprocess (send_openlog_callback, &(int) { LOG_PERROR }); FILE *mfp = fmemopen (result.err.buffer, result.err.length, "r"); if (mfp == NULL) { FAIL_EXIT1 ("fmemopen: %m"); ...
static void check_syslog_perror (bool large) { struct support_capture_subprocess result; result = support_capture_subprocess (large ? send_openlog_callback_large : send_openlog_callback, &(int) { LOG_PERROR }); FILE *mfp = fmemopen (result.err.buffer, result.err.length, "r"); if (mfp == NULL...
static void check_syslog_perror (void) { struct support_capture_subprocess result; result = support_capture_subprocess (send_openlog_callback, &(int) { LOG_PERROR }); FILE *mfp = fmemopen (result.err.buffer, result.err.length, "r"); if (mfp == NULL) { FAIL_EXIT1 ("fmemopen: %m"); ...
static void check_syslog_perror (bool large) { struct support_capture_subprocess result; result = support_capture_subprocess (large ? send_openlog_callback_large : send_openlog_callback, &(int) { LOG_PERROR }); FILE *mfp = fmemopen (result.err.buffer, result.err.length, "r"); if (mfp == NULL...
static void check_syslog_perror (void) { struct support_capture_subprocess result; result = support_capture_subprocess (send_openlog_callback, &(int) { LOG_PERROR }); FILE *mfp = fmemopen (result.err.buffer, result.err.length, "r"); if (mfp == NULL) { FAIL_EXIT1 ("fmemopen: %m"); ...
static void check_syslog_perror (bool large) { struct support_capture_subprocess result; result = support_capture_subprocess (large ? send_openlog_callback_large : send_openlog_callback, &(int) { LOG_PERROR }); FILE *mfp = fmemopen (result.err.buffer, result.err.length, "r"); if (mfp == NULL...
static void check_syslog_perror (void) { struct support_capture_subprocess result; result = support_capture_subprocess (send_openlog_callback, &(int) { LOG_PERROR }); FILE *mfp = fmemopen (result.err.buffer, result.err.length, "r"); if (mfp == NULL) { FAIL_EXIT1 ("fmemopen: %m"); ...
static void check_syslog_perror (bool large) { struct support_capture_subprocess result; result = support_capture_subprocess (large ? send_openlog_callback_large : send_openlog_callback, &(int) { LOG_PERROR }); FILE *mfp = fmemopen (result.err.buffer, result.err.length, "r"); if (mfp == NULL...
-static void check_syslog_perror (void) { +static void check_syslog_perror (bool large) { struct support_capture_subprocess result; - result = support_capture_subprocess (send_openlog_callback, &(int) { + result = support_capture_subprocess (large ? send_openlog_callback_large : send_openlog_callback, &(int)...
CVE-2022-39046
glibc
https://github.com/bminor/glibc
misc/tst-syslog.c
check_syslog_tcp
static void check_syslog_tcp (void (*syslog_send)(int), int options, bool (*syslog_check)(const struct msg_t *, int, int, pid_t)) { struct sockaddr_un addr = { .sun_family = AF_UNIX, .sun_path = _PATH_LOG }; socklen_t addrlen = sizeof (addr); int server_tcp = xsocket (AF_UNIX, SOCK_STREAM | SOCK...
static void check_syslog_tcp (void (*syslog_send)(int), int options, bool (*syslog_check)(const struct msg_t *, int, int, pid_t)) { struct sockaddr_un addr = { .sun_family = AF_UNIX, .sun_path = _PATH_LOG }; socklen_t addrlen = sizeof (addr); int server_tcp = xsocket (AF_UNIX, SOCK_STREAM | SOCK...
static void check_syslog_tcp (void (*syslog_send)(int), int options, bool (*syslog_check)(const struct msg_t *, int, int, pid_t)) { struct sockaddr_un addr = { .sun_family = AF_UNIX, .sun_path = _PATH_LOG }; socklen_t addrlen = sizeof (addr); int server_tcp = xsocket (AF_UNIX, SOCK_STREAM | SOCK...
static void check_syslog_tcp (void (*syslog_send)(int), int options, bool (*syslog_check)(const struct msg_t *, int, int, pid_t)) { struct sockaddr_un addr = { .sun_family = AF_UNIX, .sun_path = _PATH_LOG }; socklen_t addrlen = sizeof (addr); int server_tcp = xsocket (AF_UNIX, SOCK_STREAM | SOCK...
static void check_syslog_tcp (void (*syslog_send)(int), int options, bool (*syslog_check)(const struct msg_t *, int, int, pid_t)) { int client_tcp = xaccept (server_tcp, NULL, NULL); char buf[512], *rb = buf; size_t rbl = sizeof (buf); while (1) { size_t rl = xrecvfrom (client_tcp, rb, rbl - prl...
static void check_syslog_tcp (void (*syslog_send)(int), int options, bool (*syslog_check)(const struct msg_t *, int, int, pid_t)) { int client_tcp = xaccept (server_tcp, NULL, NULL); char buf[2048], *rb = buf; size_t rbl = sizeof (buf); while (1) { size_t rl = xrecvfrom (client_tcp, rb, rbl - pr...
static void check_syslog_tcp (void (*syslog_send)(int), int options, bool (*syslog_check)(const struct msg_t *, int, int, pid_t)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int client_tcp = xaccept (server_tcp, NULL, NULL); char buf[512], *rb = buf; size_t rbl = sizeof (buf); /* PLACEHOLDER: DO...
static void check_syslog_tcp (void (*syslog_send)(int), int options, bool (*syslog_check)(const struct msg_t *, int, int, pid_t)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int client_tcp = xaccept (server_tcp, NULL, NULL); char buf[2048], *rb = buf; size_t rbl = sizeof (buf); /* PLACEHOLDER: D...
static void check_syslog_tcp (void (*syslog_send)(int), int options, bool (*syslog_check)(const struct msg_t *, int, int, pid_t)) { int client_tcp = xaccept (server_tcp, NULL, NULL); - char buf[512], *rb = buf; + char buf[2048], *rb = buf; size_t rbl = sizeof (buf); while (1) { size_t rl ...
CVE-2022-39046
glibc
https://github.com/bminor/glibc
misc/tst-syslog.c
check_syslog_udp
static void check_syslog_udp (void (*syslog_send)(int), int options, bool (*syslog_check)(const struct msg_t *, int, int, pid_t)) { struct sockaddr_un addr = { .sun_family = AF_UNIX, .sun_path = _PATH_LOG }; socklen_t addrlen = sizeof (addr); int server_udp = xsocket (AF_UNIX, SOCK_DGRAM | SOCK_...
static void check_syslog_udp (void (*syslog_send)(int), int options, bool (*syslog_check)(const struct msg_t *, int, int, pid_t)) { struct sockaddr_un addr = { .sun_family = AF_UNIX, .sun_path = _PATH_LOG }; socklen_t addrlen = sizeof (addr); int server_udp = xsocket (AF_UNIX, SOCK_DGRAM | SOCK_...
static void check_syslog_udp (void (*syslog_send)(int), int options, bool (*syslog_check)(const struct msg_t *, int, int, pid_t)) { struct sockaddr_un addr = { .sun_family = AF_UNIX, .sun_path = _PATH_LOG }; socklen_t addrlen = sizeof (addr); int server_udp = xsocket (AF_UNIX, SOCK_DGRAM | SOCK_...
static void check_syslog_udp (void (*syslog_send)(int), int options, bool (*syslog_check)(const struct msg_t *, int, int, pid_t)) { struct sockaddr_un addr = { .sun_family = AF_UNIX, .sun_path = _PATH_LOG }; socklen_t addrlen = sizeof (addr); int server_udp = xsocket (AF_UNIX, SOCK_DGRAM | SOCK_...
static void check_syslog_udp (void (*syslog_send)(int), int options, bool (*syslog_check)(const struct msg_t *, int, int, pid_t)) { while (1) { char buf[512]; size_t l = xrecvfrom (server_udp, buf, sizeof (buf), 0, (struct sockaddr *) &addr, &addrlen); buf[l] = '\0'; struct msg_t msg...
static void check_syslog_udp (void (*syslog_send)(int), int options, bool (*syslog_check)(const struct msg_t *, int, int, pid_t)) { while (1) { char buf[2048]; size_t l = xrecvfrom (server_udp, buf, sizeof (buf), 0, (struct sockaddr *) &addr, &addrlen); buf[l] = '\0'; struct msg_t ms...
static void check_syslog_udp (void (*syslog_send)(int), int options, bool (*syslog_check)(const struct msg_t *, int, int, pid_t)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while (1) { char buf[512]; size_t l = xrecvfrom (server_udp, buf, sizeof (buf), 0, (struct sockaddr *) &addr, &addrlen...
static void check_syslog_udp (void (*syslog_send)(int), int options, bool (*syslog_check)(const struct msg_t *, int, int, pid_t)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while (1) { char buf[2048]; size_t l = xrecvfrom (server_udp, buf, sizeof (buf), 0, (struct sockaddr *) &addr, &addrle...
static void check_syslog_udp (void (*syslog_send)(int), int options, bool (*syslog_check)(const struct msg_t *, int, int, pid_t)) { while (1) { - char buf[512]; + char buf[2048]; size_t l = xrecvfrom (server_udp, buf, sizeof (buf), 0, (struct sockaddr *) &addr, &addrlen); buf[l] = ...
CVE-2022-39046
glibc
https://github.com/bminor/glibc
misc/tst-syslog.c
do_test
static int do_test (void) { check_syslog_udp (send_syslog, 0, check_syslog_message); check_syslog_tcp (send_syslog, 0, check_syslog_message); check_syslog_udp (send_vsyslog, 0, check_syslog_message); check_syslog_tcp (send_vsyslog, 0, check_syslog_message); check_syslog_udp (send_openlog, 0, check_o...
static int do_test (void) { check_syslog_udp (send_syslog, 0, check_syslog_message); check_syslog_tcp (send_syslog, 0, check_syslog_message); check_syslog_udp (send_vsyslog, 0, check_syslog_message); check_syslog_tcp (send_vsyslog, 0, check_syslog_message); check_syslog_udp (send_openlog, 0, check_o...
static int do_test (void) { check_syslog_udp (send_syslog, 0, check_syslog_message); check_syslog_tcp (send_syslog, 0, check_syslog_message); check_syslog_udp (send_vsyslog, 0, check_syslog_message); check_syslog_tcp (send_vsyslog, 0, check_syslog_message); check_syslog_udp (send_openlog, 0, check_o...
static int do_test (void) { check_syslog_udp (send_syslog, 0, check_syslog_message); check_syslog_tcp (send_syslog, 0, check_syslog_message); check_syslog_udp (send_vsyslog, 0, check_syslog_message); check_syslog_tcp (send_vsyslog, 0, check_syslog_message); check_syslog_udp (send_openlog, 0, check_o...
static int do_test (void) { check_syslog_udp (send_openlog, 0, check_openlog_message); check_syslog_tcp (send_openlog, 0, check_openlog_message); check_syslog_udp (send_openlog, LOG_PID, check_openlog_message); check_syslog_tcp (send_openlog, LOG_PID, check_openlog_message); check_syslog_console ();...
static int do_test (void) { check_syslog_udp (send_openlog, 0, check_openlog_message); check_syslog_tcp (send_openlog, 0, check_openlog_message); check_syslog_udp (send_openlog, LOG_PID, check_openlog_message); check_syslog_tcp (send_openlog, LOG_PID, check_openlog_message); check_syslog_console (se...
static int do_test (void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ check_syslog_udp (send_openlog, 0, check_openlog_message); check_syslog_tcp (send_openlog, 0, check_openlog_message); check_syslog_udp (send_openlog, LOG_PID, check_openlog_message); check_syslog_tcp (send_openlog, LOG_PID, ch...
static int do_test (void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ check_syslog_udp (send_openlog, 0, check_openlog_message); check_syslog_tcp (send_openlog, 0, check_openlog_message); check_syslog_udp (send_openlog, LOG_PID, check_openlog_message); check_syslog_tcp (send_openlog, LOG_PID, ch...
static int do_test (void) { check_syslog_udp (send_openlog, 0, check_openlog_message); check_syslog_tcp (send_openlog, 0, check_openlog_message); check_syslog_udp (send_openlog, LOG_PID, check_openlog_message); check_syslog_tcp (send_openlog, LOG_PID, check_openlog_message); - check_syslog_conso...
CVE-2022-39046
glibc
https://github.com/bminor/glibc
misc/tst-syslog.c
parse_syslog_console
static struct msg_t parse_syslog_console (const char *msg) { int priority; int facility; struct msg_t r; int n = sscanf (msg, "%32s %64s %d %d", r.ident, r.msg, &facility, &priority); TEST_COMPARE (n, 4); r.facility = facility; r.priority = priority; return r; }
static struct msg_t parse_syslog_console (const char *msg) { int priority; int facility; struct msg_t r; int n = sscanf (msg, STRPUT(IDENT_LENGTH) " " STRPUT(MSG_LENGTH) " %d %d", r.ident, r.msg, &facility, &priority); TEST_COMPARE (n, 4); r.facility = facility; r.priority = priority; re...
static struct msg_t parse_syslog_console (const char *msg) { int priority; int facility; struct msg_t r; int n = sscanf (msg, "%32s %64s %d %d", r.ident, r.msg, &facility, &priority); TEST_COMPARE (n, 4); r.facility = facility; r.priority = priority; return r; }
static struct msg_t parse_syslog_console (const char *msg) { int priority; int facility; struct msg_t r; int n = sscanf (msg, STRPUT(IDENT_LENGTH) " " STRPUT(MSG_LENGTH) " %d %d", r.ident, r.msg, &facility, &priority); TEST_COMPARE (n, 4); r.facility = facility; r.priority = priority; re...
static struct msg_t parse_syslog_console (const char *msg) { struct msg_t r; int n = sscanf (msg, "%32s %64s %d %d", r.ident, r.msg, &facility, &priority); TEST_COMPARE (n, 4); r.facility = facility; r.priority = priority; return r; }
static struct msg_t parse_syslog_console (const char *msg) { struct msg_t r; int n = sscanf (msg, STRPUT(IDENT_LENGTH) " " STRPUT(MSG_LENGTH) " %d %d", r.ident, r.msg, &facility, &priority); TEST_COMPARE (n, 4); r.facility = facility; r.priority = priority; return r; }
static struct msg_t parse_syslog_console (const char *msg) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct msg_t r; int n = sscanf (msg, "%32s %64s %d %d", r.ident, r.msg, &facility, &priority); TEST_COMPARE (n, 4); r.facility = facility; r.priority = priority; return r; }
static struct msg_t parse_syslog_console (const char *msg) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ struct msg_t r; int n = sscanf (msg, STRPUT(IDENT_LENGTH) " " STRPUT(MSG_LENGTH) " %d %d", r.ident, r.msg, &facility, &priority); TEST_COMPARE (n, 4); r.facility = facility; r.priority = pr...
static struct msg_t parse_syslog_console (const char *msg) { struct msg_t r; - int n = sscanf (msg, "%32s %64s %d %d", r.ident, r.msg, &facility, &priority); + int n = sscanf (msg, STRPUT(IDENT_LENGTH) " " STRPUT(MSG_LENGTH) " %d %d", r.ident, r.msg, &facility, &priority); TEST_COMPARE (n, 4); r.f...
CVE-2022-39046
glibc
https://github.com/bminor/glibc
misc/tst-syslog.c
parse_syslog_msg
static struct msg_t parse_syslog_msg (const char *msg) { struct msg_t r = { .pid = -1 }; int number; int n = sscanf (msg, "<%3d>%*s %*d %*d:%*d:%*d %32s %64s %*d %*d", &number, r.ident, r.msg); TEST_COMPARE (n, 3); r.facility = number & LOG_FACMASK; r.priority = number & LOG_PRIMASK; char *p...
static struct msg_t parse_syslog_msg (const char *msg) { struct msg_t r = { .pid = -1 }; int number; int n = sscanf (msg, "<%3d>%*s %*d %*d:%*d:%*d " STRPUT(IDENT_LENGTH) " " STRPUT(MSG_LENGTH) " %*d %*d", &number, r.ident, r.msg); TEST_COMPARE (n, 3); r.facility = number & LOG_F...
static struct msg_t parse_syslog_msg (const char *msg) { struct msg_t r = { .pid = -1 }; int number; int n = sscanf (msg, "<%3d>%*s %*d %*d:%*d:%*d %32s %64s %*d %*d", &number, r.ident, r.msg); TEST_COMPARE (n, 3); r.facility = number & LOG_FACMASK; r.priority = number & LOG_PRIMASK; char *p...
static struct msg_t parse_syslog_msg (const char *msg) { struct msg_t r = { .pid = -1 }; int number; int n = sscanf (msg, "<%3d>%*s %*d %*d:%*d:%*d " STRPUT(IDENT_LENGTH) " " STRPUT(MSG_LENGTH) " %*d %*d", &number, r.ident, r.msg); TEST_COMPARE (n, 3); r.facility = number & LOG_F...
static struct msg_t parse_syslog_msg (const char *msg) { struct msg_t r = { .pid = -1 }; int number; int n = sscanf (msg, "<%3d>%*s %*d %*d:%*d:%*d %32s %64s %*d %*d", &number, r.ident, r.msg); TEST_COMPARE (n, 3); r.facility = number & LOG_FACMASK; r.priority = number & LOG_PRIMASK; char *p...
static struct msg_t parse_syslog_msg (const char *msg) { struct msg_t r = { .pid = -1 }; int number; int n = sscanf (msg, "<%3d>%*s %*d %*d:%*d:%*d " STRPUT(IDENT_LENGTH) " " STRPUT(MSG_LENGTH) " %*d %*d", &number, r.ident, r.msg); TEST_COMPARE (n, 3); r.facility = number & LOG_F...
static struct msg_t parse_syslog_msg (const char *msg) { struct msg_t r = { .pid = -1 }; int number; int n = sscanf (msg, "<%3d>%*s %*d %*d:%*d:%*d %32s %64s %*d %*d", &number, r.ident, r.msg); TEST_COMPARE (n, 3); r.facility = number & LOG_FACMASK; r.priority = number & LOG_PRIMASK; char *p...
static struct msg_t parse_syslog_msg (const char *msg) { struct msg_t r = { .pid = -1 }; int number; int n = sscanf (msg, "<%3d>%*s %*d %*d:%*d:%*d " STRPUT(IDENT_LENGTH) " " STRPUT(MSG_LENGTH) " %*d %*d", &number, r.ident, r.msg); TEST_COMPARE (n, 3); r.facility = number & LOG_F...
static struct msg_t parse_syslog_msg (const char *msg) { struct msg_t r = { .pid = -1 }; int number; - int n = sscanf (msg, "<%3d>%*s %*d %*d:%*d:%*d %32s %64s %*d %*d", &number, r.ident, r.msg); + int n = sscanf (msg, "<%3d>%*s %*d %*d:%*d:%*d " STRPUT(IDENT_LENGTH) + " " STRPUT(MSG...
CVE-2022-3964
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/rpzaenc.c
rpza_encode_stream
static void rpza_encode_stream(RpzaContext *s, const AVFrame *pict) { BlockInfo bi; int block_counter = 0; int n_blocks; int total_blocks; int prev_block_offset; int block_offset = 0; uint8_t min = 0, max = 0; channel_offset chan; int i; int tmp_min, tmp_max; int total_rgb[3]...
static void rpza_encode_stream(RpzaContext *s, const AVFrame *pict) { BlockInfo bi; int block_counter = 0; int n_blocks; int total_blocks; int prev_block_offset; int block_offset = 0; uint8_t min = 0, max = 0; channel_offset chan; int i; int tmp_min, tmp_max; int total_rgb[3]...
static void rpza_encode_stream(RpzaContext *s, const AVFrame *pict) { BlockInfo bi; int block_counter = 0; int n_blocks; int total_blocks; int prev_block_offset; int block_offset = 0; uint8_t min = 0, max = 0; channel_offset chan; int i; int tmp_min, tmp_max; int total_rgb[3]...
static void rpza_encode_stream(RpzaContext *s, const AVFrame *pict) { BlockInfo bi; int block_counter = 0; int n_blocks; int total_blocks; int prev_block_offset; int block_offset = 0; uint8_t min = 0, max = 0; channel_offset chan; int i; int tmp_min, tmp_max; int total_rgb[3]...
static void rpza_encode_stream(RpzaContext *s, const AVFrame *pict) { const uint16_t *src_pixels = (const uint16_t *)pict->data[0]; bi.image_height = s->frame_height; while (block_counter < total_blocks) { if (!s->first_frame) { n_blocks = 0; prev_block_offset = 0; ...
static void rpza_encode_stream(RpzaContext *s, const AVFrame *pict) { const uint16_t *src_pixels = (const uint16_t *)pict->data[0]; bi.image_height = s->frame_height; while (block_counter < total_blocks) { if (!s->first_frame) { n_blocks = 0; prev_block_offset = 0; ...
static void rpza_encode_stream(RpzaContext *s, const AVFrame *pict) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ uint16_t *src_pixels = (uint16_t *)pict->data[0]; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ bi.image_height = s->frame_height; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ whi...
static void rpza_encode_stream(RpzaContext *s, const AVFrame *pict) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ uint16_t *src_pixels = (uint16_t *)pict->data[0]; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ bi.image_height = s->frame_height; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ whi...
static void rpza_encode_stream(RpzaContext *s, const AVFrame *pict) { const uint16_t *src_pixels = (const uint16_t *)pict->data[0]; bi.image_height = s->frame_height; while (block_counter < total_blocks) { if (!s->first_frame) { n_blocks = 0; prev_block_offset = 0; ...
CVE-2022-3964
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/rpzaenc.c
update_block_in_prev_frame
static void update_block_in_prev_frame(const uint16_t *src_pixels, uint16_t *dest_pixels, const BlockInfo *bi, int block_counter) { for (int y = 0; y < 4; y++) { memcpy(dest_pixels, src_pixels, 8); dest_pixels += bi->rowstride; src_pixels += bi->rowstride; } }
static void update_block_in_prev_frame(const uint16_t *src_pixels, uint16_t *dest_pixels, const BlockInfo *bi, int block_counter) { const int y_size = FFM(4, bi->image_height - bi->row * 4); for (int y = 0; y < y_size; y++) { memcpy(dest_pixels, src_pixels, 8); dest_pixels += bi->rowstride; ...
static void update_block_in_prev_frame(const uint16_t *src_pixels, uint16_t *dest_pixels, const BlockInfo *bi, int block_counter) { for (int y = 0; y < 4; y++) { memcpy(dest_pixels, src_pixels, 8); dest_pixels += bi->rowstride; src_pixels += bi->rowstride; } }
static void update_block_in_prev_frame(const uint16_t *src_pixels, uint16_t *dest_pixels, const BlockInfo *bi, int block_counter) { const int y_size = FFM(4, bi->image_height - bi->row * 4); for (int y = 0; y < y_size; y++) { memcpy(dest_pixels, src_pixels, 8); dest_pixels += bi->rowstride; ...
static void update_block_in_prev_frame(const uint16_t *src_pixels, uint16_t *dest_pixels, const BlockInfo *bi, int block_counter) { for (int y = 0; y < 4; y++) { memcpy(dest_pixels, src_pixels, 8); dest_pixels += bi->rowstride; src_pixels += bi->rowstride; } }
static void update_block_in_prev_frame(const uint16_t *src_pixels, uint16_t *dest_pixels, const BlockInfo *bi, int block_counter) { const int y_size = FFM(4, bi->image_height - bi->row * 4); for (int y = 0; y < y_size; y++) { memcpy(dest_pixels, src_pixels, 8); dest_pixels += bi->rowstride; ...
static void update_block_in_prev_frame(const uint16_t *src_pixels, uint16_t *dest_pixels, const BlockInfo *bi, int block_counter) { for (int y = 0; y < 4; y++) { memcpy(dest_pixels, src_pixels, 8); dest_pixels += bi->rowstride; src_pixels += bi->rowstride; } }
static void update_block_in_prev_frame(const uint16_t *src_pixels, uint16_t *dest_pixels, const BlockInfo *bi, int block_counter) { const int y_size = FFM(4, bi->image_height - bi->row * 4); for (int y = 0; y < y_size; y++) { memcpy(dest_pixels, src_pixels, 8); dest_pixels += bi->rowstride; ...
static void update_block_in_prev_frame(const uint16_t *src_pixels, uint16_t *dest_pixels, const BlockInfo *bi, int block_counter) { - for (int y = 0; y < 4; y++) { + const int y_size = FFM(4, bi->image_height - bi->row * 4); + for (int y = 0; y < y_size; y++) { memcpy(dest_pixels, src_pixels, 8); ...
CVE-2022-3965
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/smcenc.c
smc_encode_stream
static void smc_encode_stream(SMCContext *s, const AVFrame *frame, PutByteContext *pb) { const uint8_t *src_pixels = (const uint8_t *)frame->data[0]; const int stride = frame->linesize[0]; const uint8_t *prev_pixels = (const uint8_t *)s->prev_frame->data[0]; uint8_t *distinct_values = s->distinct_values...
static void smc_encode_stream(SMCContext *s, const AVFrame *frame, PutByteContext *pb) { const uint8_t *src_pixels = (const uint8_t *)frame->data[0]; const int stride = frame->linesize[0]; const uint8_t *prev_pixels = (const uint8_t *)s->prev_frame->data[0]; uint8_t *distinct_values = s->distinct_values...
static void smc_encode_stream(SMCContext *s, const AVFrame *frame, PutByteContext *pb) { const uint8_t *src_pixels = (const uint8_t *)frame->data[0]; const int stride = frame->linesize[0]; const uint8_t *prev_pixels = (const uint8_t *)s->prev_frame->data[0]; uint8_t *distinct_values = s->distinct_values...
static void smc_encode_stream(SMCContext *s, const AVFrame *frame, PutByteContext *pb) { const uint8_t *src_pixels = (const uint8_t *)frame->data[0]; const int stride = frame->linesize[0]; const uint8_t *prev_pixels = (const uint8_t *)s->prev_frame->data[0]; uint8_t *distinct_values = s->distinct_values...
static void smc_encode_stream(SMCContext *s, const AVFrame *frame, PutByteContext *pb) { uint8_t *distinct_values = s->distinct_values; const uint8_t *pixel_ptr, *row_ptr; const int width = frame->width; int color_octet_index = 0; int total_blocks; memset(s->color_pairs, 0, sizeof(s->color_pairs...
static void smc_encode_stream(SMCContext *s, const AVFrame *frame, PutByteContext *pb) { uint8_t *distinct_values = s->distinct_values; const uint8_t *pixel_ptr, *row_ptr; const int height = frame->height; const int width = frame->width; int color_octet_index = 0; int total_blocks; int cur_y...
static void smc_encode_stream(SMCContext *s, const AVFrame *frame, PutByteContext *pb) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ uint8_t *distinct_values = s->distinct_values; const uint8_t *pixel_ptr, *row_ptr; const int width = frame->width; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
static void smc_encode_stream(SMCContext *s, const AVFrame *frame, PutByteContext *pb) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ uint8_t *distinct_values = s->distinct_values; const uint8_t *pixel_ptr, *row_ptr; const int height = frame->height; const int width = frame->width; /* PLACEHOLD...
static void smc_encode_stream(SMCContext *s, const AVFrame *frame, PutByteContext *pb) { uint8_t *distinct_values = s->distinct_values; const uint8_t *pixel_ptr, *row_ptr; + const int height = frame->height; const int width = frame->width; int color_octet_index = 0; int total_blocks; + i...
CVE-2022-3996
OpenSSL
https://github.com/openssl/openssl
crypto/x509/pcy_map.c
ossl_policy_cache_set_mapping
int ossl_policy_cache_set_mapping(X509 *x, POLICY_MAPPGS *maps) { POLICY_MAPPG *map; X509_POLICY_DATA *data; X509_POLICY_CACHE *cache = x->policy_cache; int i; int ret = 0; if (sk_POLICY_MAPPG_num(maps) == 0) { ret = -1; goto bad_mapping; } for (i = 0; i < sk_POLICY_MAPPG...
int ossl_policy_cache_set_mapping(X509 *x, POLICY_MAPPGS *maps) { POLICY_MAPPG *map; X509_POLICY_DATA *data; X509_POLICY_CACHE *cache = x->policy_cache; int i; int ret = 0; if (sk_POLICY_MAPPG_num(maps) == 0) { ret = -1; goto bad_mapping; } for (i = 0; i < sk_POLICY_MAPPG...
int ossl_policy_cache_set_mapping(X509 *x, POLICY_MAPPGS *maps) { POLICY_MAPPG *map; X509_POLICY_DATA *data; X509_POLICY_CACHE *cache = x->policy_cache; int i; int ret = 0; if (sk_POLICY_MAPPG_num(maps) == 0) { ret = -1; goto bad_mapping; } for (i = 0; i < sk_POLICY_MAPPG...
int ossl_policy_cache_set_mapping(X509 *x, POLICY_MAPPGS *maps) { POLICY_MAPPG *map; X509_POLICY_DATA *data; X509_POLICY_CACHE *cache = x->policy_cache; int i; int ret = 0; if (sk_POLICY_MAPPG_num(maps) == 0) { ret = -1; goto bad_mapping; } for (i = 0; i < sk_POLICY_MAPPG...
int ossl_policy_cache_set_mapping(X509 *x, POLICY_MAPPGS *maps) { int ret = 0; if (sk_POLICY_MAPPG_num(maps) == 0) { ret = -1; goto bad_mapping; } for (i = 0; i < sk_POLICY_MAPPG_num(maps); i++) { if ((OBJ_obj2nid(map->subjectDomainPolicy) == NID_any_policy) || (OBJ_obj2nid(map->...
int ossl_policy_cache_set_mapping(X509 *x, POLICY_MAPPGS *maps) { int ret = 0; if (sk_POLICY_MAPPG_num(maps) == 0) { ret = -1; goto bad_mapping; } for (i = 0; i < sk_POLICY_MAPPG_num(maps); i++) { if ((OBJ_obj2nid(map->subjectDomainPolicy) == NID_any_policy) || (OBJ_obj2nid(map->...
int ossl_policy_cache_set_mapping(X509 *x, POLICY_MAPPGS *maps) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int ret = 0; if (sk_POLICY_MAPPG_num(maps) == 0) { ret = -1; goto bad_mapping; } for (i = 0; i < sk_POLICY_MAPPG_num(maps); i++) { /* PLACEHOLDER: DO NOT DELETE THIS CO...
int ossl_policy_cache_set_mapping(X509 *x, POLICY_MAPPGS *maps) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int ret = 0; if (sk_POLICY_MAPPG_num(maps) == 0) { ret = -1; goto bad_mapping; } for (i = 0; i < sk_POLICY_MAPPG_num(maps); i++) { /* PLACEHOLDER: DO NOT DELETE THIS CO...
int ossl_policy_cache_set_mapping(X509 *x, POLICY_MAPPGS *maps) { int ret = 0; if (sk_POLICY_MAPPG_num(maps) == 0) { ret = -1; goto bad_mapping; } for (i = 0; i < sk_POLICY_MAPPG_num(maps); i++) { if ((OBJ_obj2nid(map->subjectDomainPolicy) == NID_any_policy) || (OBJ_obj2n...
CVE-2022-4203
OpenSSL
https://github.com/openssl/openssl
crypto/x509/v3_ncons.c
nc_match
static int nc_match(GENERAL_NAME *gen, NAME_CONSTRATS *nc) { GENERAL_SUBTREE *sub; int i, r, match = 0; int effective_type = ((gen->type == GEN_OTHERNAME) && (OBJ_obj2nid(gen->d.otherName->type_id) == NID_id_on_SmtpUTF8Mailbox)) ? GEN_EMAIL : gen->type; for (i = 0; i < sk_GENERAL_SUBTREE_num(nc->permitt...
static int nc_match(GENERAL_NAME *gen, NAME_CONSTRATS *nc) { GENERAL_SUBTREE *sub; int i, r, match = 0; int effective_type = gen->type; if (effective_type == GEN_OTHERNAME && (OBJ_obj2nid(gen->d.otherName->type_id) == NID_id_on_SmtpUTF8Mailbox)) { effective_type = GEN_EMAIL; } for (i = 0...
static int nc_match(GENERAL_NAME *gen, NAME_CONSTRATS *nc) { GENERAL_SUBTREE *sub; int i, r, match = 0; int effective_type = ((gen->type == GEN_OTHERNAME) && (OBJ_obj2nid(gen->d.otherName->type_id) == NID_id_on_SmtpUTF8Mailbox)) ? GEN_EMAIL : gen->type; for (i = 0; i < sk_GENERAL_SUBTREE_num(nc->permitt...
static int nc_match(GENERAL_NAME *gen, NAME_CONSTRATS *nc) { GENERAL_SUBTREE *sub; int i, r, match = 0; int effective_type = gen->type; if (effective_type == GEN_OTHERNAME && (OBJ_obj2nid(gen->d.otherName->type_id) == NID_id_on_SmtpUTF8Mailbox)) { effective_type = GEN_EMAIL; } for (i = 0...
static int nc_match(GENERAL_NAME *gen, NAME_CONSTRATS *nc) { int i, r, match = 0; int effective_type = ((gen->type == GEN_OTHERNAME) && (OBJ_obj2nid(gen->d.otherName->type_id) == NID_id_on_SmtpUTF8Mailbox)) ? GEN_EMAIL : gen->type; for (i = 0; i < sk_GENERAL_SUBTREE_num(nc->permittedSubtrees); i++) { ...
static int nc_match(GENERAL_NAME *gen, NAME_CONSTRATS *nc) { int i, r, match = 0; int effective_type = gen->type; if (effective_type == GEN_OTHERNAME && (OBJ_obj2nid(gen->d.otherName->type_id) == NID_id_on_SmtpUTF8Mailbox)) { effective_type = GEN_EMAIL; } for (i = 0; i < sk_GENERAL_SUBTREE_n...
static int nc_match(GENERAL_NAME *gen, NAME_CONSTRATS *nc) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int i, r, match = 0; int effective_type = ((gen->type == GEN_OTHERNAME) && (OBJ_obj2nid(gen->d.otherName->type_id) == NID_id_on_SmtpUTF8Mailbox)) ? GEN_EMAIL : gen->type; for (i = 0; i < sk_GENERAL...
static int nc_match(GENERAL_NAME *gen, NAME_CONSTRATS *nc) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int i, r, match = 0; int effective_type = gen->type; if (effective_type == GEN_OTHERNAME && (OBJ_obj2nid(gen->d.otherName->type_id) == NID_id_on_SmtpUTF8Mailbox)) { effective_type = GEN_EMA...
static int nc_match(GENERAL_NAME *gen, NAME_CONSTRATS *nc) { int i, r, match = 0; - int effective_type = ((gen->type == GEN_OTHERNAME) && (OBJ_obj2nid(gen->d.otherName->type_id) == NID_id_on_SmtpUTF8Mailbox)) ? GEN_EMAIL : gen->type; + int effective_type = gen->type; + if (effective_type == GEN_OTHERNAME...
CVE-2022-4203
OpenSSL
https://github.com/openssl/openssl
crypto/x509/v3_ncons.c
nc_match_single
static int nc_match_single(GENERAL_NAME *gen, GENERAL_NAME *base) { switch (gen->type) { case GEN_OTHERNAME: return nc_email_eai(gen->d.otherName->value, base->d.rfc822Name); case GEN_DIRNAME: return nc_dn(gen->d.directoryName, base->d.directoryName); case GEN_DNS: return nc_dns(...
static int nc_match_single(int effective_type, GENERAL_NAME *gen, GENERAL_NAME *base) { switch (gen->type) { case GEN_OTHERNAME: switch (effective_type) { case GEN_EMAIL: return nc_email_eai(gen->d.otherName->value, base->d.rfc822Name); default: return X509_V_ERR_...
static int nc_match_single(GENERAL_NAME *gen, GENERAL_NAME *base) { switch (gen->type) { case GEN_OTHERNAME: return nc_email_eai(gen->d.otherName->value, base->d.rfc822Name); case GEN_DIRNAME: return nc_dn(gen->d.directoryName, base->d.directoryName); case GEN_DNS: return nc_dns(...
static int nc_match_single(int effective_type, GENERAL_NAME *gen, GENERAL_NAME *base) { switch (gen->type) { case GEN_OTHERNAME: switch (effective_type) { case GEN_EMAIL: return nc_email_eai(gen->d.otherName->value, base->d.rfc822Name); default: return X509_V_ERR_...
static int nc_match_single(GENERAL_NAME *gen, GENERAL_NAME *base) { switch (gen->type) { case GEN_OTHERNAME: return nc_email_eai(gen->d.otherName->value, base->d.rfc822Name); } }
static int nc_match_single(int effective_type, GENERAL_NAME *gen, GENERAL_NAME *base) { switch (gen->type) { case GEN_OTHERNAME: switch (effective_type) { case GEN_EMAIL: return nc_email_eai(gen->d.otherName->value, base->d.rfc822Name); default: return X509_V_ERR_...
static int nc_match_single(GENERAL_NAME *gen, GENERAL_NAME *base) { switch (gen->type) { case GEN_OTHERNAME: return nc_email_eai(gen->d.otherName->value, base->d.rfc822Name); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } }
static int nc_match_single(int effective_type, GENERAL_NAME *gen, GENERAL_NAME *base) { switch (gen->type) { case GEN_OTHERNAME: switch (effective_type) { case GEN_EMAIL: return nc_email_eai(gen->d.otherName->value, base->d.rfc822Name); default: return X509_V_ERR_...
-static int nc_match_single(GENERAL_NAME *gen, GENERAL_NAME *base) { +static int nc_match_single(int effective_type, GENERAL_NAME *gen, GENERAL_NAME *base) { switch (gen->type) { case GEN_OTHERNAME: - return nc_email_eai(gen->d.otherName->value, base->d.rfc822Name); + switch (effective_type) { +...
CVE-2022-42309
xen
https://github.com/xen-project/xen
tools/xenstore/xenstored_core.c
create_node
static struct node *create_node(struct connection *conn, const void *ctx, const char *name, void *data, unsigned int datalen) { struct node *node, *i; node = construct_node(conn, ctx, name); if (!node) { return NULL; } node->data = data; node->datalen = datalen; for (i = node; i; i =...
static struct node *create_node(struct connection *conn, const void *ctx, const char *name, void *data, unsigned int datalen) { struct node *node, *i, *j; int ret; node = construct_node(conn, ctx, name); if (!node) { return NULL; } node->data = data; node->datalen = datalen; for ...
static struct node *create_node(struct connection *conn, const void *ctx, const char *name, void *data, unsigned int datalen) { struct node *node, *i; node = construct_node(conn, ctx, name); if (!node) { return NULL; } node->data = data; node->datalen = datalen; for (i = node; i; i =...
static struct node *create_node(struct connection *conn, const void *ctx, const char *name, void *data, unsigned int datalen) { struct node *node, *i, *j; int ret; node = construct_node(conn, ctx, name); if (!node) { return NULL; } node->data = data; node->datalen = datalen; for ...
static struct node *create_node(struct connection *conn, const void *ctx, const char *name, void *data, unsigned int datalen) { struct node *node, *i; node = construct_node(conn, ctx, name); if (!node) { return NULL; } for (i = node; i; i = i->parent) { if (i->parent && domain_entry(...
static struct node *create_node(struct connection *conn, const void *ctx, const char *name, void *data, unsigned int datalen) { struct node *node, *i, *j; int ret; node = construct_node(conn, ctx, name); if (!node) { return NULL; } for (i = node; i; i = i->parent) { if (i->parent...
static struct node *create_node(struct connection *conn, const void *ctx, const char *name, void *data, unsigned int datalen) { struct node *node, *i; node = construct_node(conn, ctx, name); if (!node) { return NULL; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = node; i; i = i...
static struct node *create_node(struct connection *conn, const void *ctx, const char *name, void *data, unsigned int datalen) { struct node *node, *i, *j; int ret; node = construct_node(conn, ctx, name); if (!node) { return NULL; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i...
static struct node *create_node(struct connection *conn, const void *ctx, const char *name, void *data, unsigned int datalen) { - struct node *node, *i; + struct node *node, *i, *j; + int ret; node = construct_node(conn, ctx, name); if (!node) { return NULL; } for (i = node; i; i ...
CVE-2022-42309
xen
https://github.com/xen-project/xen
tools/xenstore/xenstored_core.c
destroy_node
static int destroy_node(void *_node) { struct node *node = _node; TDB_DATA key; if (streq(node->name, "/")) { corrupt(NULL, "Destroying root node!"); } set_tdb_key(node->name, &key); tdb_delete(tdb_ctx, key); domain_entry_dec(talloc_parent(node), node); return 0; }
static int destroy_node(struct connection *conn, struct node *node) { TDB_DATA key; if (streq(node->name, "/")) { corrupt(NULL, "Destroying root node!"); } set_tdb_key(node->name, &key); tdb_delete(tdb_ctx, key); domain_entry_dec(conn, node); return 0; }
static int destroy_node(void *_node) { struct node *node = _node; TDB_DATA key; if (streq(node->name, "/")) { corrupt(NULL, "Destroying root node!"); } key.dptr = (void *)node->name; key.dsize = strlen(node->name); tdb_delete(tdb_ctx, key); domain_entry_dec(talloc_parent(node), n...
static int destroy_node(struct connection *conn, struct node *node) { TDB_DATA key; if (streq(node->name, "/")) { corrupt(NULL, "Destroying root node!"); } key.dptr = (void *)node->name; key.dsize = strlen(node->name); tdb_delete(tdb_ctx, key); domain_entry_dec(conn, node); retur...
static int destroy_node(void *_node) { struct node *node = _node; TDB_DATA key; set_tdb_key(node->name, &key); tdb_delete(tdb_ctx, key); domain_entry_dec(talloc_parent(node), node); return 0; }
static int destroy_node(struct connection *conn, struct node *node) { TDB_DATA key; set_tdb_key(node->name, &key); tdb_delete(tdb_ctx, key); domain_entry_dec(conn, node); return 0; }
static int destroy_node(void *_node) { struct node *node = _node; TDB_DATA key; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ key.dptr = (void *)node->name; key.dsize = strlen(node->name); tdb_delete(tdb_ctx, key); domain_entry_dec(talloc_parent(node), node); return 0; }
static int destroy_node(struct connection *conn, struct node *node) { TDB_DATA key; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ key.dptr = (void *)node->name; key.dsize = strlen(node->name); tdb_delete(tdb_ctx, key); domain_entry_dec(conn, node); return 0; }
-static int destroy_node(void *_node) { - struct node *node = _node; +static int destroy_node(struct connection *conn, struct node *node) { TDB_DATA key; set_tdb_key(node->name, &key); tdb_delete(tdb_ctx, key); - domain_entry_dec(talloc_parent(node), node); + domain_entry_dec(conn, node); r...
CVE-2022-42310
xen
https://github.com/xen-project/xen
tools/xenstore/xenstored_core.c
destroy_node
static int destroy_node(struct connection *conn, struct node *node) { TDB_DATA key; if (streq(node->name, "/")) { corrupt(NULL, "Destroying root node!"); } set_tdb_key(node->name, &key); tdb_delete(tdb_ctx, key); domain_entry_dec(conn, node); return 0; }
static int destroy_node(struct connection *conn, struct node *node) { if (streq(node->name, "/")) { corrupt(NULL, "Destroying root node!"); } tdb_delete(tdb_ctx, node->key); domain_entry_dec(conn, node); if ( conn->transaction ) { fail_transaction(conn->transaction); } return...
static int destroy_node(struct connection *conn, struct node *node) { TDB_DATA key; if (streq(node->name, "/")) { corrupt(NULL, "Destroying root node!"); } key.dptr = (void *)node->name; key.dsize = strlen(node->name); tdb_delete(tdb_ctx, key); domain_entry_dec(conn, node); retur...
static int destroy_node(struct connection *conn, struct node *node) { if (streq(node->name, "/")) { corrupt(NULL, "Destroying root node!"); } tdb_delete(tdb_ctx, node->key); domain_entry_dec(conn, node); if ( conn->transaction ) { fail_transaction(conn->transaction); } return...
static int destroy_node(struct connection *conn, struct node *node) { TDB_DATA key; if (streq(node->name, "/")) { corrupt(NULL, "Destroying root node!"); } set_tdb_key(node->name, &key); tdb_delete(tdb_ctx, key); domain_entry_dec(conn, node); return 0; }
static int destroy_node(struct connection *conn, struct node *node) { if (streq(node->name, "/")) { corrupt(NULL, "Destroying root node!"); } tdb_delete(tdb_ctx, node->key); domain_entry_dec(conn, node); if ( conn->transaction ) { fail_transaction(conn->transaction); } return...
static int destroy_node(struct connection *conn, struct node *node) { TDB_DATA key; if (streq(node->name, "/")) { corrupt(NULL, "Destroying root node!"); } key.dptr = (void *)node->name; key.dsize = strlen(node->name); tdb_delete(tdb_ctx, key); domain_entry_dec(conn, node); retur...
static int destroy_node(struct connection *conn, struct node *node) { if (streq(node->name, "/")) { corrupt(NULL, "Destroying root node!"); } tdb_delete(tdb_ctx, node->key); domain_entry_dec(conn, node); if ( conn->transaction ) { fail_transaction(conn->transaction); } return...
static int destroy_node(struct connection *conn, struct node *node) { - TDB_DATA key; if (streq(node->name, "/")) { corrupt(NULL, "Destroying root node!"); } - set_tdb_key(node->name, &key); - tdb_delete(tdb_ctx, key); + tdb_delete(tdb_ctx, node->key); domain_entry_dec(conn, node); ...
CVE-2022-42310
xen
https://github.com/xen-project/xen
tools/xenstore/xenstored_core.c
write_node
static int write_node(struct connection *conn, struct node *node, bool no_quota_check) { TDB_DATA key; if (access_node(conn, node, NODE_ACCESS_WRITE, &key)) { return errno; } return write_node_raw(conn, &key, node, no_quota_check); }
static int write_node(struct connection *conn, struct node *node, bool no_quota_check) { if (access_node(conn, node, NODE_ACCESS_WRITE, &node->key)) { return errno; } return write_node_raw(conn, &node->key, node, no_quota_check); }
static int write_node(struct connection *conn, struct node *node, bool no_quota_check) { TDB_DATA key; if (access_node(conn, node, NODE_ACCESS_WRITE, &key)) { return errno; } return write_node_raw(conn, &key, node, no_quota_check); }
static int write_node(struct connection *conn, struct node *node, bool no_quota_check) { if (access_node(conn, node, NODE_ACCESS_WRITE, &node->key)) { return errno; } return write_node_raw(conn, &node->key, node, no_quota_check); }
static int write_node(struct connection *conn, struct node *node, bool no_quota_check) { TDB_DATA key; if (access_node(conn, node, NODE_ACCESS_WRITE, &key)) { return errno; } return write_node_raw(conn, &key, node, no_quota_check); }
static int write_node(struct connection *conn, struct node *node, bool no_quota_check) { if (access_node(conn, node, NODE_ACCESS_WRITE, &node->key)) { return errno; } return write_node_raw(conn, &node->key, node, no_quota_check); }
static int write_node(struct connection *conn, struct node *node, bool no_quota_check) { TDB_DATA key; if (access_node(conn, node, NODE_ACCESS_WRITE, &key)) { return errno; } return write_node_raw(conn, &key, node, no_quota_check); }
static int write_node(struct connection *conn, struct node *node, bool no_quota_check) { if (access_node(conn, node, NODE_ACCESS_WRITE, &node->key)) { return errno; } return write_node_raw(conn, &node->key, node, no_quota_check); }
static int write_node(struct connection *conn, struct node *node, bool no_quota_check) { - TDB_DATA key; - if (access_node(conn, node, NODE_ACCESS_WRITE, &key)) { + if (access_node(conn, node, NODE_ACCESS_WRITE, &node->key)) { return errno; } - return write_node_raw(conn, &key, node, no_quota...
CVE-2022-42320
xen
https://github.com/xen-project/xen
tools/xenstore/xenstored_core.c
do_set_perms
static int do_set_perms(const void *ctx, struct connection *conn, struct buffered_data *in) { struct node_perms perms, old_perms; char *name, *permstr; struct node *node; perms.num = xs_count_strings(in->buffer, in->used); if (perms.num < 2) { return EVAL; } perms.num--; if (doma...
static int do_set_perms(const void *ctx, struct connection *conn, struct buffered_data *in) { struct node_perms perms, old_perms; char *name, *permstr; struct node *node; perms.num = xs_count_strings(in->buffer, in->used); if (perms.num < 2) { return EVAL; } perms.num--; if (doma...
static int do_set_perms(const void *ctx, struct connection *conn, struct buffered_data *in) { struct node_perms perms, old_perms; char *name, *permstr; struct node *node; perms.num = xs_count_strings(in->buffer, in->used); if (perms.num < 2) { return EVAL; } perms.num--; if (doma...
static int do_set_perms(const void *ctx, struct connection *conn, struct buffered_data *in) { struct node_perms perms, old_perms; char *name, *permstr; struct node *node; perms.num = xs_count_strings(in->buffer, in->used); if (perms.num < 2) { return EVAL; } perms.num--; if (doma...
static int do_set_perms(const void *ctx, struct connection *conn, struct buffered_data *in) { if (!xs_strings_to_perms(perms.p, perms.num, permstr)) { return errno; } if (strstarts(in->buffer, "@")) { if (set_perms_special(conn, in->buffer, &perms)) { return errno; } ...
static int do_set_perms(const void *ctx, struct connection *conn, struct buffered_data *in) { if (!xs_strings_to_perms(perms.p, perms.num, permstr)) { return errno; } if (domain_alloc_permrefs(&perms) < 0) { return ENOMEM; } if (perms.p[0].perms & XS_PERM_IGNORE) { return ENO...
static int do_set_perms(const void *ctx, struct connection *conn, struct buffered_data *in) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!xs_strings_to_perms(perms.p, perms.num, permstr)) { return errno; } if (strstarts(in->buffer, "@")) { if (set_perms_special(conn, in->buffer, &...
static int do_set_perms(const void *ctx, struct connection *conn, struct buffered_data *in) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!xs_strings_to_perms(perms.p, perms.num, permstr)) { return errno; } if (domain_alloc_permrefs(&perms) < 0) { return ENOMEM; } if (perms...
static int do_set_perms(const void *ctx, struct connection *conn, struct buffered_data *in) { if (!xs_strings_to_perms(perms.p, perms.num, permstr)) { return errno; + } + if (domain_alloc_permrefs(&perms) < 0) { + return ENOMEM; + } + if (perms.p[0].perms & XS_PERM_IGNORE) { + r...
CVE-2022-42320
xen
https://github.com/xen-project/xen
tools/xenstore/xenstored_domain.c
domain_adjust_node_perms
int domain_adjust_node_perms(struct connection *conn, struct node *node) { unsigned int i; int ret; ret = chk_domain_generation(node->perms.p[0].id, node->generation); if (ret < 0) { return errno; } if (!ret) { node->perms.p[0].id = priv_domid; } for (i = 1; i < node->per...
int domain_adjust_node_perms(struct connection *conn, struct node *node) { unsigned int i; int ret; ret = chk_domain_generation(node->perms.p[0].id, node->generation); if (!ret) { node->perms.p[0].id = priv_domid; } for (i = 1; i < node->perms.num; i++) { if (node->perms.p[i].per...
int domain_adjust_node_perms(struct connection *conn, struct node *node) { unsigned int i; int ret; ret = chk_domain_generation(node->perms.p[0].id, node->generation); if (ret < 0) { return errno; } if (!ret) { node->perms.p[0].id = priv_domid; } for (i = 1; i < node->per...
int domain_adjust_node_perms(struct connection *conn, struct node *node) { unsigned int i; int ret; ret = chk_domain_generation(node->perms.p[0].id, node->generation); if (!ret) { node->perms.p[0].id = priv_domid; } for (i = 1; i < node->perms.num; i++) { if (node->perms.p[i].per...
int domain_adjust_node_perms(struct connection *conn, struct node *node) { ret = chk_domain_generation(node->perms.p[0].id, node->generation); if (ret < 0) { return errno; } for (i = 1; i < node->perms.num; i++) { ret = chk_domain_generation(node->perms.p[i].id, node->generation); ...
int domain_adjust_node_perms(struct connection *conn, struct node *node) { ret = chk_domain_generation(node->perms.p[0].id, node->generation); for (i = 1; i < node->perms.num; i++) { ret = chk_domain_generation(node->perms.p[i].id, node->generation); } }
int domain_adjust_node_perms(struct connection *conn, struct node *node) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ret = chk_domain_generation(node->perms.p[0].id, node->generation); if (ret < 0) { return errno; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 1; i < node->...
int domain_adjust_node_perms(struct connection *conn, struct node *node) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ret = chk_domain_generation(node->perms.p[0].id, node->generation); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 1; i < node->perms.num; i++) { /* PLACEHOLDER: DO NOT DE...
int domain_adjust_node_perms(struct connection *conn, struct node *node) { ret = chk_domain_generation(node->perms.p[0].id, node->generation); - if (ret < 0) { - return errno; - } for (i = 1; i < node->perms.num; i++) { ret = chk_domain_generation(node->perms.p[i].id, node->generation);...
CVE-2022-42327
xen
https://github.com/xen-project/xen
xen/arch/x86/hvm/vmx/vmx.c
start_vmx
const struct hvm_function_table * start_vmx(void) { set_in_cr4(X86_CR4_VMXE); if ( vmx_vmcs_init() || alloc_vlapic_mapping() ) { printk("VMX: failed to initialise.\n"); return NULL; } vmx_function_table.singlestep_supported = cpu_has_monitor_trap_flag; if ( cpu_has_vmx_dt_exiting ) {...
const struct hvm_function_table * start_vmx(void) { set_in_cr4(X86_CR4_VMXE); if ( vmx_vmcs_init() ) { printk("VMX: failed to initialise.\n"); return NULL; } vmx_function_table.singlestep_supported = cpu_has_monitor_trap_flag; if ( cpu_has_vmx_dt_exiting ) { vmx_function_tabl...
const struct hvm_function_table * start_vmx(void) { set_in_cr4(X86_CR4_VMXE); if ( vmx_vmcs_init() || alloc_vlapic_mapping() ) { printk("VMX: failed to initialise.\n"); return NULL; } if ( cpu_has_vmx_dt_exiting ) { vmx_function_table.set_descriptor_access_exiting = vmx_set_descr...
const struct hvm_function_table * start_vmx(void) { set_in_cr4(X86_CR4_VMXE); if ( vmx_vmcs_init() ) { printk("VMX: failed to initialise.\n"); return NULL; } if ( cpu_has_vmx_dt_exiting ) { vmx_function_table.set_descriptor_access_exiting = vmx_set_descriptor_access_exiting; ...
const struct hvm_function_table * start_vmx(void) { set_in_cr4(X86_CR4_VMXE); if ( vmx_vmcs_init() || alloc_vlapic_mapping() ) { printk("VMX: failed to initialise.\n"); return NULL; } vmx_function_table.singlestep_supported = cpu_has_monitor_trap_flag; }
const struct hvm_function_table * start_vmx(void) { set_in_cr4(X86_CR4_VMXE); if ( vmx_vmcs_init() ) { printk("VMX: failed to initialise.\n"); return NULL; } vmx_function_table.singlestep_supported = cpu_has_monitor_trap_flag; }
const struct hvm_function_table * start_vmx(void) { set_in_cr4(X86_CR4_VMXE); if ( vmx_vmcs_init() || alloc_vlapic_mapping() ) { printk("VMX: failed to initialise.\n"); return NULL; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
const struct hvm_function_table * start_vmx(void) { set_in_cr4(X86_CR4_VMXE); if ( vmx_vmcs_init() ) { printk("VMX: failed to initialise.\n"); return NULL; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
const struct hvm_function_table * start_vmx(void) { set_in_cr4(X86_CR4_VMXE); - if ( vmx_vmcs_init() || alloc_vlapic_mapping() ) { + if ( vmx_vmcs_init() ) { printk("VMX: failed to initialise.\n"); return NULL; } vmx_function_table.singlestep_supported = cpu_has_monitor_trap_flag...
CVE-2022-42327
xen
https://github.com/xen-project/xen
xen/arch/x86/hvm/vmx/vmx.c
vmx_install_vlapic_mapping
static void vmx_install_vlapic_mapping(struct vcpu *v) { paddr_t virt_page_ma, apic_page_ma; if ( mfn_eq(apic_access_mfn, VALID_MFN) ) { return; } ASSERT(cpu_has_vmx_virtualize_apic_accesses); virt_page_ma = page_to_maddr(vcpu_vlapic(v)->regs_page); apic_page_ma = mfn_to_maddr(apic_acces...
static void vmx_install_vlapic_mapping(struct vcpu *v) { mfn_t apic_access_mfn = v->domain->arch.hvm.vmx.apic_access_mfn; paddr_t virt_page_ma, apic_page_ma; if ( mfn_eq(apic_access_mfn, _mfn(0)) ) { return; } ASSERT(cpu_has_vmx_virtualize_apic_accesses); virt_page_ma = page_to_maddr(vcp...
static void vmx_install_vlapic_mapping(struct vcpu *v) { paddr_t virt_page_ma, apic_page_ma; if ( !has_vlapic(v->domain) || mfn_eq(apic_access_mfn, VALID_MFN) ) { return; } ASSERT(cpu_has_vmx_virtualize_apic_accesses); virt_page_ma = page_to_maddr(vcpu_vlapic(v)->regs_page); apic_page_ma...
static void vmx_install_vlapic_mapping(struct vcpu *v) { mfn_t apic_access_mfn = v->domain->arch.hvm.vmx.apic_access_mfn; paddr_t virt_page_ma, apic_page_ma; if ( mfn_eq(apic_access_mfn, _mfn(0)) ) { return; } ASSERT(cpu_has_vmx_virtualize_apic_accesses); virt_page_ma = page_to_maddr(vcp...
static void vmx_install_vlapic_mapping(struct vcpu *v) { paddr_t virt_page_ma, apic_page_ma; if ( mfn_eq(apic_access_mfn, VALID_MFN) ) { return; } ASSERT(cpu_has_vmx_virtualize_apic_accesses); apic_page_ma = mfn_to_maddr(apic_access_mfn); __vmwrite(APIC_ACCESS_ADDR, apic_page_ma); }
static void vmx_install_vlapic_mapping(struct vcpu *v) { mfn_t apic_access_mfn = v->domain->arch.hvm.vmx.apic_access_mfn; paddr_t virt_page_ma, apic_page_ma; if ( mfn_eq(apic_access_mfn, _mfn(0)) ) { return; } ASSERT(cpu_has_vmx_virtualize_apic_accesses); apic_page_ma = mfn_to_maddr(apic...
static void vmx_install_vlapic_mapping(struct vcpu *v) { paddr_t virt_page_ma, apic_page_ma; if ( !has_vlapic(v->domain) || mfn_eq(apic_access_mfn, VALID_MFN) ) { return; } ASSERT(cpu_has_vmx_virtualize_apic_accesses); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ apic_page_ma = mfn_to_m...
static void vmx_install_vlapic_mapping(struct vcpu *v) { mfn_t apic_access_mfn = v->domain->arch.hvm.vmx.apic_access_mfn; paddr_t virt_page_ma, apic_page_ma; if ( mfn_eq(apic_access_mfn, _mfn(0)) ) { return; } ASSERT(cpu_has_vmx_virtualize_apic_accesses); /* PLACEHOLDER: DO NOT DELETE TH...
static void vmx_install_vlapic_mapping(struct vcpu *v) { + mfn_t apic_access_mfn = v->domain->arch.hvm.vmx.apic_access_mfn; paddr_t virt_page_ma, apic_page_ma; - if ( mfn_eq(apic_access_mfn, VALID_MFN) ) { + if ( mfn_eq(apic_access_mfn, _mfn(0)) ) { return; } ASSERT(cpu_has_vmx_virtual...
CVE-2022-42327
xen
https://github.com/xen-project/xen
xen/arch/x86/mm/shadow/set.c
shadow_get_page_from_l1e
static int inline shadow_get_page_from_l1e(shadow_l1e_t sl1e, struct domain *d, p2m_type_t type) { int res; mfn_t mfn = shadow_l1e_get_mfn(sl1e); const struct page_info *pg = NULL; struct domain *owner = NULL; ASSERT(!sh_l1e_is_magic(sl1e)); ASSERT(shadow_mode_refcounts(d)); if ( mfn_valid(m...
static int inline shadow_get_page_from_l1e(shadow_l1e_t sl1e, struct domain *d, p2m_type_t type) { int res; mfn_t mfn = shadow_l1e_get_mfn(sl1e); const struct page_info *pg = NULL; struct domain *owner = NULL; ASSERT(!sh_l1e_is_magic(sl1e)); ASSERT(shadow_mode_refcounts(d)); if ( mfn_valid(m...
static int inline shadow_get_page_from_l1e(shadow_l1e_t sl1e, struct domain *d, p2m_type_t type) { int res; mfn_t mfn = shadow_l1e_get_mfn(sl1e); const struct page_info *pg = NULL; struct domain *owner = NULL; ASSERT(!sh_l1e_is_magic(sl1e)); ASSERT(shadow_mode_refcounts(d)); if ( mfn_valid(m...
static int inline shadow_get_page_from_l1e(shadow_l1e_t sl1e, struct domain *d, p2m_type_t type) { int res; mfn_t mfn = shadow_l1e_get_mfn(sl1e); const struct page_info *pg = NULL; struct domain *owner = NULL; ASSERT(!sh_l1e_is_magic(sl1e)); ASSERT(shadow_mode_refcounts(d)); if ( mfn_valid(m...
static int inline shadow_get_page_from_l1e(shadow_l1e_t sl1e, struct domain *d, p2m_type_t type) { mfn_t mfn = shadow_l1e_get_mfn(sl1e); const struct page_info *pg = NULL; if ( mfn_valid(mfn) ) { pg = mfn_to_page(mfn); owner = page_get_owner(pg); } if ( pg && page_refcounting_suppres...
static int inline shadow_get_page_from_l1e(shadow_l1e_t sl1e, struct domain *d, p2m_type_t type) { mfn_t mfn = shadow_l1e_get_mfn(sl1e); const struct page_info *pg = NULL; if ( mfn_valid(mfn) ) { pg = mfn_to_page(mfn); owner = page_get_owner(pg); } }
static int inline shadow_get_page_from_l1e(shadow_l1e_t sl1e, struct domain *d, p2m_type_t type) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ mfn_t mfn = shadow_l1e_get_mfn(sl1e); const struct page_info *pg = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if ( mfn_valid(mfn) ) { pg =...
static int inline shadow_get_page_from_l1e(shadow_l1e_t sl1e, struct domain *d, p2m_type_t type) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ mfn_t mfn = shadow_l1e_get_mfn(sl1e); const struct page_info *pg = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if ( mfn_valid(mfn) ) { pg =...
static int inline shadow_get_page_from_l1e(shadow_l1e_t sl1e, struct domain *d, p2m_type_t type) { mfn_t mfn = shadow_l1e_get_mfn(sl1e); const struct page_info *pg = NULL; if ( mfn_valid(mfn) ) { pg = mfn_to_page(mfn); owner = page_get_owner(pg); } - if ( pg && page_refcounting...
CVE-2022-42327
xen
https://github.com/xen-project/xen
xen/arch/x86/mm/shadow/types.h
shadow_put_page_from_l1e
static void inline shadow_put_page_from_l1e(shadow_l1e_t sl1e, struct domain *d) { mfn_t mfn = shadow_l1e_get_mfn(sl1e); if ( !shadow_mode_refcounts(d) ) { return; } if ( mfn_valid(mfn) && page_refcounting_suppressed(mfn_to_page(mfn)) ) { return; } put_page_from_l1e(sl1e, d); }
static void inline shadow_put_page_from_l1e(shadow_l1e_t sl1e, struct domain *d) { if ( !shadow_mode_refcounts(d) ) { return; } put_page_from_l1e(sl1e, d); }
static void inline shadow_put_page_from_l1e(shadow_l1e_t sl1e, struct domain *d) { mfn_t mfn = shadow_l1e_get_mfn(sl1e); if ( !shadow_mode_refcounts(d) ) { return; } if ( mfn_valid(mfn) && page_refcounting_suppressed(mfn_to_page(mfn)) ) { return; } put_page_from_l1e(sl1e, d); }
static void inline shadow_put_page_from_l1e(shadow_l1e_t sl1e, struct domain *d) { if ( !shadow_mode_refcounts(d) ) { return; } put_page_from_l1e(sl1e, d); }
static void inline shadow_put_page_from_l1e(shadow_l1e_t sl1e, struct domain *d) { mfn_t mfn = shadow_l1e_get_mfn(sl1e); if ( !shadow_mode_refcounts(d) ) { return; } if ( mfn_valid(mfn) && page_refcounting_suppressed(mfn_to_page(mfn)) ) { return; } put_page_from_l1e(sl1e, d); }
static void inline shadow_put_page_from_l1e(shadow_l1e_t sl1e, struct domain *d) { if ( !shadow_mode_refcounts(d) ) { return; } put_page_from_l1e(sl1e, d); }
static void inline shadow_put_page_from_l1e(shadow_l1e_t sl1e, struct domain *d) { mfn_t mfn = shadow_l1e_get_mfn(sl1e); if ( !shadow_mode_refcounts(d) ) { return; } if ( mfn_valid(mfn) && page_refcounting_suppressed(mfn_to_page(mfn)) ) { return; } put_page_from_l1e(sl1e, d); }
static void inline shadow_put_page_from_l1e(shadow_l1e_t sl1e, struct domain *d) { if ( !shadow_mode_refcounts(d) ) { return; } put_page_from_l1e(sl1e, d); }
static void inline shadow_put_page_from_l1e(shadow_l1e_t sl1e, struct domain *d) { - mfn_t mfn = shadow_l1e_get_mfn(sl1e); if ( !shadow_mode_refcounts(d) ) { - return; - } - if ( mfn_valid(mfn) && page_refcounting_suppressed(mfn_to_page(mfn)) ) { return; } put_page_from_l1e(sl1e...
CVE-2022-42330
xen
https://github.com/xen-project/xen
tools/xenstore/xenstored_core.c
main
int main(int argc, char *argv[]) { int opt; int sock_pollfd_idx = -1; bool dofork = true; bool outputpid = false; bool no_domain_init = false; bool live_update = false; const char *pidfile = NULL; int timeout; orig_argc = argc; orig_argv = argv; while ((opt = getopt_long(argc...
int main(int argc, char *argv[]) { int opt; int sock_pollfd_idx = -1; bool dofork = true; bool outputpid = false; bool no_domain_init = false; bool live_update = false; const char *pidfile = NULL; int timeout; orig_argc = argc; orig_argv = argv; while ((opt = getopt_long(argc...
int main(int argc, char *argv[]) { int opt; int sock_pollfd_idx = -1; bool dofork = true; bool outputpid = false; bool no_domain_init = false; bool live_update = false; const char *pidfile = NULL; int timeout; orig_argc = argc; orig_argv = argv; while ((opt = getopt_long(argc...
int main(int argc, char *argv[]) { int opt; int sock_pollfd_idx = -1; bool dofork = true; bool outputpid = false; bool no_domain_init = false; bool live_update = false; const char *pidfile = NULL; int timeout; orig_argc = argc; orig_argv = argv; while ((opt = getopt_long(argc...
int main(int argc, char *argv[]) { for (;;) { if (xce_pollfd_idx != -1) { if (fds[xce_pollfd_idx].revents & ~POLL) { } else if (fds[xce_pollfd_idx].revents & POLL) { xce_pollfd_idx = -1; } } list_for_each_entry_safe(conn, next, &connections...
int main(int argc, char *argv[]) { for (;;) { if (xce_pollfd_idx != -1) { if (fds[xce_pollfd_idx].revents & ~POLL) { } else if (fds[xce_pollfd_idx].revents & POLL) { xce_pollfd_idx = -1; } } next = list_entry(connections.next, typeof(*conn)...
int main(int argc, char *argv[]) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (;;) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (xce_pollfd_idx != -1) { if (fds[xce_pollfd_idx].revents & ~POLL) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else if (fds[xc...
int main(int argc, char *argv[]) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (;;) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (xce_pollfd_idx != -1) { if (fds[xce_pollfd_idx].revents & ~POLL) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else if (fds[xc...
int main(int argc, char *argv[]) { for (;;) { if (xce_pollfd_idx != -1) { if (fds[xce_pollfd_idx].revents & ~POLL) { } else if (fds[xce_pollfd_idx].revents & POLL) { xce_pollfd_idx = -1; } } - list_for_each_entry_safe(conn, next, &co...
CVE-2022-42336
xen
https://github.com/xen-project/xen
xen/arch/x86/cpu/amd.c
amd_set_legacy_ssbd
void amd_set_legacy_ssbd(bool enable) { if (opt_ssbd) { return; } if (cpu_has_virt_ssbd) { wrmsr(MSR_VIRT_SPEC_CTRL, enable ? SPEC_CTRL_SSBD : 0, 0); } else if (amd_legacy_ssbd) { core_set_legacy_ssbd(enable); } else { ASSERT_UNREACHABLE(); } }
void amd_set_legacy_ssbd(bool enable) { if (opt_ssbd) { return; } if (this_cpu(legacy_ssbd) == enable) { return; } if (cpu_has_virt_ssbd) { wrmsr(MSR_VIRT_SPEC_CTRL, enable ? SPEC_CTRL_SSBD : 0, 0); } else if (amd_legacy_ssbd) { core_set_legacy_ssbd(enable); }...
void amd_set_legacy_ssbd(bool enable) { if (opt_ssbd) { return; } if (cpu_has_virt_ssbd) { wrmsr(MSR_VIRT_SPEC_CTRL, enable ? SPEC_CTRL_SSBD : 0, 0); } else if (amd_legacy_ssbd) { core_set_legacy_ssbd(enable); } else { ASSERT_UNREACHABLE(); } }
void amd_set_legacy_ssbd(bool enable) { if (opt_ssbd) { return; } if (this_cpu(legacy_ssbd) == enable) { return; } if (cpu_has_virt_ssbd) { wrmsr(MSR_VIRT_SPEC_CTRL, enable ? SPEC_CTRL_SSBD : 0, 0); } else if (amd_legacy_ssbd) { core_set_legacy_ssbd(enable); }...
void amd_set_legacy_ssbd(bool enable) { if (opt_ssbd) { return; } if (cpu_has_virt_ssbd) { wrmsr(MSR_VIRT_SPEC_CTRL, enable ? SPEC_CTRL_SSBD : 0, 0); } else if (amd_legacy_ssbd) { core_set_legacy_ssbd(enable); } else { ASSERT_UNREACHABLE(); } }
void amd_set_legacy_ssbd(bool enable) { if (opt_ssbd) { return; } if (this_cpu(legacy_ssbd) == enable) { return; } if (cpu_has_virt_ssbd) { wrmsr(MSR_VIRT_SPEC_CTRL, enable ? SPEC_CTRL_SSBD : 0, 0); } else if (amd_legacy_ssbd) { core_set_legacy_ssbd(enable); }...
void amd_set_legacy_ssbd(bool enable) { if (opt_ssbd) { return; } if (cpu_has_virt_ssbd) { wrmsr(MSR_VIRT_SPEC_CTRL, enable ? SPEC_CTRL_SSBD : 0, 0); } else if (amd_legacy_ssbd) { core_set_legacy_ssbd(enable); } else { ASSERT_UNREACHABLE(); } }
void amd_set_legacy_ssbd(bool enable) { if (opt_ssbd) { return; } if (this_cpu(legacy_ssbd) == enable) { return; } if (cpu_has_virt_ssbd) { wrmsr(MSR_VIRT_SPEC_CTRL, enable ? SPEC_CTRL_SSBD : 0, 0); } else if (amd_legacy_ssbd) { core_set_legacy_ssbd(enable); }...
void amd_set_legacy_ssbd(bool enable) { if (opt_ssbd) { + return; + } + if (this_cpu(legacy_ssbd) == enable) { return; } if (cpu_has_virt_ssbd) { wrmsr(MSR_VIRT_SPEC_CTRL, enable ? SPEC_CTRL_SSBD : 0, 0); } else if (amd_legacy_ssbd) { core_set_legacy_ssbd(ena...
CVE-2022-42336
xen
https://github.com/xen-project/xen
xen/arch/x86/cpu/amd.c
core_set_legacy_ssbd
static void core_set_legacy_ssbd(bool enable) { const struct cpuinfo_x86 *c = &current_cpu_data; struct ssbd_ls_cfg *status; unsigned long flags; if ((c->x86 != 0x17 && c->x86 != 0x18) || c->x86_num_siblings <= 1) { BUG_ON(!set_legacy_ssbd(c, enable)); return; } BUG_ON(c->phys_pr...
static void core_set_legacy_ssbd(bool enable) { const struct cpuinfo_x86 *c = &current_cpu_data; struct ssbd_ls_cfg *status; unsigned long flags; BUG_ON(this_cpu(legacy_ssbd) == enable); if ((c->x86 != 0x17 && c->x86 != 0x18) || c->x86_num_siblings <= 1) { BUG_ON(!set_legacy_ssbd(c, enable))...
static void core_set_legacy_ssbd(bool enable) { const struct cpuinfo_x86 *c = &current_cpu_data; struct ssbd_ls_cfg *status; unsigned long flags; if ((c->x86 != 0x17 && c->x86 != 0x18) || c->x86_num_siblings <= 1) { BUG_ON(!set_legacy_ssbd(c, enable)); return; } BUG_ON(c->phys_pr...
static void core_set_legacy_ssbd(bool enable) { const struct cpuinfo_x86 *c = &current_cpu_data; struct ssbd_ls_cfg *status; unsigned long flags; BUG_ON(this_cpu(legacy_ssbd) == enable); if ((c->x86 != 0x17 && c->x86 != 0x18) || c->x86_num_siblings <= 1) { BUG_ON(!set_legacy_ssbd(c, enable))...
static void core_set_legacy_ssbd(bool enable) { const struct cpuinfo_x86 *c = &current_cpu_data; unsigned long flags; if ((c->x86 != 0x17 && c->x86 != 0x18) || c->x86_num_siblings <= 1) { BUG_ON(!set_legacy_ssbd(c, enable)); return; } }
static void core_set_legacy_ssbd(bool enable) { const struct cpuinfo_x86 *c = &current_cpu_data; unsigned long flags; BUG_ON(this_cpu(legacy_ssbd) == enable); if ((c->x86 != 0x17 && c->x86 != 0x18) || c->x86_num_siblings <= 1) { BUG_ON(!set_legacy_ssbd(c, enable)); return; } }
static void core_set_legacy_ssbd(bool enable) { const struct cpuinfo_x86 *c = &current_cpu_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned long flags; if ((c->x86 != 0x17 && c->x86 != 0x18) || c->x86_num_siblings <= 1) { BUG_ON(!set_legacy_ssbd(c, enable)); return; } ...
static void core_set_legacy_ssbd(bool enable) { const struct cpuinfo_x86 *c = &current_cpu_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned long flags; BUG_ON(this_cpu(legacy_ssbd) == enable); if ((c->x86 != 0x17 && c->x86 != 0x18) || c->x86_num_siblings <= 1) { BUG_ON(!set_legac...
static void core_set_legacy_ssbd(bool enable) { const struct cpuinfo_x86 *c = &current_cpu_data; unsigned long flags; + BUG_ON(this_cpu(legacy_ssbd) == enable); if ((c->x86 != 0x17 && c->x86 != 0x18) || c->x86_num_siblings <= 1) { BUG_ON(!set_legacy_ssbd(c, enable)); return; } ...
CVE-2022-4450
OpenSSL
https://github.com/openssl/openssl
crypto/pem/pem_lib.c
PEM_read_bio_ex
int PEM_read_bio_ex(BIO *bp, char **name_out, char **header, unsigned char **data, long *len_out, unsigned int flags) { EVP_ENCODE_CTX *ctx = NULL; const BIO_METHOD *bmeth; BIO *headerB = NULL, *dataB = NULL; char *name = NULL; int len, taillen, headerlen, ret = 0; BUF_MEM * buf_mem; *len_ou...
int PEM_read_bio_ex(BIO *bp, char **name_out, char **header, unsigned char **data, long *len_out, unsigned int flags) { EVP_ENCODE_CTX *ctx = NULL; const BIO_METHOD *bmeth; BIO *headerB = NULL, *dataB = NULL; char *name = NULL; int len, taillen, headerlen, ret = 0; BUF_MEM * buf_mem; *len_ou...
int PEM_read_bio_ex(BIO *bp, char **name_out, char **header, unsigned char **data, long *len_out, unsigned int flags) { EVP_ENCODE_CTX *ctx = NULL; const BIO_METHOD *bmeth; BIO *headerB = NULL, *dataB = NULL; char *name = NULL; int len, taillen, headerlen, ret = 0; BUF_MEM * buf_mem; *len_ou...
int PEM_read_bio_ex(BIO *bp, char **name_out, char **header, unsigned char **data, long *len_out, unsigned int flags) { EVP_ENCODE_CTX *ctx = NULL; const BIO_METHOD *bmeth; BIO *headerB = NULL, *dataB = NULL; char *name = NULL; int len, taillen, headerlen, ret = 0; BUF_MEM * buf_mem; *len_ou...
int PEM_read_bio_ex(BIO *bp, char **name_out, char **header, unsigned char **data, long *len_out, unsigned int flags) { char *name = NULL; if ((flags & PEM_FLAG_EAY_COMPATIBLE) && (flags & PEM_FLAG_ONLY_B64)) { goto end; } bmeth = (flags & PEM_FLAG_SECURE) ? BIO_s_secmem() : BIO_s_mem(); hea...
int PEM_read_bio_ex(BIO *bp, char **name_out, char **header, unsigned char **data, long *len_out, unsigned int flags) { char *name = NULL; if ((flags & PEM_FLAG_EAY_COMPATIBLE) && (flags & PEM_FLAG_ONLY_B64)) { goto end; } bmeth = (flags & PEM_FLAG_SECURE) ? BIO_s_secmem() : BIO_s_mem(); hea...
int PEM_read_bio_ex(BIO *bp, char **name_out, char **header, unsigned char **data, long *len_out, unsigned int flags) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ char *name = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if ((flags & PEM_FLAG_EAY_COMPATIBLE) && (flags & PEM_FLAG_ONLY_B64)) { ...
int PEM_read_bio_ex(BIO *bp, char **name_out, char **header, unsigned char **data, long *len_out, unsigned int flags) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ char *name = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if ((flags & PEM_FLAG_EAY_COMPATIBLE) && (flags & PEM_FLAG_ONLY_B64)) { ...
int PEM_read_bio_ex(BIO *bp, char **name_out, char **header, unsigned char **data, long *len_out, unsigned int flags) { char *name = NULL; if ((flags & PEM_FLAG_EAY_COMPATIBLE) && (flags & PEM_FLAG_ONLY_B64)) { goto end; } bmeth = (flags & PEM_FLAG_SECURE) ? BIO_s_secmem() : BIO_s_mem(); ...
CVE-2022-48434
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/pthread_frame.c
ff_frame_thread_free
void ff_frame_thread_free(AVCodecContext *avctx, int thread_count) { FrameThreadContext *fctx = avctx->internal->thread_ctx; const FFCodec *codec = ffcodec(avctx->codec); int i; park_frame_worker_threads(fctx, thread_count); if (fctx->prev_thread && avctx->internal->hwaccel_priv_data != fctx->prev_t...
void ff_frame_thread_free(AVCodecContext *avctx, int thread_count) { FrameThreadContext *fctx = avctx->internal->thread_ctx; const FFCodec *codec = ffcodec(avctx->codec); int i; park_frame_worker_threads(fctx, thread_count); for (i = 0; i < thread_count; i++) { PerThreadContext *p = &fctx->t...
void ff_frame_thread_free(AVCodecContext *avctx, int thread_count) { FrameThreadContext *fctx = avctx->internal->thread_ctx; const AVCodec *codec = avctx->codec; int i; park_frame_worker_threads(fctx, thread_count); if (fctx->prev_thread && avctx->internal->hwaccel_priv_data != fctx->prev_thread->av...
void ff_frame_thread_free(AVCodecContext *avctx, int thread_count) { FrameThreadContext *fctx = avctx->internal->thread_ctx; const AVCodec *codec = avctx->codec; int i; park_frame_worker_threads(fctx, thread_count); if (fctx->prev_thread && fctx->prev_thread != fctx->threads) { if (update_co...
void ff_frame_thread_free(AVCodecContext *avctx, int thread_count) { FrameThreadContext *fctx = avctx->internal->thread_ctx; park_frame_worker_threads(fctx, thread_count); if (fctx->prev_thread && avctx->internal->hwaccel_priv_data != fctx->prev_thread->avctx->internal->hwaccel_priv_data) { if (upda...
void ff_frame_thread_free(AVCodecContext *avctx, int thread_count) { FrameThreadContext *fctx = avctx->internal->thread_ctx; park_frame_worker_threads(fctx, thread_count); for (i = 0; i < thread_count; i++) { } ff_pthread_free(fctx, thread_ctx_offsets); av_assert0(!avctx->hwaccel); FFSWAP(co...
void ff_frame_thread_free(AVCodecContext *avctx, int thread_count) { FrameThreadContext *fctx = avctx->internal->thread_ctx; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ park_frame_worker_threads(fctx, thread_count); if (fctx->prev_thread && avctx->internal->hwaccel_priv_data != fctx->prev_thread->avct...
void ff_frame_thread_free(AVCodecContext *avctx, int thread_count) { FrameThreadContext *fctx = avctx->internal->thread_ctx; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ park_frame_worker_threads(fctx, thread_count); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (i = 0; i < thread_count; i++) {...
void ff_frame_thread_free(AVCodecContext *avctx, int thread_count) { FrameThreadContext *fctx = avctx->internal->thread_ctx; park_frame_worker_threads(fctx, thread_count); - if (fctx->prev_thread && avctx->internal->hwaccel_priv_data != fctx->prev_thread->avctx->internal->hwaccel_priv_data) { - if ...
CVE-2022-48434
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/pthread_frame.c
ff_thread_finish_setup
void ff_thread_finish_setup(AVCodecContext *avctx) { PerThreadContext *p = avctx->internal->thread_ctx; if (!(avctx->active_thread_type&FF_THREAD_FRAME)) { return; } if (avctx->hwaccel && !p->hwaccel_serializing) { pthread_mutex_lock(&p->parent->hwaccel_mutex); p->hwaccel_seriali...
void ff_thread_finish_setup(AVCodecContext *avctx) { PerThreadContext *p = avctx->internal->thread_ctx; if (!(avctx->active_thread_type&FF_THREAD_FRAME)) { return; } if (avctx->hwaccel && !p->hwaccel_serializing) { pthread_mutex_lock(&p->parent->hwaccel_mutex); p->hwaccel_seriali...
void ff_thread_finish_setup(AVCodecContext *avctx) { PerThreadContext *p = avctx->internal->thread_ctx; if (!(avctx->active_thread_type&FF_THREAD_FRAME)) { return; } if (avctx->hwaccel && !p->hwaccel_serializing) { pthread_mutex_lock(&p->parent->hwaccel_mutex); p->hwaccel_seriali...
void ff_thread_finish_setup(AVCodecContext *avctx) { PerThreadContext *p = avctx->internal->thread_ctx; if (!(avctx->active_thread_type&FF_THREAD_FRAME)) { return; } if (avctx->hwaccel && !p->hwaccel_serializing) { pthread_mutex_lock(&p->parent->hwaccel_mutex); p->hwaccel_seriali...
void ff_thread_finish_setup(AVCodecContext *avctx) { PerThreadContext *p = avctx->internal->thread_ctx; if (avctx->hwaccel && !(avctx->hwaccel->caps_internal & HWACCEL_CAP_ASYNC_SAFE)) { async_lock(p->parent); } pthread_mutex_lock(&p->progress_mutex); }
void ff_thread_finish_setup(AVCodecContext *avctx) { PerThreadContext *p = avctx->internal->thread_ctx; if (avctx->hwaccel && !(avctx->hwaccel->caps_internal & HWACCEL_CAP_ASYNC_SAFE)) { async_lock(p->parent); } av_assert0(!p->parent->stash_hwaccel); p->parent->stash_hwaccel = avctx->hwaccel...
void ff_thread_finish_setup(AVCodecContext *avctx) { PerThreadContext *p = avctx->internal->thread_ctx; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (avctx->hwaccel && !(avctx->hwaccel->caps_internal & HWACCEL_CAP_ASYNC_SAFE)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ async_lock(p->par...
void ff_thread_finish_setup(AVCodecContext *avctx) { PerThreadContext *p = avctx->internal->thread_ctx; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (avctx->hwaccel && !(avctx->hwaccel->caps_internal & HWACCEL_CAP_ASYNC_SAFE)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ async_lock(p->par...
void ff_thread_finish_setup(AVCodecContext *avctx) { PerThreadContext *p = avctx->internal->thread_ctx; if (avctx->hwaccel && !(avctx->hwaccel->caps_internal & HWACCEL_CAP_ASYNC_SAFE)) { async_lock(p->parent); } + av_assert0(!p->parent->stash_hwaccel); + p->parent->stash_hwaccel = avctx->...
CVE-2022-48434
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/pthread_frame.c
submit_packet
static int submit_packet(PerThreadContext *p, AVCodecContext *user_avctx, AVPacket *avpkt) { FrameThreadContext *fctx = p->parent; PerThreadContext *prev_thread = fctx->prev_thread; const AVCodec *codec = p->avctx->codec; int ret; if (!avpkt->size && !(codec->capabilities & AV_CODEC_CAP_DELAY)) { ...
static int submit_packet(PerThreadContext *p, AVCodecContext *user_avctx, AVPacket *avpkt) { FrameThreadContext *fctx = p->parent; PerThreadContext *prev_thread = fctx->prev_thread; const AVCodec *codec = p->avctx->codec; int ret; if (!avpkt->size && !(codec->capabilities & AV_CODEC_CAP_DELAY)) { ...
static int submit_packet(PerThreadContext *p, AVCodecContext *user_avctx, AVPacket *avpkt) { FrameThreadContext *fctx = p->parent; PerThreadContext *prev_thread = fctx->prev_thread; const AVCodec *codec = p->avctx->codec; int ret; if (!avpkt->size && !(codec->capabilities & AV_CODEC_CAP_DELAY)) { ...
static int submit_packet(PerThreadContext *p, AVCodecContext *user_avctx, AVPacket *avpkt) { FrameThreadContext *fctx = p->parent; PerThreadContext *prev_thread = fctx->prev_thread; const AVCodec *codec = p->avctx->codec; int ret; if (!avpkt->size && !(codec->capabilities & AV_CODEC_CAP_DELAY)) { ...
static int submit_packet(PerThreadContext *p, AVCodecContext *user_avctx, AVPacket *avpkt) { if (prev_thread) { if (err) { return err; } } av_packet_unref(p->avpkt); if (ret < 0) { av_log(p->avctx, AV_LOG_ERROR, "av_packet_ref() failed in submit_packet()\n"); ...
static int submit_packet(PerThreadContext *p, AVCodecContext *user_avctx, AVPacket *avpkt) { if (prev_thread) { if (err) { return err; } av_assert0(!p->avctx->hwaccel); FFSWAP(const AVHWAccel*, p->avctx->hwaccel, fctx->stash_hwaccel); FFSWAP(void*, p->avctx->hwacc...
static int submit_packet(PerThreadContext *p, AVCodecContext *user_avctx, AVPacket *avpkt) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (prev_thread) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (err) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return err; } ...
static int submit_packet(PerThreadContext *p, AVCodecContext *user_avctx, AVPacket *avpkt) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (prev_thread) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (err) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return err; } ...
static int submit_packet(PerThreadContext *p, AVCodecContext *user_avctx, AVPacket *avpkt) { if (prev_thread) { if (err) { return err; } + av_assert0(!p->avctx->hwaccel); + FFSWAP(const AVHWAccel*, p->avctx->hwaccel, fctx->stash_hwaccel); + FFSWAP(void*, p->avct...
CVE-2022-48434
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/pthread_frame.c
update_context_from_thread
static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src, int for_user) { const FFCodec *const codec = ffcodec(dst->codec); int err = 0; if (dst != src && (for_user || codec->update_thread_context)) { dst->time_base = src->time_base; dst->framerate = src->framerate; ...
static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src, int for_user) { const FFCodec *const codec = ffcodec(dst->codec); int err = 0; if (dst != src && (for_user || codec->update_thread_context)) { dst->time_base = src->time_base; dst->framerate = src->framerate; ...
static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src, int for_user) { int err = 0; if (dst != src && (for_user || src->codec->update_thread_context)) { dst->time_base = src->time_base; dst->framerate = src->framerate; dst->width = src->width; dst->height...
static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src, int for_user) { int err = 0; if (dst != src && (for_user || src->codec->update_thread_context)) { dst->time_base = src->time_base; dst->framerate = src->framerate; dst->width = src->width; dst->height...
static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src, int for_user) { const FFCodec *const codec = ffcodec(dst->codec); if (dst != src && (for_user || codec->update_thread_context)) { dst->chroma_sample_location = src->chroma_sample_location; dst->hwaccel = src->hwaccel...
static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src, int for_user) { const FFCodec *const codec = ffcodec(dst->codec); if (dst != src && (for_user || codec->update_thread_context)) { dst->chroma_sample_location = src->chroma_sample_location; dst->sample_rate = src->sam...
static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src, int for_user) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (dst != src && (for_user || src->codec->update_thread_context)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ dst->chroma_sample_location = src->chroma_s...
static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src, int for_user) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (dst != src && (for_user || src->codec->update_thread_context)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ dst->chroma_sample_location = src->chroma_s...
static int update_context_from_thread(AVCodecContext *dst, AVCodecContext *src, int for_user) { const FFCodec *const codec = ffcodec(dst->codec); if (dst != src && (for_user || codec->update_thread_context)) { dst->chroma_sample_location = src->chroma_sample_location; - dst->hwaccel = src->hw...
CVE-2023-0215
OpenSSL
https://github.com/openssl/openssl
crypto/asn1/bio_ndef.c
BIO_new_NDEF
BIO *BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it) { NDEF_SUPPORT *ndef_aux = NULL; BIO *asn_bio = NULL; const ASN1_AUX *aux = it->funcs; ASN1_STREAM_ARG sarg; if (!aux || !aux->asn1_cb) { ASN1err(ASN1_F_BIO_NEW_NDEF, ASN1_R_STREAMG_NOT_SUPPORTED); return NULL; } ...
BIO *BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it) { NDEF_SUPPORT *ndef_aux = NULL; BIO *asn_bio = NULL; const ASN1_AUX *aux = it->funcs; ASN1_STREAM_ARG sarg; BIO *pop_bio = NULL; if (!aux || !aux->asn1_cb) { ASN1err(ASN1_F_BIO_NEW_NDEF, ASN1_R_STREAMG_NOT_SUPPORTED); ...
BIO *BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it) { NDEF_SUPPORT *ndef_aux = NULL; BIO *asn_bio = NULL; const ASN1_AUX *aux = it->funcs; ASN1_STREAM_ARG sarg; if (!aux || !aux->asn1_cb) { ERR_raise(ERR_LIB_ASN1, ASN1_R_STREAMG_NOT_SUPPORTED); return NULL; } nd...
BIO *BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it) { NDEF_SUPPORT *ndef_aux = NULL; BIO *asn_bio = NULL; const ASN1_AUX *aux = it->funcs; ASN1_STREAM_ARG sarg; BIO *pop_bio = NULL; if (!aux || !aux->asn1_cb) { ERR_raise(ERR_LIB_ASN1, ASN1_R_STREAMG_NOT_SUPPORTED); ...
BIO *BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it) { const ASN1_AUX *aux = it->funcs; ASN1_STREAM_ARG sarg; if (!aux || !aux->asn1_cb) { return NULL; } ndef_aux = OPENSSL_zalloc(sizeof(*ndef_aux)); asn_bio = BIO_new(BIO_f_asn1()); if (ndef_aux == NULL || asn_bio == NUL...
BIO *BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it) { const ASN1_AUX *aux = it->funcs; ASN1_STREAM_ARG sarg; BIO *pop_bio = NULL; if (!aux || !aux->asn1_cb) { return NULL; } ndef_aux = OPENSSL_zalloc(sizeof(*ndef_aux)); asn_bio = BIO_new(BIO_f_asn1()); if (ndef_aux ...
BIO *BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ const ASN1_AUX *aux = it->funcs; ASN1_STREAM_ARG sarg; if (!aux || !aux->asn1_cb) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return NULL; } ndef_aux = OPENSSL_zalloc...
BIO *BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ const ASN1_AUX *aux = it->funcs; ASN1_STREAM_ARG sarg; BIO *pop_bio = NULL; if (!aux || !aux->asn1_cb) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return NULL; } ...
BIO *BIO_new_NDEF(BIO *out, ASN1_VALUE *val, const ASN1_ITEM *it) { const ASN1_AUX *aux = it->funcs; ASN1_STREAM_ARG sarg; + BIO *pop_bio = NULL; if (!aux || !aux->asn1_cb) { return NULL; } ndef_aux = OPENSSL_zalloc(sizeof(*ndef_aux)); asn_bio = BIO_new(BIO_f_asn1()); if ...
CVE-2023-0216
OpenSSL
https://github.com/openssl/openssl
crypto/pkcs7/pk7_lib.c
ossl_pkcs7_resolve_libctx
void ossl_pkcs7_resolve_libctx(PKCS7 *p7) { int i; const PKCS7_CTX *ctx = ossl_pkcs7_get0_ctx(p7); OSSL_LIB_CTX *libctx = ossl_pkcs7_ctx_get0_libctx(ctx); const char *propq = ossl_pkcs7_ctx_get0_propq(ctx); STACK_OF(PKCS7_RECIP_FO) *rinfos = pkcs7_get_recipient_info(p7); STACK_OF(PKCS7_SIGNER_FO...
void ossl_pkcs7_resolve_libctx(PKCS7 *p7) { int i; const PKCS7_CTX *ctx = ossl_pkcs7_get0_ctx(p7); OSSL_LIB_CTX *libctx = ossl_pkcs7_ctx_get0_libctx(ctx); const char *propq = ossl_pkcs7_ctx_get0_propq(ctx); STACK_OF(PKCS7_RECIP_FO) *rinfos; STACK_OF(PKCS7_SIGNER_FO) *sinfos; STACK_OF(X509) *...
void ossl_pkcs7_resolve_libctx(PKCS7 *p7) { int i; const PKCS7_CTX *ctx = ossl_pkcs7_get0_ctx(p7); OSSL_LIB_CTX *libctx = ossl_pkcs7_ctx_get0_libctx(ctx); const char *propq = ossl_pkcs7_ctx_get0_propq(ctx); STACK_OF(PKCS7_RECIP_FO) *rinfos = pkcs7_get_recipient_info(p7); STACK_OF(PKCS7_SIGNER_FO...
void ossl_pkcs7_resolve_libctx(PKCS7 *p7) { int i; const PKCS7_CTX *ctx = ossl_pkcs7_get0_ctx(p7); OSSL_LIB_CTX *libctx = ossl_pkcs7_ctx_get0_libctx(ctx); const char *propq = ossl_pkcs7_ctx_get0_propq(ctx); STACK_OF(PKCS7_RECIP_FO) *rinfos; STACK_OF(PKCS7_SIGNER_FO) *sinfos; STACK_OF(X509) *...
void ossl_pkcs7_resolve_libctx(PKCS7 *p7) { const PKCS7_CTX *ctx = ossl_pkcs7_get0_ctx(p7); OSSL_LIB_CTX *libctx = ossl_pkcs7_ctx_get0_libctx(ctx); const char *propq = ossl_pkcs7_ctx_get0_propq(ctx); STACK_OF(PKCS7_RECIP_FO) *rinfos = pkcs7_get_recipient_info(p7); STACK_OF(PKCS7_SIGNER_FO) *sinfos =...
void ossl_pkcs7_resolve_libctx(PKCS7 *p7) { const PKCS7_CTX *ctx = ossl_pkcs7_get0_ctx(p7); OSSL_LIB_CTX *libctx = ossl_pkcs7_ctx_get0_libctx(ctx); const char *propq = ossl_pkcs7_ctx_get0_propq(ctx); STACK_OF(PKCS7_RECIP_FO) *rinfos; STACK_OF(PKCS7_SIGNER_FO) *sinfos; STACK_OF(X509) *certs; ...
void ossl_pkcs7_resolve_libctx(PKCS7 *p7) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ const PKCS7_CTX *ctx = ossl_pkcs7_get0_ctx(p7); OSSL_LIB_CTX *libctx = ossl_pkcs7_ctx_get0_libctx(ctx); const char *propq = ossl_pkcs7_ctx_get0_propq(ctx); STACK_OF(PKCS7_RECIP_FO) *rinfos = pkcs7_get_recipient...
void ossl_pkcs7_resolve_libctx(PKCS7 *p7) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ const PKCS7_CTX *ctx = ossl_pkcs7_get0_ctx(p7); OSSL_LIB_CTX *libctx = ossl_pkcs7_ctx_get0_libctx(ctx); const char *propq = ossl_pkcs7_ctx_get0_propq(ctx); STACK_OF(PKCS7_RECIP_FO) *rinfos; STACK_OF(PKCS7_S...
void ossl_pkcs7_resolve_libctx(PKCS7 *p7) { const PKCS7_CTX *ctx = ossl_pkcs7_get0_ctx(p7); OSSL_LIB_CTX *libctx = ossl_pkcs7_ctx_get0_libctx(ctx); const char *propq = ossl_pkcs7_ctx_get0_propq(ctx); - STACK_OF(PKCS7_RECIP_FO) *rinfos = pkcs7_get_recipient_info(p7); - STACK_OF(PKCS7_SIGNER_FO) *si...
CVE-2023-0217
OpenSSL
https://github.com/openssl/openssl
crypto/ffc/ffc_key_validate.c
ossl_ffc_validate_private_key
int ossl_ffc_validate_private_key(const BIGNUM *upper, const BIGNUM *priv, int *ret) { int ok = 0; *ret = 0; if (BN_cmp(priv, BN_value_one()) < 0) { *ret |= FFC_ERROR_PRIVKEY_TOO_SMALL; goto err; } if (BN_cmp(priv, upper) >= 0) { *ret |= FFC_ERROR_PRIVKEY_TOO_LARGE; g...
int ossl_ffc_validate_private_key(const BIGNUM *upper, const BIGNUM *priv, int *ret) { int ok = 0; *ret = 0; if (priv == NULL || upper == NULL) { *ret = FFC_ERROR_PASSED_NULL_PARAM; goto err; } if (BN_cmp(priv, BN_value_one()) < 0) { *ret |= FFC_ERROR_PRIVKEY_TOO_SMALL; ...
int ossl_ffc_validate_private_key(const BIGNUM *upper, const BIGNUM *priv, int *ret) { int ok = 0; *ret = 0; if (BN_cmp(priv, BN_value_one()) < 0) { *ret |= FFC_ERROR_PRIVKEY_TOO_SMALL; goto err; } if (BN_cmp(priv, upper) >= 0) { *ret |= FFC_ERROR_PRIVKEY_TOO_LARGE; g...
int ossl_ffc_validate_private_key(const BIGNUM *upper, const BIGNUM *priv, int *ret) { int ok = 0; *ret = 0; if (priv == NULL || upper == NULL) { *ret = FFC_ERROR_PASSED_NULL_PARAM; goto err; } if (BN_cmp(priv, BN_value_one()) < 0) { *ret |= FFC_ERROR_PRIVKEY_TOO_SMALL; ...
int ossl_ffc_validate_private_key(const BIGNUM *upper, const BIGNUM *priv, int *ret) { *ret = 0; if (BN_cmp(priv, BN_value_one()) < 0) { goto err; } if (BN_cmp(priv, upper) >= 0) { goto err; } err: return ok; }
int ossl_ffc_validate_private_key(const BIGNUM *upper, const BIGNUM *priv, int *ret) { *ret = 0; if (priv == NULL || upper == NULL) { *ret = FFC_ERROR_PASSED_NULL_PARAM; goto err; } if (BN_cmp(priv, BN_value_one()) < 0) { goto err; } if (BN_cmp(priv, upper) >= 0) { ...
int ossl_ffc_validate_private_key(const BIGNUM *upper, const BIGNUM *priv, int *ret) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ *ret = 0; if (BN_cmp(priv, BN_value_one()) < 0) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ goto err; } if (BN_cmp(priv, upper) >= 0) { /* PLACEHOL...
int ossl_ffc_validate_private_key(const BIGNUM *upper, const BIGNUM *priv, int *ret) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ *ret = 0; if (priv == NULL || upper == NULL) { *ret = FFC_ERROR_PASSED_NULL_PARAM; goto err; } if (BN_cmp(priv, BN_value_one()) < 0) { /* PLACEHOLD...
int ossl_ffc_validate_private_key(const BIGNUM *upper, const BIGNUM *priv, int *ret) { *ret = 0; + if (priv == NULL || upper == NULL) { + *ret = FFC_ERROR_PASSED_NULL_PARAM; + goto err; + } if (BN_cmp(priv, BN_value_one()) < 0) { goto err; } if (BN_cmp(priv, upper) >= 0...
CVE-2023-0217
OpenSSL
https://github.com/openssl/openssl
crypto/ffc/ffc_key_validate.c
ossl_ffc_validate_public_key_partial
int ossl_ffc_validate_public_key_partial(const FFC_PARAMS *params, const BIGNUM *pub_key, int *ret) { int ok = 0; BIGNUM *tmp = NULL; BN_CTX *ctx = NULL; *ret = 0; ctx = BN_CTX_new_ex(NULL); if (ctx == NULL) { goto err; } BN_CTX_start(ctx); tmp = BN_CTX_get(ctx); if (tmp ...
int ossl_ffc_validate_public_key_partial(const FFC_PARAMS *params, const BIGNUM *pub_key, int *ret) { int ok = 0; BIGNUM *tmp = NULL; BN_CTX *ctx = NULL; *ret = 0; if (params == NULL || pub_key == NULL || params->p == NULL) { *ret = FFC_ERROR_PASSED_NULL_PARAM; return 0; } ct...
int ossl_ffc_validate_public_key_partial(const FFC_PARAMS *params, const BIGNUM *pub_key, int *ret) { int ok = 0; BIGNUM *tmp = NULL; BN_CTX *ctx = NULL; *ret = 0; ctx = BN_CTX_new_ex(NULL); if (ctx == NULL) { goto err; } BN_CTX_start(ctx); tmp = BN_CTX_get(ctx); if (tmp ...
int ossl_ffc_validate_public_key_partial(const FFC_PARAMS *params, const BIGNUM *pub_key, int *ret) { int ok = 0; BIGNUM *tmp = NULL; BN_CTX *ctx = NULL; *ret = 0; if (params == NULL || pub_key == NULL || params->p == NULL) { *ret = FFC_ERROR_PASSED_NULL_PARAM; return 0; } ct...
int ossl_ffc_validate_public_key_partial(const FFC_PARAMS *params, const BIGNUM *pub_key, int *ret) { *ret = 0; ctx = BN_CTX_new_ex(NULL); if (ctx == NULL) { goto err; } BN_CTX_start(ctx); tmp = BN_CTX_get(ctx); if (tmp == NULL || !BN_set_word(tmp, 1)) { goto err; } i...
int ossl_ffc_validate_public_key_partial(const FFC_PARAMS *params, const BIGNUM *pub_key, int *ret) { *ret = 0; if (params == NULL || pub_key == NULL || params->p == NULL) { *ret = FFC_ERROR_PASSED_NULL_PARAM; return 0; } ctx = BN_CTX_new_ex(NULL); if (ctx == NULL) { goto err...
int ossl_ffc_validate_public_key_partial(const FFC_PARAMS *params, const BIGNUM *pub_key, int *ret) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ *ret = 0; ctx = BN_CTX_new_ex(NULL); if (ctx == NULL) { goto err; } BN_CTX_start(ctx); tmp = BN_CTX_get(ctx); if (tmp == NULL || !BN...
int ossl_ffc_validate_public_key_partial(const FFC_PARAMS *params, const BIGNUM *pub_key, int *ret) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ *ret = 0; if (params == NULL || pub_key == NULL || params->p == NULL) { *ret = FFC_ERROR_PASSED_NULL_PARAM; return 0; } ctx = BN_CTX_new...
int ossl_ffc_validate_public_key_partial(const FFC_PARAMS *params, const BIGNUM *pub_key, int *ret) { *ret = 0; + if (params == NULL || pub_key == NULL || params->p == NULL) { + *ret = FFC_ERROR_PASSED_NULL_PARAM; + return 0; + } ctx = BN_CTX_new_ex(NULL); if (ctx == NULL) { ...
CVE-2023-0286
OpenSSL
https://github.com/openssl/openssl
crypto/x509/v3_genn.c
GENERAL_NAME_cmp
int GENERAL_NAME_cmp(GENERAL_NAME *a, GENERAL_NAME *b) { int result = -1; if (!a || !b || a->type != b->type) { return -1; } switch (a->type) { case GEN_X400: result = ASN1_TYPE_cmp(a->d.x400Address, b->d.x400Address); break; case GEN_EDIPARTY: result = edipartyna...
int GENERAL_NAME_cmp(GENERAL_NAME *a, GENERAL_NAME *b) { int result = -1; if (!a || !b || a->type != b->type) { return -1; } switch (a->type) { case GEN_X400: result = ASN1_STRG_cmp(a->d.x400Address, b->d.x400Address); break; case GEN_EDIPARTY: result = edipartyna...
int GENERAL_NAME_cmp(GENERAL_NAME *a, GENERAL_NAME *b) { int result = -1; if (!a || !b || a->type != b->type) { return -1; } switch (a->type) { case GEN_X400: result = ASN1_TYPE_cmp(a->d.x400Address, b->d.x400Address); break; case GEN_EDIPARTY: result = edipartyna...
int GENERAL_NAME_cmp(GENERAL_NAME *a, GENERAL_NAME *b) { int result = -1; if (!a || !b || a->type != b->type) { return -1; } switch (a->type) { case GEN_X400: result = ASN1_STRG_cmp(a->d.x400Address, b->d.x400Address); break; case GEN_EDIPARTY: result = edipartyna...
int GENERAL_NAME_cmp(GENERAL_NAME *a, GENERAL_NAME *b) { switch (a->type) { case GEN_X400: result = ASN1_TYPE_cmp(a->d.x400Address, b->d.x400Address); break; } return result; }
int GENERAL_NAME_cmp(GENERAL_NAME *a, GENERAL_NAME *b) { switch (a->type) { case GEN_X400: result = ASN1_STRG_cmp(a->d.x400Address, b->d.x400Address); break; } return result; }
int GENERAL_NAME_cmp(GENERAL_NAME *a, GENERAL_NAME *b) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (a->type) { case GEN_X400: result = ASN1_TYPE_cmp(a->d.x400Address, b->d.x400Address); break; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } return result; }
int GENERAL_NAME_cmp(GENERAL_NAME *a, GENERAL_NAME *b) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (a->type) { case GEN_X400: result = ASN1_STRG_cmp(a->d.x400Address, b->d.x400Address); break; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } return result; }
int GENERAL_NAME_cmp(GENERAL_NAME *a, GENERAL_NAME *b) { switch (a->type) { case GEN_X400: - result = ASN1_TYPE_cmp(a->d.x400Address, b->d.x400Address); + result = ASN1_STRG_cmp(a->d.x400Address, b->d.x400Address); break; } return result; }
CVE-2023-0401
OpenSSL
https://github.com/openssl/openssl
crypto/pkcs7/pk7_doit.c
PKCS7_dataDecode
BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) { int i, len; BIO *out = NULL, *btmp = NULL, *etmp = NULL, *bio = NULL; X509_ALGOR *xa; ASN1_OCTET_STRG *data_body = NULL; EVP_MD *evp_md = NULL; const EVP_MD *md; EVP_CIPHER *evp_cipher = NULL; const EVP_CIPHER *...
BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) { int i, len; BIO *out = NULL, *btmp = NULL, *etmp = NULL, *bio = NULL; X509_ALGOR *xa; ASN1_OCTET_STRG *data_body = NULL; EVP_MD *evp_md = NULL; const EVP_MD *md; EVP_CIPHER *evp_cipher = NULL; const EVP_CIPHER *...
BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) { int i, len; BIO *out = NULL, *btmp = NULL, *etmp = NULL, *bio = NULL; X509_ALGOR *xa; ASN1_OCTET_STRG *data_body = NULL; EVP_MD *evp_md = NULL; const EVP_MD *md; EVP_CIPHER *evp_cipher = NULL; const EVP_CIPHER *...
BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) { int i, len; BIO *out = NULL, *btmp = NULL, *etmp = NULL, *bio = NULL; X509_ALGOR *xa; ASN1_OCTET_STRG *data_body = NULL; EVP_MD *evp_md = NULL; const EVP_MD *md; EVP_CIPHER *evp_cipher = NULL; const EVP_CIPHER *...
BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) { STACK_OF(X509_ALGOR) *md_sk = NULL; if (p7 == NULL) { return NULL; } p7_ctx = ossl_pkcs7_get0_ctx(p7); libctx = ossl_pkcs7_ctx_get0_libctx(p7_ctx); propq = ossl_pkcs7_ctx_get0_propq(p7_ctx); if (p7->d.ptr ==...
BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) { STACK_OF(X509_ALGOR) *md_sk = NULL; if (p7 == NULL) { return NULL; } p7_ctx = ossl_pkcs7_get0_ctx(p7); libctx = ossl_pkcs7_ctx_get0_libctx(p7_ctx); propq = ossl_pkcs7_ctx_get0_propq(p7_ctx); if (p7->d.ptr ==...
BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ STACK_OF(X509_ALGOR) *md_sk = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (p7 == NULL) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return NULL; } ...
BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ STACK_OF(X509_ALGOR) *md_sk = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (p7 == NULL) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return NULL; } ...
BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) { STACK_OF(X509_ALGOR) *md_sk = NULL; if (p7 == NULL) { return NULL; } p7_ctx = ossl_pkcs7_get0_ctx(p7); libctx = ossl_pkcs7_ctx_get0_libctx(p7_ctx); propq = ossl_pkcs7_ctx_get0_propq(p7_ctx); if (p7-...
CVE-2023-0401
OpenSSL
https://github.com/openssl/openssl
crypto/pkcs7/pk7_doit.c
pkcs7_bio_add_digest
static int pkcs7_bio_add_digest(BIO **pbio, X509_ALGOR *alg, const PKCS7_CTX *ctx) { BIO *btmp; char name[OSSL_MAX_NAME_SIZE]; EVP_MD *fetched = NULL; const EVP_MD *md; if ((btmp = BIO_new(BIO_f_md())) == NULL) { ERR_raise(ERR_LIB_PKCS7, ERR_R_BIO_LIB); goto err; } OBJ_obj2tx...
static int pkcs7_bio_add_digest(BIO **pbio, X509_ALGOR *alg, const PKCS7_CTX *ctx) { BIO *btmp; char name[OSSL_MAX_NAME_SIZE]; EVP_MD *fetched = NULL; const EVP_MD *md; if ((btmp = BIO_new(BIO_f_md())) == NULL) { ERR_raise(ERR_LIB_PKCS7, ERR_R_BIO_LIB); goto err; } OBJ_obj2tx...
static int pkcs7_bio_add_digest(BIO **pbio, X509_ALGOR *alg, const PKCS7_CTX *ctx) { BIO *btmp; char name[OSSL_MAX_NAME_SIZE]; EVP_MD *fetched = NULL; const EVP_MD *md; if ((btmp = BIO_new(BIO_f_md())) == NULL) { ERR_raise(ERR_LIB_PKCS7, ERR_R_BIO_LIB); goto err; } OBJ_obj2tx...
static int pkcs7_bio_add_digest(BIO **pbio, X509_ALGOR *alg, const PKCS7_CTX *ctx) { BIO *btmp; char name[OSSL_MAX_NAME_SIZE]; EVP_MD *fetched = NULL; const EVP_MD *md; if ((btmp = BIO_new(BIO_f_md())) == NULL) { ERR_raise(ERR_LIB_PKCS7, ERR_R_BIO_LIB); goto err; } OBJ_obj2tx...
static int pkcs7_bio_add_digest(BIO **pbio, X509_ALGOR *alg, const PKCS7_CTX *ctx) { if ((btmp = BIO_new(BIO_f_md())) == NULL) { goto err; } OBJ_obj2txt(name, sizeof(name), alg->algorithm, 0); fetched = EVP_MD_fetch(ossl_pkcs7_ctx_get0_libctx(ctx), name, ossl_pkcs7_ctx_get0_propq(ctx)); if (...
static int pkcs7_bio_add_digest(BIO **pbio, X509_ALGOR *alg, const PKCS7_CTX *ctx) { if ((btmp = BIO_new(BIO_f_md())) == NULL) { goto err; } OBJ_obj2txt(name, sizeof(name), alg->algorithm, 0); fetched = EVP_MD_fetch(ossl_pkcs7_ctx_get0_libctx(ctx), name, ossl_pkcs7_ctx_get0_propq(ctx)); if (...
static int pkcs7_bio_add_digest(BIO **pbio, X509_ALGOR *alg, const PKCS7_CTX *ctx) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if ((btmp = BIO_new(BIO_f_md())) == NULL) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ goto err; } OBJ_obj2txt(name, sizeof(name), alg->algorithm, 0); /* ...
static int pkcs7_bio_add_digest(BIO **pbio, X509_ALGOR *alg, const PKCS7_CTX *ctx) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if ((btmp = BIO_new(BIO_f_md())) == NULL) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ goto err; } OBJ_obj2txt(name, sizeof(name), alg->algorithm, 0); /* ...
static int pkcs7_bio_add_digest(BIO **pbio, X509_ALGOR *alg, const PKCS7_CTX *ctx) { if ((btmp = BIO_new(BIO_f_md())) == NULL) { goto err; } OBJ_obj2txt(name, sizeof(name), alg->algorithm, 0); fetched = EVP_MD_fetch(ossl_pkcs7_ctx_get0_libctx(ctx), name, ossl_pkcs7_ctx_get0_propq(ctx)); ...
CVE-2023-0412
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-tipc.c
dissect_tipc
static int dissect_tipc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { proto_item *ti, *item; proto_tree *tipc_tree, *tipc_data_tree; int offset = 0; guint32 srcport, destport = 0, dword; guint8 version; guint32 msg_size; guint8 hdr_size; guint8 user; gchar *addr...
static int dissect_tipc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { proto_item *ti, *item; proto_tree *tipc_tree, *tipc_data_tree; int offset = 0; guint32 srcport, destport = 0, dword; guint8 version; guint32 msg_size; guint8 hdr_size; guint8 user; gchar *addr...
static int dissect_tipc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { proto_item *ti, *item; proto_tree *tipc_tree, *tipc_data_tree; int offset = 0; guint32 srcport, destport = 0, dword; guint8 version; guint32 msg_size; guint8 hdr_size; guint8 user; gchar *addr...
static int dissect_tipc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { proto_item *ti, *item; proto_tree *tipc_tree, *tipc_data_tree; int offset = 0; guint32 srcport, destport = 0, dword; guint8 version; guint32 msg_size; guint8 hdr_size; guint8 user; gchar *addr...
static int dissect_tipc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { int offset = 0; guint32 srcport, destport = 0, dword; gboolean datatype_hdr = FALSE; guint8 msg_type = 0; col_set_str(pinfo->cinfo, COL_PROTOCOL, "TIPC"); col_clear(pinfo->cinfo, COL_FO); dword = tvb_...
static int dissect_tipc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { int offset = 0; guint32 srcport, destport = 0, dword; gboolean datatype_hdr = FALSE; guint8 msg_type = 0; col_set_str(pinfo->cinfo, COL_PROTOCOL, "TIPC"); col_clear(pinfo->cinfo, COL_FO); dword = tvb_...
static int dissect_tipc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int offset = 0; guint32 srcport, destport = 0, dword; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ gboolean datatype_hdr = FALSE; guint8 msg_type = 0; co...
static int dissect_tipc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int offset = 0; guint32 srcport, destport = 0, dword; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ gboolean datatype_hdr = FALSE; guint8 msg_type = 0; co...
static int dissect_tipc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { int offset = 0; guint32 srcport, destport = 0, dword; gboolean datatype_hdr = FALSE; guint8 msg_type = 0; col_set_str(pinfo->cinfo, COL_PROTOCOL, "TIPC"); col_clear(pinfo->cinfo, COL_FO); dwor...
CVE-2023-0412
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-tipc.c
proto_register_tipc
void proto_register_tipc(void) { static hf_register_info hf[] = { { &hf_tipc_msg_fragments, { "Message fragments", "tipc.msg.fragments", FT_NONE, BASE_NONE, NULL, 0x00, NULL, HFILL } }, { &hf_tipc_msg_fragment, { "Message fragment",...
void proto_register_tipc(void) { static hf_register_info hf[] = { { &hf_tipc_msg_fragments, { "Message fragments", "tipc.msg.fragments", FT_NONE, BASE_NONE, NULL, 0x00, NULL, HFILL } }, { &hf_tipc_msg_fragment, { "Message fragment",...
void proto_register_tipc(void) { static hf_register_info hf[] = { { &hf_tipc_msg_fragments, { "Message fragments", "tipc.msg.fragments", FT_NONE, BASE_NONE, NULL, 0x00, NULL, HFILL } }, { &hf_tipc_msg_fragment, { "Message fragment",...
void proto_register_tipc(void) { static hf_register_info hf[] = { { &hf_tipc_msg_fragments, { "Message fragments", "tipc.msg.fragments", FT_NONE, BASE_NONE, NULL, 0x00, NULL, HFILL } }, { &hf_tipc_msg_fragment, { "Message fragment",...
void proto_register_tipc(void) { static gint *ett[] = { &ett_tipc, &ett_tipc_data, &ett_tipc_msg_fragment, &ett_tipc_msg_fragments }; static ei_register_info ei[] = { { &ei_tipc_field_not_specified, { "tipc.field_not_specified", PI_PROTOCOL, PI_WARN, "This field is not specified in TIPC v7",...
void proto_register_tipc(void) { static gint *ett[] = { &ett_tipc, &ett_tipc_data, &ett_tipc_msg_fragment, &ett_tipc_msg_fragments }; static ei_register_info ei[] = { { &ei_tipc_field_not_specified, { "tipc.field_not_specified", PI_PROTOCOL, PI_WARN, "This field is not specified in TIPC v7",...
void proto_register_tipc(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static gint *ett[] = { &ett_tipc, &ett_tipc_data, &ett_tipc_msg_fragment, &ett_tipc_msg_fragments }; static ei_register_info ei[] = { { &ei_tipc_field_not_specified, { "tipc.field_not_specified", PI_PROTOCOL, ...
void proto_register_tipc(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static gint *ett[] = { &ett_tipc, &ett_tipc_data, &ett_tipc_msg_fragment, &ett_tipc_msg_fragments }; static ei_register_info ei[] = { { &ei_tipc_field_not_specified, { "tipc.field_not_specified", PI_PROTOCOL, ...
void proto_register_tipc(void) { static gint *ett[] = { &ett_tipc, &ett_tipc_data, &ett_tipc_msg_fragment, &ett_tipc_msg_fragments }; static ei_register_info ei[] = { - { &ei_tipc_field_not_specified, { "tipc.field_not_specified", PI_PROTOCOL, PI_WARN, "This field is not specified in TIP...
CVE-2023-0413
Wireshark
https://github.com/wireshark/wireshark
epan/conversation.c
conversation_set_addr2
void conversation_set_addr2(conversation_t *conv, const address *addr) { char* addr_str; DISSECTOR_ASSERT_HT(!(conv->options & CONVERSATION_TEMPLATE), "Use the conversation_create_from_template function when the CONVERSATION_TEMPLATE bit is set in the options mask"); addr_str = address_to_str(NULL, addr); ...
void conversation_set_addr2(conversation_t *conv, const address *addr) { char* addr_str; DISSECTOR_ASSERT_HT(!(conv->options & CONVERSATION_TEMPLATE), "Use the conversation_create_from_template function when the CONVERSATION_TEMPLATE bit is set in the options mask"); addr_str = address_to_str(NULL, addr); ...
void conversation_set_addr2(conversation_t *conv, const address *addr) { char* addr_str; DISSECTOR_ASSERT_HT(!(conv->options & CONVERSATION_TEMPLATE), "Use the conversation_create_from_template function when the CONVERSATION_TEMPLATE bit is set in the options mask"); addr_str = address_to_str(NULL, addr); ...
void conversation_set_addr2(conversation_t *conv, const address *addr) { char* addr_str; DISSECTOR_ASSERT_HT(!(conv->options & CONVERSATION_TEMPLATE), "Use the conversation_create_from_template function when the CONVERSATION_TEMPLATE bit is set in the options mask"); addr_str = address_to_str(NULL, addr); ...
void conversation_set_addr2(conversation_t *conv, const address *addr) { if (conv->options & NO_PORT2) { } else { conversation_remove_from_hashtable(conversation_hashtable_no_port2, conv); } conv->options &= ~NO_ADDR2; if (conv->options & NO_PORT2) { hashtable = conversation_hashtabl...
void conversation_set_addr2(conversation_t *conv, const address *addr) { if (conv->options & NO_PORT2) { } else { conversation_remove_from_hashtable(conversation_hashtable_no_addr2, conv); } conv->options &= ~NO_ADDR2; if (conv->options & NO_PORT2) { hashtable = conversation_hashtabl...
void conversation_set_addr2(conversation_t *conv, const address *addr) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (conv->options & NO_PORT2) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else { conversation_remove_from_hashtable(conversation_hashtable_no_port2, conv); } conv-...
void conversation_set_addr2(conversation_t *conv, const address *addr) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (conv->options & NO_PORT2) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else { conversation_remove_from_hashtable(conversation_hashtable_no_addr2, conv); } conv-...
void conversation_set_addr2(conversation_t *conv, const address *addr) { if (conv->options & NO_PORT2) { } else { - conversation_remove_from_hashtable(conversation_hashtable_no_port2, conv); + conversation_remove_from_hashtable(conversation_hashtable_no_addr2, conv); } conv->options &...
CVE-2023-0414
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-eap.c
dissect_eap
static int dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { guint8 eap_code; guint8 eap_identifier; guint16 eap_len; guint8 eap_type; gint len; conversation_t *conversation = NULL; conv_state_t *conversation_state = NULL; frame_state_t *packet_state; in...
static int dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { guint8 eap_code; guint8 eap_identifier; guint16 eap_len; guint8 eap_type; gint len; conversation_t *conversation = NULL; conv_state_t *conversation_state = NULL; frame_state_t *packet_state; in...
static int dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { guint8 eap_code; guint8 eap_identifier; guint16 eap_len; guint8 eap_type; gint len; conversation_t *conversation = NULL; conv_state_t *conversation_state = NULL; frame_state_t *packet_state; in...
static int dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { guint8 eap_code; guint8 eap_identifier; guint16 eap_len; guint8 eap_type; gint len; conversation_t *conversation = NULL; conv_state_t *conversation_state = NULL; frame_state_t *packet_state; in...
static int dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { conversation_t *conversation = NULL; static address null_address = ADDRESS_IT_NONE; static address pae_group_address = ADDRESS_IT(AT_ETHER, sizeof(pae_group_address_mac_addr), pae_group_address_mac_addr); packet_i...
static int dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { conversation_t *conversation = NULL; static address null_address = ADDRESS_IT_NONE; static address pae_group_address = ADDRESS_IT(AT_ETHER, sizeof(pae_group_address_mac_addr), pae_group_address_mac_addr); col_set_...
static int dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ conversation_t *conversation = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static address null_address = ADDRESS_IT_NONE; /* PLACEHOLDER: DO NOT DELETE THI...
static int dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ conversation_t *conversation = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static address null_address = ADDRESS_IT_NONE; /* PLACEHOLDER: DO NOT DELETE THI...
static int dissect_eap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { conversation_t *conversation = NULL; static address null_address = ADDRESS_IT_NONE; static address pae_group_address = ADDRESS_IT(AT_ETHER, sizeof(pae_group_address_mac_addr), pae_group_address_mac_addr); - pac...
CVE-2023-0415
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-iscsi.c
dissect_iscsi
static int dissect_iscsi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean check_port) { guint offset = 0; guint32 available_bytes = tvb_captured_length(tvb); int digestsActive = 1; conversation_t *conversation = NULL; iscsi_session_t *iscsi_session=NULL; guint8 opcode, tmpbyte; ...
static int dissect_iscsi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean check_port) { guint offset = 0; guint32 available_bytes = tvb_captured_length(tvb); int digestsActive = 1; conversation_t *conversation = NULL; iscsi_session_t *iscsi_session=NULL; guint8 opcode, tmpbyte; ...
static int dissect_iscsi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean check_port) { guint offset = 0; guint32 available_bytes = tvb_captured_length(tvb); int digestsActive = 1; conversation_t *conversation = NULL; iscsi_session_t *iscsi_session=NULL; guint8 opcode, tmpbyte; ...
static int dissect_iscsi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean check_port) { guint offset = 0; guint32 available_bytes = tvb_captured_length(tvb); int digestsActive = 1; conversation_t *conversation = NULL; iscsi_session_t *iscsi_session=NULL; guint8 opcode, tmpbyte; ...
static int dissect_iscsi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean check_port) { guint offset = 0; guint32 available_bytes = tvb_captured_length(tvb); int digestsActive = 1; if (available_bytes < 48) { return -1; } opcode = tvb_get_guint8(tvb, offset + 0); switch(...
static int dissect_iscsi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean check_port) { guint offset = 0; guint32 available_bytes = tvb_captured_length(tvb); int digestsActive = 1; if (available_bytes < 48) { return -1; } opcode = tvb_get_guint8(tvb, offset + 0); switch(...
static int dissect_iscsi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean check_port) { guint offset = 0; guint32 available_bytes = tvb_captured_length(tvb); int digestsActive = 1; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (available_bytes < 48) { /* PLACEHOLDER: DO NOT DELET...
static int dissect_iscsi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean check_port) { guint offset = 0; guint32 available_bytes = tvb_captured_length(tvb); int digestsActive = 1; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (available_bytes < 48) { /* PLACEHOLDER: DO NOT DELET...
static int dissect_iscsi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean check_port) { guint offset = 0; guint32 available_bytes = tvb_captured_length(tvb); int digestsActive = 1; if (available_bytes < 48) { return -1; } opcode = tvb_get_guint8(tvb, offset + 0); ...
CVE-2023-0415
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-iscsi.c
dissect_iscsi_pdu
static void dissect_iscsi_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, guint8 opcode, const char *opcode_str, guint32 data_segment_len, iscsi_session_t *iscsi_session, conversation_t *conversation) { guint original_offset = offset; proto_tree *ti = NULL; ...
static void dissect_iscsi_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, guint8 opcode, guint32 data_segment_len, iscsi_session_t *iscsi_session, conversation_t *conversation) { guint original_offset = offset; proto_tree *ti = NULL, *opcode_item = NULL; ...
static void dissect_iscsi_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, guint8 opcode, const char *opcode_str, guint32 data_segment_len, iscsi_session_t *iscsi_session, conversation_t *conversation) { guint original_offset = offset; proto_tree *ti = NULL; ...
static void dissect_iscsi_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, guint8 opcode, guint32 data_segment_len, iscsi_session_t *iscsi_session, conversation_t *conversation) { guint original_offset = offset; proto_tree *ti = NULL, *opcode_item = NULL; ...
static void dissect_iscsi_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, guint8 opcode, const char *opcode_str, guint32 data_segment_len, iscsi_session_t *iscsi_session, conversation_t *conversation) { guint original_offset = offset; proto_tree *ti = NULL; ...
static void dissect_iscsi_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, guint8 opcode, guint32 data_segment_len, iscsi_session_t *iscsi_session, conversation_t *conversation) { guint original_offset = offset; proto_tree *ti = NULL, *opcode_item = NULL; ...
static void dissect_iscsi_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, guint8 opcode, const char *opcode_str, guint32 data_segment_len, iscsi_session_t *iscsi_session, conversation_t *conversation) { guint original_offset = offset; proto_tree *ti = NULL; ...
static void dissect_iscsi_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, guint8 opcode, guint32 data_segment_len, iscsi_session_t *iscsi_session, conversation_t *conversation) { guint original_offset = offset; proto_tree *ti = NULL, *opcode_item = NULL; ...
-static void dissect_iscsi_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, guint8 opcode, const char *opcode_str, guint32 data_segment_len, iscsi_session_t *iscsi_session, +static void dissect_iscsi_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, guint8 opcode, guint32 data...
CVE-2023-0415
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-iscsi.c
proto_register_iscsi
void proto_register_iscsi(void) { module_t *iscsi_module; expert_module_t* expert_iscsi; static hf_register_info hf[] = { { &hf_iscsi_request_frame, { "Request in", "iscsi.request_frame", FT_FRAMENUM, BASE_NONE, NULL, 0, "The request to this transaction is in this frame",...
void proto_register_iscsi(void) { module_t *iscsi_module; expert_module_t* expert_iscsi; static hf_register_info hf[] = { { &hf_iscsi_request_frame, { "Request in", "iscsi.request_frame", FT_FRAMENUM, BASE_NONE, NULL, 0, "The request to this transaction is in this frame",...
void proto_register_iscsi(void) { module_t *iscsi_module; expert_module_t* expert_iscsi; static hf_register_info hf[] = { { &hf_iscsi_request_frame, { "Request in", "iscsi.request_frame", FT_FRAMENUM, BASE_NONE, NULL, 0, "The request to this transaction is in this frame",...
void proto_register_iscsi(void) { module_t *iscsi_module; expert_module_t* expert_iscsi; static hf_register_info hf[] = { { &hf_iscsi_request_frame, { "Request in", "iscsi.request_frame", FT_FRAMENUM, BASE_NONE, NULL, 0, "The request to this transaction is in this frame",...
void proto_register_iscsi(void) { static hf_register_info hf[] = { { &hf_iscsi_request_frame, { "Request in", "iscsi.request_frame", FT_FRAMENUM, BASE_NONE, NULL, 0, "The request to this transaction is in this frame", HFILL } }, { &hf_iscsi_time, {...
void proto_register_iscsi(void) { static hf_register_info hf[] = { { &hf_iscsi_request_frame, { "Request in", "iscsi.request_frame", FT_FRAMENUM, BASE_NONE, NULL, 0, "The request to this transaction is in this frame", HFILL } }, { &hf_iscsi_time, {...
void proto_register_iscsi(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static hf_register_info hf[] = { { &hf_iscsi_request_frame, { "Request in", "iscsi.request_frame", FT_FRAMENUM, BASE_NONE, NULL, 0, "The request to this transaction is in this frame", HFILL ...
void proto_register_iscsi(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static hf_register_info hf[] = { { &hf_iscsi_request_frame, { "Request in", "iscsi.request_frame", FT_FRAMENUM, BASE_NONE, NULL, 0, "The request to this transaction is in this frame", HFILL ...
void proto_register_iscsi(void) { static hf_register_info hf[] = { { &hf_iscsi_request_frame, { "Request in", "iscsi.request_frame", FT_FRAMENUM, BASE_NONE, NULL, 0, "The request to this transaction is in this frame", HFILL } }, { &hf_iscsi...
CVE-2023-0416
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-geonw.c
dissect_geonw
static int dissect_geonw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { guint8 bh_next_header; guint32 ch_next_header; guint32 header_type; guint32 rhl; guint32 tmp_val; gint offset = 0; proto_item *ti; proto_item *top_item; gint hdr_len = 0; guint32 payload_...
static int dissect_geonw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { guint8 bh_next_header; guint32 ch_next_header; guint32 header_type; guint32 rhl; guint32 tmp_val; gint offset = 0; proto_item *ti; proto_item *top_item; gint hdr_len = 0; guint32 payload_...
static int dissect_geonw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { guint8 bh_next_header; guint32 ch_next_header; guint32 header_type; guint32 rhl; guint32 tmp_val; gint offset = 0; proto_item *ti; proto_item *top_item; gint hdr_len = 0; guint32 payload_...
static int dissect_geonw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { guint8 bh_next_header; guint32 ch_next_header; guint32 header_type; guint32 rhl; guint32 tmp_val; gint offset = 0; proto_item *ti; proto_item *top_item; gint hdr_len = 0; guint32 payload_...
static int dissect_geonw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { gint offset = 0; bh_next_header = tvb_get_guint8(tvb, 0) & 0x0f; header_type = tvb_get_guint8(tvb, 5); if (bh_next_header == BH_NH_SECURED_PKT) { hdr_len = BH_LEN; } else { hdr_len = BH_LEN +...
static int dissect_geonw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { gint offset = 0; bh_next_header = tvb_get_guint8(tvb, 0) & 0x0f; header_type = tvb_get_guint8(tvb, 5); if (bh_next_header == BH_NH_SECURED_PKT) { hdr_len = BH_LEN; } else { hdr_len = BH_LEN +...
static int dissect_geonw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ gint offset = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ bh_next_header = tvb_get_guint8(tvb, 0) & 0x0f; header_type = tvb_get_guint8(tvb, 5); if (bh_n...
static int dissect_geonw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ gint offset = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ bh_next_header = tvb_get_guint8(tvb, 0) & 0x0f; header_type = tvb_get_guint8(tvb, 5); if (bh_n...
static int dissect_geonw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { gint offset = 0; bh_next_header = tvb_get_guint8(tvb, 0) & 0x0f; header_type = tvb_get_guint8(tvb, 5); if (bh_next_header == BH_NH_SECURED_PKT) { hdr_len = BH_LEN; } else { hdr_len = ...
CVE-2023-0416
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-geonw.c
dissect_sec_payload
static int dissect_sec_payload(tvbuff_t *tvb, gint *offset, packet_info *pinfo, proto_tree *part_tree) { gint start = *offset; guint32 tmp_val; guint32 param_len; proto_tree *field_tree; proto_item *ti; tmp_val = tvb_get_guint8(tvb, *offset); if (tmp_val == signed_external) { proto_t...
static int dissect_sec_payload(tvbuff_t *tvb, gint *offset, packet_info *pinfo, proto_tree *part_tree) { gint start = *offset; guint32 tmp_val; guint32 param_len; proto_tree *field_tree; proto_item *ti; tmp_val = tvb_get_guint8(tvb, *offset); if (tmp_val == signed_external) { proto_t...
static int dissect_sec_payload(tvbuff_t *tvb, gint *offset, packet_info *pinfo, proto_tree *part_tree) { gint start = *offset; guint32 tmp_val; guint32 param_len; proto_tree *field_tree; proto_item *ti; tmp_val = tvb_get_guint8(tvb, *offset); if (tmp_val == signed_external) { proto_t...
static int dissect_sec_payload(tvbuff_t *tvb, gint *offset, packet_info *pinfo, proto_tree *part_tree) { gint start = *offset; guint32 tmp_val; guint32 param_len; proto_tree *field_tree; proto_item *ti; tmp_val = tvb_get_guint8(tvb, *offset); if (tmp_val == signed_external) { proto_t...
static int dissect_sec_payload(tvbuff_t *tvb, gint *offset, packet_info *pinfo, proto_tree *part_tree) { tmp_val = tvb_get_guint8(tvb, *offset); if (tmp_val == signed_external) { } else { ti = proto_tree_add_item(part_tree, hf_sgeonw_payload_field, tvb, *offset, 0, ENC_NA); field_tree = prot...
static int dissect_sec_payload(tvbuff_t *tvb, gint *offset, packet_info *pinfo, proto_tree *part_tree) { tmp_val = tvb_get_guint8(tvb, *offset); if (tmp_val == signed_external) { } else { ti = proto_tree_add_item(part_tree, hf_sgeonw_payload_field, tvb, *offset, 0, ENC_NA); field_tree = prot...
static int dissect_sec_payload(tvbuff_t *tvb, gint *offset, packet_info *pinfo, proto_tree *part_tree) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ tmp_val = tvb_get_guint8(tvb, *offset); if (tmp_val == signed_external) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else { ti = proto_t...
static int dissect_sec_payload(tvbuff_t *tvb, gint *offset, packet_info *pinfo, proto_tree *part_tree) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ tmp_val = tvb_get_guint8(tvb, *offset); if (tmp_val == signed_external) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else { ti = proto_t...
static int dissect_sec_payload(tvbuff_t *tvb, gint *offset, packet_info *pinfo, proto_tree *part_tree) { tmp_val = tvb_get_guint8(tvb, *offset); if (tmp_val == signed_external) { } else { ti = proto_tree_add_item(part_tree, hf_sgeonw_payload_field, tvb, *offset, 0, ENC_NA); field_tree ...
CVE-2023-0416
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-geonw.c
dissect_sgeonw
static int dissect_sgeonw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { p_add_proto_data(wmem_file_scope(), pinfo, proto_geonw, 0, tvb); return tvb_reported_length(tvb); }
static int dissect_sgeonw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { p_add_proto_data(pinfo->pool, pinfo, proto_geonw, SEC_TVB_KEY, tvb); return tvb_reported_length(tvb); }
static int dissect_sgeonw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { p_add_proto_data(wmem_file_scope(), pinfo, proto_geonw, 0, tvb); return tvb_reported_length(tvb); }
static int dissect_sgeonw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { p_add_proto_data(pinfo->pool, pinfo, proto_geonw, SEC_TVB_KEY, tvb); return tvb_reported_length(tvb); }
static int dissect_sgeonw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { p_add_proto_data(wmem_file_scope(), pinfo, proto_geonw, 0, tvb); return tvb_reported_length(tvb); }
static int dissect_sgeonw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { p_add_proto_data(pinfo->pool, pinfo, proto_geonw, SEC_TVB_KEY, tvb); return tvb_reported_length(tvb); }
static int dissect_sgeonw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { p_add_proto_data(wmem_file_scope(), pinfo, proto_geonw, 0, tvb); return tvb_reported_length(tvb); }
static int dissect_sgeonw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { p_add_proto_data(pinfo->pool, pinfo, proto_geonw, SEC_TVB_KEY, tvb); return tvb_reported_length(tvb); }
static int dissect_sgeonw(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { - p_add_proto_data(wmem_file_scope(), pinfo, proto_geonw, 0, tvb); + p_add_proto_data(pinfo->pool, pinfo, proto_geonw, SEC_TVB_KEY, tvb); return tvb_reported_length(tvb); }
CVE-2023-0417
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-nfs.c
dissect_nfs4_dirlist
static int dissect_nfs4_dirlist(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, rpc_call_info_value *civ) { guint32 val_follows; guint32 name_len; char *name; proto_tree *dirlist_tree; proto_item *eitem; proto_tree *entry_tree; dirlist_tree = proto_tree_add_subtree(tree, tvb...
static int dissect_nfs4_dirlist(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, rpc_call_info_value *civ) { guint32 val_follows; guint32 name_len; char *name; proto_tree *dirlist_tree; proto_item *eitem; proto_tree *entry_tree; dirlist_tree = proto_tree_add_subtree(tree, tvb...
static int dissect_nfs4_dirlist(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, rpc_call_info_value *civ) { guint32 val_follows; guint32 name_len; char *name; proto_tree *dirlist_tree; proto_item *eitem; proto_tree *entry_tree; dirlist_tree = proto_tree_add_subtree(tree, tvb...
static int dissect_nfs4_dirlist(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, rpc_call_info_value *civ) { guint32 val_follows; guint32 name_len; char *name; proto_tree *dirlist_tree; proto_item *eitem; proto_tree *entry_tree; dirlist_tree = proto_tree_add_subtree(tree, tvb...
static int dissect_nfs4_dirlist(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, rpc_call_info_value *civ) { dirlist_tree = proto_tree_add_subtree(tree, tvb, offset, 0, ett_nfs4_dirlist, NULL, "Directory Listing"); while (1) { val_follows = tvb_get_ntohl(tvb, offset); if (val_fol...
static int dissect_nfs4_dirlist(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, rpc_call_info_value *civ) { dirlist_tree = proto_tree_add_subtree(tree, tvb, offset, 0, ett_nfs4_dirlist, NULL, "Directory Listing"); while (1) { val_follows = tvb_get_ntohl(tvb, offset); if (val_fol...
static int dissect_nfs4_dirlist(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, rpc_call_info_value *civ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ dirlist_tree = proto_tree_add_subtree(tree, tvb, offset, 0, ett_nfs4_dirlist, NULL, "Directory Listing"); while (1) { val_follows...
static int dissect_nfs4_dirlist(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, rpc_call_info_value *civ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ dirlist_tree = proto_tree_add_subtree(tree, tvb, offset, 0, ett_nfs4_dirlist, NULL, "Directory Listing"); while (1) { val_follows...
static int dissect_nfs4_dirlist(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, rpc_call_info_value *civ) { dirlist_tree = proto_tree_add_subtree(tree, tvb, offset, 0, ett_nfs4_dirlist, NULL, "Directory Listing"); while (1) { val_follows = tvb_get_ntohl(tvb, offset); if (va...
CVE-2023-0465
OpenSSL
https://github.com/openssl/openssl
crypto/x509/x509_vfy.c
check_policy
static int check_policy(X509_STORE_CTX *ctx) { int ret; if (ctx->parent) { return 1; } if (ctx->bare_ta_signed && !sk_X509_push(ctx->chain, NULL)) { ERR_raise(ERR_LIB_X509, ERR_R_CRYPTO_LIB); goto memerr; } ret = X509_policy_check(&ctx->tree, &ctx->explicit_policy, ctx->c...
static int check_policy(X509_STORE_CTX *ctx) { int ret; if (ctx->parent) { return 1; } if (ctx->bare_ta_signed && !sk_X509_push(ctx->chain, NULL)) { ERR_raise(ERR_LIB_X509, ERR_R_CRYPTO_LIB); goto memerr; } ret = X509_policy_check(&ctx->tree, &ctx->explicit_policy, ctx->c...
static int check_policy(X509_STORE_CTX *ctx) { int ret; if (ctx->parent) { return 1; } if (ctx->bare_ta_signed && !sk_X509_push(ctx->chain, NULL)) { X509err(X509_F_CHECK_POLICY, ERR_R_MALLOC_FAILURE); ctx->error = X509_V_ERR__OF_MEM; return 0; } ret = X509_policy_...
static int check_policy(X509_STORE_CTX *ctx) { int ret; if (ctx->parent) { return 1; } if (ctx->bare_ta_signed && !sk_X509_push(ctx->chain, NULL)) { X509err(X509_F_CHECK_POLICY, ERR_R_MALLOC_FAILURE); ctx->error = X509_V_ERR__OF_MEM; return 0; } ret = X509_policy_...
static int check_policy(X509_STORE_CTX *ctx) { if (ctx->bare_ta_signed && !sk_X509_push(ctx->chain, NULL)) { goto memerr; } ret = X509_policy_check(&ctx->tree, &ctx->explicit_policy, ctx->chain, ctx->param->policies, ctx->param->flags); if (ctx->bare_ta_signed) { (void)sk_X509_pop(ctx->c...
static int check_policy(X509_STORE_CTX *ctx) { if (ctx->bare_ta_signed && !sk_X509_push(ctx->chain, NULL)) { goto memerr; } ret = X509_policy_check(&ctx->tree, &ctx->explicit_policy, ctx->chain, ctx->param->policies, ctx->param->flags); if (ctx->bare_ta_signed) { (void)sk_X509_pop(ctx->c...
static int check_policy(X509_STORE_CTX *ctx) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ctx->bare_ta_signed && !sk_X509_push(ctx->chain, NULL)) { X509err(X509_F_CHECK_POLICY, ERR_R_MALLOC_FAILURE); ctx->error = X509_V_ERR__OF_MEM; return 0; } ret = X509_policy_check(&ctx...
static int check_policy(X509_STORE_CTX *ctx) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ctx->bare_ta_signed && !sk_X509_push(ctx->chain, NULL)) { X509err(X509_F_CHECK_POLICY, ERR_R_MALLOC_FAILURE); ctx->error = X509_V_ERR__OF_MEM; return 0; } ret = X509_policy_check(&ctx...
static int check_policy(X509_STORE_CTX *ctx) { if (ctx->bare_ta_signed && !sk_X509_push(ctx->chain, NULL)) { goto memerr; } ret = X509_policy_check(&ctx->tree, &ctx->explicit_policy, ctx->chain, ctx->param->policies, ctx->param->flags); if (ctx->bare_ta_signed) { (void)sk_X509_pop...
CVE-2023-0666
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-rtps.c
rtps_util_add_type_library_type
static gint rtps_util_add_type_library_type(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, dissection_info *info) { proto_tree * annotation_tree; guint32 member_id = 0, member_length = 0, long_number, i; gint offset_tmp; guint16 short_number; gchar * name = NULL; rtps_util_...
static gint rtps_util_add_type_library_type(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, dissection_info *info) { proto_tree * annotation_tree; guint32 member_id = 0, member_length = 0, long_number, i; gint offset_tmp; guint16 short_number; gchar * name = NULL; rtps_util_...
static gint rtps_util_add_type_library_type(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, dissection_info *info) { proto_tree * annotation_tree; guint32 member_id = 0, member_length = 0, long_number, i; gint offset_tmp; guint16 short_number; gchar * name = NULL; rtps_util_...
static gint rtps_util_add_type_library_type(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, dissection_info *info) { proto_tree * annotation_tree; guint32 member_id = 0, member_length = 0, long_number, i; gint offset_tmp; guint16 short_number; gchar * name = NULL; rtps_util_...
static gint rtps_util_add_type_library_type(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, dissection_info *info) { guint32 member_id = 0, member_length = 0, long_number, i; rtps_util_dissect_parameter_header(tvb, &offset, encoding, &member_id, &member_length); offset_tmp = offset; ...
static gint rtps_util_add_type_library_type(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, dissection_info *info) { guint32 member_id = 0, member_length = 0, long_number, i; rtps_util_dissect_parameter_header(tvb, &offset, encoding, &member_id, &member_length); offset_tmp = offset; ...
static gint rtps_util_add_type_library_type(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, dissection_info *info) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint32 member_id = 0, member_length = 0, long_number, i; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ rtps_util_dissec...
static gint rtps_util_add_type_library_type(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, dissection_info *info) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint32 member_id = 0, member_length = 0, long_number, i; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ rtps_util_dissec...
static gint rtps_util_add_type_library_type(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, dissection_info *info) { guint32 member_id = 0, member_length = 0, long_number, i; rtps_util_dissect_parameter_header(tvb, &offset, encoding, &member_id, &member_length); offset_tmp = offset;...
CVE-2023-0666
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-rtps.c
rtps_util_add_type_member
static gint rtps_util_add_type_member(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, dissection_info * info, dissection_element * member_object) { proto_tree * member_property, *annotation_tree; guint32 member_id = 0, member_length = 0; guint32 long_number, i; guint16 short_number;...
static gint rtps_util_add_type_member(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, dissection_info * info, dissection_element * member_object) { proto_tree * member_property, *annotation_tree; guint32 member_id = 0, member_length = 0; guint32 long_number, i; guint16 short_number;...
static gint rtps_util_add_type_member(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, dissection_info * info, dissection_element * member_object) { proto_tree * member_property, *annotation_tree; guint32 member_id = 0, member_length = 0; guint32 long_number, i; guint16 short_number;...
static gint rtps_util_add_type_member(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, dissection_info * info, dissection_element * member_object) { proto_tree * member_property, *annotation_tree; guint32 member_id = 0, member_length = 0; guint32 long_number, i; guint16 short_number;...
static gint rtps_util_add_type_member(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, dissection_info * info, dissection_element * member_object) { guint32 member_id = 0, member_length = 0; member_property = proto_tree_add_subtree(tree, tvb, offset, 0, ett_rtps_type_element, NULL, "Member P...
static gint rtps_util_add_type_member(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, dissection_info * info, dissection_element * member_object) { guint32 member_id = 0, member_length = 0; member_property = proto_tree_add_subtree(tree, tvb, offset, 0, ett_rtps_type_element, NULL, "Member P...
static gint rtps_util_add_type_member(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, dissection_info * info, dissection_element * member_object) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint32 member_id = 0, member_length = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ m...
static gint rtps_util_add_type_member(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, dissection_info * info, dissection_element * member_object) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint32 member_id = 0, member_length = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ m...
static gint rtps_util_add_type_member(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, dissection_info * info, dissection_element * member_object) { guint32 member_id = 0, member_length = 0; member_property = proto_tree_add_subtree(tree, tvb, offset, 0, ett_rtps_type_element, NULL, "Membe...
CVE-2023-0666
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-rtps.c
rtps_util_add_type_union_member
static gint rtps_util_add_type_union_member(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, guint64 union_type_id, gboolean is_discriminator, dissection_info * info ) { proto_tree * labels; gint long_number, i; gint offset_tmp; guint32 member_id = 0, member_length = 0; dissectio...
static gint rtps_util_add_type_union_member(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, guint64 union_type_id, gboolean is_discriminator, dissection_info * info ) { proto_tree * labels; gint long_number, i; gint offset_tmp; guint32 member_id = 0, member_length = 0; dissectio...
static gint rtps_util_add_type_union_member(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, guint64 union_type_id, gboolean is_discriminator, dissection_info * info ) { proto_tree * labels; gint long_number, i; gint offset_tmp; guint32 member_id = 0, member_length = 0; dissectio...
static gint rtps_util_add_type_union_member(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, guint64 union_type_id, gboolean is_discriminator, dissection_info * info ) { proto_tree * labels; gint long_number, i; gint offset_tmp; guint32 member_id = 0, member_length = 0; dissectio...
static gint rtps_util_add_type_union_member(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, guint64 union_type_id, gboolean is_discriminator, dissection_info * info ) { if ((object.flags & 8) == 8) { mapping = wmem_new(wmem_file_scope(), union_member_mapping); (void) g_strlcpy(m...
static gint rtps_util_add_type_union_member(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, guint64 union_type_id, gboolean is_discriminator, dissection_info * info ) { if ((object.flags & 8) == 8) { mapping = wmem_new(wmem_file_scope(), union_member_mapping); (void) g_strlcpy(m...
static gint rtps_util_add_type_union_member(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, guint64 union_type_id, gboolean is_discriminator, dissection_info * info ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if ((object.flags & 8) == 8) { /* PLACEHOLDER: DO NOT DELETE THIS COMMEN...
static gint rtps_util_add_type_union_member(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, guint64 union_type_id, gboolean is_discriminator, dissection_info * info ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if ((object.flags & 8) == 8) { /* PLACEHOLDER: DO NOT DELETE THIS COMMEN...
static gint rtps_util_add_type_union_member(proto_tree *tree, tvbuff_t * tvb, gint offset, const guint encoding, guint64 union_type_id, gboolean is_discriminator, dissection_info * info ) { if ((object.flags & 8) == 8) { mapping = wmem_new(wmem_file_scope(), union_member_mapping); - (void) g_strlc...
CVE-2023-0666
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-rtps.c
rtps_util_add_typecode
static gint rtps_util_add_typecode(proto_tree *tree, tvbuff_t *tvb, gint offset, const guint encoding, int indent_level, int is_pointer, guint16 bitfield, int is_key, const gint offset_begin, char *name, int seq_max_len, guint32 *arr_dimension, int ndds_40_hack) { const gint origi...
static gint rtps_util_add_typecode(proto_tree *tree, tvbuff_t *tvb, gint offset, const guint encoding, int indent_level, int is_pointer, guint16 bitfield, int is_key, const gint offset_begin, char *name, int seq_max_len, guint32 *arr_dimension, int ndds_40_hack) { const gint origi...
static gint rtps_util_add_typecode(proto_tree *tree, tvbuff_t *tvb, gint offset, const guint encoding, int indent_level, int is_pointer, guint16 bitfield, int is_key, const gint offset_begin, char *name, int seq_max_len, guint32 *arr_dimension, int ndds_40_hack) { const gint origi...
static gint rtps_util_add_typecode(proto_tree *tree, tvbuff_t *tvb, gint offset, const guint encoding, int indent_level, int is_pointer, guint16 bitfield, int is_key, const gint offset_begin, char *name, int seq_max_len, guint32 *arr_dimension, int ndds_40_hack) { const gint origi...
static gint rtps_util_add_typecode(proto_tree *tree, tvbuff_t *tvb, gint offset, const guint encoding, int indent_level, int is_pointer, guint16 bitfield, int is_key, const gint offset_begin, char *name, int seq_max_len, guint32 *arr_dimension, int ndds_40_hack) { LONG_ALIGN(offse...
static gint rtps_util_add_typecode(proto_tree *tree, tvbuff_t *tvb, gint offset, const guint encoding, int indent_level, int is_pointer, guint16 bitfield, int is_key, const gint offset_begin, char *name, int seq_max_len, guint32 *arr_dimension, int ndds_40_hack) { LONG_ALIGN(offse...
static gint rtps_util_add_typecode(proto_tree *tree, tvbuff_t *tvb, gint offset, const guint encoding, int indent_level, int is_pointer, guint16 bitfield, int is_key, const gint offset_begin, char *name, int seq_max_len, guint32 *arr_dimension, int ndds_40_hack) { /* PLACEHOLDER: ...
static gint rtps_util_add_typecode(proto_tree *tree, tvbuff_t *tvb, gint offset, const guint encoding, int indent_level, int is_pointer, guint16 bitfield, int is_key, const gint offset_begin, char *name, int seq_max_len, guint32 *arr_dimension, int ndds_40_hack) { /* PLACEHOLDER: ...
static gint rtps_util_add_typecode(proto_tree *tree, tvbuff_t *tvb, gint offset, const guint encoding, int indent_level, int is_pointer, guint16 bitfield, int is_key, const gint offset_begin, char *name, int seq_max_len, guint32 *arr_dimension, int ndds_40_hack) { LONG_ALIGN(of...
CVE-2023-0668
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-synphasor.c
dissect_PHSCALE
static gint dissect_PHSCALE(tvbuff_t *tvb, proto_tree *tree, gint offset, gint cnt) { proto_tree *temp_tree; gint i; if (0 == cnt) { return offset; } temp_tree = proto_tree_add_subtree_format(tree, tvb, offset, 12 * cnt, ett_conf_phconv, NULL, "Phasor scaling and data flags (%u)", cnt); ...
static gint dissect_PHSCALE(tvbuff_t *tvb, proto_tree *tree, gint offset, gint cnt) { proto_tree *temp_tree; gint i; if (0 == cnt) { return offset; } temp_tree = proto_tree_add_subtree_format(tree, tvb, offset, 12 * cnt, ett_conf_phconv, NULL, "Phasor scaling and data flags (%u)", cnt); ...
static gint dissect_PHSCALE(tvbuff_t *tvb, proto_tree *tree, gint offset, gint cnt) { proto_tree *temp_tree; gint i; if (0 == cnt) { return offset; } temp_tree = proto_tree_add_subtree_format(tree, tvb, offset, 12 * cnt, ett_conf_phconv, NULL, "Phasor scaling and data flags (%u)", cnt); ...
static gint dissect_PHSCALE(tvbuff_t *tvb, proto_tree *tree, gint offset, gint cnt) { proto_tree *temp_tree; gint i; if (0 == cnt) { return offset; } temp_tree = proto_tree_add_subtree_format(tree, tvb, offset, 12 * cnt, ett_conf_phconv, NULL, "Phasor scaling and data flags (%u)", cnt); ...
static gint dissect_PHSCALE(tvbuff_t *tvb, proto_tree *tree, gint offset, gint cnt) { if (0 == cnt) { return offset; } temp_tree = proto_tree_add_subtree_format(tree, tvb, offset, 12 * cnt, ett_conf_phconv, NULL, "Phasor scaling and data flags (%u)", cnt); for (i = 0; i < cnt; i++) { sin...
static gint dissect_PHSCALE(tvbuff_t *tvb, proto_tree *tree, gint offset, gint cnt) { if (0 == cnt) { return offset; } temp_tree = proto_tree_add_subtree_format(tree, tvb, offset, 12 * cnt, ett_conf_phconv, NULL, "Phasor scaling and data flags (%u)", cnt); for (i = 0; i < cnt; i++) { sin...
static gint dissect_PHSCALE(tvbuff_t *tvb, proto_tree *tree, gint offset, gint cnt) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (0 == cnt) { return offset; } temp_tree = proto_tree_add_subtree_format(tree, tvb, offset, 12 * cnt, ett_conf_phconv, NULL, "Phasor scaling and data flags (%u)",...
static gint dissect_PHSCALE(tvbuff_t *tvb, proto_tree *tree, gint offset, gint cnt) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (0 == cnt) { return offset; } temp_tree = proto_tree_add_subtree_format(tree, tvb, offset, 12 * cnt, ett_conf_phconv, NULL, "Phasor scaling and data flags (%u)",...
static gint dissect_PHSCALE(tvbuff_t *tvb, proto_tree *tree, gint offset, gint cnt) { if (0 == cnt) { return offset; } temp_tree = proto_tree_add_subtree_format(tree, tvb, offset, 12 * cnt, ett_conf_phconv, NULL, "Phasor scaling and data flags (%u)", cnt); for (i = 0; i < cnt; i++) { ...