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-2020-26420
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-rtps.c
rtps_util_add_coherent_set_general_cases_case
static void rtps_util_add_coherent_set_general_cases_case( proto_tree *tree, tvbuff_t *tvb, guint64 coherent_seq_number, coherent_set_entity_info *coherent_set_entity_info_object) { coherent_set_entity_info *register_entry; proto_tree *marked_item_tree; coherent_set_info *coherent_set_info_entry; cohere...
static void rtps_util_add_coherent_set_general_cases_case( proto_tree *tree, tvbuff_t *tvb, guint64 coherent_seq_number, coherent_set_entity_info *coherent_set_entity_info_object) { coherent_set_entity_info *register_entry; proto_tree *marked_item_tree; coherent_set_info *coherent_set_info_entry; cohere...
void rtps_util_add_coherent_set_general_cases_case( proto_tree *tree, tvbuff_t *tvb, guint64 coherent_seq_number, coherent_set_entity_info *coherent_set_entity_info_object) { coherent_set_entity_info *register_entry; proto_tree *marked_item_tree; coherent_set_info *coherent_set_info_entry; coherent_set_...
void rtps_util_add_coherent_set_general_cases_case( proto_tree *tree, tvbuff_t *tvb, guint64 coherent_seq_number, coherent_set_entity_info *coherent_set_entity_info_object) { coherent_set_entity_info *register_entry; proto_tree *marked_item_tree; coherent_set_info *coherent_set_info_entry; coherent_set_...
static void rtps_util_add_coherent_set_general_cases_case( proto_tree *tree, tvbuff_t *tvb, guint64 coherent_seq_number, coherent_set_entity_info *coherent_set_entity_info_object) { if (!register_entry) { wmem_map_insert( coherent_set_tracking.entities_using_map, &register_entry->guid, register_entry); ...
static void rtps_util_add_coherent_set_general_cases_case( proto_tree *tree, tvbuff_t *tvb, guint64 coherent_seq_number, coherent_set_entity_info *coherent_set_entity_info_object) { if (!register_entry) { wmem_map_insert( coherent_set_tracking.entities_using_map, &register_entry->guid, register_entry); ...
void rtps_util_add_coherent_set_general_cases_case( proto_tree *tree, tvbuff_t *tvb, guint64 coherent_seq_number, coherent_set_entity_info *coherent_set_entity_info_object) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!register_entry) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ wmem_map_i...
void rtps_util_add_coherent_set_general_cases_case( proto_tree *tree, tvbuff_t *tvb, guint64 coherent_seq_number, coherent_set_entity_info *coherent_set_entity_info_object) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!register_entry) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ wmem_map_i...
static void rtps_util_add_coherent_set_general_cases_case( proto_tree *tree, tvbuff_t *tvb, guint64 coherent_seq_number, coherent_set_entity_info *coherent_set_entity_info_object) { if (!register_entry) { wmem_map_insert( coherent_set_tracking.entities_using_map, &register_entry->guid, register_entry); ...
CVE-2020-26420
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-rtps.c
rtps_util_detect_coherent_set_end_empty_data_case
static void rtps_util_detect_coherent_set_end_empty_data_case( coherent_set_entity_info *coherent_set_entity_info_object) { coherent_set_entity_info *coherent_set_entry = NULL; coherent_set_entry = (coherent_set_entity_info*) wmem_map_lookup(coherent_set_tracking.entities_using_map, &coherent_set_entity_info_ob...
static void rtps_util_detect_coherent_set_end_empty_data_case( coherent_set_entity_info *coherent_set_entity_info_object) { coherent_set_entity_info *coherent_set_entry = NULL; coherent_set_entry = (coherent_set_entity_info*) wmem_map_lookup(coherent_set_tracking.entities_using_map, &coherent_set_entity_info_ob...
void rtps_util_detect_coherent_set_end_empty_data_case( coherent_set_entity_info *coherent_set_entity_info_object) { coherent_set_entity_info *coherent_set_entry = NULL; coherent_set_entry = (coherent_set_entity_info*) wmem_map_lookup(coherent_set_tracking.entities_using_map, &coherent_set_entity_info_object->g...
void rtps_util_detect_coherent_set_end_empty_data_case( coherent_set_entity_info *coherent_set_entity_info_object) { coherent_set_entity_info *coherent_set_entry = NULL; coherent_set_entry = (coherent_set_entity_info*) wmem_map_lookup(coherent_set_tracking.entities_using_map, &coherent_set_entity_info_object->g...
static void rtps_util_detect_coherent_set_end_empty_data_case( coherent_set_entity_info *coherent_set_entity_info_object) { if (coherent_set_entry) { coherent_set_key key; key.guid = coherent_set_entity_info_object->guid; } }
static void rtps_util_detect_coherent_set_end_empty_data_case( coherent_set_entity_info *coherent_set_entity_info_object) { if (coherent_set_entry) { coherent_set_key key; memset(&key, 0, sizeof(key)); key.guid = coherent_set_entity_info_object->guid; } }
void rtps_util_detect_coherent_set_end_empty_data_case( coherent_set_entity_info *coherent_set_entity_info_object) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (coherent_set_entry) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ coherent_set_key key; key.guid = coherent_set_entity_info...
void rtps_util_detect_coherent_set_end_empty_data_case( coherent_set_entity_info *coherent_set_entity_info_object) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (coherent_set_entry) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ coherent_set_key key; memset(&key, 0, sizeof(key)); ...
static void rtps_util_detect_coherent_set_end_empty_data_case( coherent_set_entity_info *coherent_set_entity_info_object) { if (coherent_set_entry) { coherent_set_key key; + memset(&key, 0, sizeof(key)); key.guid = coherent_set_entity_info_object->guid; } }
CVE-2020-26421
Wireshark
https://github.com/wireshark/wireshark
epan/to_str.c
decode_bits_in_field
char * decode_bits_in_field(const guint bit_offset, const gint no_of_bits, const guint64 value) { guint64 mask = 0,tmp; char *str; int bit, str_p = 0; int i; mask = 1; mask = mask << (no_of_bits-1); str=(char *)wmem_alloc0(wmem_packet_scope(), 256+64); for(bit=0; bit<((int)(bit_offset&0x...
char * decode_bits_in_field(const guint bit_offset, const gint no_of_bits, const guint64 value) { guint64 mask; char *str; int bit, str_p = 0; int i; int max_bits = M(64, no_of_bits); mask = G_GUT64_CONSTANT(1) << (max_bits-1); str=(char *)wmem_alloc0(wmem_packet_scope(), 256+64); for(bi...
char * decode_bits_in_field(const guint bit_offset, const gint no_of_bits, const guint64 value) { guint64 mask = 0,tmp; char *str; int bit, str_p = 0; int i; mask = 1; mask = mask << (no_of_bits-1); str=(char *)wmem_alloc0(wmem_packet_scope(), 256+64); for(bit=0; bit<((int)(bit_offset&0x...
char * decode_bits_in_field(const guint bit_offset, const gint no_of_bits, const guint64 value) { guint64 mask; char *str; int bit, str_p = 0; int i; int max_bits = M(64, no_of_bits); mask = G_GUT64_CONSTANT(1) << (max_bits-1); str=(char *)wmem_alloc0(wmem_packet_scope(), 256+64); for(bi...
char * decode_bits_in_field(const guint bit_offset, const gint no_of_bits, const guint64 value) { guint64 mask = 0,tmp; char *str; int bit, str_p = 0; int i; mask = 1; mask = mask << (no_of_bits-1); str=(char *)wmem_alloc0(wmem_packet_scope(), 256+64); for(bit=0; bit<((int)(bit_offset&0x...
char * decode_bits_in_field(const guint bit_offset, const gint no_of_bits, const guint64 value) { guint64 mask; char *str; int bit, str_p = 0; int i; int max_bits = M(64, no_of_bits); mask = G_GUT64_CONSTANT(1) << (max_bits-1); str=(char *)wmem_alloc0(wmem_packet_scope(), 256+64); for(bi...
char * decode_bits_in_field(const guint bit_offset, const gint no_of_bits, const guint64 value) { guint64 mask = 0,tmp; char *str; int bit, str_p = 0; int i; mask = 1; mask = mask << (no_of_bits-1); str=(char *)wmem_alloc0(wmem_packet_scope(), 256+64); for(bit=0; bit<((int)(bit_offset&0x...
char * decode_bits_in_field(const guint bit_offset, const gint no_of_bits, const guint64 value) { guint64 mask; char *str; int bit, str_p = 0; int i; int max_bits = M(64, no_of_bits); mask = G_GUT64_CONSTANT(1) << (max_bits-1); str=(char *)wmem_alloc0(wmem_packet_scope(), 256+64); for(bi...
char * decode_bits_in_field(const guint bit_offset, const gint no_of_bits, const guint64 value) { - guint64 mask = 0,tmp; + guint64 mask; char *str; int bit, str_p = 0; int i; - mask = 1; - mask = mask << (no_of_bits-1); + int max_bits = M(64, no_of_bits); + mask = G_GUT64_CONSTANT(1) ...
CVE-2020-26422
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-quic.c
check_dcid_on_coalesced_packet
static gboolean check_dcid_on_coalesced_packet(tvbuff_t *tvb, const quic_datagram *dgram_info, gboolean is_first_packet, quic_cid_t *first_packet_dcid) { guint offset = 0; guint8 first_byte; quic_cid_t dcid = {.len=0}; first_byte = tvb_get_guint8(tvb, offset); offset++; if (first_byte & 0x80) { ...
static gboolean check_dcid_on_coalesced_packet(tvbuff_t *tvb, const quic_datagram *dgram_info, gboolean is_first_packet, quic_cid_t *first_packet_dcid) { guint offset = 0; guint8 first_byte, dcid_len; quic_cid_t dcid = {.len=0}; first_byte = tvb_get_guint8(tvb, offset); offset++; if (first_byte ...
static gboolean check_dcid_on_coalesced_packet(tvbuff_t *tvb, const quic_datagram *dgram_info, gboolean is_first_packet, quic_cid_t *first_packet_dcid) { guint offset = 0; guint8 first_byte; quic_cid_t dcid = {.len=0}; first_byte = tvb_get_guint8(tvb, offset); offset++; if (first_byte & 0x80) { ...
static gboolean check_dcid_on_coalesced_packet(tvbuff_t *tvb, const quic_datagram *dgram_info, gboolean is_first_packet, quic_cid_t *first_packet_dcid) { guint offset = 0; guint8 first_byte, dcid_len; quic_cid_t dcid = {.len=0}; first_byte = tvb_get_guint8(tvb, offset); offset++; if (first_byte ...
static gboolean check_dcid_on_coalesced_packet(tvbuff_t *tvb, const quic_datagram *dgram_info, gboolean is_first_packet, quic_cid_t *first_packet_dcid) { guint offset = 0; guint8 first_byte; quic_cid_t dcid = {.len=0}; first_byte = tvb_get_guint8(tvb, offset); offset++; if (first_byte & 0x80) { ...
static gboolean check_dcid_on_coalesced_packet(tvbuff_t *tvb, const quic_datagram *dgram_info, gboolean is_first_packet, quic_cid_t *first_packet_dcid) { guint offset = 0; guint8 first_byte, dcid_len; quic_cid_t dcid = {.len=0}; first_byte = tvb_get_guint8(tvb, offset); offset++; if (first_byte ...
static gboolean check_dcid_on_coalesced_packet(tvbuff_t *tvb, const quic_datagram *dgram_info, gboolean is_first_packet, quic_cid_t *first_packet_dcid) { guint offset = 0; guint8 first_byte; quic_cid_t dcid = {.len=0}; first_byte = tvb_get_guint8(tvb, offset); offset++; if (first_byte & 0x80) { ...
static gboolean check_dcid_on_coalesced_packet(tvbuff_t *tvb, const quic_datagram *dgram_info, gboolean is_first_packet, quic_cid_t *first_packet_dcid) { guint offset = 0; guint8 first_byte, dcid_len; quic_cid_t dcid = {.len=0}; first_byte = tvb_get_guint8(tvb, offset); offset++; if (first_byte ...
static gboolean check_dcid_on_coalesced_packet(tvbuff_t *tvb, const quic_datagram *dgram_info, gboolean is_first_packet, quic_cid_t *first_packet_dcid) { guint offset = 0; - guint8 first_byte; + guint8 first_byte, dcid_len; quic_cid_t dcid = {.len=0}; first_byte = tvb_get_guint8(tvb, offset); ...
CVE-2020-26422
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-quic.c
quic_connection_destroy
static void quic_connection_destroy(gpointer data, gpointer user_data ) { quic_info_data_t *conn = (quic_info_data_t *)data; quic_ciphers_reset(&conn->client_initial_ciphers); quic_ciphers_reset(&conn->server_initial_ciphers); quic_ciphers_reset(&conn->client_handshake_ciphers); quic_ciphers_reset(&...
static void quic_connection_destroy(gpointer data, gpointer user_data ) { quic_info_data_t *conn = (quic_info_data_t *)data; quic_ciphers_reset(&conn->client_initial_ciphers); quic_ciphers_reset(&conn->server_initial_ciphers); quic_ciphers_reset(&conn->client_handshake_ciphers); quic_ciphers_reset(&...
static void quic_connection_destroy(gpointer data, gpointer user_data ) { quic_info_data_t *conn = (quic_info_data_t *)data; quic_ciphers_reset(&conn->client_initial_ciphers); quic_ciphers_reset(&conn->server_initial_ciphers); quic_ciphers_reset(&conn->client_handshake_ciphers); quic_ciphers_reset(&...
static void quic_connection_destroy(gpointer data, gpointer user_data ) { quic_info_data_t *conn = (quic_info_data_t *)data; quic_ciphers_reset(&conn->client_initial_ciphers); quic_ciphers_reset(&conn->server_initial_ciphers); quic_ciphers_reset(&conn->client_handshake_ciphers); quic_ciphers_reset(&...
static void quic_connection_destroy(gpointer data, gpointer user_data ) { quic_info_data_t *conn = (quic_info_data_t *)data; quic_ciphers_reset(&conn->server_handshake_ciphers); quic_hp_cipher_reset(&conn->client_pp.hp_cipher); }
static void quic_connection_destroy(gpointer data, gpointer user_data ) { quic_info_data_t *conn = (quic_info_data_t *)data; quic_ciphers_reset(&conn->server_handshake_ciphers); quic_ciphers_reset(&conn->client_0rtt_ciphers); quic_hp_cipher_reset(&conn->client_pp.hp_cipher); }
static void quic_connection_destroy(gpointer data, gpointer user_data ) { quic_info_data_t *conn = (quic_info_data_t *)data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ quic_ciphers_reset(&conn->server_handshake_ciphers); quic_hp_cipher_reset(&conn->client_pp.hp_cipher); /* PLACEHOLDER: DO NOT DEL...
static void quic_connection_destroy(gpointer data, gpointer user_data ) { quic_info_data_t *conn = (quic_info_data_t *)data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ quic_ciphers_reset(&conn->server_handshake_ciphers); quic_ciphers_reset(&conn->client_0rtt_ciphers); quic_hp_cipher_reset(&conn->...
static void quic_connection_destroy(gpointer data, gpointer user_data ) { quic_info_data_t *conn = (quic_info_data_t *)data; quic_ciphers_reset(&conn->server_handshake_ciphers); + quic_ciphers_reset(&conn->client_0rtt_ciphers); quic_hp_cipher_reset(&conn->client_pp.hp_cipher); }
CVE-2020-26575
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-fbzero.c
dissect_fb_zero_tag
static guint32 dissect_fb_zero_tag(tvbuff_t *tvb, packet_info *pinfo, proto_tree *fb_zero_tree, guint offset, guint32 tag_number) { guint32 tag_offset_start = offset + tag_number*4*2; guint32 tag_offset = 0, total_tag_len = 0; gint32 tag_len; while(tag_number) { proto_tree *tag_tree, *ti_len, *t...
static guint32 dissect_fb_zero_tag(tvbuff_t *tvb, packet_info *pinfo, proto_tree *fb_zero_tree, guint offset, guint32 tag_number) { guint32 tag_offset_start = offset + tag_number*4*2; guint32 tag_offset = 0, total_tag_len = 0; gint32 tag_len; while(tag_number) { proto_tree *tag_tree, *ti_len, *t...
static guint32 dissect_fb_zero_tag(tvbuff_t *tvb, packet_info *pinfo, proto_tree *fb_zero_tree, guint offset, guint32 tag_number) { guint32 tag_offset_start = offset + tag_number*4*2; guint32 tag_offset = 0, total_tag_len = 0; gint32 tag_len; while(tag_number) { proto_tree *tag_tree, *ti_len, *t...
static guint32 dissect_fb_zero_tag(tvbuff_t *tvb, packet_info *pinfo, proto_tree *fb_zero_tree, guint offset, guint32 tag_number) { guint32 tag_offset_start = offset + tag_number*4*2; guint32 tag_offset = 0, total_tag_len = 0; gint32 tag_len; while(tag_number) { proto_tree *tag_tree, *ti_len, *t...
static guint32 dissect_fb_zero_tag(tvbuff_t *tvb, packet_info *pinfo, proto_tree *fb_zero_tree, guint offset, guint32 tag_number) { guint32 tag_offset_start = offset + tag_number*4*2; guint32 tag_offset = 0, total_tag_len = 0; while(tag_number) { proto_tree *tag_tree, *ti_len, *ti_tag, *ti_type; ...
static guint32 dissect_fb_zero_tag(tvbuff_t *tvb, packet_info *pinfo, proto_tree *fb_zero_tree, guint offset, guint32 tag_number) { guint32 tag_offset_start = offset + tag_number*4*2; guint32 tag_offset = 0, total_tag_len = 0; while(tag_number) { proto_tree *tag_tree, *ti_len, *ti_tag, *ti_type; ...
static guint32 dissect_fb_zero_tag(tvbuff_t *tvb, packet_info *pinfo, proto_tree *fb_zero_tree, guint offset, guint32 tag_number) { guint32 tag_offset_start = offset + tag_number*4*2; guint32 tag_offset = 0, total_tag_len = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while(tag_number) { pro...
static guint32 dissect_fb_zero_tag(tvbuff_t *tvb, packet_info *pinfo, proto_tree *fb_zero_tree, guint offset, guint32 tag_number) { guint32 tag_offset_start = offset + tag_number*4*2; guint32 tag_offset = 0, total_tag_len = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while(tag_number) { pro...
static guint32 dissect_fb_zero_tag(tvbuff_t *tvb, packet_info *pinfo, proto_tree *fb_zero_tree, guint offset, guint32 tag_number) { guint32 tag_offset_start = offset + tag_number*4*2; guint32 tag_offset = 0, total_tag_len = 0; while(tag_number) { proto_tree *tag_tree, *ti_len, *ti_tag, *ti_type...
CVE-2020-26575
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-fbzero.c
proto_register_fb_zero
void proto_register_fb_zero(void) { static hf_register_info hf[] = { { &hf_fb_zero_puflags, { "Public Flags", "fb_zero.puflags", FT_UT8, BASE_HEX, NULL, 0x0, "Specifying per-packet public flags", HFILL } }, { &hf_fb_zero_puflags_vrsn, { ...
void proto_register_fb_zero(void) { static hf_register_info hf[] = { { &hf_fb_zero_puflags, { "Public Flags", "fb_zero.puflags", FT_UT8, BASE_HEX, NULL, 0x0, "Specifying per-packet public flags", HFILL } }, { &hf_fb_zero_puflags_vrsn, { ...
void proto_register_fb_zero(void) { static hf_register_info hf[] = { { &hf_fb_zero_puflags, { "Public Flags", "fb_zero.puflags", FT_UT8, BASE_HEX, NULL, 0x0, "Specifying per-packet public flags", HFILL } }, { &hf_fb_zero_puflags_vrsn, { ...
void proto_register_fb_zero(void) { static hf_register_info hf[] = { { &hf_fb_zero_puflags, { "Public Flags", "fb_zero.puflags", FT_UT8, BASE_HEX, NULL, 0x0, "Specifying per-packet public flags", HFILL } }, { &hf_fb_zero_puflags_vrsn, { ...
void proto_register_fb_zero(void) { static gint *ett[] = { &ett_fb_zero, &ett_fb_zero_puflags, &ett_fb_zero_prflags, &ett_fb_zero_ft, &ett_fb_zero_ftflags, &ett_fb_zero_tag_value }; static ei_register_info ei[] = { { &ei_fb_zero_tag_undecoded, { "fb_zero.tag.undecoded", PI_UNDECODED, PI_NOTE...
void proto_register_fb_zero(void) { static gint *ett[] = { &ett_fb_zero, &ett_fb_zero_puflags, &ett_fb_zero_prflags, &ett_fb_zero_ft, &ett_fb_zero_ftflags, &ett_fb_zero_tag_value }; static ei_register_info ei[] = { { &ei_fb_zero_tag_undecoded, { "fb_zero.tag.undecoded", PI_UNDECODED, PI_NOTE...
void proto_register_fb_zero(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static gint *ett[] = { &ett_fb_zero, &ett_fb_zero_puflags, &ett_fb_zero_prflags, &ett_fb_zero_ft, &ett_fb_zero_ftflags, &ett_fb_zero_tag_value }; static ei_register_info ei[] = { { &ei_fb_zero_tag_undecoded...
void proto_register_fb_zero(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static gint *ett[] = { &ett_fb_zero, &ett_fb_zero_puflags, &ett_fb_zero_prflags, &ett_fb_zero_ft, &ett_fb_zero_ftflags, &ett_fb_zero_tag_value }; static ei_register_info ei[] = { { &ei_fb_zero_tag_undecoded...
void proto_register_fb_zero(void) { static gint *ett[] = { &ett_fb_zero, &ett_fb_zero_puflags, &ett_fb_zero_prflags, &ett_fb_zero_ft, &ett_fb_zero_ftflags, &ett_fb_zero_tag_value }; static ei_register_info ei[] = { - { &ei_fb_zero_tag_undecoded, { "fb_zero.tag.undecoded", PI_UNDECODED, P...
CVE-2020-28030
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-gquic.c
dissect_gquic_tag
static guint32 dissect_gquic_tag(tvbuff_t *tvb, packet_info *pinfo, proto_tree *gquic_tree, guint offset, guint32 tag_number) { guint32 tag_offset_start = offset + tag_number*4*2; guint32 tag_offset = 0, total_tag_len = 0; gint32 tag_len; while(tag_number) { proto_tree *tag_tree, *ti_len, *ti_ta...
static guint32 dissect_gquic_tag(tvbuff_t *tvb, packet_info *pinfo, proto_tree *gquic_tree, guint offset, guint32 tag_number) { guint32 tag_offset_start = offset + tag_number*4*2; guint32 tag_offset = 0, total_tag_len = 0; gint32 tag_len; while(tag_number) { proto_tree *tag_tree, *ti_len, *ti_ta...
static guint32 dissect_gquic_tag(tvbuff_t *tvb, packet_info *pinfo, proto_tree *gquic_tree, guint offset, guint32 tag_number, gquic_info_data_t *gquic_info) { guint32 tag_offset_start = offset + tag_number*4*2; guint32 tag_offset = 0, total_tag_len = 0; gint32 tag_len; while(tag_number) { proto_...
static guint32 dissect_gquic_tag(tvbuff_t *tvb, packet_info *pinfo, proto_tree *gquic_tree, guint offset, guint32 tag_number, gquic_info_data_t *gquic_info) { guint32 tag_offset_start = offset + tag_number*4*2; guint32 tag_offset = 0, total_tag_len = 0; gint32 tag_len; while(tag_number) { proto_...
static guint32 dissect_gquic_tag(tvbuff_t *tvb, packet_info *pinfo, proto_tree *gquic_tree, guint offset, guint32 tag_number) { guint32 tag_offset_start = offset + tag_number*4*2; guint32 tag_offset = 0, total_tag_len = 0; while(tag_number) { proto_tree *tag_tree, *ti_len, *ti_tag, *ti_type; ...
static guint32 dissect_gquic_tag(tvbuff_t *tvb, packet_info *pinfo, proto_tree *gquic_tree, guint offset, guint32 tag_number) { guint32 tag_offset_start = offset + tag_number*4*2; guint32 tag_offset = 0, total_tag_len = 0; while(tag_number) { proto_tree *tag_tree, *ti_len, *ti_tag, *ti_type; ...
static guint32 dissect_gquic_tag(tvbuff_t *tvb, packet_info *pinfo, proto_tree *gquic_tree, guint offset, guint32 tag_number, gquic_info_data_t *gquic_info) { guint32 tag_offset_start = offset + tag_number*4*2; guint32 tag_offset = 0, total_tag_len = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ whil...
static guint32 dissect_gquic_tag(tvbuff_t *tvb, packet_info *pinfo, proto_tree *gquic_tree, guint offset, guint32 tag_number, gquic_info_data_t *gquic_info) { guint32 tag_offset_start = offset + tag_number*4*2; guint32 tag_offset = 0, total_tag_len = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ whil...
static guint32 dissect_gquic_tag(tvbuff_t *tvb, packet_info *pinfo, proto_tree *gquic_tree, guint offset, guint32 tag_number) { guint32 tag_offset_start = offset + tag_number*4*2; guint32 tag_offset = 0, total_tag_len = 0; while(tag_number) { proto_tree *tag_tree, *ti_len, *ti_tag, *ti_type; ...
CVE-2020-28030
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-gquic.c
proto_register_gquic
void proto_register_gquic(void) { module_t *gquic_module; static hf_register_info hf[] = { { &hf_gquic_header_form, { "Header Form", "gquic.header_form", FT_UT8, BASE_DEC, VALS(gquic_short_long_header_vals), 0x80, "The most significant bit (0x80) of the first octet is set to ...
void proto_register_gquic(void) { module_t *gquic_module; static hf_register_info hf[] = { { &hf_gquic_header_form, { "Header Form", "gquic.header_form", FT_UT8, BASE_DEC, VALS(gquic_short_long_header_vals), 0x80, "The most significant bit (0x80) of the first octet is set to ...
void proto_register_gquic(void) { module_t *gquic_module; static hf_register_info hf[] = { { &hf_gquic_puflags, { "Public Flags", "gquic.puflags", FT_UT8, BASE_HEX, NULL, 0x0, "Specifying per-packet public flags", HFILL } }, { &hf_gquic_puflags...
void proto_register_gquic(void) { module_t *gquic_module; static hf_register_info hf[] = { { &hf_gquic_puflags, { "Public Flags", "gquic.puflags", FT_UT8, BASE_HEX, NULL, 0x0, "Specifying per-packet public flags", HFILL } }, { &hf_gquic_puflags...
void proto_register_gquic(void) { static gint *ett[] = { &ett_gquic, &ett_gquic_puflags, &ett_gquic_prflags, &ett_gquic_ft, &ett_gquic_ftflags, &ett_gquic_tag_value }; static ei_register_info ei[] = { { &ei_gquic_tag_undecoded, { "gquic.tag.undecoded", PI_UNDECODED, PI_NOTE, "Dissector for (...
void proto_register_gquic(void) { static gint *ett[] = { &ett_gquic, &ett_gquic_puflags, &ett_gquic_prflags, &ett_gquic_ft, &ett_gquic_ftflags, &ett_gquic_tag_value }; static ei_register_info ei[] = { { &ei_gquic_tag_undecoded, { "gquic.tag.undecoded", PI_UNDECODED, PI_NOTE, "Dissector for (...
void proto_register_gquic(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static gint *ett[] = { &ett_gquic, &ett_gquic_puflags, &ett_gquic_prflags, &ett_gquic_ft, &ett_gquic_ftflags, &ett_gquic_tag_value }; static ei_register_info ei[] = { { &ei_gquic_tag_undecoded, { "gquic.tag.u...
void proto_register_gquic(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static gint *ett[] = { &ett_gquic, &ett_gquic_puflags, &ett_gquic_prflags, &ett_gquic_ft, &ett_gquic_ftflags, &ett_gquic_tag_value }; static ei_register_info ei[] = { { &ei_gquic_tag_undecoded, { "gquic.tag.u...
void proto_register_gquic(void) { static gint *ett[] = { &ett_gquic, &ett_gquic_puflags, &ett_gquic_prflags, &ett_gquic_ft, &ett_gquic_ftflags, &ett_gquic_tag_value }; static ei_register_info ei[] = { - { &ei_gquic_tag_undecoded, { "gquic.tag.undecoded", PI_UNDECODED, PI_NOTE, "Dissector...
CVE-2020-29566
xen
https://github.com/xen-project/xen
xen/arch/x86/domain.c
context_switch
void context_switch(struct vcpu *prev, struct vcpu *next) { unsigned int cpu = smp_processor_id(); const struct domain *prevd = prev->domain, *nextd = next->domain; unsigned int dirty_cpu = read_atomic(&next->dirty_cpu); ASSERT(prev != next); ASSERT(local_irq_is_enabled()); get_cpu_info()->use_p...
void context_switch(struct vcpu *prev, struct vcpu *next) { unsigned int cpu = smp_processor_id(); const struct domain *prevd = prev->domain, *nextd = next->domain; unsigned int dirty_cpu = read_atomic(&next->dirty_cpu); ASSERT(prev != next); ASSERT(local_irq_is_enabled()); get_cpu_info()->use_p...
void context_switch(struct vcpu *prev, struct vcpu *next) { unsigned int cpu = smp_processor_id(); const struct domain *prevd = prev->domain, *nextd = next->domain; cpumask_t dirty_mask; ASSERT(local_irq_is_enabled()); get_cpu_info()->use_pv_cr3 = false; get_cpu_info()->xen_cr3 = 0; cpumask_...
void context_switch(struct vcpu *prev, struct vcpu *next) { unsigned int cpu = smp_processor_id(); const struct domain *prevd = prev->domain, *nextd = next->domain; cpumask_t dirty_mask; ASSERT(local_irq_is_enabled()); get_cpu_info()->use_pv_cr3 = false; get_cpu_info()->xen_cr3 = 0; cpumask_...
void context_switch(struct vcpu *prev, struct vcpu *next) { unsigned int cpu = smp_processor_id(); const struct domain *prevd = prev->domain, *nextd = next->domain; unsigned int dirty_cpu = read_atomic(&next->dirty_cpu); ASSERT(prev != next); if ( unlikely(dirty_cpu != cpu) && dirty_cpu != VCPU_CPU_...
void context_switch(struct vcpu *prev, struct vcpu *next) { unsigned int cpu = smp_processor_id(); const struct domain *prevd = prev->domain, *nextd = next->domain; unsigned int dirty_cpu = read_atomic(&next->dirty_cpu); ASSERT(prev != next); if ( unlikely(dirty_cpu != cpu) && dirty_cpu != VCPU_CPU_...
void context_switch(struct vcpu *prev, struct vcpu *next) { unsigned int cpu = smp_processor_id(); const struct domain *prevd = prev->domain, *nextd = next->domain; cpumask_t dirty_mask; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ cpumask_copy(&dirty_mask, next->vcpu_dirty_cpumask); ASSERT(cpu...
void context_switch(struct vcpu *prev, struct vcpu *next) { unsigned int cpu = smp_processor_id(); const struct domain *prevd = prev->domain, *nextd = next->domain; cpumask_t dirty_mask; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ cpumask_copy(&dirty_mask, next->vcpu_dirty_cpumask); ASSERT(cpu...
void context_switch(struct vcpu *prev, struct vcpu *next) { unsigned int cpu = smp_processor_id(); const struct domain *prevd = prev->domain, *nextd = next->domain; unsigned int dirty_cpu = read_atomic(&next->dirty_cpu); ASSERT(prev != next); if ( unlikely(dirty_cpu != cpu) && dirty_cpu != VCP...
CVE-2020-29566
xen
https://github.com/xen-project/xen
xen/arch/x86/domain.c
continue_running
void continue_running(struct vcpu *same) { same->domain->arch.ctxt_switch->tail(same); BUG(); }
void continue_running(struct vcpu *same) { reset_stack_and_jump_ind(same->domain->arch.ctxt_switch->tail); }
void continue_running(struct vcpu *same) { same->domain->arch.ctxt_switch->tail(same); BUG(); }
void continue_running(struct vcpu *same) { reset_stack_and_jump_ind(same->domain->arch.ctxt_switch->tail); }
void continue_running(struct vcpu *same) { same->domain->arch.ctxt_switch->tail(same); BUG(); }
void continue_running(struct vcpu *same) { reset_stack_and_jump_ind(same->domain->arch.ctxt_switch->tail); }
void continue_running(struct vcpu *same) { same->domain->arch.ctxt_switch->tail(same); BUG(); }
void continue_running(struct vcpu *same) { reset_stack_and_jump_ind(same->domain->arch.ctxt_switch->tail); }
void continue_running(struct vcpu *same) { - same->domain->arch.ctxt_switch->tail(same); - BUG(); + reset_stack_and_jump_ind(same->domain->arch.ctxt_switch->tail); }
CVE-2020-29566
xen
https://github.com/xen-project/xen
xen/arch/x86/hvm/vmx/vmcs.c
vmx_do_resume
void vmx_do_resume(struct vcpu *v) { bool_t debug_state; unsigned long host_cr4; if ( v->arch.hvm.vmx.active_cpu == smp_processor_id() ) { vmx_vmcs_reload(v); } else { if ( has_arch_pdevs(v->domain) && !iommu_snoop && !cpu_has_wbinvd_exiting ) { int cpu = v->arch.hvm.vmx.acti...
void vmx_do_resume(void) { struct vcpu *v = current; bool_t debug_state; unsigned long host_cr4; if ( v->arch.hvm.vmx.active_cpu == smp_processor_id() ) { vmx_vmcs_reload(v); } else { if ( has_arch_pdevs(v->domain) && !iommu_snoop && !cpu_has_wbinvd_exiting ) { int cpu = ...
void vmx_do_resume(struct vcpu *v) { bool_t debug_state; if ( v->arch.hvm_vmx.active_cpu == smp_processor_id() ) { vmx_vmcs_reload(v); } else { if ( has_arch_pdevs(v->domain) && !iommu_snoop && !cpu_has_wbinvd_exiting ) { int cpu = v->arch.hvm_vmx.active_cpu; if ( cpu...
void vmx_do_resume(void) { struct vcpu *v = current; bool_t debug_state; if ( v->arch.hvm_vmx.active_cpu == smp_processor_id() ) { vmx_vmcs_reload(v); } else { if ( has_arch_pdevs(v->domain) && !iommu_snoop && !cpu_has_wbinvd_exiting ) { int cpu = v->arch.hvm_vmx.active_cpu; ...
void vmx_do_resume(struct vcpu *v) { bool_t debug_state; if ( v->arch.hvm.vmx.active_cpu == smp_processor_id() ) { vmx_vmcs_reload(v); } else { vmx_clear_vmcs(v); vmx_load_vmcs(v); hvm_migrate_timers(v); hvm_migrate_pirqs(v); vmx_set_host_env(v); hvm_a...
void vmx_do_resume(void) { struct vcpu *v = current; bool_t debug_state; if ( v->arch.hvm.vmx.active_cpu == smp_processor_id() ) { vmx_vmcs_reload(v); } else { vmx_clear_vmcs(v); vmx_load_vmcs(v); hvm_migrate_timers(v); hvm_migrate_pirqs(v); vmx_set_host_e...
void vmx_do_resume(struct vcpu *v) { bool_t debug_state; if ( v->arch.hvm_vmx.active_cpu == smp_processor_id() ) { vmx_vmcs_reload(v); } else { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ vmx_clear_vmcs(v); vmx_load_vmcs(v); hvm_migrate_timers(v); hvm_migrate_pi...
void vmx_do_resume(void) { struct vcpu *v = current; bool_t debug_state; if ( v->arch.hvm_vmx.active_cpu == smp_processor_id() ) { vmx_vmcs_reload(v); } else { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ vmx_clear_vmcs(v); vmx_load_vmcs(v); hvm_migrate_timers(v); ...
-void vmx_do_resume(struct vcpu *v) { +void vmx_do_resume(void) { + struct vcpu *v = current; bool_t debug_state; if ( v->arch.hvm.vmx.active_cpu == smp_processor_id() ) { vmx_vmcs_reload(v); } else { vmx_clear_vmcs(v); vmx_load_vmcs(v); hvm_migrate_timers(v); ...
CVE-2020-29567
xen
https://github.com/xen-project/xen
xen/arch/x86/irq.c
init_irq_data
int init_irq_data(void) { struct irq_desc *desc; int irq, vector; for ( vector = 0; vector < X86_NR_VECTORS; ++vector ) this_cpu(vector_irq)[vector] = T_M; irq_desc = xzalloc_array(struct irq_desc, nr_irqs); if ( !irq_desc ) { return -ENOMEM; } for ( irq = 0; irq < nr_irqs_gs...
int init_irq_data(void) { struct irq_desc *desc; int irq, vector; for ( vector = 0; vector < X86_NR_VECTORS; ++vector ) this_cpu(vector_irq)[vector] = T_M; irq_desc = xzalloc_array(struct irq_desc, nr_irqs); if ( !irq_desc ) { return -ENOMEM; } for ( irq = 0; irq < nr_irqs_gs...
int init_irq_data(void) { struct irq_desc *desc; int irq, vector; for ( vector = 0; vector < X86_NR_VECTORS; ++vector ) this_cpu(vector_irq)[vector] = T_M; irq_desc = xzalloc_array(struct irq_desc, nr_irqs); if ( !irq_desc ) { return -ENOMEM; } for ( irq = 0; irq < nr_irqs_gs...
int init_irq_data(void) { struct irq_desc *desc; int irq, vector; for ( vector = 0; vector < X86_NR_VECTORS; ++vector ) this_cpu(vector_irq)[vector] = T_M; irq_desc = xzalloc_array(struct irq_desc, nr_irqs); if ( !irq_desc ) { return -ENOMEM; } for ( irq = 0; irq < nr_irqs_gs...
int init_irq_data(void) { set_bit(LEGACY_SYSCALL_VECTOR, used_vectors); set_bit(HYPERCALL_VECTOR, used_vectors); set_bit(IRQ_MOVE_CLEANUP_VECTOR, used_vectors); return 0; }
int init_irq_data(void) { set_bit(LEGACY_SYSCALL_VECTOR, used_vectors); set_bit(HYPERCALL_VECTOR, used_vectors); BUILD_BUG_ON(IRQ_MOVE_CLEANUP_VECTOR < FIRST_DYNAMIC_VECTOR); for ( vector = FIRST_DYNAMIC_VECTOR; vector <= IRQ_MOVE_CLEANUP_VECTOR; vector++ ) __set_bit(vect...
int init_irq_data(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ set_bit(LEGACY_SYSCALL_VECTOR, used_vectors); set_bit(HYPERCALL_VECTOR, used_vectors); set_bit(IRQ_MOVE_CLEANUP_VECTOR, used_vectors); return 0; }
int init_irq_data(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ set_bit(LEGACY_SYSCALL_VECTOR, used_vectors); set_bit(HYPERCALL_VECTOR, used_vectors); BUILD_BUG_ON(IRQ_MOVE_CLEANUP_VECTOR < FIRST_DYNAMIC_VECTOR); for ( vector = FIRST_DYNAMIC_VECTOR; vector <= IRQ_MOVE_CLEANUP_VEC...
int init_irq_data(void) { set_bit(LEGACY_SYSCALL_VECTOR, used_vectors); set_bit(HYPERCALL_VECTOR, used_vectors); - set_bit(IRQ_MOVE_CLEANUP_VECTOR, used_vectors); + BUILD_BUG_ON(IRQ_MOVE_CLEANUP_VECTOR < FIRST_DYNAMIC_VECTOR); + for ( vector = FIRST_DYNAMIC_VECTOR; + vector <= IRQ_MOVE_CL...
CVE-2020-29567
xen
https://github.com/xen-project/xen
xen/arch/x86/irq.c
irq_move_cleanup_interrupt
void irq_move_cleanup_interrupt(struct cpu_user_regs *regs) { unsigned vector, me; BUILD_BUG_ON(APIC_PRIO_CLASS(IRQ_MOVE_CLEANUP_VECTOR) != APIC_PRIO_CLASS(FIRST_DYNAMIC_VECTOR)); ack_APIC_irq(); me = smp_processor_id(); if ( !cpu_online(me) ) { return; } for ( vector = FIRST_DYNAMIC...
void irq_move_cleanup_interrupt(struct cpu_user_regs *regs) { unsigned vector, me; ack_APIC_irq(); me = smp_processor_id(); if ( !cpu_online(me) ) { return; } for ( vector = FIRST_DYNAMIC_VECTOR; vector <= LAST_HIPRIORITY_VECTOR; vector++) { unsigned int irq; ...
void irq_move_cleanup_interrupt(struct cpu_user_regs *regs) { unsigned vector, me; BUILD_BUG_ON(APIC_PRIO_CLASS(IRQ_MOVE_CLEANUP_VECTOR) != APIC_PRIO_CLASS(FIRST_DYNAMIC_VECTOR)); ack_APIC_irq(); me = smp_processor_id(); if ( !cpu_online(me) ) { return; } for ( vector = FIRST_DYNAMIC...
void irq_move_cleanup_interrupt(struct cpu_user_regs *regs) { unsigned vector, me; ack_APIC_irq(); me = smp_processor_id(); if ( !cpu_online(me) ) { return; } for ( vector = FIRST_DYNAMIC_VECTOR; vector <= LAST_HIPRIORITY_VECTOR; vector++) { unsigned int irq; ...
void irq_move_cleanup_interrupt(struct cpu_user_regs *regs) { unsigned vector, me; BUILD_BUG_ON(APIC_PRIO_CLASS(IRQ_MOVE_CLEANUP_VECTOR) != APIC_PRIO_CLASS(FIRST_DYNAMIC_VECTOR)); ack_APIC_irq(); me = smp_processor_id(); if ( !cpu_online(me) ) { return; } for ( vector = FIRST_DYNAMIC...
void irq_move_cleanup_interrupt(struct cpu_user_regs *regs) { unsigned vector, me; ack_APIC_irq(); me = smp_processor_id(); if ( !cpu_online(me) ) { return; } for ( vector = FIRST_DYNAMIC_VECTOR; vector <= LAST_HIPRIORITY_VECTOR; vector++) { irq = per_cpu(vector_irq, ...
void irq_move_cleanup_interrupt(struct cpu_user_regs *regs) { unsigned vector, me; BUILD_BUG_ON(APIC_PRIO_CLASS(IRQ_MOVE_CLEANUP_VECTOR) != APIC_PRIO_CLASS(FIRST_DYNAMIC_VECTOR)); ack_APIC_irq(); me = smp_processor_id(); if ( !cpu_online(me) ) { return; } for ( vector = FIRST_DYNAMIC...
void irq_move_cleanup_interrupt(struct cpu_user_regs *regs) { unsigned vector, me; ack_APIC_irq(); me = smp_processor_id(); if ( !cpu_online(me) ) { return; } for ( vector = FIRST_DYNAMIC_VECTOR; vector <= LAST_HIPRIORITY_VECTOR; vector++) { /* PLACEHOLDER: DO NOT DELETE ...
void irq_move_cleanup_interrupt(struct cpu_user_regs *regs) { unsigned vector, me; - BUILD_BUG_ON(APIC_PRIO_CLASS(IRQ_MOVE_CLEANUP_VECTOR) != APIC_PRIO_CLASS(FIRST_DYNAMIC_VECTOR)); ack_APIC_irq(); me = smp_processor_id(); if ( !cpu_online(me) ) { return; } for ( vector = FIRS...
CVE-2020-29570
xen
https://github.com/xen-project/xen
xen/common/event_fifo.c
map_control_block
static int map_control_block(struct vcpu *v, uint64_t gfn, uint32_t offset) { void *virt; unsigned int i; int rc; if ( v->evtchn_fifo->control_block ) { return -EVAL; } rc = map_guest_page(v->domain, gfn, &virt); if ( rc < 0 ) { return rc; } v->evtchn_fifo->control_bl...
static int map_control_block(struct vcpu *v, uint64_t gfn, uint32_t offset) { void *virt; struct evtchn_fifo_control_block *control_block; unsigned int i; int rc; if ( v->evtchn_fifo->control_block ) { return -EVAL; } rc = map_guest_page(v->domain, gfn, &virt); if ( rc < 0 ) { ...
static int map_control_block(struct vcpu *v, uint64_t gfn, uint32_t offset) { void *virt; unsigned int i; int rc; if ( v->evtchn_fifo->control_block ) { return -EVAL; } rc = map_guest_page(v->domain, gfn, &virt); if ( rc < 0 ) { return rc; } v->evtchn_fifo->control_bl...
static int map_control_block(struct vcpu *v, uint64_t gfn, uint32_t offset) { void *virt; struct evtchn_fifo_control_block *control_block; unsigned int i; int rc; if ( v->evtchn_fifo->control_block ) { return -EVAL; } rc = map_guest_page(v->domain, gfn, &virt); if ( rc < 0 ) { ...
static int map_control_block(struct vcpu *v, uint64_t gfn, uint32_t offset) { void *virt; unsigned int i; if ( rc < 0 ) { return rc; } v->evtchn_fifo->control_block = virt + offset; for ( i = 0; i <= EVTCHN_FIFO_PRIORITY_M; i++ ) v->evtchn_fifo->queue[i].head = &v->evtchn_fifo->c...
static int map_control_block(struct vcpu *v, uint64_t gfn, uint32_t offset) { void *virt; struct evtchn_fifo_control_block *control_block; unsigned int i; if ( rc < 0 ) { return rc; } control_block = virt + offset; for ( i = 0; i <= EVTCHN_FIFO_PRIORITY_M; i++ ) v->evtchn_fif...
static int map_control_block(struct vcpu *v, uint64_t gfn, uint32_t offset) { void *virt; unsigned int i; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if ( rc < 0 ) { return rc; } v->evtchn_fifo->control_block = virt + offset; for ( i = 0; i <= EVTCHN_FIFO_PRIORITY_M; i++ ) ...
static int map_control_block(struct vcpu *v, uint64_t gfn, uint32_t offset) { void *virt; struct evtchn_fifo_control_block *control_block; unsigned int i; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if ( rc < 0 ) { return rc; } control_block = virt + offset; for ( i = 0; i <= E...
static int map_control_block(struct vcpu *v, uint64_t gfn, uint32_t offset) { void *virt; + struct evtchn_fifo_control_block *control_block; unsigned int i; if ( rc < 0 ) { return rc; } - v->evtchn_fifo->control_block = virt + offset; + control_block = virt + offset; for ( i ...
CVE-2020-29571
xen
https://github.com/xen-project/xen
xen/common/event_fifo.c
evtchn_fifo_word_from_port
static inline event_word_t *evtchn_fifo_word_from_port(const struct domain *d, unsigned int port) { unsigned int p, w; if ( unlikely(port >= d->evtchn_fifo->num_evtchns) ) { return NULL; } smp_rmb(); p = array_index_nospec(port / EVTCHN_FIFO_EVENT_WORDS_PER_PAGE, d->evtchn_fifo->num_evtchns)...
static inline event_word_t *evtchn_fifo_word_from_port(const struct domain *d, unsigned int port) { unsigned int p, w; smp_rmb(); if ( unlikely(port >= d->evtchn_fifo->num_evtchns) ) { return NULL; } smp_rmb(); p = array_index_nospec(port / EVTCHN_FIFO_EVENT_WORDS_PER_PAGE, d->evtchn_fif...
static inline event_word_t *evtchn_fifo_word_from_port(const struct domain *d, unsigned int port) { unsigned int p, w; if ( unlikely(port >= d->evtchn_fifo->num_evtchns) ) { return NULL; } smp_rmb(); p = port / EVTCHN_FIFO_EVENT_WORDS_PER_PAGE; w = port % EVTCHN_FIFO_EVENT_WORDS_PER_PAGE...
static inline event_word_t *evtchn_fifo_word_from_port(const struct domain *d, unsigned int port) { unsigned int p, w; smp_rmb(); if ( unlikely(port >= d->evtchn_fifo->num_evtchns) ) { return NULL; } smp_rmb(); p = port / EVTCHN_FIFO_EVENT_WORDS_PER_PAGE; w = port % EVTCHN_FIFO_EVENT...
static inline event_word_t *evtchn_fifo_word_from_port(const struct domain *d, unsigned int port) { unsigned int p, w; if ( unlikely(port >= d->evtchn_fifo->num_evtchns) ) { return NULL; } }
static inline event_word_t *evtchn_fifo_word_from_port(const struct domain *d, unsigned int port) { unsigned int p, w; smp_rmb(); if ( unlikely(port >= d->evtchn_fifo->num_evtchns) ) { return NULL; } }
static inline event_word_t *evtchn_fifo_word_from_port(const struct domain *d, unsigned int port) { unsigned int p, w; if ( unlikely(port >= d->evtchn_fifo->num_evtchns) ) { return NULL; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static inline event_word_t *evtchn_fifo_word_from_port(const struct domain *d, unsigned int port) { unsigned int p, w; smp_rmb(); if ( unlikely(port >= d->evtchn_fifo->num_evtchns) ) { return NULL; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static inline event_word_t *evtchn_fifo_word_from_port(const struct domain *d, unsigned int port) { unsigned int p, w; + smp_rmb(); if ( unlikely(port >= d->evtchn_fifo->num_evtchns) ) { return NULL; } }
CVE-2020-35965
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/exr.c
decode_frame
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { EXRContext *s = avctx->priv_data; ThreadFrame frame = { .f = data }; AVFrame *picture = data; uint8_t *ptr; int i, y, ret, ymax; int planes; int out_line_size; int nb_blocks; uint64_t start_...
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { EXRContext *s = avctx->priv_data; ThreadFrame frame = { .f = data }; AVFrame *picture = data; uint8_t *ptr; int i, y, ret, ymax; int planes; int out_line_size; int nb_blocks; uint64_t start_...
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { EXRContext *s = avctx->priv_data; ThreadFrame frame = { .f = data }; AVFrame *picture = data; uint8_t *ptr; int y, ret; int out_line_size; int scan_line_blocks; bytestream2_init(&s->gb, avpkt->d...
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { EXRContext *s = avctx->priv_data; ThreadFrame frame = { .f = data }; AVFrame *picture = data; uint8_t *ptr; int y, ret; int out_line_size; int scan_line_blocks; bytestream2_init(&s->gb, avpkt->d...
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { EXRContext *s = avctx->priv_data; AVFrame *picture = data; if ((ret = decode_header(s, picture)) < 0) { return ret; } if (s->xmin > s->xmax || s->ymin > s->ymax || s->ydelta == 0xFFFFFFFF || s->xdel...
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { EXRContext *s = avctx->priv_data; AVFrame *picture = data; if ((ret = decode_header(s, picture)) < 0) { return ret; } if (s->xmin > s->xmax || s->ymin > s->ymax || s->ydelta == 0xFFFFFFFF || s->xdel...
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { EXRContext *s = avctx->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ AVFrame *picture = data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if ((ret = decode_header(s)) < 0) { return ret;...
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { EXRContext *s = avctx->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ AVFrame *picture = data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if ((ret = decode_header(s)) < 0) { return ret;...
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { EXRContext *s = avctx->priv_data; AVFrame *picture = data; if ((ret = decode_header(s, picture)) < 0) { return ret; } if (s->xmin > s->xmax || s->ymin > s->ymax || s->ydelta == 0xFFFFFFFF || ...
CVE-2020-7044
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-wassp.c
dissect_wassp_sub_tlv
int dissect_wassp_sub_tlv(proto_tree *wassp_tree, tvbuff_t *tvb, packet_info *pinfo, int offset, int in_len, int which_tab, int ru_msg_type) { proto_item *tlvi; proto_item *ti; proto_tree *tmp_tree; char *label; guint32 value; guint16 tlv_type = EID_PARSE_ERROR; guint16 length = 0, org_offse...
int dissect_wassp_sub_tlv(proto_tree *wassp_tree, tvbuff_t *tvb, packet_info *pinfo, int offset, int in_len, int which_tab, int ru_msg_type) { proto_item *tlvi; proto_item *ti; proto_tree *tmp_tree; const char *label; guint32 value; guint16 tlv_type = EID_PARSE_ERROR; guint16 length = 0, org...
int dissect_wassp_sub_tlv(proto_tree *wassp_tree, tvbuff_t *tvb, packet_info *pinfo, int offset, int in_len, int which_tab, int ru_msg_type) { proto_item *tlvi; proto_item *ti; proto_tree *tmp_tree; char *label; guint32 value; guint16 tlv_type = EID_PARSE_ERROR; guint16 length = 0, org_offse...
int dissect_wassp_sub_tlv(proto_tree *wassp_tree, tvbuff_t *tvb, packet_info *pinfo, int offset, int in_len, int which_tab, int ru_msg_type) { proto_item *tlvi; proto_item *ti; proto_tree *tmp_tree; const char *label; guint32 value; guint16 tlv_type = EID_PARSE_ERROR; guint16 length = 0, org...
int dissect_wassp_sub_tlv(proto_tree *wassp_tree, tvbuff_t *tvb, packet_info *pinfo, int offset, int in_len, int which_tab, int ru_msg_type) { proto_tree *tmp_tree; char *label; guint32 value; guint16 length = 0, org_offset = offset; WASSP_SUBTLV_DECODER_FO_t *tmp_decr = NULL; guint32 i, tableNo...
int dissect_wassp_sub_tlv(proto_tree *wassp_tree, tvbuff_t *tvb, packet_info *pinfo, int offset, int in_len, int which_tab, int ru_msg_type) { proto_tree *tmp_tree; const char *label; guint32 value; guint16 length = 0, org_offset = offset; const WASSP_SUBTLV_DECODER_FO_t *tmp_decr = NULL; guint3...
int dissect_wassp_sub_tlv(proto_tree *wassp_tree, tvbuff_t *tvb, packet_info *pinfo, int offset, int in_len, int which_tab, int ru_msg_type) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ proto_tree *tmp_tree; char *label; guint32 value; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint16 len...
int dissect_wassp_sub_tlv(proto_tree *wassp_tree, tvbuff_t *tvb, packet_info *pinfo, int offset, int in_len, int which_tab, int ru_msg_type) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ proto_tree *tmp_tree; const char *label; guint32 value; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint...
int dissect_wassp_sub_tlv(proto_tree *wassp_tree, tvbuff_t *tvb, packet_info *pinfo, int offset, int in_len, int which_tab, int ru_msg_type) { proto_tree *tmp_tree; - char *label; + const char *label; guint32 value; guint16 length = 0, org_offset = offset; - WASSP_SUBTLV_DECODER_FO_t *tmp_decr ...
CVE-2020-7044
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-wassp.c
dissect_wassp_tlv
int dissect_wassp_tlv(proto_tree *wassp_tree, tvbuff_t *tvb, packet_info *pinfo, int offset, wassp_ru_msg_t rumsg_type) { proto_item *tlvi = NULL; proto_tree *tlv_tree; guint16 tlv_type = WASSP_RU__0; guint16 length; guint32 value; int suboffset; wassp_ru_msg_t ru_msg_type = rumsg_type; ...
int dissect_wassp_tlv(proto_tree *wassp_tree, tvbuff_t *tvb, packet_info *pinfo, int offset, wassp_ru_msg_t rumsg_type) { proto_item *tlvi = NULL; proto_tree *tlv_tree; guint16 tlv_type = WASSP_RU__0; guint16 length; guint32 value; int suboffset; wassp_ru_msg_t ru_msg_type = rumsg_type; ...
int dissect_wassp_tlv(proto_tree *wassp_tree, tvbuff_t *tvb, packet_info *pinfo, int offset, wassp_ru_msg_t rumsg_type) { proto_item *tlvi = NULL; proto_tree *tlv_tree; guint16 tlv_type = WASSP_RU__0; guint16 length; guint32 value; int suboffset; wassp_ru_msg_t ru_msg_type = rumsg_type; ...
int dissect_wassp_tlv(proto_tree *wassp_tree, tvbuff_t *tvb, packet_info *pinfo, int offset, wassp_ru_msg_t rumsg_type) { proto_item *tlvi = NULL; proto_tree *tlv_tree; guint16 tlv_type = WASSP_RU__0; guint16 length; guint32 value; int suboffset; wassp_ru_msg_t ru_msg_type = rumsg_type; ...
int dissect_wassp_tlv(proto_tree *wassp_tree, tvbuff_t *tvb, packet_info *pinfo, int offset, wassp_ru_msg_t rumsg_type) { wassp_ru_msg_t ru_msg_type = rumsg_type; char *label; SET_WASSP_TLV_VERSION(0); while ((value = tvb_reported_length_remaining(tvb, offset)) >= 4) { tlv_type = tvb_get_ntohs(t...
int dissect_wassp_tlv(proto_tree *wassp_tree, tvbuff_t *tvb, packet_info *pinfo, int offset, wassp_ru_msg_t rumsg_type) { wassp_ru_msg_t ru_msg_type = rumsg_type; const char *label; SET_WASSP_TLV_VERSION(0); while ((value = tvb_reported_length_remaining(tvb, offset)) >= 4) { tlv_type = tvb_get_n...
int dissect_wassp_tlv(proto_tree *wassp_tree, tvbuff_t *tvb, packet_info *pinfo, int offset, wassp_ru_msg_t rumsg_type) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ wassp_ru_msg_t ru_msg_type = rumsg_type; char *label; SET_WASSP_TLV_VERSION(0); while ((value = tvb_reported_length_remaining(tvb, o...
int dissect_wassp_tlv(proto_tree *wassp_tree, tvbuff_t *tvb, packet_info *pinfo, int offset, wassp_ru_msg_t rumsg_type) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ wassp_ru_msg_t ru_msg_type = rumsg_type; const char *label; SET_WASSP_TLV_VERSION(0); while ((value = tvb_reported_length_remaining(...
int dissect_wassp_tlv(proto_tree *wassp_tree, tvbuff_t *tvb, packet_info *pinfo, int offset, wassp_ru_msg_t rumsg_type) { wassp_ru_msg_t ru_msg_type = rumsg_type; - char *label; + const char *label; SET_WASSP_TLV_VERSION(0); while ((value = tvb_reported_length_remaining(tvb, offset)) >= 4) { ...
CVE-2020-7044
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-wassp.c
wassp_match_strval
static const char* wassp_match_strval(WASSP_SUBTLV_DECODER_FO_t *in_ptr, int in_type) { if (in_ptr == NULL) { return NULL; } if (in_ptr->max_entry < in_type) { return NULL; } return in_ptr->entry[in_type].name; }
static const char* wassp_match_strval(const WASSP_SUBTLV_DECODER_FO_t *in_ptr, int in_type) { if (in_ptr == NULL) { return NULL; } if (in_ptr->max_entry <= in_type) { return NULL; } return in_ptr->entry[in_type].name; }
static const char* wassp_match_strval(WASSP_SUBTLV_DECODER_FO_t *in_ptr, int in_type) { if (in_ptr == NULL) { return NULL; } if (in_ptr->max_entry < in_type) { return NULL; } return in_ptr->entry[in_type].name; }
static const char* wassp_match_strval(const WASSP_SUBTLV_DECODER_FO_t *in_ptr, int in_type) { if (in_ptr == NULL) { return NULL; } if (in_ptr->max_entry <= in_type) { return NULL; } return in_ptr->entry[in_type].name; }
static const char* wassp_match_strval(WASSP_SUBTLV_DECODER_FO_t *in_ptr, int in_type) { if (in_ptr == NULL) { return NULL; } if (in_ptr->max_entry < in_type) { return NULL; } return in_ptr->entry[in_type].name; }
static const char* wassp_match_strval(const WASSP_SUBTLV_DECODER_FO_t *in_ptr, int in_type) { if (in_ptr == NULL) { return NULL; } if (in_ptr->max_entry <= in_type) { return NULL; } return in_ptr->entry[in_type].name; }
static const char* wassp_match_strval(WASSP_SUBTLV_DECODER_FO_t *in_ptr, int in_type) { if (in_ptr == NULL) { return NULL; } if (in_ptr->max_entry < in_type) { return NULL; } return in_ptr->entry[in_type].name; }
static const char* wassp_match_strval(const WASSP_SUBTLV_DECODER_FO_t *in_ptr, int in_type) { if (in_ptr == NULL) { return NULL; } if (in_ptr->max_entry <= in_type) { return NULL; } return in_ptr->entry[in_type].name; }
-static const char* wassp_match_strval(WASSP_SUBTLV_DECODER_FO_t *in_ptr, int in_type) { +static const char* wassp_match_strval(const WASSP_SUBTLV_DECODER_FO_t *in_ptr, int in_type) { if (in_ptr == NULL) { return NULL; } - if (in_ptr->max_entry < in_type) { + if (in_ptr->max_entry <= in_type) {...
CVE-2020-7045
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-btatt.c
save_request
static void save_request(packet_info *pinfo, guint8 opcode, union request_parameters_union parameters, bluetooth_data_t *bluetooth_data) { wmem_tree_key_t key[5]; guint32 frame_number, curr_layer_num; request_data_t *request_data; frame_number = pinfo->num; curr_layer_num = pinfo->curr_layer_num; ...
static void save_request(packet_info *pinfo, guint8 opcode, union request_parameters_union parameters, bluetooth_data_t *bluetooth_data) { wmem_tree_key_t key[5]; guint32 frame_number, curr_layer_num; request_data_t *request_data; frame_number = pinfo->num; curr_layer_num = pinfo->curr_layer_num; ...
static void save_request(packet_info *pinfo, guint8 opcode, union request_parameters_union parameters, bluetooth_data_t *bluetooth_data) { wmem_tree_key_t key[5]; guint32 frame_number, curr_layer_num; request_data_t *request_data; frame_number = pinfo->num; curr_layer_num = pinfo->curr_layer_num; ...
static void save_request(packet_info *pinfo, guint8 opcode, union request_parameters_union parameters, bluetooth_data_t *bluetooth_data) { wmem_tree_key_t key[5]; guint32 frame_number, curr_layer_num; request_data_t *request_data; frame_number = pinfo->num; curr_layer_num = pinfo->curr_layer_num; ...
static void save_request(packet_info *pinfo, guint8 opcode, union request_parameters_union parameters, bluetooth_data_t *bluetooth_data) { key[4].key = NULL; request_data = wmem_new(wmem_file_scope(), request_data_t); request_data->opcode = opcode; wmem_tree_insert32_array(requests, key, request_data); ...
static void save_request(packet_info *pinfo, guint8 opcode, union request_parameters_union parameters, bluetooth_data_t *bluetooth_data) { key[4].key = NULL; request_data = wmem_new0(wmem_file_scope(), request_data_t); request_data->opcode = opcode; wmem_tree_insert32_array(requests, key, request_data);...
static void save_request(packet_info *pinfo, guint8 opcode, union request_parameters_union parameters, bluetooth_data_t *bluetooth_data) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ key[4].key = NULL; request_data = wmem_new(wmem_file_scope(), request_data_t); request_data->opcode = opcode; /* PL...
static void save_request(packet_info *pinfo, guint8 opcode, union request_parameters_union parameters, bluetooth_data_t *bluetooth_data) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ key[4].key = NULL; request_data = wmem_new0(wmem_file_scope(), request_data_t); request_data->opcode = opcode; /* P...
static void save_request(packet_info *pinfo, guint8 opcode, union request_parameters_union parameters, bluetooth_data_t *bluetooth_data) { key[4].key = NULL; - request_data = wmem_new(wmem_file_scope(), request_data_t); + request_data = wmem_new0(wmem_file_scope(), request_data_t); request_data->opcode...
CVE-2020-9428
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-eap.c
dissect_eap_identity_wlan
static gboolean dissect_eap_identity_wlan(tvbuff_t *tvb, packet_info* pinfo, proto_tree* tree, int offset, gint size) { guint mnc = 0; guint mcc = 0; guint mcc_mnc = 0; proto_tree* eap_identity_tree = NULL; guint8 eap_identity_prefix = 0; guint8* identity = NULL; gchar** tokens = NULL; g...
static gboolean dissect_eap_identity_wlan(tvbuff_t *tvb, packet_info* pinfo, proto_tree* tree, int offset, gint size) { guint mnc = 0; guint mcc = 0; guint mcc_mnc = 0; proto_tree* eap_identity_tree = NULL; guint8 eap_identity_prefix = 0; guint8* identity = NULL; gchar** tokens = NULL; g...
static gboolean dissect_eap_identity_wlan(tvbuff_t *tvb, packet_info* pinfo, proto_tree* tree, int offset, gint size) { guint mnc = 0; guint mcc = 0; guint mcc_mnc = 0; proto_tree* eap_identity_tree = NULL; guint8 eap_identity_prefix = 0; guint8* identity = NULL; gchar** tokens = NULL; g...
static gboolean dissect_eap_identity_wlan(tvbuff_t *tvb, packet_info* pinfo, proto_tree* tree, int offset, gint size) { guint mnc = 0; guint mcc = 0; guint mcc_mnc = 0; proto_tree* eap_identity_tree = NULL; guint8 eap_identity_prefix = 0; guint8* identity = NULL; gchar** tokens = NULL; g...
static gboolean dissect_eap_identity_wlan(tvbuff_t *tvb, packet_info* pinfo, proto_tree* tree, int offset, gint size) { guint mnc = 0; guint mcc = 0; identity = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, size, ENC_ASCII); tokens = g_strsplit_set(identity, "@.", -1); switch(eap_identity_pre...
static gboolean dissect_eap_identity_wlan(tvbuff_t *tvb, packet_info* pinfo, proto_tree* tree, int offset, gint size) { guint mnc = 0; guint mcc = 0; identity = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, size, ENC_ASCII); tokens = g_strsplit_set(identity, "@.", -1); switch(eap_identity_pre...
static gboolean dissect_eap_identity_wlan(tvbuff_t *tvb, packet_info* pinfo, proto_tree* tree, int offset, gint size) { guint mnc = 0; guint mcc = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ identity = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, size, ENC_ASCII); tokens = g_strsplit_se...
static gboolean dissect_eap_identity_wlan(tvbuff_t *tvb, packet_info* pinfo, proto_tree* tree, int offset, gint size) { guint mnc = 0; guint mcc = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ identity = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, size, ENC_ASCII); tokens = g_strsplit_se...
static gboolean dissect_eap_identity_wlan(tvbuff_t *tvb, packet_info* pinfo, proto_tree* tree, int offset, gint size) { guint mnc = 0; guint mcc = 0; identity = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, size, ENC_ASCII); tokens = g_strsplit_set(identity, "@.", -1); switch(eap_identi...
CVE-2020-9429
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-wireguard.c
wg_dissect_data
static int wg_dissect_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { guint32 receiver_id; guint64 counter; proto_item *ti; proto_tree_add_item_ret_uint(wg_tree, hf_wg_receiver, tvb, 4, 4, ENC_LITTLE_ENDIAN, &receiver_id); col_append_fstr(pinfo->cinfo, COL_...
static int wg_dissect_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { guint32 receiver_id; guint64 counter; proto_item *ti; proto_tree_add_item_ret_uint(wg_tree, hf_wg_receiver, tvb, 4, 4, ENC_LITTLE_ENDIAN, &receiver_id); col_append_fstr(pinfo->cinfo, COL_...
static int wg_dissect_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { guint32 receiver_id; guint64 counter; proto_item *ti; proto_tree_add_item_ret_uint(wg_tree, hf_wg_receiver, tvb, 4, 4, ENC_LITTLE_ENDIAN, &receiver_id); col_append_fstr(pinfo->cinfo, COL_...
static int wg_dissect_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { guint32 receiver_id; guint64 counter; proto_item *ti; proto_tree_add_item_ret_uint(wg_tree, hf_wg_receiver, tvb, 4, 4, ENC_LITTLE_ENDIAN, &receiver_id); col_append_fstr(pinfo->cinfo, COL_...
static int wg_dissect_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { if (!PFO_FD_VISITED(pinfo)) { } else { session = wg_pinfo->session; } if (session) { ti = proto_tree_add_uint(wg_tree, hf_wg_stream, tvb, 0, 0, session->stream); proto...
static int wg_dissect_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { if (!PFO_FD_VISITED(pinfo)) { } else { session = wg_pinfo ? wg_pinfo->session : NULL; } if (session) { ti = proto_tree_add_uint(wg_tree, hf_wg_stream, tvb, 0, 0, session->stre...
static int wg_dissect_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!PFO_FD_VISITED(pinfo)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else { session = wg_pinfo->session; } if (session) ...
static int wg_dissect_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!PFO_FD_VISITED(pinfo)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else { session = wg_pinfo ? wg_pinfo->session : NULL; }...
static int wg_dissect_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { if (!PFO_FD_VISITED(pinfo)) { } else { - session = wg_pinfo->session; + session = wg_pinfo ? wg_pinfo->session : NULL; } if (session) { ti = proto_tree_add_uint(wg...
CVE-2020-9429
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-wireguard.c
wg_dissect_handshake_cookie
static int wg_dissect_handshake_cookie(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { guint32 receiver_id; proto_item *ti; proto_tree_add_item_ret_uint(wg_tree, hf_wg_receiver, tvb, 4, 4, ENC_LITTLE_ENDIAN, &receiver_id); col_append_fstr(pinfo->cinfo, COL_FO, ", re...
static int wg_dissect_handshake_cookie(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { guint32 receiver_id; proto_item *ti; proto_tree_add_item_ret_uint(wg_tree, hf_wg_receiver, tvb, 4, 4, ENC_LITTLE_ENDIAN, &receiver_id); col_append_fstr(pinfo->cinfo, COL_FO, ", re...
static int wg_dissect_handshake_cookie(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { guint32 receiver_id; proto_item *ti; proto_tree_add_item_ret_uint(wg_tree, hf_wg_receiver, tvb, 4, 4, ENC_LITTLE_ENDIAN, &receiver_id); col_append_fstr(pinfo->cinfo, COL_FO, ", re...
static int wg_dissect_handshake_cookie(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { guint32 receiver_id; proto_item *ti; proto_tree_add_item_ret_uint(wg_tree, hf_wg_receiver, tvb, 4, 4, ENC_LITTLE_ENDIAN, &receiver_id); col_append_fstr(pinfo->cinfo, COL_FO, ", re...
static int wg_dissect_handshake_cookie(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { if (!PFO_FD_VISITED(pinfo)) { } else { session = wg_pinfo->session; } if (session) { ti = proto_tree_add_uint(wg_tree, hf_wg_stream, tvb, 0, 0, session->stream); ...
static int wg_dissect_handshake_cookie(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { if (!PFO_FD_VISITED(pinfo)) { } else { session = wg_pinfo ? wg_pinfo->session : NULL; } if (session) { ti = proto_tree_add_uint(wg_tree, hf_wg_stream, tvb, 0, 0, s...
static int wg_dissect_handshake_cookie(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!PFO_FD_VISITED(pinfo)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else { session = wg_pinfo->session; } i...
static int wg_dissect_handshake_cookie(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!PFO_FD_VISITED(pinfo)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else { session = wg_pinfo ? wg_pinfo->session :...
static int wg_dissect_handshake_cookie(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { if (!PFO_FD_VISITED(pinfo)) { } else { - session = wg_pinfo->session; + session = wg_pinfo ? wg_pinfo->session : NULL; } if (session) { ti = proto_tree...
CVE-2020-9429
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-wireguard.c
wg_dissect_handshake_initiation
static int wg_dissect_handshake_initiation(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { guint32 sender_id; proto_item *ti; wg_keylog_read(); const wg_skey_t *skey_r = wg_mac1_key_probe(tvb, TRUE); wg_handshake_state_t *hs = NULL; if (!PFO_FD_VISITED(pinfo...
static int wg_dissect_handshake_initiation(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { guint32 sender_id; proto_item *ti; wg_keylog_read(); const wg_skey_t *skey_r = wg_mac1_key_probe(tvb, TRUE); wg_handshake_state_t *hs = NULL; if (!PFO_FD_VISITED(pinfo...
static int wg_dissect_handshake_initiation(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { guint32 sender_id; proto_item *ti; wg_keylog_read(); const wg_skey_t *skey_r = wg_mac1_key_probe(tvb, TRUE); wg_handshake_state_t *hs = NULL; if (!PFO_FD_VISITED(pinfo...
static int wg_dissect_handshake_initiation(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { guint32 sender_id; proto_item *ti; wg_keylog_read(); const wg_skey_t *skey_r = wg_mac1_key_probe(tvb, TRUE); wg_handshake_state_t *hs = NULL; if (!PFO_FD_VISITED(pinfo...
static int wg_dissect_handshake_initiation(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { const wg_skey_t *skey_r = wg_mac1_key_probe(tvb, TRUE); wg_handshake_state_t *hs = NULL; if (!PFO_FD_VISITED(pinfo)) { if (skey_r) { hs = wg_prepare_handshake_...
static int wg_dissect_handshake_initiation(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { const wg_skey_t *skey_r = wg_mac1_key_probe(tvb, TRUE); wg_handshake_state_t *hs = NULL; if (!PFO_FD_VISITED(pinfo)) { if (skey_r) { hs = wg_prepare_handshake_...
static int wg_dissect_handshake_initiation(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ const wg_skey_t *skey_r = wg_mac1_key_probe(tvb, TRUE); wg_handshake_state_t *hs = NULL; if (!PFO_FD_VISITED(pinfo)) { if...
static int wg_dissect_handshake_initiation(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ const wg_skey_t *skey_r = wg_mac1_key_probe(tvb, TRUE); wg_handshake_state_t *hs = NULL; if (!PFO_FD_VISITED(pinfo)) { if...
static int wg_dissect_handshake_initiation(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { const wg_skey_t *skey_r = wg_mac1_key_probe(tvb, TRUE); wg_handshake_state_t *hs = NULL; if (!PFO_FD_VISITED(pinfo)) { if (skey_r) { hs = wg_prepare_hand...
CVE-2020-9429
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-wireguard.c
wg_dissect_handshake_response
static int wg_dissect_handshake_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { guint32 sender_id, receiver_id; proto_item *ti; wg_session_t *session; wg_keylog_read(); const wg_skey_t *skey_i = wg_mac1_key_probe(tvb, FALSE); proto_tree_add_item_ret...
static int wg_dissect_handshake_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { guint32 sender_id, receiver_id; proto_item *ti; wg_session_t *session; wg_keylog_read(); const wg_skey_t *skey_i = wg_mac1_key_probe(tvb, FALSE); proto_tree_add_item_ret...
static int wg_dissect_handshake_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { guint32 sender_id, receiver_id; proto_item *ti; wg_session_t *session; wg_keylog_read(); const wg_skey_t *skey_i = wg_mac1_key_probe(tvb, FALSE); proto_tree_add_item_ret...
static int wg_dissect_handshake_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { guint32 sender_id, receiver_id; proto_item *ti; wg_session_t *session; wg_keylog_read(); const wg_skey_t *skey_i = wg_mac1_key_probe(tvb, FALSE); proto_tree_add_item_ret...
static int wg_dissect_handshake_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { if (!PFO_FD_VISITED(pinfo)) { } else { session = wg_pinfo->session; } wg_dissect_pubkey(wg_tree, tvb, 12, TRUE); if (!PFO_FD_VISITED(pinfo)) { if (session) {...
static int wg_dissect_handshake_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { if (!PFO_FD_VISITED(pinfo)) { } else { session = wg_pinfo ? wg_pinfo->session : NULL; } wg_dissect_pubkey(wg_tree, tvb, 12, TRUE); if (!PFO_FD_VISITED(pinfo)) { ...
static int wg_dissect_handshake_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!PFO_FD_VISITED(pinfo)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else { session = wg_pinfo->session; } ...
static int wg_dissect_handshake_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!PFO_FD_VISITED(pinfo)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else { session = wg_pinfo ? wg_pinfo->session...
static int wg_dissect_handshake_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *wg_tree, wg_packet_info_t *wg_pinfo) { if (!PFO_FD_VISITED(pinfo)) { } else { - session = wg_pinfo->session; + session = wg_pinfo ? wg_pinfo->session : NULL; } wg_dissect_pubkey(wg_tree, tvb, 12, T...
CVE-2020-9430
Wireshark
https://github.com/wireshark/wireshark
plugins/epan/wimax/msg_dlmap.c
proto_register_mac_mgmt_msg_dlmap
void proto_register_mac_mgmt_msg_dlmap(void) { static hf_register_info hf[] = { { &hf_dlmap_bsid, { "Base Station ID", "wmx.dlmap.bsid", FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_dlmap_dcd, { "DCD Count", "wmx.dlmap.dcd...
void proto_register_mac_mgmt_msg_dlmap(void) { static hf_register_info hf[] = { { &hf_dlmap_bsid, { "Base Station ID", "wmx.dlmap.bsid", FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_dlmap_dcd, { "DCD Count", "wmx.dlmap.dcd...
void proto_register_mac_mgmt_msg_dlmap(void) { static hf_register_info hf[] = { { &hf_dlmap_bsid, { "Base Station ID", "wmx.dlmap.bsid", FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_dlmap_dcd, { "DCD Count", "wmx.dlmap.dcd...
void proto_register_mac_mgmt_msg_dlmap(void) { static hf_register_info hf[] = { { &hf_dlmap_bsid, { "Base Station ID", "wmx.dlmap.bsid", FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_dlmap_dcd, { "DCD Count", "wmx.dlmap.dcd...
void proto_register_mac_mgmt_msg_dlmap(void) { static gint *ett[] = { &ett_dlmap, &ett_dlmap_ie, &ett_109x, &ett_109x_dl, &ett_109x_ul, &ett_275_phy, &ett_275_1, &ett_277, &ett_277b, &ett_278, &ett_279, &ett_280, &ett_281, &ett_282, &ett_283, &ett_284, &ett_285, &ett_286, &ett_286a, &ett_286b, &ett_286c, &e...
void proto_register_mac_mgmt_msg_dlmap(void) { static gint *ett[] = { &ett_dlmap, &ett_dlmap_ie, &ett_109x, &ett_109x_dl, &ett_109x_ul, &ett_275_phy, &ett_275_1, &ett_277, &ett_277b, &ett_278, &ett_279, &ett_280, &ett_281, &ett_282, &ett_283, &ett_284, &ett_285, &ett_286, &ett_286a, &ett_286b, &ett_286c, &e...
void proto_register_mac_mgmt_msg_dlmap(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static gint *ett[] = { &ett_dlmap, &ett_dlmap_ie, &ett_109x, &ett_109x_dl, &ett_109x_ul, &ett_275_phy, &ett_275_1, &ett_277, &ett_277b, &ett_278, &ett_279, &ett_280, &ett_281, &ett_282, &ett_283, &ett_284, &ett_...
void proto_register_mac_mgmt_msg_dlmap(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static gint *ett[] = { &ett_dlmap, &ett_dlmap_ie, &ett_109x, &ett_109x_dl, &ett_109x_ul, &ett_275_phy, &ett_275_1, &ett_277, &ett_277b, &ett_278, &ett_279, &ett_280, &ett_281, &ett_282, &ett_283, &ett_284, &ett_...
void proto_register_mac_mgmt_msg_dlmap(void) { static gint *ett[] = { &ett_dlmap, &ett_dlmap_ie, &ett_109x, &ett_109x_dl, &ett_109x_ul, &ett_275_phy, &ett_275_1, &ett_277, &ett_277b, &ett_278, &ett_279, &ett_280, &ett_281, &ett_282, &ett_283, &ett_284, &ett_285, &ett_286, &ett_286a, &ett_286b, &ett_286c,...
CVE-2020-9430
Wireshark
https://github.com/wireshark/wireshark
plugins/epan/wimax/msg_dlmap.c
wimax_decode_dlmapc
gint wimax_decode_dlmapc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *base_tree) { guint offset = 0; proto_item *ti = NULL; proto_item *ti_phy = NULL; proto_item *ti_dlmap_ies = NULL; proto_tree *tree = NULL; proto_tree *ie_tree = NULL; proto_tree *phy_tree = NULL; gint ulmap_appended;...
gint wimax_decode_dlmapc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *base_tree) { guint offset = 0; proto_item *ti = NULL; proto_item *ti_phy = NULL; proto_item *ti_dlmap_ies = NULL; proto_tree *tree = NULL; proto_tree *ie_tree = NULL; proto_tree *phy_tree = NULL; gint ulmap_appended;...
gint wimax_decode_dlmapc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *base_tree) { guint offset = 0; proto_item *ti = NULL; proto_item *ti_phy = NULL; proto_item *ti_dlmap_ies = NULL; proto_tree *tree = NULL; proto_tree *ie_tree = NULL; proto_tree *phy_tree = NULL; gint ulmap_appended;...
gint wimax_decode_dlmapc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *base_tree) { guint offset = 0; proto_item *ti = NULL; proto_item *ti_phy = NULL; proto_item *ti_dlmap_ies = NULL; proto_tree *tree = NULL; proto_tree *ie_tree = NULL; proto_tree *phy_tree = NULL; gint ulmap_appended;...
gint wimax_decode_dlmapc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *base_tree) { guint offset = 0; proto_item *ti_phy = NULL; proto_item *ti_dlmap_ies = NULL; guint tvb_len = tvb_reported_length(tvb); col_append_sep_str(pinfo->cinfo, COL_FO, NULL, "Compressed DL-MAP"); length = tvb_get_ntohs...
gint wimax_decode_dlmapc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *base_tree) { guint offset = 0; proto_item *ti_phy = NULL; proto_item *ti_dlmap_ies = NULL; guint tvb_len = tvb_reported_length(tvb); col_append_sep_str(pinfo->cinfo, COL_FO, NULL, "Compressed DL-MAP"); length = tvb_get_ntohs...
gint wimax_decode_dlmapc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *base_tree) { guint offset = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ proto_item *ti_phy = NULL; proto_item *ti_dlmap_ies = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint tvb_len = tvb_reported_length(tvb);...
gint wimax_decode_dlmapc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *base_tree) { guint offset = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ proto_item *ti_phy = NULL; proto_item *ti_dlmap_ies = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint tvb_len = tvb_reported_length(tvb);...
gint wimax_decode_dlmapc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *base_tree) { guint offset = 0; proto_item *ti_phy = NULL; proto_item *ti_dlmap_ies = NULL; guint tvb_len = tvb_reported_length(tvb); col_append_sep_str(pinfo->cinfo, COL_FO, NULL, "Compressed DL-MAP"); length = tvb_ge...
CVE-2020-9431
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-lte-rrc.c
dissect_lte_rrc_SystemInfoListGERAN_item
static int dissect_lte_rrc_SystemInfoListGERAN_item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *sys_info_list_tvb = NULL; proto_tree *subtree; offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, 1, 23, FALSE, &sys_info_list_tvb); if (sys_inf...
static int dissect_lte_rrc_SystemInfoListGERAN_item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *sys_info_list_tvb = NULL; proto_tree *subtree; offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, 1, 23, FALSE, &sys_info_list_tvb); if (sys_inf...
static int dissect_lte_rrc_SystemInfoListGERAN_item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *sys_info_list_tvb = NULL; proto_tree *subtree; offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, 1, 23, FALSE, &sys_info_list_tvb); if (sys_inf...
static int dissect_lte_rrc_SystemInfoListGERAN_item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *sys_info_list_tvb = NULL; proto_tree *subtree; offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, 1, 23, FALSE, &sys_info_list_tvb); if (sys_inf...
static int dissect_lte_rrc_SystemInfoListGERAN_item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *sys_info_list_tvb = NULL; offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, 1, 23, FALSE, &sys_info_list_tvb); if (sys_info_list_tvb) { swi...
static int dissect_lte_rrc_SystemInfoListGERAN_item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *sys_info_list_tvb = NULL; offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, 1, 23, FALSE, &sys_info_list_tvb); if (sys_info_list_tvb) { swi...
static int dissect_lte_rrc_SystemInfoListGERAN_item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *sys_info_list_tvb = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, 1, 23, FALSE, &sys_info_l...
static int dissect_lte_rrc_SystemInfoListGERAN_item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *sys_info_list_tvb = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, 1, 23, FALSE, &sys_info_l...
static int dissect_lte_rrc_SystemInfoListGERAN_item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *sys_info_list_tvb = NULL; offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, 1, 23, FALSE, &sys_info_list_tvb); if (sys_info_list_tvb) { ...
CVE-2020-9431
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-lte-rrc.c
dissect_lte_rrc_T_targetRAT_MessageContainer
static int dissect_lte_rrc_T_targetRAT_MessageContainer(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *target_rat_msg_cont_tvb = NULL; offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, NO_BOUND, NO_BOUND, FALSE, &target_rat_msg_cont_tvb); if(targ...
static int dissect_lte_rrc_T_targetRAT_MessageContainer(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *target_rat_msg_cont_tvb = NULL; offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, NO_BOUND, NO_BOUND, FALSE, &target_rat_msg_cont_tvb); if(targ...
static int dissect_lte_rrc_T_targetRAT_MessageContainer(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *target_rat_msg_cont_tvb = NULL; offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, NO_BOUND, NO_BOUND, FALSE, &target_rat_msg_cont_tvb); if(targ...
static int dissect_lte_rrc_T_targetRAT_MessageContainer(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *target_rat_msg_cont_tvb = NULL; offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, NO_BOUND, NO_BOUND, FALSE, &target_rat_msg_cont_tvb); if(targ...
static int dissect_lte_rrc_T_targetRAT_MessageContainer(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *target_rat_msg_cont_tvb = NULL; offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, NO_BOUND, NO_BOUND, FALSE, &target_rat_msg_cont_tvb); if(targ...
static int dissect_lte_rrc_T_targetRAT_MessageContainer(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *target_rat_msg_cont_tvb = NULL; offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, NO_BOUND, NO_BOUND, FALSE, &target_rat_msg_cont_tvb); if(targ...
static int dissect_lte_rrc_T_targetRAT_MessageContainer(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *target_rat_msg_cont_tvb = NULL; offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, NO_BOUND, NO_BOUND, FALSE, &target_rat_msg_cont_tvb); if(targ...
static int dissect_lte_rrc_T_targetRAT_MessageContainer(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *target_rat_msg_cont_tvb = NULL; offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, NO_BOUND, NO_BOUND, FALSE, &target_rat_msg_cont_tvb); if(targ...
static int dissect_lte_rrc_T_targetRAT_MessageContainer(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *target_rat_msg_cont_tvb = NULL; offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, NO_BOUND, NO_BOUND, FALSE, &target_rat_msg_cont_tvb); if(...
CVE-2021-0089
xen
https://github.com/xen-project/xen
xen/arch/x86/pv/emul-priv-op.c
io_emul_stub_setup
static io_emul_stub_t *io_emul_stub_setup(struct priv_op_ctxt *ctxt, u8 opcode, unsigned int port, unsigned int bytes) { static const char prologue[] = { 0x53, 0x55, 0x41, 0x54, 0x41, 0x55, 0x41, 0x56, 0x41, 0x57, 0x57, }; static const char epilogue[] = { 0x5f, 0x41, 0x5f, 0x41, 0x5e, 0x41, ...
static io_emul_stub_t *io_emul_stub_setup(struct priv_op_ctxt *ctxt, u8 opcode, unsigned int port, unsigned int bytes) { static const char prologue[] = { 0x53, 0x55, 0x41, 0x54, 0x41, 0x55, 0x41, 0x56, 0x41, 0x57, 0x57, }; static const char epilogue[] = { 0x5f, 0x41, 0x5f, 0x41, 0x5e, 0x41, ...
static io_emul_stub_t *io_emul_stub_setup(struct priv_op_ctxt *ctxt, u8 opcode, unsigned int port, unsigned int bytes) { struct stubs *this_stubs = &this_cpu(stubs); unsigned long stub_va = this_stubs->addr + STUB_BUF_SIZE / 2; long disp; bool use_quirk_stub = false; if ( !ctxt->io_emul_stub ) { ...
static io_emul_stub_t *io_emul_stub_setup(struct priv_op_ctxt *ctxt, u8 opcode, unsigned int port, unsigned int bytes) { struct stubs *this_stubs = &this_cpu(stubs); unsigned long stub_va = this_stubs->addr + STUB_BUF_SIZE / 2; long disp; bool use_quirk_stub = false; if ( !ctxt->io_emul_stub ) { ...
static io_emul_stub_t *io_emul_stub_setup(struct priv_op_ctxt *ctxt, u8 opcode, unsigned int port, unsigned int bytes) { BUG_ON(STUB_BUF_SIZE / 2 < (p - ctxt->io_emul_stub)); return (void *)stub_va; }
static io_emul_stub_t *io_emul_stub_setup(struct priv_op_ctxt *ctxt, u8 opcode, unsigned int port, unsigned int bytes) { BUG_ON(STUB_BUF_SIZE / 2 < (p - ctxt->io_emul_stub)); block_speculation(); return (void *)stub_va; }
static io_emul_stub_t *io_emul_stub_setup(struct priv_op_ctxt *ctxt, u8 opcode, unsigned int port, unsigned int bytes) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ BUILD_BUG_ON(STUB_BUF_SIZE / 2 < MAX(9, 5 + IOEMUL_QUIRK_STUB_BYTES)); return (void *)stub_va; }
static io_emul_stub_t *io_emul_stub_setup(struct priv_op_ctxt *ctxt, u8 opcode, unsigned int port, unsigned int bytes) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ BUILD_BUG_ON(STUB_BUF_SIZE / 2 < MAX(9, 5 + IOEMUL_QUIRK_STUB_BYTES)); asm volatile ( "lfence" ::: "memory" ); return (void *)stub_va; }
static io_emul_stub_t *io_emul_stub_setup(struct priv_op_ctxt *ctxt, u8 opcode, unsigned int port, unsigned int bytes) { BUG_ON(STUB_BUF_SIZE / 2 < (p - ctxt->io_emul_stub)); + block_speculation(); return (void *)stub_va; }
CVE-2021-20196
QEMU
https://github.com/qemu/qemu
hw/block/fdc.c
get_cur_drv
static FDrive *get_cur_drv(FDCtrl *fdctrl) { return get_drv(fdctrl, fdctrl->cur_drv); }
static FDrive *get_cur_drv(FDCtrl *fdctrl) { FDrive *cur_drv = get_drv(fdctrl, fdctrl->cur_drv); if (!cur_drv->blk) { cur_drv->blk = blk_create_empty_drive(); } return cur_drv; }
static FDrive *get_cur_drv(FDCtrl *fdctrl) { return get_drv(fdctrl, fdctrl->cur_drv); }
static FDrive *get_cur_drv(FDCtrl *fdctrl) { FDrive *cur_drv = get_drv(fdctrl, fdctrl->cur_drv); if (!cur_drv->blk) { cur_drv->blk = blk_create_empty_drive(); } return cur_drv; }
static FDrive *get_cur_drv(FDCtrl *fdctrl) { return get_drv(fdctrl, fdctrl->cur_drv); }
static FDrive *get_cur_drv(FDCtrl *fdctrl) { FDrive *cur_drv = get_drv(fdctrl, fdctrl->cur_drv); if (!cur_drv->blk) { cur_drv->blk = blk_create_empty_drive(); } return cur_drv; }
static FDrive *get_cur_drv(FDCtrl *fdctrl) { return get_drv(fdctrl, fdctrl->cur_drv); }
static FDrive *get_cur_drv(FDCtrl *fdctrl) { FDrive *cur_drv = get_drv(fdctrl, fdctrl->cur_drv); if (!cur_drv->blk) { cur_drv->blk = blk_create_empty_drive(); } return cur_drv; }
static FDrive *get_cur_drv(FDCtrl *fdctrl) { - return get_drv(fdctrl, fdctrl->cur_drv); + FDrive *cur_drv = get_drv(fdctrl, fdctrl->cur_drv); + if (!cur_drv->blk) { + cur_drv->blk = blk_create_empty_drive(); + } + return cur_drv; }
CVE-2021-20203
QEMU
https://github.com/qemu/qemu
hw/net/vmxnet3.c
vmxnet3_activate_device
static void vmxnet3_activate_device(VMXNET3State *s) { int i; static const uint32_t VMXNET3_DEF_TX_THRESHOLD = 1; PCIDevice *d = PCI_DEVICE(s); hwaddr qdescr_table_pa; uint64_t pa; uint32_t size; if (!vmxnet3_verify_driver_magic(d, s->drv_shmem)) { VMW_ERPRN("Device configuration rec...
static void vmxnet3_activate_device(VMXNET3State *s) { int i; static const uint32_t VMXNET3_DEF_TX_THRESHOLD = 1; PCIDevice *d = PCI_DEVICE(s); hwaddr qdescr_table_pa; uint64_t pa; uint32_t size; if (!vmxnet3_verify_driver_magic(d, s->drv_shmem)) { VMW_ERPRN("Device configuration rec...
static void vmxnet3_activate_device(VMXNET3State *s) { int i; static const uint32_t VMXNET3_DEF_TX_THRESHOLD = 1; PCIDevice *d = PCI_DEVICE(s); hwaddr qdescr_table_pa; uint64_t pa; uint32_t size; if (!vmxnet3_verify_driver_magic(d, s->drv_shmem)) { VMW_ERPRN("Device configuration rec...
static void vmxnet3_activate_device(VMXNET3State *s) { int i; static const uint32_t VMXNET3_DEF_TX_THRESHOLD = 1; PCIDevice *d = PCI_DEVICE(s); hwaddr qdescr_table_pa; uint64_t pa; uint32_t size; if (!vmxnet3_verify_driver_magic(d, s->drv_shmem)) { VMW_ERPRN("Device configuration rec...
static void vmxnet3_activate_device(VMXNET3State *s) { static const uint32_t VMXNET3_DEF_TX_THRESHOLD = 1; PCIDevice *d = PCI_DEVICE(s); if (!vmxnet3_verify_driver_magic(d, s->drv_shmem)) { return; } s->txq_num = VMXNET3_READ_DRV_SHARED8(d, s->drv_shmem, devRead.misc.numTxQueues); s->rxq...
static void vmxnet3_activate_device(VMXNET3State *s) { static const uint32_t VMXNET3_DEF_TX_THRESHOLD = 1; PCIDevice *d = PCI_DEVICE(s); if (!vmxnet3_verify_driver_magic(d, s->drv_shmem)) { return; } s->txq_num = VMXNET3_READ_DRV_SHARED8(d, s->drv_shmem, devRead.misc.numTxQueues); s->rxq...
static void vmxnet3_activate_device(VMXNET3State *s) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static const uint32_t VMXNET3_DEF_TX_THRESHOLD = 1; PCIDevice *d = PCI_DEVICE(s); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!vmxnet3_verify_driver_magic(d, s->drv_shmem)) { /* PLACEHOLDER...
static void vmxnet3_activate_device(VMXNET3State *s) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static const uint32_t VMXNET3_DEF_TX_THRESHOLD = 1; PCIDevice *d = PCI_DEVICE(s); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!vmxnet3_verify_driver_magic(d, s->drv_shmem)) { /* PLACEHOLDER...
static void vmxnet3_activate_device(VMXNET3State *s) { static const uint32_t VMXNET3_DEF_TX_THRESHOLD = 1; PCIDevice *d = PCI_DEVICE(s); if (!vmxnet3_verify_driver_magic(d, s->drv_shmem)) { return; } s->txq_num = VMXNET3_READ_DRV_SHARED8(d, s->drv_shmem, devRead.misc.numTxQueues); ...
CVE-2021-22173
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-usb-hid.c
dissect_usb_hid_report_localitem_data
static int dissect_usb_hid_report_localitem_data(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, unsigned int bSize, unsigned int bTag, struct usb_hid_global_state *global) { guint32 id = 0xffff; proto_item *ti = proto_tree_get_parent(tree); gchar *str = NULL; guint32 val; switch (b...
static int dissect_usb_hid_report_localitem_data(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, unsigned int bSize, unsigned int bTag, struct usb_hid_global_state *global) { guint32 id = 0xffff; proto_item *ti = proto_tree_get_parent(tree); gchar *str = NULL; guint32 val; switch (b...
static int dissect_usb_hid_report_localitem_data(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, unsigned int bSize, unsigned int bTag, struct usb_hid_global_state *global) { guint32 id = 0xffff; proto_item *ti = proto_tree_get_parent(tree); gchar *str = NULL; guint32 val; switch (b...
static int dissect_usb_hid_report_localitem_data(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, unsigned int bSize, unsigned int bTag, struct usb_hid_global_state *global) { guint32 id = 0xffff; proto_item *ti = proto_tree_get_parent(tree); gchar *str = NULL; guint32 val; switch (b...
static int dissect_usb_hid_report_localitem_data(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, unsigned int bSize, unsigned int bTag, struct usb_hid_global_state *global) { guint32 id = 0xffff; proto_item *ti = proto_tree_get_parent(tree); gchar *str = NULL; switch (bTag) { case U...
static int dissect_usb_hid_report_localitem_data(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, unsigned int bSize, unsigned int bTag, struct usb_hid_global_state *global) { guint32 id = 0xffff; proto_item *ti = proto_tree_get_parent(tree); gchar *str = NULL; switch (bTag) { case U...
static int dissect_usb_hid_report_localitem_data(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, unsigned int bSize, unsigned int bTag, struct usb_hid_global_state *global) { guint32 id = 0xffff; proto_item *ti = proto_tree_get_parent(tree); gchar *str = NULL; /* PLACEHOLDER: DO NOT DEL...
static int dissect_usb_hid_report_localitem_data(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, unsigned int bSize, unsigned int bTag, struct usb_hid_global_state *global) { guint32 id = 0xffff; proto_item *ti = proto_tree_get_parent(tree); gchar *str = NULL; /* PLACEHOLDER: DO NOT DEL...
static int dissect_usb_hid_report_localitem_data(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, unsigned int bSize, unsigned int bTag, struct usb_hid_global_state *global) { guint32 id = 0xffff; proto_item *ti = proto_tree_get_parent(tree); gchar *str = NULL; switch (bTag) { ...
CVE-2021-22173
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-usb-hid.c
get_usage_page_item_string
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; 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; 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; 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; 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; 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; 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; 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; 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: s...
CVE-2021-22174
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-usb-hid.c
parse_report_descriptor
static gboolean parse_report_descriptor(report_descriptor_t *rdesc) { hid_field_t field; guint8 *data = rdesc->desc_body; unsigned int tag, type, size; guint8 prefix; guint32 defined = 0, usage = 0, usage_min = 0, usage_max = 0; wmem_allocator_t *scope = wmem_file_scope(); gboolean first_ite...
static gboolean parse_report_descriptor(report_descriptor_t *rdesc) { hid_field_t field; guint8 *data = rdesc->desc_body; unsigned int tag, type, size; guint8 prefix; guint32 defined = 0, usage = 0, usage_min = 0, usage_max = 0; wmem_allocator_t *scope = wmem_file_scope(); gboolean first_ite...
static gboolean parse_report_descriptor(report_descriptor_t *rdesc) { hid_field_t field; guint8 *data = rdesc->desc_body; unsigned int tag, type, size; guint8 prefix; guint32 defined = 0, usage = 0, usage_min = 0, usage_max = 0; wmem_allocator_t *scope = wmem_file_scope(); gboolean first_ite...
static gboolean parse_report_descriptor(report_descriptor_t *rdesc) { hid_field_t field; guint8 *data = rdesc->desc_body; unsigned int tag, type, size; guint8 prefix; guint32 defined = 0, usage = 0, usage_min = 0, usage_max = 0; wmem_allocator_t *scope = wmem_file_scope(); gboolean first_ite...
static gboolean parse_report_descriptor(report_descriptor_t *rdesc) { guint8 *data = rdesc->desc_body; guint32 defined = 0, usage = 0, usage_min = 0, usage_max = 0; wmem_allocator_t *scope = wmem_file_scope(); field.usages = wmem_array_new(scope, sizeof(guint32)); rdesc->fields_in = wmem_array_new(s...
static gboolean parse_report_descriptor(report_descriptor_t *rdesc) { guint8 *data = rdesc->desc_body; guint32 defined = 0, usage = 0, usage_min = 0, usage_max = 0; wmem_allocator_t *scope = wmem_file_scope(); field.usages = wmem_array_new(scope, sizeof(guint32)); rdesc->fields_in = wmem_array_new(s...
static gboolean parse_report_descriptor(report_descriptor_t *rdesc) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint8 *data = rdesc->desc_body; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint32 defined = 0, usage = 0, usage_min = 0, usage_max = 0; wmem_allocator_t *scope = wmem_file_scope()...
static gboolean parse_report_descriptor(report_descriptor_t *rdesc) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint8 *data = rdesc->desc_body; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint32 defined = 0, usage = 0, usage_min = 0, usage_max = 0; wmem_allocator_t *scope = wmem_file_scope()...
static gboolean parse_report_descriptor(report_descriptor_t *rdesc) { guint8 *data = rdesc->desc_body; guint32 defined = 0, usage = 0, usage_min = 0, usage_max = 0; wmem_allocator_t *scope = wmem_file_scope(); field.usages = wmem_array_new(scope, sizeof(guint32)); rdesc->fields_in = wmem_array...
CVE-2021-22191
Wireshark
https://github.com/wireshark/wireshark
ui/qt/proto_tree.cpp
itemDoubleClicked
void ProtoTree::itemDoubleClicked(const QModelIndex &index) { FieldInformation finfo(proto_tree_model_->protoNodeFromIndex(index).protoNode()); if (!finfo.isValid()) { return; } if (finfo.headerInfo().type == FT_FRAMENUM) { if (QApplication::queryKeyboardModifiers() & Qt::ShiftModifier) ...
void ProtoTree::itemDoubleClicked(const QModelIndex &index) { FieldInformation finfo(proto_tree_model_->protoNodeFromIndex(index).protoNode()); if (!finfo.isValid()) { return; } if (finfo.headerInfo().type == FT_FRAMENUM) { if (QApplication::queryKeyboardModifiers() & Qt::ShiftModifier) ...
void ProtoTree::itemDoubleClicked(const QModelIndex &index) { FieldInformation finfo(proto_tree_model_->protoNodeFromIndex(index).protoNode()); if (!finfo.isValid()) { return; } if (finfo.headerInfo().type == FT_FRAMENUM) { if (QApplication::queryKeyboardModifiers() & Qt::ShiftModifier) ...
void ProtoTree::itemDoubleClicked(const QModelIndex &index) { FieldInformation finfo(proto_tree_model_->protoNodeFromIndex(index).protoNode()); if (!finfo.isValid()) { return; } if (finfo.headerInfo().type == FT_FRAMENUM) { if (QApplication::queryKeyboardModifiers() & Qt::ShiftModifier) ...
void ProtoTree::itemDoubleClicked(const QModelIndex &index) { if (finfo.headerInfo().type == FT_FRAMENUM) { } else { QString url = finfo.url(); if (!url.isEmpty()) { QDesktopServices::openUrl(QUrl(url)); } } }
void ProtoTree::itemDoubleClicked(const QModelIndex &index) { if (finfo.headerInfo().type == FT_FRAMENUM) { } else { QString url = finfo.url(); if (!url.isEmpty()) { QApplication::clipboard()->setText(url); QString push_msg = tr("Copied ") + url; wsApp->pushSt...
void ProtoTree::itemDoubleClicked(const QModelIndex &index) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (finfo.headerInfo().type == FT_FRAMENUM) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else { QString url = finfo.url(); if (!url.isEmpty()) { QDesktopServices::...
void ProtoTree::itemDoubleClicked(const QModelIndex &index) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (finfo.headerInfo().type == FT_FRAMENUM) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else { QString url = finfo.url(); if (!url.isEmpty()) { QApplication::clip...
void ProtoTree::itemDoubleClicked(const QModelIndex &index) { if (finfo.headerInfo().type == FT_FRAMENUM) { } else { QString url = finfo.url(); if (!url.isEmpty()) { - QDesktopServices::openUrl(QUrl(url)); + QApplication::clipboard()->setText(url); + QString...
CVE-2021-22207
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-mswsp.c
dissect_CPMSetBindings
static int dissect_CPMSetBindings(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, gboolean in, void *private_data) { gint offset = 16; struct CPMSetBindingsIn request; col_append_str(pinfo->cinfo, COL_FO, "SetBindings"); if (in) { struct mswsp_ct *ct = NULL; struct message_da...
static int dissect_CPMSetBindings(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, gboolean in, void *private_data) { gint offset = 16; struct CPMSetBindingsIn request; col_append_str(pinfo->cinfo, COL_FO, "SetBindings"); if (in) { struct mswsp_ct *ct = NULL; struct message_da...
static int dissect_CPMSetBindings(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, gboolean in, void *private_data) { gint offset = 16; struct CPMSetBindingsIn request; col_append_str(pinfo->cinfo, COL_FO, "SetBindings"); if (in) { struct mswsp_ct *ct = NULL; struct message_da...
static int dissect_CPMSetBindings(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, gboolean in, void *private_data) { gint offset = 16; struct CPMSetBindingsIn request; col_append_str(pinfo->cinfo, COL_FO, "SetBindings"); if (in) { struct mswsp_ct *ct = NULL; struct message_da...
static int dissect_CPMSetBindings(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, gboolean in, void *private_data) { gint offset = 16; if (in) { ti = proto_tree_add_item(parent_tree, hf_mswsp_msg, tvb, offset, -1, ENC_NA); tree = proto_item_add_subtree(ti, ett_mswsp_msg); pro...
static int dissect_CPMSetBindings(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, gboolean in, void *private_data) { gint offset = 16; if (in) { ti = proto_tree_add_item(parent_tree, hf_mswsp_msg, tvb, offset, -1, ENC_NA); tree = proto_item_add_subtree(ti, ett_mswsp_msg); pro...
static int dissect_CPMSetBindings(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, gboolean in, void *private_data) { gint offset = 16; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (in) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ti = proto_tree_add_item(parent_tree, hf_mswsp_...
static int dissect_CPMSetBindings(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, gboolean in, void *private_data) { gint offset = 16; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (in) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ti = proto_tree_add_item(parent_tree, hf_mswsp_...
static int dissect_CPMSetBindings(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, gboolean in, void *private_data) { gint offset = 16; if (in) { ti = proto_tree_add_item(parent_tree, hf_mswsp_msg, tvb, offset, -1, ENC_NA); tree = proto_item_add_subtree(ti, ett_mswsp_msg); ...
CVE-2021-22207
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-mswsp.c
vvalue_tvb_vector_internal
static int vvalue_tvb_vector_internal(tvbuff_t *tvb, int offset, struct vt_vector *val, struct vtype_data *type, guint num) { const int offset_in = offset; const gboolean varsize = (type->size == -1); const guint elsize = varsize ? (guint)sizeof(struct data_blob) : (guint)type->size; guint8 *data; i...
static int vvalue_tvb_vector_internal(tvbuff_t *tvb, int offset, struct vt_vector *val, struct vtype_data *type, guint num) { const int offset_in = offset; const gboolean varsize = (type->size == -1); const guint elsize = varsize ? (guint)sizeof(struct data_blob) : (guint)type->size; guint8 *data; i...
static int vvalue_tvb_vector_internal(tvbuff_t *tvb, int offset, struct vt_vector *val, struct vtype_data *type, guint num) { const int offset_in = offset; const gboolean varsize = (type->size == -1); const guint elsize = varsize ? (guint)sizeof(struct data_blob) : (guint)type->size; guint8 *data; i...
static int vvalue_tvb_vector_internal(tvbuff_t *tvb, int offset, struct vt_vector *val, struct vtype_data *type, guint num) { const int offset_in = offset; const gboolean varsize = (type->size == -1); const guint elsize = varsize ? (guint)sizeof(struct data_blob) : (guint)type->size; guint8 *data; i...
static int vvalue_tvb_vector_internal(tvbuff_t *tvb, int offset, struct vt_vector *val, struct vtype_data *type, guint num) { const gboolean varsize = (type->size == -1); const guint elsize = varsize ? (guint)sizeof(struct data_blob) : (guint)type->size; guint i; if ((guint64)elsize * (guint64)num > G_M...
static int vvalue_tvb_vector_internal(tvbuff_t *tvb, int offset, struct vt_vector *val, struct vtype_data *type, guint num) { const gboolean varsize = (type->size == -1); const guint elsize = varsize ? (guint)sizeof(struct data_blob) : (guint)type->size; guint i; if (num > MAX_VT_VECTOR_SIZE) { ...
static int vvalue_tvb_vector_internal(tvbuff_t *tvb, int offset, struct vt_vector *val, struct vtype_data *type, guint num) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ const gboolean varsize = (type->size == -1); const guint elsize = varsize ? (guint)sizeof(struct data_blob) : (guint)type->size; /* ...
static int vvalue_tvb_vector_internal(tvbuff_t *tvb, int offset, struct vt_vector *val, struct vtype_data *type, guint num) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ const gboolean varsize = (type->size == -1); const guint elsize = varsize ? (guint)sizeof(struct data_blob) : (guint)type->size; /* ...
static int vvalue_tvb_vector_internal(tvbuff_t *tvb, int offset, struct vt_vector *val, struct vtype_data *type, guint num) { const gboolean varsize = (type->size == -1); const guint elsize = varsize ? (guint)sizeof(struct data_blob) : (guint)type->size; guint i; - if ((guint64)elsize * (guint64)num ...
CVE-2021-22222
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-dvb-s2-bb.c
dissect_dvb_s2_bb
static int dissect_dvb_s2_bb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { proto_item *ti; proto_tree *dvb_s2_bb_tree; guint8 input8, matype1; guint8 sync_flag = 0; guint16 input16, bb_data_len = 0, user_packet_length; int sub_dissected = 0, flag_is_ms = 0, new_off = 0; ...
static int dissect_dvb_s2_bb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { proto_item *ti; proto_tree *dvb_s2_bb_tree; guint8 input8, matype1; guint8 sync_flag = 0; guint16 input16, bb_data_len = 0, user_packet_length; int sub_dissected = 0, flag_is_ms = 0, new_off = 0; ...
static int dissect_dvb_s2_bb(tvbuff_t *tvb, int cur_off, proto_tree *tree, packet_info *pinfo) { proto_item *ti; proto_tree *dvb_s2_bb_tree; guint8 input8, matype1; guint8 sync_flag = 0; guint16 input16, bb_data_len = 0, user_packet_length; int sub_dissected = 0, flag_is_ms = 0, new_off = 0; ...
static int dissect_dvb_s2_bb(tvbuff_t *tvb, int cur_off, proto_tree *tree, packet_info *pinfo) { proto_item *ti; proto_tree *dvb_s2_bb_tree; guint8 input8, matype1; guint8 sync_flag = 0; guint16 input16, bb_data_len = 0, user_packet_length; int sub_dissected = 0, flag_is_ms = 0, new_off = 0; ...
static int dissect_dvb_s2_bb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { switch (matype1 & DVB_S2_BB_TSGS_MASK) { case DVB_S2_BB_TSGS_GENERIC_CONTUOUS: if (dvb_s2_df_dissection) { while (bb_data_len) { if (sync_flag == DVB_S2_BB_SYNC_EIP_CRC32 && bb_da...
static int dissect_dvb_s2_bb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { switch (matype1 & DVB_S2_BB_TSGS_MASK) { case DVB_S2_BB_TSGS_GENERIC_CONTUOUS: if (dvb_s2_df_dissection) { while (bb_data_len) { if (sync_flag == DVB_S2_BB_SYNC_EIP_CRC32 && bb_da...
static int dissect_dvb_s2_bb(tvbuff_t *tvb, int cur_off, proto_tree *tree, packet_info *pinfo) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (matype1 & DVB_S2_BB_TSGS_MASK) { case DVB_S2_BB_TSGS_GENERIC_CONTUOUS: /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (dvb_s2_df_dissection) { ...
static int dissect_dvb_s2_bb(tvbuff_t *tvb, int cur_off, proto_tree *tree, packet_info *pinfo) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (matype1 & DVB_S2_BB_TSGS_MASK) { case DVB_S2_BB_TSGS_GENERIC_CONTUOUS: /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (dvb_s2_df_dissection) { ...
static int dissect_dvb_s2_bb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { switch (matype1 & DVB_S2_BB_TSGS_MASK) { case DVB_S2_BB_TSGS_GENERIC_CONTUOUS: if (dvb_s2_df_dissection) { while (bb_data_len) { if (sync_flag == DVB_S2_BB_SYNC_EIP_CRC32 &&...
CVE-2021-22235
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-dnp.c
dissect_dnp3_message
static int dissect_dnp3_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { proto_item *ti, *tdl, *tc, *hidden_item; proto_tree *dnp3_tree, *dl_tree, *field_tree; int offset = 0, temp_offset = 0; gboolean dl_prm; guint8 dl_len, dl_ctl, dl_func; const gchar *func_code_str;...
static int dissect_dnp3_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { proto_item *ti, *tdl, *tc, *hidden_item; proto_tree *dnp3_tree, *dl_tree, *field_tree; int offset = 0, temp_offset = 0; gboolean dl_prm; guint8 dl_len, dl_ctl, dl_func; const gchar *func_code_str;...
static int dissect_dnp3_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { proto_item *ti, *tdl, *tc, *hidden_item; proto_tree *dnp3_tree, *dl_tree, *field_tree; int offset = 0, temp_offset = 0; gboolean dl_prm; guint8 dl_len, dl_ctl, dl_func; const gchar *func_code_str;...
static int dissect_dnp3_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { proto_item *ti, *tdl, *tc, *hidden_item; proto_tree *dnp3_tree, *dl_tree, *field_tree; int offset = 0, temp_offset = 0; gboolean dl_prm; guint8 dl_len, dl_ctl, dl_func; const gchar *func_code_str;...
static int dissect_dnp3_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { int offset = 0, temp_offset = 0; col_set_str(pinfo->cinfo, COL_PROTOCOL, "DNP 3.0"); col_clear(pinfo->cinfo, COL_FO); temp_offset += 2; dl_len = tvb_get_guint8(tvb, temp_offset); temp_offset += 1;...
static int dissect_dnp3_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { int offset = 0, temp_offset = 0; col_set_str(pinfo->cinfo, COL_PROTOCOL, "DNP 3.0"); col_clear(pinfo->cinfo, COL_FO); temp_offset += 2; dl_len = tvb_get_guint8(tvb, temp_offset); temp_offset += 1;...
static int dissect_dnp3_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int offset = 0, temp_offset = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ col_set_str(pinfo->cinfo, COL_PROTOCOL, "DNP 3.0"); col_clear(pinfo->cinfo,...
static int dissect_dnp3_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int offset = 0, temp_offset = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ col_set_str(pinfo->cinfo, COL_PROTOCOL, "DNP 3.0"); col_clear(pinfo->cinfo,...
static int dissect_dnp3_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { int offset = 0, temp_offset = 0; col_set_str(pinfo->cinfo, COL_PROTOCOL, "DNP 3.0"); col_clear(pinfo->cinfo, COL_FO); temp_offset += 2; dl_len = tvb_get_guint8(tvb, temp_offset); temp_offse...
CVE-2021-23214
postgres
src/backend/postmaster/postmaster.c
ProcessStartupPacket
static int ProcessStartupPacket(Port *port, bool ssl_done, bool gss_done) { int32 len; char *buf; ProtocolVersion proto; MemoryContext oldcontext; pq_startmsgread(); if (pq_getbytes((char *) &len, 1) == EOF) { return STATUS_ERROR; } if (pq_getbytes(((char *) &len) + 1, 3) == EOF)...
static int ProcessStartupPacket(Port *port, bool ssl_done, bool gss_done) { int32 len; char *buf; ProtocolVersion proto; MemoryContext oldcontext; pq_startmsgread(); if (pq_getbytes((char *) &len, 1) == EOF) { return STATUS_ERROR; } if (pq_getbytes(((char *) &len) + 1, 3) == EOF)...
static int ProcessStartupPacket(Port *port, bool ssl_done, bool gss_done) { int32 len; char *buf; ProtocolVersion proto; MemoryContext oldcontext; pq_startmsgread(); if (pq_getbytes((char *) &len, 1) == EOF) { return STATUS_ERROR; } if (pq_getbytes(((char *) &len) + 1, 3) == EOF)...
static int ProcessStartupPacket(Port *port, bool ssl_done, bool gss_done) { int32 len; char *buf; ProtocolVersion proto; MemoryContext oldcontext; pq_startmsgread(); if (pq_getbytes((char *) &len, 1) == EOF) { return STATUS_ERROR; } if (pq_getbytes(((char *) &len) + 1, 3) == EOF)...
static int ProcessStartupPacket(Port *port, bool ssl_done, bool gss_done) { if (proto == NEGOTIATE_SSL_CODE && !ssl_done) { retry1: if (send(port->sock, &SSLok, 1, 0) != 1) { if (errno == ETR) { goto retry1; } ereport(COMMERROR, (errcode_for_socket_access(...
static int ProcessStartupPacket(Port *port, bool ssl_done, bool gss_done) { if (proto == NEGOTIATE_SSL_CODE && !ssl_done) { retry1: if (send(port->sock, &SSLok, 1, 0) != 1) { if (errno == ETR) { goto retry1; } ereport(COMMERROR, (errcode_for_socket_access(...
static int ProcessStartupPacket(Port *port, bool ssl_done, bool gss_done) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (proto == NEGOTIATE_SSL_CODE && !ssl_done) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ retry1: if (send(port->sock, &SSLok, 1, 0) != 1) { if (errno == ETR) { ...
static int ProcessStartupPacket(Port *port, bool ssl_done, bool gss_done) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (proto == NEGOTIATE_SSL_CODE && !ssl_done) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ retry1: if (send(port->sock, &SSLok, 1, 0) != 1) { if (errno == ETR) { ...
static int ProcessStartupPacket(Port *port, bool ssl_done, bool gss_done) { if (proto == NEGOTIATE_SSL_CODE && !ssl_done) { retry1: if (send(port->sock, &SSLok, 1, 0) != 1) { if (errno == ETR) { goto retry1; } ereport(COMMERROR, (errcode_for_socket...
CVE-2021-23222
postgres
src/interfaces/libpq/fe-connect.c
PQconnectPoll
PostgresPollingStatusType PQconnectPoll(PGconn *conn) { bool reset_connection_state_machine = false; bool need_new_connection = false; PGresult *res; char sebuf[PG_STRERROR_R_BUFLEN]; int optval; if (conn == NULL) { return PGRES_POLLG_FAILED; } switch (conn->status) { case CO...
PostgresPollingStatusType PQconnectPoll(PGconn *conn) { bool reset_connection_state_machine = false; bool need_new_connection = false; PGresult *res; char sebuf[PG_STRERROR_R_BUFLEN]; int optval; if (conn == NULL) { return PGRES_POLLG_FAILED; } switch (conn->status) { case CO...
PostgresPollingStatusType PQconnectPoll(PGconn *conn) { bool need_new_connection = false; PGresult *res; char sebuf[256]; int optval; if (conn == NULL) { return PGRES_POLLG_FAILED; } switch (conn->status) { case CONNECTION_BAD: return PGRES_POLLG_FAILED; case CONNECTI...
PostgresPollingStatusType PQconnectPoll(PGconn *conn) { bool need_new_connection = false; PGresult *res; char sebuf[256]; int optval; if (conn == NULL) { return PGRES_POLLG_FAILED; } switch (conn->status) { case CONNECTION_BAD: return PGRES_POLLG_FAILED; case CONNECTI...
PostgresPollingStatusType PQconnectPoll(PGconn *conn) { if (conn == NULL) { return PGRES_POLLG_FAILED; } switch (conn->status) { case CONNECTION_CHECK_STANDBY: { int n = pqReadData(conn); break; } } keep_going: if (conn->try_next_addr) { if (conn->addr_cur && ...
PostgresPollingStatusType PQconnectPoll(PGconn *conn) { if (conn == NULL) { return PGRES_POLLG_FAILED; } switch (conn->status) { case CONNECTION_CHECK_STANDBY: { int n = pqReadData(conn); break; } } keep_going: if (conn->try_next_addr) { if (conn->addr_cur && ...
PostgresPollingStatusType PQconnectPoll(PGconn *conn) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (conn == NULL) { return PGRES_POLLG_FAILED; } switch (conn->status) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ case CONNECTION_AUTH_OK: { int n = pqReadData(conn); /*...
PostgresPollingStatusType PQconnectPoll(PGconn *conn) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (conn == NULL) { return PGRES_POLLG_FAILED; } switch (conn->status) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ case CONNECTION_AUTH_OK: { int n = pqReadData(conn); /*...
PostgresPollingStatusType PQconnectPoll(PGconn *conn) { if (conn == NULL) { return PGRES_POLLG_FAILED; } switch (conn->status) { case CONNECTION_CHECK_STANDBY: { int n = pqReadData(conn); break; } } keep_going: if (conn->try_next_addr) { if (conn-...
CVE-2021-23840
OpenSSL
https://github.com/openssl/openssl
crypto/evp/evp_enc.c
EVP_DecryptUpdate
int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) { int fix_len, cmpl = inl, ret; unsigned int b; size_t soutl; int blocksize; if (outl != NULL) { *outl = 0; } else { ERR_raise(ERR_LIB_EVP, ERR_R_PASSED_NULL_PARAMETER); ...
int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) { int fix_len, cmpl = inl, ret; unsigned int b; size_t soutl; int blocksize; if (outl != NULL) { *outl = 0; } else { ERR_raise(ERR_LIB_EVP, ERR_R_PASSED_NULL_PARAMETER); ...
int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) { int fix_len, cmpl = inl; unsigned int b; if (ctx->encrypt) { EVPerr(EVP_F_EVP_DECRYPTUPDATE, EVP_R_VALID_OPERATION); return 0; } b = ctx->cipher->block_size; if (EVP_CIPH...
int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) { int fix_len, cmpl = inl; unsigned int b; if (ctx->encrypt) { EVPerr(EVP_F_EVP_DECRYPTUPDATE, EVP_R_VALID_OPERATION); return 0; } b = ctx->cipher->block_size; if (EVP_CIPH...
int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) { legacy: b = ctx->cipher->block_size; if (inl <= 0) { return inl == 0; } OPENSSL_assert(b <= sizeof(ctx->final)); if (ctx->final_used) { if (((PTRDIFF_T)out == (PTRDIFF_T)in) ...
int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) { legacy: b = ctx->cipher->block_size; if (inl <= 0) { return inl == 0; } OPENSSL_assert(b <= sizeof(ctx->final)); if (ctx->final_used) { if (((PTRDIFF_T)out == (PTRDIFF_T)in) ...
int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ b = ctx->cipher->block_size; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ OPENSSL_assert(b <= sizeof(ctx->final)); if (ctx->final_used) { ...
int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ b = ctx->cipher->block_size; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ OPENSSL_assert(b <= sizeof(ctx->final)); if (ctx->final_used) { ...
int EVP_DecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) { legacy: b = ctx->cipher->block_size; if (inl <= 0) { return inl == 0; } OPENSSL_assert(b <= sizeof(ctx->final)); if (ctx->final_used) { if (((PTRDIFF_T)out == (PTRDI...
CVE-2021-23840
OpenSSL
https://github.com/openssl/openssl
crypto/evp/evp_enc.c
evp_EncryptDecryptUpdate
static int evp_EncryptDecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) { int i, j, bl, cmpl = inl; if (EVP_CIPHER_CTX_test_flags(ctx, EVP_CIPH_FLAG_LENGTH_BITS)) { cmpl = (cmpl + 7) / 8; } bl = ctx->cipher->block_size; if (ctx->cipher->flags...
static int evp_EncryptDecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) { int i, j, bl, cmpl = inl; if (EVP_CIPHER_CTX_test_flags(ctx, EVP_CIPH_FLAG_LENGTH_BITS)) { cmpl = (cmpl + 7) / 8; } bl = ctx->cipher->block_size; if (ctx->cipher->flags...
static int evp_EncryptDecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) { int i, j, bl, cmpl = inl; if (EVP_CIPHER_CTX_test_flags(ctx, EVP_CIPH_FLAG_LENGTH_BITS)) { cmpl = (cmpl + 7) / 8; } bl = ctx->cipher->block_size; if (inl < 0 || (inl ==...
static int evp_EncryptDecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) { int i, j, bl, cmpl = inl; if (EVP_CIPHER_CTX_test_flags(ctx, EVP_CIPH_FLAG_LENGTH_BITS)) { cmpl = (cmpl + 7) / 8; } bl = ctx->cipher->block_size; if (inl < 0 || (inl ==...
static int evp_EncryptDecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) { bl = ctx->cipher->block_size; if (inl <= 0) { return inl == 0; } i = ctx->buf_len; OPENSSL_assert(bl <= (int)sizeof(ctx->buf)); if (i != 0) { if (bl - i > i...
static int evp_EncryptDecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) { bl = ctx->cipher->block_size; if (inl <= 0) { return inl == 0; } i = ctx->buf_len; OPENSSL_assert(bl <= (int)sizeof(ctx->buf)); if (i != 0) { if (bl - i > i...
static int evp_EncryptDecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ bl = ctx->cipher->block_size; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ i = ctx->buf_len; OPENSSL_assert(bl <= (int)sizeof(ctx...
static int evp_EncryptDecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ bl = ctx->cipher->block_size; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ i = ctx->buf_len; OPENSSL_assert(bl <= (int)sizeof(ctx...
static int evp_EncryptDecryptUpdate(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) { bl = ctx->cipher->block_size; if (inl <= 0) { return inl == 0; } i = ctx->buf_len; OPENSSL_assert(bl <= (int)sizeof(ctx->buf)); if (i != 0) { if (b...
CVE-2021-23841
OpenSSL
https://github.com/openssl/openssl
crypto/x509/x509_cmp.c
X509_issuer_and_serial_hash
unsigned long X509_issuer_and_serial_hash(X509 *a) { unsigned long ret = 0; EVP_MD_CTX *ctx = EVP_MD_CTX_new(); unsigned char md[16]; char *f; if (ctx == NULL) { goto err; } f = X509_NAME_oneline(a->cert_info.issuer, NULL, 0); if (!EVP_DigestInit_ex(ctx, EVP_md5(), NULL)) { ...
unsigned long X509_issuer_and_serial_hash(X509 *a) { unsigned long ret = 0; EVP_MD_CTX *ctx = EVP_MD_CTX_new(); unsigned char md[16]; char *f; if (ctx == NULL) { goto err; } f = X509_NAME_oneline(a->cert_info.issuer, NULL, 0); if (f == NULL) { goto err; } if (!EVP...
unsigned long X509_issuer_and_serial_hash(X509 *a) { unsigned long ret = 0; EVP_MD_CTX *ctx = EVP_MD_CTX_new(); unsigned char md[16]; char *f; if (ctx == NULL) { goto err; } f = X509_NAME_oneline(a->cert_info.issuer, NULL, 0); if (!EVP_DigestInit_ex(ctx, EVP_md5(), NULL)) { ...
unsigned long X509_issuer_and_serial_hash(X509 *a) { unsigned long ret = 0; EVP_MD_CTX *ctx = EVP_MD_CTX_new(); unsigned char md[16]; char *f; if (ctx == NULL) { goto err; } f = X509_NAME_oneline(a->cert_info.issuer, NULL, 0); if (f == NULL) { goto err; } if (!EVP...
unsigned long X509_issuer_and_serial_hash(X509 *a) { EVP_MD_CTX *ctx = EVP_MD_CTX_new(); if (ctx == NULL) { goto err; } f = X509_NAME_oneline(a->cert_info.issuer, NULL, 0); if (!EVP_DigestInit_ex(ctx, EVP_md5(), NULL)) { goto err; } if (!EVP_DigestUpdate(ctx, (unsigned char *...
unsigned long X509_issuer_and_serial_hash(X509 *a) { EVP_MD_CTX *ctx = EVP_MD_CTX_new(); if (ctx == NULL) { goto err; } f = X509_NAME_oneline(a->cert_info.issuer, NULL, 0); if (f == NULL) { goto err; } if (!EVP_DigestInit_ex(ctx, EVP_md5(), NULL)) { goto err; } ...
unsigned long X509_issuer_and_serial_hash(X509 *a) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ EVP_MD_CTX *ctx = EVP_MD_CTX_new(); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ctx == NULL) { goto err; } f = X509_NAME_oneline(a->cert_info.issuer, NULL, 0); if (!EVP_DigestInit...
unsigned long X509_issuer_and_serial_hash(X509 *a) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ EVP_MD_CTX *ctx = EVP_MD_CTX_new(); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (ctx == NULL) { goto err; } f = X509_NAME_oneline(a->cert_info.issuer, NULL, 0); if (f == NULL) { ...
unsigned long X509_issuer_and_serial_hash(X509 *a) { EVP_MD_CTX *ctx = EVP_MD_CTX_new(); if (ctx == NULL) { goto err; } f = X509_NAME_oneline(a->cert_info.issuer, NULL, 0); + if (f == NULL) { + goto err; + } if (!EVP_DigestInit_ex(ctx, EVP_md5(), NULL)) { goto er...
CVE-2021-28429
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavutil/timecode.c
av_timecode_make_string
char *av_timecode_make_string(const AVTimecode *tc, char *buf, int framenum) { int fps = tc->fps; int drop = tc->flags & AV_TIMECODE_FLAG_DROPFRAME; int hh, mm, ss, ff, neg = 0; framenum += tc->start; if (drop) { framenum = av_timecode_adjust_ntsc_framenum2(framenum, fps); } if (fram...
char *av_timecode_make_string(const AVTimecode *tc, char *buf, int framenum) { int fps = tc->fps; int drop = tc->flags & AV_TIMECODE_FLAG_DROPFRAME; int hh, mm, ss, ff, neg = 0; framenum += tc->start; if (drop) { framenum = av_timecode_adjust_ntsc_framenum2(framenum, fps); } if (fram...
char *av_timecode_make_string(const AVTimecode *tc, char *buf, int framenum) { int fps = tc->fps; int drop = tc->flags & AV_TIMECODE_FLAG_DROPFRAME; int hh, mm, ss, ff, neg = 0; framenum += tc->start; if (drop) { framenum = av_timecode_adjust_ntsc_framenum2(framenum, fps); } if (fram...
char *av_timecode_make_string(const AVTimecode *tc, char *buf, int framenum) { int fps = tc->fps; int drop = tc->flags & AV_TIMECODE_FLAG_DROPFRAME; int hh, mm, ss, ff, neg = 0; framenum += tc->start; if (drop) { framenum = av_timecode_adjust_ntsc_framenum2(framenum, fps); } if (fram...
char *av_timecode_make_string(const AVTimecode *tc, char *buf, int framenum) { int fps = tc->fps; framenum += tc->start; if (drop) { framenum = av_timecode_adjust_ntsc_framenum2(framenum, fps); } if (framenum < 0) { framenum = -framenum; } ff = framenum % fps; ss = framen...
char *av_timecode_make_string(const AVTimecode *tc, char *buf, int framenum) { int fps = tc->fps; framenum += tc->start; if (drop) { framenum = av_timecode_adjust_ntsc_framenum2(framenum, fps); } if (framenum < 0) { framenum = -framenum; } ff = framenum % fps; ss = framen...
char *av_timecode_make_string(const AVTimecode *tc, char *buf, int framenum) { int fps = tc->fps; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ framenum += tc->start; if (drop) { framenum = av_timecode_adjust_ntsc_framenum2(framenum, fps); } if (framenum < 0) { framenum = -framen...
char *av_timecode_make_string(const AVTimecode *tc, char *buf, int framenum) { int fps = tc->fps; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ framenum += tc->start; if (drop) { framenum = av_timecode_adjust_ntsc_framenum2(framenum, fps); } if (framenum < 0) { framenum = -framen...
char *av_timecode_make_string(const AVTimecode *tc, char *buf, int framenum) { int fps = tc->fps; framenum += tc->start; if (drop) { framenum = av_timecode_adjust_ntsc_framenum2(framenum, fps); } if (framenum < 0) { framenum = -framenum; } ff = framenum % fps; ...
CVE-2021-28690
xen
https://github.com/xen-project/xen
xen/arch/x86/acpi/power.c
enter_state
static int enter_state(u32 state) { unsigned long flags; int error; struct cpu_info *ci; if ( (state <= ACPI_STATE_S0) || (state > ACPI_S_STATES_MAX) ) { return -EVAL; } if ( !spin_trylock(&pm_lock) ) { return -EBUSY; } BUG_ON(system_state != SYS_STATE_active); BUG_ON...
static int enter_state(u32 state) { unsigned long flags; int error; struct cpu_info *ci; if ( (state <= ACPI_STATE_S0) || (state > ACPI_S_STATES_MAX) ) { return -EVAL; } if ( !spin_trylock(&pm_lock) ) { return -EBUSY; } BUG_ON(system_state != SYS_STATE_active); BUG_ON...
static int enter_state(u32 state) { unsigned long flags; int error; struct cpu_info *ci; unsigned long cr4; if ( (state <= ACPI_STATE_S0) || (state > ACPI_S_STATES_MAX) ) { return -EVAL; } if ( !spin_trylock(&pm_lock) ) { return -EBUSY; } BUG_ON(system_state != SYS_ST...
static int enter_state(u32 state) { unsigned long flags; int error; struct cpu_info *ci; unsigned long cr4; if ( (state <= ACPI_STATE_S0) || (state > ACPI_S_STATES_MAX) ) { return -EVAL; } if ( !spin_trylock(&pm_lock) ) { return -EBUSY; } BUG_ON(system_state != SYS_ST...
static int enter_state(u32 state) { microcode_update_one(); }
static int enter_state(u32 state) { microcode_update_one(); tsx_init(); }
static int enter_state(u32 state) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ microcode_resume_cpu(0); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int enter_state(u32 state) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ microcode_resume_cpu(0); tsx_init(); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int enter_state(u32 state) { microcode_update_one(); + tsx_init(); }
CVE-2021-33815
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/exr.c
dwa_uncompress
static int dwa_uncompress(EXRContext *s, const uint8_t *src, int compressed_size, int uncompressed_size, EXRThreadData *td) { int64_t version, lo_usize, lo_size; int64_t ac_size, dc_size, rle_usize, rle_csize, rle_raw_size; int64_t ac_count, dc_count, ac_compression; const int dc_w = td->xsize >> 3; ...
static int dwa_uncompress(EXRContext *s, const uint8_t *src, int compressed_size, int uncompressed_size, EXRThreadData *td) { int64_t version, lo_usize, lo_size; int64_t ac_size, dc_size, rle_usize, rle_csize, rle_raw_size; int64_t ac_count, dc_count, ac_compression; const int dc_w = td->xsize >> 3; ...
static int dwa_uncompress(EXRContext *s, const uint8_t *src, int compressed_size, int uncompressed_size, EXRThreadData *td) { int64_t version, lo_usize, lo_size; int64_t ac_size, dc_size, rle_usize, rle_csize, rle_raw_size; int64_t ac_count, dc_count, ac_compression; const int dc_w = td->xsize >> 3; ...
static int dwa_uncompress(EXRContext *s, const uint8_t *src, int compressed_size, int uncompressed_size, EXRThreadData *td) { int64_t version, lo_usize, lo_size; int64_t ac_size, dc_size, rle_usize, rle_csize, rle_raw_size; int64_t ac_count, dc_count, ac_compression; const int dc_w = td->xsize >> 3; ...
static int dwa_uncompress(EXRContext *s, const uint8_t *src, int compressed_size, int uncompressed_size, EXRThreadData *td) { const int dc_w = td->xsize >> 3; const int dc_h = td->ysize >> 3; dc_size = AV_RL64(src + 32); ac_count = AV_RL64(src + 64); dc_count = AV_RL64(src + 72); if (ac_size > 0...
static int dwa_uncompress(EXRContext *s, const uint8_t *src, int compressed_size, int uncompressed_size, EXRThreadData *td) { const int dc_w = td->xsize >> 3; const int dc_h = td->ysize >> 3; dc_size = AV_RL64(src + 32); ac_count = AV_RL64(src + 64); dc_count = AV_RL64(src + 72); if (ac_size > 0...
static int dwa_uncompress(EXRContext *s, const uint8_t *src, int compressed_size, int uncompressed_size, EXRThreadData *td) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ const int dc_w = td->xsize >> 3; const int dc_h = td->ysize >> 3; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ dc_size = AV_RL6...
static int dwa_uncompress(EXRContext *s, const uint8_t *src, int compressed_size, int uncompressed_size, EXRThreadData *td) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ const int dc_w = td->xsize >> 3; const int dc_h = td->ysize >> 3; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ dc_size = AV_RL6...
static int dwa_uncompress(EXRContext *s, const uint8_t *src, int compressed_size, int uncompressed_size, EXRThreadData *td) { const int dc_w = td->xsize >> 3; const int dc_h = td->ysize >> 3; dc_size = AV_RL64(src + 32); ac_count = AV_RL64(src + 64); dc_count = AV_RL64(src + 72); if (ac_s...
CVE-2021-3449
OpenSSL
https://github.com/openssl/openssl
ssl/statem/extensions.c
init_sig_algs
static int init_sig_algs(SSL *s, unsigned int context) { OPENSSL_free(s->s3->tmp.peer_sigalgs); s->s3->tmp.peer_sigalgs = NULL; return 1; }
static int init_sig_algs(SSL *s, unsigned int context) { OPENSSL_free(s->s3->tmp.peer_sigalgs); s->s3->tmp.peer_sigalgs = NULL; s->s3->tmp.peer_sigalgslen = 0; return 1; }
static int init_sig_algs(SSL *s, unsigned int context) { OPENSSL_free(s->s3.tmp.peer_sigalgs); s->s3.tmp.peer_sigalgs = NULL; return 1; }
static int init_sig_algs(SSL *s, unsigned int context) { OPENSSL_free(s->s3.tmp.peer_sigalgs); s->s3.tmp.peer_sigalgs = NULL; s->s3.tmp.peer_sigalgslen = 0; return 1; }
static int init_sig_algs(SSL *s, unsigned int context) { OPENSSL_free(s->s3->tmp.peer_sigalgs); s->s3->tmp.peer_sigalgs = NULL; return 1; }
static int init_sig_algs(SSL *s, unsigned int context) { OPENSSL_free(s->s3->tmp.peer_sigalgs); s->s3->tmp.peer_sigalgs = NULL; s->s3->tmp.peer_sigalgslen = 0; return 1; }
static int init_sig_algs(SSL *s, unsigned int context) { OPENSSL_free(s->s3.tmp.peer_sigalgs); s->s3.tmp.peer_sigalgs = NULL; return 1; }
static int init_sig_algs(SSL *s, unsigned int context) { OPENSSL_free(s->s3.tmp.peer_sigalgs); s->s3.tmp.peer_sigalgs = NULL; s->s3.tmp.peer_sigalgslen = 0; return 1; }
static int init_sig_algs(SSL *s, unsigned int context) { OPENSSL_free(s->s3->tmp.peer_sigalgs); s->s3->tmp.peer_sigalgs = NULL; + s->s3->tmp.peer_sigalgslen = 0; return 1; }
CVE-2021-3527
QEMU
https://github.com/qemu/qemu
hw/usb/combined-packet.c
usb_ep_combine_input_packets
void usb_ep_combine_input_packets(USBEndpoint *ep) { USBPacket *p, *u, *next, *prev = NULL, *first = NULL; USBPort *port = ep->dev->port; int totalsize; assert(ep->pipeline); assert(ep->pid == USB_TOKEN_); QTAILQ_FOREACH_SAFE(p, &ep->queue, queue, next) { if (ep->halted) { p-...
void usb_ep_combine_input_packets(USBEndpoint *ep) { USBPacket *p, *u, *next, *prev = NULL, *first = NULL; USBPort *port = ep->dev->port; int totalsize; assert(ep->pipeline); assert(ep->pid == USB_TOKEN_); QTAILQ_FOREACH_SAFE(p, &ep->queue, queue, next) { if (ep->halted) { p-...
void usb_ep_combine_input_packets(USBEndpoint *ep) { USBPacket *p, *u, *next, *prev = NULL, *first = NULL; USBPort *port = ep->dev->port; int totalsize; assert(ep->pipeline); assert(ep->pid == USB_TOKEN_); QTAILQ_FOREACH_SAFE(p, &ep->queue, queue, next) { if (ep->halted) { p-...
void usb_ep_combine_input_packets(USBEndpoint *ep) { USBPacket *p, *u, *next, *prev = NULL, *first = NULL; USBPort *port = ep->dev->port; int totalsize; assert(ep->pipeline); assert(ep->pid == USB_TOKEN_); QTAILQ_FOREACH_SAFE(p, &ep->queue, queue, next) { if (ep->halted) { p-...
void usb_ep_combine_input_packets(USBEndpoint *ep) { USBPacket *p, *u, *next, *prev = NULL, *first = NULL; QTAILQ_FOREACH_SAFE(p, &ep->queue, queue, next) { usb_packet_check_state(p, USB_PACKET_QUEUED); if (first) { if (first->combined == NULL) { USBCombinedPacket *co...
void usb_ep_combine_input_packets(USBEndpoint *ep) { USBPacket *p, *u, *next, *prev = NULL, *first = NULL; QTAILQ_FOREACH_SAFE(p, &ep->queue, queue, next) { usb_packet_check_state(p, USB_PACKET_QUEUED); if (first) { if (first->combined == NULL) { USBCombinedPacket *co...
void usb_ep_combine_input_packets(USBEndpoint *ep) { USBPacket *p, *u, *next, *prev = NULL, *first = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ QTAILQ_FOREACH_SAFE(p, &ep->queue, queue, next) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ usb_packet_check_state(p, USB_PACKET_QUEUED); ...
void usb_ep_combine_input_packets(USBEndpoint *ep) { USBPacket *p, *u, *next, *prev = NULL, *first = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ QTAILQ_FOREACH_SAFE(p, &ep->queue, queue, next) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ usb_packet_check_state(p, USB_PACKET_QUEUED); ...
void usb_ep_combine_input_packets(USBEndpoint *ep) { USBPacket *p, *u, *next, *prev = NULL, *first = NULL; QTAILQ_FOREACH_SAFE(p, &ep->queue, queue, next) { usb_packet_check_state(p, USB_PACKET_QUEUED); if (first) { if (first->combined == NULL) { USBCombinedPac...
CVE-2021-3544
QEMU
https://github.com/qemu/qemu
contrib/vhost-user-gpu/vhost-user-gpu.c
vg_resource_create_2d
static void vg_resource_create_2d(VuGpu *g, struct virtio_gpu_ctrl_command *cmd) { pixman_format_code_t pformat; struct virtio_gpu_simple_resource *res; struct virtio_gpu_resource_create_2d c2d; VUGPU_FILL_CMD(c2d); virtio_gpu_bswap_32(&c2d, sizeof(c2d)); if (c2d.resource_id == 0) { g_cr...
static void vg_resource_create_2d(VuGpu *g, struct virtio_gpu_ctrl_command *cmd) { pixman_format_code_t pformat; struct virtio_gpu_simple_resource *res; struct virtio_gpu_resource_create_2d c2d; VUGPU_FILL_CMD(c2d); virtio_gpu_bswap_32(&c2d, sizeof(c2d)); if (c2d.resource_id == 0) { g_cr...
static void vg_resource_create_2d(VuGpu *g, struct virtio_gpu_ctrl_command *cmd) { pixman_format_code_t pformat; struct virtio_gpu_simple_resource *res; struct virtio_gpu_resource_create_2d c2d; VUGPU_FILL_CMD(c2d); virtio_gpu_bswap_32(&c2d, sizeof(c2d)); if (c2d.resource_id == 0) { g_cr...
static void vg_resource_create_2d(VuGpu *g, struct virtio_gpu_ctrl_command *cmd) { pixman_format_code_t pformat; struct virtio_gpu_simple_resource *res; struct virtio_gpu_resource_create_2d c2d; VUGPU_FILL_CMD(c2d); virtio_gpu_bswap_32(&c2d, sizeof(c2d)); if (c2d.resource_id == 0) { g_cr...
static void vg_resource_create_2d(VuGpu *g, struct virtio_gpu_ctrl_command *cmd) { if (c2d.resource_id == 0) { return; } res = virtio_gpu_find_resource(g, c2d.resource_id); if (!res->image) { g_free(res); cmd->error = VIRTIO_GPU_RESP_ERR__OF_MEMORY; return; } }
static void vg_resource_create_2d(VuGpu *g, struct virtio_gpu_ctrl_command *cmd) { if (c2d.resource_id == 0) { return; } res = virtio_gpu_find_resource(g, c2d.resource_id); if (!res->image) { g_free(res); vugbm_buffer_destroy(&res->buffer); cmd->error = VIRTIO_GPU_RESP_ER...
static void vg_resource_create_2d(VuGpu *g, struct virtio_gpu_ctrl_command *cmd) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (c2d.resource_id == 0) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return; } res = virtio_gpu_find_resource(g, c2d.resource_id); /* PLACEHOLDER: DO NOT ...
static void vg_resource_create_2d(VuGpu *g, struct virtio_gpu_ctrl_command *cmd) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (c2d.resource_id == 0) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return; } res = virtio_gpu_find_resource(g, c2d.resource_id); /* PLACEHOLDER: DO NOT ...
static void vg_resource_create_2d(VuGpu *g, struct virtio_gpu_ctrl_command *cmd) { if (c2d.resource_id == 0) { return; } res = virtio_gpu_find_resource(g, c2d.resource_id); if (!res->image) { g_free(res); + vugbm_buffer_destroy(&res->buffer); cmd->error = VIRTIO_GP...
CVE-2021-3582
QEMU
https://github.com/qemu/qemu
hw/rdma/vmw/pvrdma_cmd.c
pvrdma_map_to_pdir
static void *pvrdma_map_to_pdir(PCIDevice *pdev, uint64_t pdir_dma, uint32_t nchunks, size_t length) { uint64_t *dir, *tbl; int tbl_idx, dir_idx, addr_idx; void *host_virt = NULL, *curr_page; if (!nchunks) { rdma_error_report("Got nchunks=0"); return NULL; } dir = rdma_pci_dma_ma...
static void *pvrdma_map_to_pdir(PCIDevice *pdev, uint64_t pdir_dma, uint32_t nchunks, size_t length) { uint64_t *dir, *tbl; int tbl_idx, dir_idx, addr_idx; void *host_virt = NULL, *curr_page; if (!nchunks) { rdma_error_report("Got nchunks=0"); return NULL; } length = ROUND_UP(len...
static void *pvrdma_map_to_pdir(PCIDevice *pdev, uint64_t pdir_dma, uint32_t nchunks, size_t length) { uint64_t *dir, *tbl; int tbl_idx, dir_idx, addr_idx; void *host_virt = NULL, *curr_page; if (!nchunks) { rdma_error_report("Got nchunks=0"); return NULL; } dir = rdma_pci_dma_ma...
static void *pvrdma_map_to_pdir(PCIDevice *pdev, uint64_t pdir_dma, uint32_t nchunks, size_t length) { uint64_t *dir, *tbl; int tbl_idx, dir_idx, addr_idx; void *host_virt = NULL, *curr_page; if (!nchunks) { rdma_error_report("Got nchunks=0"); return NULL; } length = ROUND_UP(len...
static void *pvrdma_map_to_pdir(PCIDevice *pdev, uint64_t pdir_dma, uint32_t nchunks, size_t length) { if (!nchunks) { return NULL; } dir = rdma_pci_dma_map(pdev, pdir_dma, TARGET_PAGE_SIZE); if (!dir) { return NULL; } tbl = rdma_pci_dma_map(pdev, dir[0], TARGET_PAGE_SIZE); i...
static void *pvrdma_map_to_pdir(PCIDevice *pdev, uint64_t pdir_dma, uint32_t nchunks, size_t length) { if (!nchunks) { return NULL; } length = ROUND_UP(length, TARGET_PAGE_SIZE); if (nchunks * TARGET_PAGE_SIZE != length) { rdma_error_report("Invalid nchunks/length (%u, %lu)", nchunks, (u...
static void *pvrdma_map_to_pdir(PCIDevice *pdev, uint64_t pdir_dma, uint32_t nchunks, size_t length) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!nchunks) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return NULL; } dir = rdma_pci_dma_map(pdev, pdir_dma, TARGET_PAGE_SIZE); if (...
static void *pvrdma_map_to_pdir(PCIDevice *pdev, uint64_t pdir_dma, uint32_t nchunks, size_t length) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!nchunks) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return NULL; } length = ROUND_UP(length, TARGET_PAGE_SIZE); if (nchunks * TAR...
static void *pvrdma_map_to_pdir(PCIDevice *pdev, uint64_t pdir_dma, uint32_t nchunks, size_t length) { if (!nchunks) { + return NULL; + } + length = ROUND_UP(length, TARGET_PAGE_SIZE); + if (nchunks * TARGET_PAGE_SIZE != length) { + rdma_error_report("Invalid nchunks/length (%u, %lu)", nchu...
CVE-2021-35942
glibc
https://github.com/bminor/glibc
posix/wordexp.c
parse_param
static int parse_param (char **word, size_t *word_length, size_t *max_length, const char *words, size_t *offset, int flags, wordexp_t *pwordexp, const char *ifs, const char *ifs_white, int quoted) { enum action { ACT_NONE, ACT_RP_SHORT_LEFT = '#', ACT_RP_LONG_LEFT = 'L', ACT_RP_SHORT_RIGHT = '%', ACT_RP_LON...
static int parse_param (char **word, size_t *word_length, size_t *max_length, const char *words, size_t *offset, int flags, wordexp_t *pwordexp, const char *ifs, const char *ifs_white, int quoted) { enum action { ACT_NONE, ACT_RP_SHORT_LEFT = '#', ACT_RP_LONG_LEFT = 'L', ACT_RP_SHORT_RIGHT = '%', ACT_RP_LON...
static int parse_param (char **word, size_t *word_length, size_t *max_length, const char *words, size_t *offset, int flags, wordexp_t *pwordexp, const char *ifs, const char *ifs_white, int quoted) { enum action { ACT_NONE, ACT_RP_SHORT_LEFT = '#', ACT_RP_LONG_LEFT = 'L', ACT_RP_SHORT_RIGHT = '%', ACT_RP_LON...
static int parse_param (char **word, size_t *word_length, size_t *max_length, const char *words, size_t *offset, int flags, wordexp_t *pwordexp, const char *ifs, const char *ifs_white, int quoted) { enum action { ACT_NONE, ACT_RP_SHORT_LEFT = '#', ACT_RP_LONG_LEFT = 'L', ACT_RP_SHORT_RIGHT = '%', ACT_RP_LON...
static int parse_param (char **word, size_t *word_length, size_t *max_length, const char *words, size_t *offset, int flags, wordexp_t *pwordexp, const char *ifs, const char *ifs_white, int quoted) { int brace = words[*offset] == '{'; env = w_newword (&env_length, &env_maxlen); pattern = w_newword (&pat_leng...
static int parse_param (char **word, size_t *word_length, size_t *max_length, const char *words, size_t *offset, int flags, wordexp_t *pwordexp, const char *ifs, const char *ifs_white, int quoted) { int brace = words[*offset] == '{'; env = w_newword (&env_length, &env_maxlen); pattern = w_newword (&pat_leng...
static int parse_param (char **word, size_t *word_length, size_t *max_length, const char *words, size_t *offset, int flags, wordexp_t *pwordexp, const char *ifs, const char *ifs_white, int quoted) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int brace = words[*offset] == '{'; env = w_newword (&env_length...
static int parse_param (char **word, size_t *word_length, size_t *max_length, const char *words, size_t *offset, int flags, wordexp_t *pwordexp, const char *ifs, const char *ifs_white, int quoted) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int brace = words[*offset] == '{'; env = w_newword (&env_length...
static int parse_param (char **word, size_t *word_length, size_t *max_length, const char *words, size_t *offset, int flags, wordexp_t *pwordexp, const char *ifs, const char *ifs_white, int quoted) { int brace = words[*offset] == '{'; env = w_newword (&env_length, &env_maxlen); pattern = w_newword (&pat_...
CVE-2021-3712
OpenSSL
https://github.com/openssl/openssl
crypto/ec/ec_asn1.c
EC_GROUP_new_from_ecparameters
EC_GROUP *EC_GROUP_new_from_ecparameters(const ECPARAMETERS *params) { int ok = 0, tmp; EC_GROUP *ret = NULL, *dup = NULL; BIGNUM *p = NULL, *a = NULL, *b = NULL; EC_POT *point = NULL; long field_bits; int curve_name = NID_undef; BN_CTX *ctx = NULL; if (!params->fieldID || !params->field...
EC_GROUP *EC_GROUP_new_from_ecparameters(const ECPARAMETERS *params) { int ok = 0, tmp; EC_GROUP *ret = NULL, *dup = NULL; BIGNUM *p = NULL, *a = NULL, *b = NULL; EC_POT *point = NULL; long field_bits; int curve_name = NID_undef; BN_CTX *ctx = NULL; if (!params->fieldID || !params->field...
EC_GROUP *EC_GROUP_new_from_ecparameters(const ECPARAMETERS *params) { int ok = 0, tmp; EC_GROUP *ret = NULL, *dup = NULL; BIGNUM *p = NULL, *a = NULL, *b = NULL; EC_POT *point = NULL; long field_bits; int curve_name = NID_undef; BN_CTX *ctx = NULL; if (params->fieldID == NULL || params-...
EC_GROUP *EC_GROUP_new_from_ecparameters(const ECPARAMETERS *params) { int ok = 0, tmp; EC_GROUP *ret = NULL, *dup = NULL; BIGNUM *p = NULL, *a = NULL, *b = NULL; EC_POT *point = NULL; long field_bits; int curve_name = NID_undef; BN_CTX *ctx = NULL; if (params->fieldID == NULL || params-...
EC_GROUP *EC_GROUP_new_from_ecparameters(const ECPARAMETERS *params) { }
EC_GROUP *EC_GROUP_new_from_ecparameters(const ECPARAMETERS *params) { }
EC_GROUP *EC_GROUP_new_from_ecparameters(const ECPARAMETERS *params) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
EC_GROUP *EC_GROUP_new_from_ecparameters(const ECPARAMETERS *params) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
CVE-2021-3713
QEMU
https://github.com/qemu/qemu
hw/usb/dev-uas.c
usb_uas_handle_data
static void usb_uas_handle_data(USBDevice *dev, USBPacket *p) { UASDevice *uas = USB_UAS(dev); uas_iu iu; UASStatus *st; UASRequest *req; int length; switch (p->ep->nr) { case UAS_PIPE_ID_COMMAND: length = M(sizeof(iu), p->iov.size); usb_packet_copy(p, &iu, length); s...
static void usb_uas_handle_data(USBDevice *dev, USBPacket *p) { UASDevice *uas = USB_UAS(dev); uas_iu iu; UASStatus *st; UASRequest *req; int length; switch (p->ep->nr) { case UAS_PIPE_ID_COMMAND: length = M(sizeof(iu), p->iov.size); usb_packet_copy(p, &iu, length); s...
static void usb_uas_handle_data(USBDevice *dev, USBPacket *p) { UASDevice *uas = USB_UAS(dev); uas_iu iu; UASStatus *st; UASRequest *req; int length; switch (p->ep->nr) { case UAS_PIPE_ID_COMMAND: length = M(sizeof(iu), p->iov.size); usb_packet_copy(p, &iu, length); s...
static void usb_uas_handle_data(USBDevice *dev, USBPacket *p) { UASDevice *uas = USB_UAS(dev); uas_iu iu; UASStatus *st; UASRequest *req; int length; switch (p->ep->nr) { case UAS_PIPE_ID_COMMAND: length = M(sizeof(iu), p->iov.size); usb_packet_copy(p, &iu, length); s...
static void usb_uas_handle_data(USBDevice *dev, USBPacket *p) { UASDevice *uas = USB_UAS(dev); switch (p->ep->nr) { case UAS_PIPE_ID_COMMAND: length = M(sizeof(iu), p->iov.size); usb_packet_copy(p, &iu, length); switch (iu.hdr.id) { case UAS_UI_COMMAND: usb_uas_co...
static void usb_uas_handle_data(USBDevice *dev, USBPacket *p) { UASDevice *uas = USB_UAS(dev); switch (p->ep->nr) { case UAS_PIPE_ID_COMMAND: length = M(sizeof(iu), p->iov.size); usb_packet_copy(p, &iu, length); switch (iu.hdr.id) { case UAS_UI_COMMAND: usb_uas_co...
static void usb_uas_handle_data(USBDevice *dev, USBPacket *p) { UASDevice *uas = USB_UAS(dev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (p->ep->nr) { case UAS_PIPE_ID_COMMAND: length = M(sizeof(iu), p->iov.size); usb_packet_copy(p, &iu, length); switch (iu.hdr.id) { ...
static void usb_uas_handle_data(USBDevice *dev, USBPacket *p) { UASDevice *uas = USB_UAS(dev); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (p->ep->nr) { case UAS_PIPE_ID_COMMAND: length = M(sizeof(iu), p->iov.size); usb_packet_copy(p, &iu, length); switch (iu.hdr.id) { ...
static void usb_uas_handle_data(USBDevice *dev, USBPacket *p) { UASDevice *uas = USB_UAS(dev); switch (p->ep->nr) { case UAS_PIPE_ID_COMMAND: length = M(sizeof(iu), p->iov.size); usb_packet_copy(p, &iu, length); switch (iu.hdr.id) { case UAS_UI_COMMAND: u...
CVE-2021-3748
QEMU
https://github.com/qemu/qemu
hw/net/virtio-net.c
virtio_net_receive_rcu
static ssize_t virtio_net_receive_rcu(NetClientState *nc, const uint8_t *buf, size_t size, bool no_rss) { VirtIONet *n = qemu_get_nic_opaque(nc); VirtIONetQueue *q = virtio_net_get_subqueue(nc); VirtIODevice *vdev = VIRTIO_DEVICE(n); struct iovec mhdr_sg[VIRTQUEUE_MAX_SIZE]; struct virtio_net_hdr_mr...
static ssize_t virtio_net_receive_rcu(NetClientState *nc, const uint8_t *buf, size_t size, bool no_rss) { VirtIONet *n = qemu_get_nic_opaque(nc); VirtIONetQueue *q = virtio_net_get_subqueue(nc); VirtIODevice *vdev = VIRTIO_DEVICE(n); VirtQueueElement *elems[VIRTQUEUE_MAX_SIZE]; size_t lens[VIRTQUEUE...
static ssize_t virtio_net_receive_rcu(NetClientState *nc, const uint8_t *buf, size_t size, bool no_rss) { VirtIONet *n = qemu_get_nic_opaque(nc); VirtIONetQueue *q = virtio_net_get_subqueue(nc); VirtIODevice *vdev = VIRTIO_DEVICE(n); struct iovec mhdr_sg[VIRTQUEUE_MAX_SIZE]; struct virtio_net_hdr_mr...
static ssize_t virtio_net_receive_rcu(NetClientState *nc, const uint8_t *buf, size_t size, bool no_rss) { VirtIONet *n = qemu_get_nic_opaque(nc); VirtIONetQueue *q = virtio_net_get_subqueue(nc); VirtIODevice *vdev = VIRTIO_DEVICE(n); VirtQueueElement *elems[VIRTQUEUE_MAX_SIZE]; size_t lens[VIRTQUEUE...
static ssize_t virtio_net_receive_rcu(NetClientState *nc, const uint8_t *buf, size_t size, bool no_rss) { VirtIONet *n = qemu_get_nic_opaque(nc); VirtIONetQueue *q = virtio_net_get_subqueue(nc); VirtIODevice *vdev = VIRTIO_DEVICE(n); struct iovec mhdr_sg[VIRTQUEUE_MAX_SIZE]; unsigned mhdr_cnt = 0; ...
static ssize_t virtio_net_receive_rcu(NetClientState *nc, const uint8_t *buf, size_t size, bool no_rss) { VirtIONet *n = qemu_get_nic_opaque(nc); VirtIONetQueue *q = virtio_net_get_subqueue(nc); VirtIODevice *vdev = VIRTIO_DEVICE(n); VirtQueueElement *elems[VIRTQUEUE_MAX_SIZE]; size_t lens[VIRTQUEUE...
static ssize_t virtio_net_receive_rcu(NetClientState *nc, const uint8_t *buf, size_t size, bool no_rss) { VirtIONet *n = qemu_get_nic_opaque(nc); VirtIONetQueue *q = virtio_net_get_subqueue(nc); VirtIODevice *vdev = VIRTIO_DEVICE(n); struct iovec mhdr_sg[VIRTQUEUE_MAX_SIZE]; /* PLACEHOLDER: DO NOT D...
static ssize_t virtio_net_receive_rcu(NetClientState *nc, const uint8_t *buf, size_t size, bool no_rss) { VirtIONet *n = qemu_get_nic_opaque(nc); VirtIONetQueue *q = virtio_net_get_subqueue(nc); VirtIODevice *vdev = VIRTIO_DEVICE(n); VirtQueueElement *elems[VIRTQUEUE_MAX_SIZE]; size_t lens[VIRTQUEUE...
static ssize_t virtio_net_receive_rcu(NetClientState *nc, const uint8_t *buf, size_t size, bool no_rss) { VirtIONet *n = qemu_get_nic_opaque(nc); VirtIONetQueue *q = virtio_net_get_subqueue(nc); VirtIODevice *vdev = VIRTIO_DEVICE(n); + VirtQueueElement *elems[VIRTQUEUE_MAX_SIZE]; + size_t lens[VIR...
CVE-2021-38114
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/dnxhddec.c
dnxhd_init_vlc
static int dnxhd_init_vlc(DNXHDContext *ctx, uint32_t cid, int bitdepth) { if (cid != ctx->cid) { const CIDEntry *cid_table = ff_dnxhd_get_cid_table(cid); if (!cid_table) { av_log(ctx->avctx, AV_LOG_ERROR, "unsupported cid %"PRIu32"\n", cid); return AVERROR(ENOSYS); }...
static int dnxhd_init_vlc(DNXHDContext *ctx, uint32_t cid, int bitdepth) { int ret; if (cid != ctx->cid) { const CIDEntry *cid_table = ff_dnxhd_get_cid_table(cid); if (!cid_table) { av_log(ctx->avctx, AV_LOG_ERROR, "unsupported cid %"PRIu32"\n", cid); return AVERROR(ENOSY...
static int dnxhd_init_vlc(DNXHDContext *ctx, uint32_t cid) { if (cid != ctx->cid) { int index; if ((index = ff_dnxhd_get_cid_table(cid)) < 0) { av_log(ctx->avctx, AV_LOG_ERROR, "unsupported cid %d\n", cid); return AVERROR(ENOSYS); } if (ff_dnxhd_cid_table[inde...
static int dnxhd_init_vlc(DNXHDContext *ctx, uint32_t cid) { int ret; if (cid != ctx->cid) { int index; if ((index = ff_dnxhd_get_cid_table(cid)) < 0) { av_log(ctx->avctx, AV_LOG_ERROR, "unsupported cid %d\n", cid); return AVERROR(ENOSYS); } if (ff_dnxhd_c...
static int dnxhd_init_vlc(DNXHDContext *ctx, uint32_t cid, int bitdepth) { if (cid != ctx->cid) { const CIDEntry *cid_table = ff_dnxhd_get_cid_table(cid); if (!cid_table) { return AVERROR(ENOSYS); } if (cid_table->bit_depth != bitdepth && cid_table->bit_depth != DNXHD_VAR...
static int dnxhd_init_vlc(DNXHDContext *ctx, uint32_t cid, int bitdepth) { int ret; if (cid != ctx->cid) { const CIDEntry *cid_table = ff_dnxhd_get_cid_table(cid); if (!cid_table) { return AVERROR(ENOSYS); } if (cid_table->bit_depth != bitdepth && cid_table->bit_depth...
static int dnxhd_init_vlc(DNXHDContext *ctx, uint32_t cid) { if (cid != ctx->cid) { int index; if ((index = ff_dnxhd_get_cid_table(cid)) < 0) { av_log(ctx->avctx, AV_LOG_ERROR, "unsupported cid %d\n", cid); return AVERROR(ENOSYS); } if (ff_dnxhd_cid_table[inde...
static int dnxhd_init_vlc(DNXHDContext *ctx, uint32_t cid) { int ret; if (cid != ctx->cid) { int index; if ((index = ff_dnxhd_get_cid_table(cid)) < 0) { av_log(ctx->avctx, AV_LOG_ERROR, "unsupported cid %d\n", cid); return AVERROR(ENOSYS); } if (ff_dnxhd_c...
static int dnxhd_init_vlc(DNXHDContext *ctx, uint32_t cid, int bitdepth) { + int ret; if (cid != ctx->cid) { const CIDEntry *cid_table = ff_dnxhd_get_cid_table(cid); if (!cid_table) { return AVERROR(ENOSYS); } if (cid_table->bit_depth != bitdepth && cid_table->b...
CVE-2021-38171
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavformat/adtsenc.c
adts_decode_extradata
static int adts_decode_extradata(AVFormatContext *s, ADTSContext *adts, const uint8_t *buf, int size) { GetBitContext gb; PutBitContext pb; MPEG4AudioConfig m4ac; int off; init_get_bits(&gb, buf, size * 8); off = avpriv_mpeg4audio_get_config2(&m4ac, buf, size, 1, s); if (off < 0) { r...
static int adts_decode_extradata(AVFormatContext *s, ADTSContext *adts, const uint8_t *buf, int size) { GetBitContext gb; PutBitContext pb; MPEG4AudioConfig m4ac; int off, ret; ret = init_get_bits8(&gb, buf, size); if (ret < 0) { return ret; } off = avpriv_mpeg4audio_get_config2(...
static int adts_decode_extradata(AVFormatContext *s, ADTSContext *adts, const uint8_t *buf, int size) { GetBitContext gb; PutBitContext pb; MPEG4AudioConfig m4ac; int off; init_get_bits(&gb, buf, size * 8); off = avpriv_mpeg4audio_get_config(&m4ac, buf, size * 8, 1); if (off < 0) { r...
static int adts_decode_extradata(AVFormatContext *s, ADTSContext *adts, const uint8_t *buf, int size) { GetBitContext gb; PutBitContext pb; MPEG4AudioConfig m4ac; int off, ret; ret = init_get_bits8(&gb, buf, size); if (ret < 0) { return ret; } off = avpriv_mpeg4audio_get_config(&...
static int adts_decode_extradata(AVFormatContext *s, ADTSContext *adts, const uint8_t *buf, int size) { MPEG4AudioConfig m4ac; int off; init_get_bits(&gb, buf, size * 8); off = avpriv_mpeg4audio_get_config2(&m4ac, buf, size, 1, s); if (off < 0) { return off; } skip_bits_long(&gb, off...
static int adts_decode_extradata(AVFormatContext *s, ADTSContext *adts, const uint8_t *buf, int size) { MPEG4AudioConfig m4ac; int off, ret; ret = init_get_bits8(&gb, buf, size); if (ret < 0) { return ret; } off = avpriv_mpeg4audio_get_config2(&m4ac, buf, size, 1, s); if (off < 0) { ...
static int adts_decode_extradata(AVFormatContext *s, ADTSContext *adts, const uint8_t *buf, int size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ MPEG4AudioConfig m4ac; int off; init_get_bits(&gb, buf, size * 8); off = avpriv_mpeg4audio_get_config(&m4ac, buf, size * 8, 1); if (off < 0) { ...
static int adts_decode_extradata(AVFormatContext *s, ADTSContext *adts, const uint8_t *buf, int size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ MPEG4AudioConfig m4ac; int off, ret; ret = init_get_bits8(&gb, buf, size); if (ret < 0) { return ret; } off = avpriv_mpeg4audio_get_co...
static int adts_decode_extradata(AVFormatContext *s, ADTSContext *adts, const uint8_t *buf, int size) { MPEG4AudioConfig m4ac; - int off; - init_get_bits(&gb, buf, size * 8); + int off, ret; + ret = init_get_bits8(&gb, buf, size); + if (ret < 0) { + return ret; + } off = avpriv_mpeg4...
CVE-2021-39920
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-ippusb.c
dissect_ippusb
static int dissect_ippusb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { gint offset = 0; gint ret = 0; guint first_linelen; const guchar *first_line; gint next_offset; guint8 last; guint8 status_code; const guchar *last_chunk = NULL; struct ippusb_analysis *ippus...
static int dissect_ippusb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { gint offset = 0; gint ret = 0; guint first_linelen; const guchar *first_line; gint next_offset; guint8 last; guint8 status_code; const guchar *last_chunk = NULL; struct ippusb_analysis *ippus...
static int dissect_ippusb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { gint offset = 0; gint ret = 0; guint first_linelen; const guchar *first_line; gint next_offset; guint8 last; guint8 status_code; const guchar *last_chunk = NULL; struct ippusb_analysis *ippus...
static int dissect_ippusb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { gint offset = 0; gint ret = 0; guint first_linelen; const guchar *first_line; gint next_offset; guint8 last; guint8 status_code; const guchar *last_chunk = NULL; struct ippusb_analysis *ippus...
static int dissect_ippusb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { gint offset = 0; const guchar *last_chunk = NULL; gint reported_length = tvb_reported_length(tvb); gint captured_length = tvb_captured_length(tvb); if((conv = find_conversation_pinfo(pinfo, 0)) != NULL) { ...
static int dissect_ippusb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { gint offset = 0; const guchar *last_chunk = NULL; gint reported_length = tvb_reported_length(tvb); gint captured_length = tvb_captured_length(tvb); if((conv = find_conversation_pinfo(pinfo, 0)) != NULL) { ...
static int dissect_ippusb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { gint offset = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ const guchar *last_chunk = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ gint reported_length = tvb_reported_length(tvb); gint capture...
static int dissect_ippusb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { gint offset = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ const guchar *last_chunk = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ gint reported_length = tvb_reported_length(tvb); gint capture...
static int dissect_ippusb(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { gint offset = 0; const guchar *last_chunk = NULL; gint reported_length = tvb_reported_length(tvb); gint captured_length = tvb_captured_length(tvb); if((conv = find_conversation_pinfo(pinfo, 0)) != NULL...
CVE-2021-39921
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-mbtcp.c
dissect_modbus_request
static int dissect_modbus_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *modbus_tree, guint8 function_code, gint payload_start, gint payload_len, modbus_pkt_info_t *pkt_info) { proto_tree *group_tree; gint byte_cnt, group_offset, ii; guint8 mei_code; guint16 reg_base=0, diagnostic_code; guin...
static int dissect_modbus_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *modbus_tree, guint8 function_code, gint payload_start, gint payload_len, modbus_pkt_info_t *pkt_info) { proto_tree *group_tree; gint byte_cnt, group_offset, ii; guint8 mei_code; guint16 reg_base=0, diagnostic_code; guin...
static int dissect_modbus_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *modbus_tree, guint8 function_code, gint payload_start, gint payload_len, modbus_pkt_info_t *pkt_info) { proto_tree *group_tree; gint byte_cnt, group_offset, ii; guint8 mei_code; guint16 reg_base=0, diagnostic_code; guin...
static int dissect_modbus_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *modbus_tree, guint8 function_code, gint payload_start, gint payload_len, modbus_pkt_info_t *pkt_info) { proto_tree *group_tree; gint byte_cnt, group_offset, ii; guint8 mei_code; guint16 reg_base=0, diagnostic_code; guin...
static int dissect_modbus_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *modbus_tree, guint8 function_code, gint payload_start, gint payload_len, modbus_pkt_info_t *pkt_info) { guint16 reg_base=0, diagnostic_code; guint32 group_byte_cnt, group_word_cnt; switch (function_code) { case WRITE_SGLE_C...
static int dissect_modbus_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *modbus_tree, guint8 function_code, gint payload_start, gint payload_len, modbus_pkt_info_t *pkt_info) { guint16 reg_base=0, diagnostic_code; guint32 group_byte_cnt, group_word_cnt; if (!pkt_info) { return 0; } s...
static int dissect_modbus_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *modbus_tree, guint8 function_code, gint payload_start, gint payload_len, modbus_pkt_info_t *pkt_info) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint16 reg_base=0, diagnostic_code; guint32 group_byte_cnt, group_word_cnt; ...
static int dissect_modbus_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *modbus_tree, guint8 function_code, gint payload_start, gint payload_len, modbus_pkt_info_t *pkt_info) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint16 reg_base=0, diagnostic_code; guint32 group_byte_cnt, group_word_cnt; ...
static int dissect_modbus_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *modbus_tree, guint8 function_code, gint payload_start, gint payload_len, modbus_pkt_info_t *pkt_info) { guint16 reg_base=0, diagnostic_code; guint32 group_byte_cnt, group_word_cnt; + if (!pkt_info) { + return 0; + }...
CVE-2021-39921
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-mbtcp.c
dissect_modbus_response
static int dissect_modbus_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *modbus_tree, guint8 function_code, gint payload_start, gint payload_len, modbus_pkt_info_t *pkt_info) { proto_tree *group_tree, *event_tree, *event_item_tree, *device_objects_tree, *device_objects_item_tree; proto_item *mei; g...
static int dissect_modbus_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *modbus_tree, guint8 function_code, gint payload_start, gint payload_len, modbus_pkt_info_t *pkt_info) { proto_tree *group_tree, *event_tree, *event_item_tree, *device_objects_tree, *device_objects_item_tree; proto_item *mei; g...
static int dissect_modbus_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *modbus_tree, guint8 function_code, gint payload_start, gint payload_len, modbus_pkt_info_t *pkt_info) { proto_tree *group_tree, *event_tree, *event_item_tree, *device_objects_tree, *device_objects_item_tree; proto_item *mei; g...
static int dissect_modbus_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *modbus_tree, guint8 function_code, gint payload_start, gint payload_len, modbus_pkt_info_t *pkt_info) { proto_tree *group_tree, *event_tree, *event_item_tree, *device_objects_tree, *device_objects_item_tree; proto_item *mei; g...
static int dissect_modbus_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *modbus_tree, guint8 function_code, gint payload_start, gint payload_len, modbus_pkt_info_t *pkt_info) { guint8 object_type, mei_code, event_code; guint16 diagnostic_code, num_reg = pkt_info->num_reg; guint32 group_byte_cnt, gr...
static int dissect_modbus_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *modbus_tree, guint8 function_code, gint payload_start, gint payload_len, modbus_pkt_info_t *pkt_info) { guint8 object_type, mei_code, event_code; guint16 diagnostic_code, num_reg; guint32 group_byte_cnt, group_word_cnt; pr...
static int dissect_modbus_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *modbus_tree, guint8 function_code, gint payload_start, gint payload_len, modbus_pkt_info_t *pkt_info) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint8 object_type, mei_code, event_code; guint16 diagnostic_code, num_reg =...
static int dissect_modbus_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *modbus_tree, guint8 function_code, gint payload_start, gint payload_len, modbus_pkt_info_t *pkt_info) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint8 object_type, mei_code, event_code; guint16 diagnostic_code, num_reg; ...
static int dissect_modbus_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *modbus_tree, guint8 function_code, gint payload_start, gint payload_len, modbus_pkt_info_t *pkt_info) { guint8 object_type, mei_code, event_code; - guint16 diagnostic_code, num_reg = pkt_info->num_reg; + guint16 diagnostic_cod...
CVE-2021-39922
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/asn1/c1222/packet-c1222-template.c
canonify_unencrypted_header
static gboolean canonify_unencrypted_header(guchar *buff, guint32 *offset, guint32 buffsize) { const TOP_ELEMENT_CONTROL *t = canonifyTable; guint32 len; for (t = canonifyTable; t->element != NULL; t++) { len = *(t->length); if (t->required && *(t->element) == NULL) { return FALS...
static gboolean canonify_unencrypted_header(guchar *buff, guint32 *offset, guint32 buffsize) { const TOP_ELEMENT_CONTROL *t = canonifyTable; guint32 len, allocated; for (t = canonifyTable; t->element != NULL; t++) { len = *(t->length); allocated = *(t->allocated); if (t->required && ...
static gboolean canonify_unencrypted_header(guchar *buff, guint32 *offset, guint32 buffsize) { const TOP_ELEMENT_CONTROL *t = canonifyTable; guint32 len; for (t = canonifyTable; t->element != NULL; t++) { len = *(t->length); if (t->required && *(t->element) == NULL) { return FALS...
static gboolean canonify_unencrypted_header(guchar *buff, guint32 *offset, guint32 buffsize) { const TOP_ELEMENT_CONTROL *t = canonifyTable; guint32 len, allocated; for (t = canonifyTable; t->element != NULL; t++) { len = *(t->length); allocated = *(t->allocated); if (t->required && ...
static gboolean canonify_unencrypted_header(guchar *buff, guint32 *offset, guint32 buffsize) { const TOP_ELEMENT_CONTROL *t = canonifyTable; guint32 len; for (t = canonifyTable; t->element != NULL; t++) { len = *(t->length); if (t->required && *(t->element) == NULL) { return FALS...
static gboolean canonify_unencrypted_header(guchar *buff, guint32 *offset, guint32 buffsize) { const TOP_ELEMENT_CONTROL *t = canonifyTable; guint32 len, allocated; for (t = canonifyTable; t->element != NULL; t++) { len = *(t->length); allocated = *(t->allocated); if (t->required && ...
static gboolean canonify_unencrypted_header(guchar *buff, guint32 *offset, guint32 buffsize) { const TOP_ELEMENT_CONTROL *t = canonifyTable; guint32 len; for (t = canonifyTable; t->element != NULL; t++) { len = *(t->length); if (t->required && *(t->element) == NULL) { return FALS...
static gboolean canonify_unencrypted_header(guchar *buff, guint32 *offset, guint32 buffsize) { const TOP_ELEMENT_CONTROL *t = canonifyTable; guint32 len, allocated; for (t = canonifyTable; t->element != NULL; t++) { len = *(t->length); allocated = *(t->allocated); if (t->required && ...
static gboolean canonify_unencrypted_header(guchar *buff, guint32 *offset, guint32 buffsize) { const TOP_ELEMENT_CONTROL *t = canonifyTable; - guint32 len; + guint32 len, allocated; for (t = canonifyTable; t->element != NULL; t++) { len = *(t->length); + allocated = *(t->allocated); ...
CVE-2021-39922
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-c1222.c
canonify_unencrypted_header
static gboolean canonify_unencrypted_header(guchar *buff, guint32 *offset, guint32 buffsize) { const TOP_ELEMENT_CONTROL *t = canonifyTable; guint32 len; for (t = canonifyTable; t->element != NULL; t++) { len = *(t->length); if (t->required && *(t->element) == NULL) { return FALS...
static gboolean canonify_unencrypted_header(guchar *buff, guint32 *offset, guint32 buffsize) { const TOP_ELEMENT_CONTROL *t = canonifyTable; guint32 len, allocated; for (t = canonifyTable; t->element != NULL; t++) { len = *(t->length); allocated = *(t->allocated); if (t->required && ...
static gboolean canonify_unencrypted_header(guchar *buff, guint32 *offset, guint32 buffsize) { const TOP_ELEMENT_CONTROL *t = canonifyTable; guint32 len; for (t = canonifyTable; t->element != NULL; t++) { len = *(t->length); if (t->required && *(t->element) == NULL) { return FALS...
static gboolean canonify_unencrypted_header(guchar *buff, guint32 *offset, guint32 buffsize) { const TOP_ELEMENT_CONTROL *t = canonifyTable; guint32 len, allocated; for (t = canonifyTable; t->element != NULL; t++) { len = *(t->length); allocated = *(t->allocated); if (t->required && ...
static gboolean canonify_unencrypted_header(guchar *buff, guint32 *offset, guint32 buffsize) { const TOP_ELEMENT_CONTROL *t = canonifyTable; guint32 len; for (t = canonifyTable; t->element != NULL; t++) { len = *(t->length); if (t->required && *(t->element) == NULL) { return FALS...
static gboolean canonify_unencrypted_header(guchar *buff, guint32 *offset, guint32 buffsize) { const TOP_ELEMENT_CONTROL *t = canonifyTable; guint32 len, allocated; for (t = canonifyTable; t->element != NULL; t++) { len = *(t->length); allocated = *(t->allocated); if (t->required && ...
static gboolean canonify_unencrypted_header(guchar *buff, guint32 *offset, guint32 buffsize) { const TOP_ELEMENT_CONTROL *t = canonifyTable; guint32 len; for (t = canonifyTable; t->element != NULL; t++) { len = *(t->length); if (t->required && *(t->element) == NULL) { return FALS...
static gboolean canonify_unencrypted_header(guchar *buff, guint32 *offset, guint32 buffsize) { const TOP_ELEMENT_CONTROL *t = canonifyTable; guint32 len, allocated; for (t = canonifyTable; t->element != NULL; t++) { len = *(t->length); allocated = *(t->allocated); if (t->required && ...
static gboolean canonify_unencrypted_header(guchar *buff, guint32 *offset, guint32 buffsize) { const TOP_ELEMENT_CONTROL *t = canonifyTable; - guint32 len; + guint32 len, allocated; for (t = canonifyTable; t->element != NULL; t++) { len = *(t->length); + allocated = *(t->allocated); ...
CVE-2021-39923
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-pnrp.c
dissect_pnrp
static int dissect_pnrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { gint offset; gint padding_bytes; guint8 message_type; guint16 field_type; guint16 data_length; proto_item *ti; proto_tree *pnrp_tree; proto_item *pnrp_header_item; proto_tree *pnrp_header_tree...
static int dissect_pnrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { int offset, start_offset; gint padding_bytes; guint8 message_type; guint16 field_type; unsigned data_length; proto_item *ti; proto_tree *pnrp_tree; proto_item *pnrp_header_item; proto_tree *pn...
static int dissect_pnrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { gint offset; gint padding_bytes; guint8 message_type; guint16 field_type; guint16 data_length; proto_item *ti; proto_tree *pnrp_tree; proto_item *pnrp_header_item; proto_tree *pnrp_header_tree...
static int dissect_pnrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { int offset, start_offset; gint padding_bytes; guint8 message_type; guint16 field_type; unsigned data_length; proto_item *ti; proto_tree *pnrp_tree; proto_item *pnrp_header_item; proto_tree *pn...
static int dissect_pnrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { gint offset; gint padding_bytes; guint16 field_type; guint16 data_length; proto_item *ti; proto_item *pnrp_message_tree = NULL; data_length = tvb_captured_length(tvb); if (tvb_get_ntohs(tvb,0) != ...
static int dissect_pnrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { int offset, start_offset; gint padding_bytes; guint16 field_type; unsigned data_length; proto_item *ti; proto_item *pnrp_message_tree = NULL; data_length = tvb_captured_length(tvb); if (tvb_get_nt...
static int dissect_pnrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { gint offset; gint padding_bytes; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint16 field_type; guint16 data_length; proto_item *ti; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ proto_item *pn...
static int dissect_pnrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { int offset, start_offset; gint padding_bytes; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint16 field_type; unsigned data_length; proto_item *ti; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
static int dissect_pnrp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { - gint offset; + int offset, start_offset; gint padding_bytes; guint16 field_type; - guint16 data_length; + unsigned data_length; proto_item *ti; proto_item *pnrp_message_tree = NULL; data_l...
CVE-2021-39924
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-bt-dht.c
dissect_bencoded_dict_entry
static int dissect_bencoded_dict_entry(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset ) { proto_item *ti; proto_tree *sub_tree; gboolean tohex; const char *key; const char *val; guint orig_offset = offset; key = NULL; val = NULL; ti = proto_tree_add_item( tree, hf_...
static int dissect_bencoded_dict_entry(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset ) { proto_item *ti; proto_tree *sub_tree; gboolean tohex; const char *key; const char *val; guint orig_offset = offset; key = NULL; val = NULL; ti = proto_tree_add_item( tree, hf_...
static int dissect_bencoded_dict_entry(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset ) { proto_item *ti; proto_tree *sub_tree; gboolean tohex; const char *key; const char *val; guint orig_offset = offset; key = NULL; val = NULL; ti = proto_tree_add_item( tree, hf_...
static int dissect_bencoded_dict_entry(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset ) { proto_item *ti; proto_tree *sub_tree; gboolean tohex; const char *key; const char *val; guint orig_offset = offset; key = NULL; val = NULL; ti = proto_tree_add_item( tree, hf_...
static int dissect_bencoded_dict_entry(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset ) { key = NULL; val = NULL; ti = proto_tree_add_item( tree, hf_bencoded_dict_entry, tvb, offset, 0, ENC_NA ); sub_tree = proto_item_add_subtree( ti, ett_bencoded_dict_entry); offset = dissect_ben...
static int dissect_bencoded_dict_entry(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset ) { key = NULL; val = NULL; ti = proto_tree_add_item( tree, hf_bencoded_dict_entry, tvb, offset, 0, ENC_NA ); sub_tree = proto_item_add_subtree( ti, ett_bencoded_dict_entry); offset = dissect_ben...
static int dissect_bencoded_dict_entry(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ key = NULL; val = NULL; ti = proto_tree_add_item( tree, hf_bencoded_dict_entry, tvb, offset, 0, ENC_NA ); sub_tree = proto_item_add_subtree( ti, ...
static int dissect_bencoded_dict_entry(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ key = NULL; val = NULL; ti = proto_tree_add_item( tree, hf_bencoded_dict_entry, tvb, offset, 0, ENC_NA ); sub_tree = proto_item_add_subtree( ti, ...
static int dissect_bencoded_dict_entry(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset ) { key = NULL; val = NULL; ti = proto_tree_add_item( tree, hf_bencoded_dict_entry, tvb, offset, 0, ENC_NA ); sub_tree = proto_item_add_subtree( ti, ett_bencoded_dict_entry); offset = disse...
CVE-2021-39924
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-bt-dht.c
dissect_bt_dht_values
static int dissect_bt_dht_values(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char **result, const char *label ) { proto_item *ti; proto_tree *sub_tree; proto_item *value_ti; proto_tree *value_tree; guint peer_index; guint string_len; ti = proto_tree_add_item( tre...
static int dissect_bt_dht_values(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char **result, const char *label ) { proto_item *ti; proto_tree *sub_tree; proto_item *value_ti; proto_tree *value_tree; guint peer_index; guint string_len; ti = proto_tree_add_item( tre...
static int dissect_bt_dht_values(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char **result, const char *label ) { proto_item *ti; proto_tree *sub_tree; proto_item *value_ti; proto_tree *value_tree; guint peer_index; guint string_len; ti = proto_tree_add_item( tre...
static int dissect_bt_dht_values(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char **result, const char *label ) { proto_item *ti; proto_tree *sub_tree; proto_item *value_ti; proto_tree *value_tree; guint peer_index; guint string_len; ti = proto_tree_add_item( tre...
static int dissect_bt_dht_values(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char **result, const char *label ) { ti = proto_tree_add_item( tree, hf_bt_dht_peers, tvb, offset, 0, ENC_NA ); sub_tree = proto_item_add_subtree( ti, ett_bt_dht_peers); offset += 1; while( tvb_get_...
static int dissect_bt_dht_values(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char **result, const char *label ) { ti = proto_tree_add_item( tree, hf_bt_dht_peers, tvb, offset, 0, ENC_NA ); sub_tree = proto_item_add_subtree( ti, ett_bt_dht_peers); offset += 1; while( tvb_get_...
static int dissect_bt_dht_values(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char **result, const char *label ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ti = proto_tree_add_item( tree, hf_bt_dht_peers, tvb, offset, 0, ENC_NA ); sub_tree = proto_item_add_subtree( ti, ett_b...
static int dissect_bt_dht_values(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char **result, const char *label ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ti = proto_tree_add_item( tree, hf_bt_dht_peers, tvb, offset, 0, ENC_NA ); sub_tree = proto_item_add_subtree( ti, ett_b...
static int dissect_bt_dht_values(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char **result, const char *label ) { ti = proto_tree_add_item( tree, hf_bt_dht_peers, tvb, offset, 0, ENC_NA ); sub_tree = proto_item_add_subtree( ti, ett_bt_dht_peers); offset += 1; while( tvb...
CVE-2021-39924
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-bt-dht.c
proto_register_bt_dht
void proto_register_bt_dht(void) { expert_module_t* expert_bt_dht; static hf_register_info hf[] = { { &hf_bencoded_string, { "String", "bt-dht.bencoded.string", FT_STRG, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_bencoded_list, { ...
void proto_register_bt_dht(void) { expert_module_t* expert_bt_dht; static hf_register_info hf[] = { { &hf_bencoded_string, { "String", "bt-dht.bencoded.string", FT_STRG, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_bencoded_list, { ...
void proto_register_bt_dht(void) { expert_module_t* expert_bt_dht; static hf_register_info hf[] = { { &hf_bencoded_string, { "String", "bt-dht.bencoded.string", FT_STRG, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_bencoded_list, { ...
void proto_register_bt_dht(void) { expert_module_t* expert_bt_dht; static hf_register_info hf[] = { { &hf_bencoded_string, { "String", "bt-dht.bencoded.string", FT_STRG, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_bencoded_list, { ...
void proto_register_bt_dht(void) { static ei_register_info ei[] = { { &ei_int_string, { "bt-dht.invalid_string", PI_MALFORMED, PI_ERROR, "String must contain an integer", EXPFILL } } }; }
void proto_register_bt_dht(void) { static ei_register_info ei[] = { { &ei_int_string, { "bt-dht.invalid_string", PI_MALFORMED, PI_ERROR, "String must contain an integer", EXPFILL } }, { &ei_invalid_len, { "bt-dht.invalid_length", PI...
void proto_register_bt_dht(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static ei_register_info ei[] = { { &ei_int_string, { "bt-dht.invalid_string", PI_MALFORMED, PI_ERROR, "String must contain an integer", EXPFILL } } }; /* PLACEHOLDER: ...
void proto_register_bt_dht(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static ei_register_info ei[] = { { &ei_int_string, { "bt-dht.invalid_string", PI_MALFORMED, PI_ERROR, "String must contain an integer", EXPFILL } }, { &ei_invalid_...
void proto_register_bt_dht(void) { static ei_register_info ei[] = { { &ei_int_string, { "bt-dht.invalid_string", PI_MALFORMED, PI_ERROR, "String must contain an integer", EXPFILL } - } + }, { + &ei_invalid_len, { + "bt-dht...
CVE-2021-39925
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-btsdp.c
proto_register_btsdp
void proto_register_btsdp(void) { module_t *module; expert_module_t *expert_btsdp; static hf_register_info hf[] = { { &hf_pdu_id, { "PDU", "btsdp.pdu", FT_UT8, BASE_HEX, VALS(vs_pduid), 0, "PDU type", HFILL } }, { &hf_tid, { ...
void proto_register_btsdp(void) { module_t *module; expert_module_t *expert_btsdp; static hf_register_info hf[] = { { &hf_pdu_id, { "PDU", "btsdp.pdu", FT_UT8, BASE_HEX, VALS(vs_pduid), 0, "PDU type", HFILL } }, { &hf_tid, { ...
void proto_register_btsdp(void) { module_t *module; expert_module_t *expert_btsdp; static hf_register_info hf[] = { { &hf_pdu_id, { "PDU", "btsdp.pdu", FT_UT8, BASE_HEX, VALS(vs_pduid), 0, "PDU type", HFILL } }, { &hf_tid, { ...
void proto_register_btsdp(void) { module_t *module; expert_module_t *expert_btsdp; static hf_register_info hf[] = { { &hf_pdu_id, { "PDU", "btsdp.pdu", FT_UT8, BASE_HEX, VALS(vs_pduid), 0, "PDU type", HFILL } }, { &hf_tid, { ...
void proto_register_btsdp(void) { static gint *ett[] = { &ett_btsdp, &ett_btsdp_ssr, &ett_btsdp_des, &ett_btsdp_attribute, &ett_btsdp_attribute_id, &ett_btsdp_attribute_value, &ett_btsdp_service_search_pattern, &ett_btsdp_attribute_idlist, &ett_btsdp_continuation_state, &ett_btsdp_data_element, &ett_btsdp_d...
void proto_register_btsdp(void) { static gint *ett[] = { &ett_btsdp, &ett_btsdp_ssr, &ett_btsdp_des, &ett_btsdp_attribute, &ett_btsdp_attribute_id, &ett_btsdp_attribute_value, &ett_btsdp_service_search_pattern, &ett_btsdp_attribute_idlist, &ett_btsdp_continuation_state, &ett_btsdp_data_element, &ett_btsdp_d...
void proto_register_btsdp(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static gint *ett[] = { &ett_btsdp, &ett_btsdp_ssr, &ett_btsdp_des, &ett_btsdp_attribute, &ett_btsdp_attribute_id, &ett_btsdp_attribute_value, &ett_btsdp_service_search_pattern, &ett_btsdp_attribute_idlist, &ett_btsdp_continu...
void proto_register_btsdp(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static gint *ett[] = { &ett_btsdp, &ett_btsdp_ssr, &ett_btsdp_des, &ett_btsdp_attribute, &ett_btsdp_attribute_id, &ett_btsdp_attribute_value, &ett_btsdp_service_search_pattern, &ett_btsdp_attribute_idlist, &ett_btsdp_continu...
void proto_register_btsdp(void) { static gint *ett[] = { &ett_btsdp, &ett_btsdp_ssr, &ett_btsdp_des, &ett_btsdp_attribute, &ett_btsdp_attribute_id, &ett_btsdp_attribute_value, &ett_btsdp_service_search_pattern, &ett_btsdp_attribute_idlist, &ett_btsdp_continuation_state, &ett_btsdp_data_element, &ett_btsd...
CVE-2021-39925
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-btsdp.c
reassemble_continuation_state
static gint reassemble_continuation_state(tvbuff_t *tvb, packet_info *pinfo, gint offset, guint tid, gboolean is_request, gint attribute_list_byte_offset, gint attribute_list_byte_count, guint32 pdu_type, tvbuff_t **new_tvb, gboolean *is_first, gboolean *is_continued, wmem_array_t **uuid_array, guint32 *record_...
static gint reassemble_continuation_state(tvbuff_t *tvb, packet_info *pinfo, gint offset, guint tid, gboolean is_request, gint attribute_list_byte_offset, gint attribute_list_byte_count, guint32 pdu_type, tvbuff_t **new_tvb, gboolean *is_first, gboolean *is_continued, wmem_array_t **uuid_array, guint32 *record_...
static gint reassemble_continuation_state(tvbuff_t *tvb, packet_info *pinfo, gint offset, guint tid, gboolean is_request, gint attribute_list_byte_offset, gint attribute_list_byte_count, guint32 pdu_type, tvbuff_t **new_tvb, gboolean *is_first, gboolean *is_continued, wmem_array_t **uuid_array, guint32 *record_...
static gint reassemble_continuation_state(tvbuff_t *tvb, packet_info *pinfo, gint offset, guint tid, gboolean is_request, gint attribute_list_byte_offset, gint attribute_list_byte_count, guint32 pdu_type, tvbuff_t **new_tvb, gboolean *is_first, gboolean *is_continued, wmem_array_t **uuid_array, guint32 *record_...
static gint reassemble_continuation_state(tvbuff_t *tvb, packet_info *pinfo, gint offset, guint tid, gboolean is_request, gint attribute_list_byte_offset, gint attribute_list_byte_count, guint32 pdu_type, tvbuff_t **new_tvb, gboolean *is_first, gboolean *is_continued, wmem_array_t **uuid_array, guint32 *record_...
static gint reassemble_continuation_state(tvbuff_t *tvb, packet_info *pinfo, gint offset, guint tid, gboolean is_request, gint attribute_list_byte_offset, gint attribute_list_byte_count, guint32 pdu_type, tvbuff_t **new_tvb, gboolean *is_first, gboolean *is_continued, wmem_array_t **uuid_array, guint32 *record_...
static gint reassemble_continuation_state(tvbuff_t *tvb, packet_info *pinfo, gint offset, guint tid, gboolean is_request, gint attribute_list_byte_offset, gint attribute_list_byte_count, guint32 pdu_type, tvbuff_t **new_tvb, gboolean *is_first, gboolean *is_continued, wmem_array_t **uuid_array, guint32 *record_...
static gint reassemble_continuation_state(tvbuff_t *tvb, packet_info *pinfo, gint offset, guint tid, gboolean is_request, gint attribute_list_byte_offset, gint attribute_list_byte_count, guint32 pdu_type, tvbuff_t **new_tvb, gboolean *is_first, gboolean *is_continued, wmem_array_t **uuid_array, guint32 *record_...
static gint reassemble_continuation_state(tvbuff_t *tvb, packet_info *pinfo, gint offset, guint tid, gboolean is_request, gint attribute_list_byte_offset, gint attribute_list_byte_count, guint32 pdu_type, tvbuff_t **new_tvb, gboolean *is_first, gboolean *is_continued, wmem_array_t **uuid_array, guint32 *recor...
CVE-2021-39926
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-bthci_iso.c
dissect_bthci_iso
static gint dissect_bthci_iso(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { proto_item *bthci_iso_item; proto_tree *bthci_iso_tree; proto_item *sub_item; guint16 flags; guint16 pb_flag = FALSE; guint16 length; gboolean fragmented = FALSE; gint offset = 0; tvbuff_...
static gint dissect_bthci_iso(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { proto_item *bthci_iso_item; proto_tree *bthci_iso_tree; proto_item *sub_item; guint16 flags; guint16 pb_flag = FALSE; guint16 length; gboolean fragmented = FALSE; gint offset = 0; tvbuff_...
static gint dissect_bthci_iso(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { proto_item *bthci_iso_item; proto_tree *bthci_iso_tree; proto_item *sub_item; guint16 flags; guint16 pb_flag = FALSE; guint16 length; gboolean fragmented = FALSE; gint offset = 0; tvbuff_...
static gint dissect_bthci_iso(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { proto_item *bthci_iso_item; proto_tree *bthci_iso_tree; proto_item *sub_item; guint16 flags; guint16 pb_flag = FALSE; guint16 length; gboolean fragmented = FALSE; gint offset = 0; tvbuff_...
static gint dissect_bthci_iso(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { gint offset = 0; if (data == NULL) { return 0; } bthci_iso_item = proto_tree_add_item(tree, proto_bthci_iso, tvb, offset, -1, ENC_NA); bthci_iso_tree = proto_item_add_subtree(bthci_iso_item, ett_...
static gint dissect_bthci_iso(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { gint offset = 0; if (data == NULL) { return 0; } bthci_iso_item = proto_tree_add_item(tree, proto_bthci_iso, tvb, offset, -1, ENC_NA); bthci_iso_tree = proto_item_add_subtree(bthci_iso_item, ett_...
static gint dissect_bthci_iso(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 */ if (data == NULL) { return 0; } bthci_iso_item = proto_tree_add_item(tree, proto_b...
static gint dissect_bthci_iso(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 */ if (data == NULL) { return 0; } bthci_iso_item = proto_tree_add_item(tree, proto_b...
static gint dissect_bthci_iso(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) { gint offset = 0; if (data == NULL) { return 0; } bthci_iso_item = proto_tree_add_item(tree, proto_bthci_iso, tvb, offset, -1, ENC_NA); bthci_iso_tree = proto_item_add_subtree(bthci_iso_ite...
CVE-2021-39926
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-bthci_iso.c
proto_register_bthci_iso
void proto_register_bthci_iso(void) { module_t *bthci_iso_module; expert_module_t *bthci_iso_expert_module; static hf_register_info hf[] = { { &hf_bthci_iso_chandle, { "Connection Handle", "bthci_iso.chandle", FT_UT16, BASE_HEX, NULL, 0x0FFF, NULL, HFILL } ...
void proto_register_bthci_iso(void) { module_t *bthci_iso_module; expert_module_t *bthci_iso_expert_module; static hf_register_info hf[] = { { &hf_bthci_iso_chandle, { "Connection Handle", "bthci_iso.chandle", FT_UT16, BASE_HEX, NULL, 0x0FFF, NULL, HFILL } ...
void proto_register_bthci_iso(void) { module_t *bthci_iso_module; expert_module_t *bthci_iso_expert_module; static hf_register_info hf[] = { { &hf_bthci_iso_chandle, { "Connection Handle", "bthci_iso.chandle", FT_UT16, BASE_HEX, NULL, 0x0FFF, NULL, HFILL } ...
void proto_register_bthci_iso(void) { module_t *bthci_iso_module; expert_module_t *bthci_iso_expert_module; static hf_register_info hf[] = { { &hf_bthci_iso_chandle, { "Connection Handle", "bthci_iso.chandle", FT_UT16, BASE_HEX, NULL, 0x0FFF, NULL, HFILL } ...
void proto_register_bthci_iso(void) { static gint *ett[] = { &ett_bthci_iso, }; static ei_register_info ei[] = { { &ei_length_bad, { "bthci_iso.length.bad", PI_MALFORMED, PI_WARN, "Length too short", EXPFILL }}, }; }
void proto_register_bthci_iso(void) { static gint *ett[] = { &ett_bthci_iso, }; static ei_register_info ei[] = { { &ei_length_bad, { "bthci_iso.length.bad", PI_MALFORMED, PI_WARN, "Invalid length", EXPFILL }}, }; }
void proto_register_bthci_iso(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static gint *ett[] = { &ett_bthci_iso, }; static ei_register_info ei[] = { { &ei_length_bad, { "bthci_iso.length.bad", PI_MALFORMED, PI_WARN, "Length too short", EXPFILL }}, }; /* PLACEHOLDER: DO ...
void proto_register_bthci_iso(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static gint *ett[] = { &ett_bthci_iso, }; static ei_register_info ei[] = { { &ei_length_bad, { "bthci_iso.length.bad", PI_MALFORMED, PI_WARN, "Invalid length", EXPFILL }}, }; /* PLACEHOLDER: DO NO...
void proto_register_bthci_iso(void) { static gint *ett[] = { &ett_bthci_iso, }; static ei_register_info ei[] = { - { &ei_length_bad, { "bthci_iso.length.bad", PI_MALFORMED, PI_WARN, "Length too short", EXPFILL }}, + { &ei_length_bad, { "bthci_iso.length.bad", PI_MALFORMED, PI_WARN...
CVE-2021-39928
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-ieee80211-radio.c
dissect_wlan_radio_phdr
static void dissect_wlan_radio_phdr(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, struct ieee_802_11_phdr *phdr) { proto_item *ti; proto_tree *radio_tree; float data_rate = 0.0f; gboolean have_data_rate = FALSE; gboolean has_short_preamble = FALSE; gboolean short_preamble = TRUE; g...
static void dissect_wlan_radio_phdr(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, struct ieee_802_11_phdr *phdr) { proto_item *ti; proto_tree *radio_tree; float data_rate = 0.0f; gboolean have_data_rate = FALSE; gboolean has_short_preamble = FALSE; gboolean short_preamble = TRUE; g...
static void dissect_wlan_radio_phdr(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, struct ieee_802_11_phdr *phdr) { proto_item *ti; proto_tree *radio_tree; float data_rate = 0.0f; gboolean have_data_rate = FALSE; gboolean has_short_preamble = FALSE; gboolean short_preamble = TRUE; g...
static void dissect_wlan_radio_phdr(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, struct ieee_802_11_phdr *phdr) { proto_item *ti; proto_tree *radio_tree; float data_rate = 0.0f; gboolean have_data_rate = FALSE; gboolean has_short_preamble = FALSE; gboolean short_preamble = TRUE; g...
static void dissect_wlan_radio_phdr(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, struct ieee_802_11_phdr *phdr) { if (!pinfo->fd->visited) { p_add_proto_data(wmem_file_scope(), pinfo, proto_wlan_radio, 0, wlan_radio_info); if (pinfo->fd->num > 1 && (phdr->phy == PHDR_802_11_PHY_11N || phd...
static void dissect_wlan_radio_phdr(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, struct ieee_802_11_phdr *phdr) { if (!pinfo->fd->visited) { p_add_proto_data(wmem_file_scope(), pinfo, proto_wlan_radio, 0, wlan_radio_info); if (pinfo->fd->num > 1 && (phdr->phy == PHDR_802_11_PHY_11N || phd...
static void dissect_wlan_radio_phdr(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, struct ieee_802_11_phdr *phdr) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!pinfo->fd->visited) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ p_add_proto_data(wmem_file_scope(), pinfo, proto_wlan_ra...
static void dissect_wlan_radio_phdr(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, struct ieee_802_11_phdr *phdr) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!pinfo->fd->visited) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ p_add_proto_data(wmem_file_scope(), pinfo, proto_wlan_ra...
static void dissect_wlan_radio_phdr(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, struct ieee_802_11_phdr *phdr) { if (!pinfo->fd->visited) { p_add_proto_data(wmem_file_scope(), pinfo, proto_wlan_radio, 0, wlan_radio_info); if (pinfo->fd->num > 1 && (phdr->phy == PHDR_802_11_PHY_11N ||...
CVE-2021-39929
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-bt-dht.c
dissect_bencoded_list
static int dissect_bencoded_list(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char *label ) { proto_item *ti; proto_tree *sub_tree; guint one_byte; const char *result; ti = proto_tree_add_none_format( tree, hf_bencoded_list, tvb, offset, 0, "%s: list...", label ); sub...
static int dissect_bencoded_list(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char *label ) { proto_item *ti; proto_tree *sub_tree; guint one_byte; const char *result; ti = proto_tree_add_none_format( tree, hf_bencoded_list, tvb, offset, 0, "%s: list...", label ); sub...
static int dissect_bencoded_list(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char *label ) { proto_item *ti; proto_tree *sub_tree; guint one_byte; const char *result; ti = proto_tree_add_none_format( tree, hf_bencoded_list, tvb, offset, 0, "%s: list...", label ); sub...
static int dissect_bencoded_list(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char *label ) { proto_item *ti; proto_tree *sub_tree; guint one_byte; const char *result; ti = proto_tree_add_none_format( tree, hf_bencoded_list, tvb, offset, 0, "%s: list...", label ); sub...
static int dissect_bencoded_list(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char *label ) { ti = proto_tree_add_none_format( tree, hf_bencoded_list, tvb, offset, 0, "%s: list...", label ); sub_tree = proto_item_add_subtree( ti, ett_bencoded_list); offset += 1; while( (one_b...
static int dissect_bencoded_list(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char *label ) { ti = proto_tree_add_none_format( tree, hf_bencoded_list, tvb, offset, 0, "%s: list...", label ); sub_tree = proto_item_add_subtree( ti, ett_bencoded_list); offset += 1; while( (one_b...
static int dissect_bencoded_list(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char *label ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ti = proto_tree_add_none_format( tree, hf_bencoded_list, tvb, offset, 0, "%s: list...", label ); sub_tree = proto_item_add_subtree( ti, ett_...
static int dissect_bencoded_list(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char *label ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ti = proto_tree_add_none_format( tree, hf_bencoded_list, tvb, offset, 0, "%s: list...", label ); sub_tree = proto_item_add_subtree( ti, ett_...
static int dissect_bencoded_list(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char *label ) { ti = proto_tree_add_none_format( tree, hf_bencoded_list, tvb, offset, 0, "%s: list...", label ); sub_tree = proto_item_add_subtree( ti, ett_bencoded_list); offset += 1; while( (...
CVE-2021-4044
OpenSSL
https://github.com/openssl/openssl
ssl/statem/statem_clnt.c
tls_post_process_server_certificate
WORK_STATE tls_post_process_server_certificate(SSL *s, WORK_STATE wst) { X509 *x; EVP_PKEY *pkey = NULL; const SSL_CERT_LOOKUP *clu; size_t certidx; int i; i = ssl_verify_cert_chain(s, s->session->peer_chain); if (i == -1) { s->rwstate = SSL_RETRY_VERIFY; return WORK_MORE_A; ...
WORK_STATE tls_post_process_server_certificate(SSL *s, WORK_STATE wst) { X509 *x; EVP_PKEY *pkey = NULL; const SSL_CERT_LOOKUP *clu; size_t certidx; int i; i = ssl_verify_cert_chain(s, s->session->peer_chain); if (i == -1) { s->rwstate = SSL_RETRY_VERIFY; return WORK_MORE_A; ...
WORK_STATE tls_post_process_server_certificate(SSL *s, WORK_STATE wst) { X509 *x; EVP_PKEY *pkey = NULL; const SSL_CERT_LOOKUP *clu; size_t certidx; int i; i = ssl_verify_cert_chain(s, s->session->peer_chain); if (i == -1) { s->rwstate = SSL_RETRY_VERIFY; return WORK_MORE_A; ...
WORK_STATE tls_post_process_server_certificate(SSL *s, WORK_STATE wst) { X509 *x; EVP_PKEY *pkey = NULL; const SSL_CERT_LOOKUP *clu; size_t certidx; int i; i = ssl_verify_cert_chain(s, s->session->peer_chain); if (i == -1) { s->rwstate = SSL_RETRY_VERIFY; return WORK_MORE_A; ...
WORK_STATE tls_post_process_server_certificate(SSL *s, WORK_STATE wst) { i = ssl_verify_cert_chain(s, s->session->peer_chain); if (i == -1) { return WORK_MORE_A; } if (s->verify_mode != SSL_VERIFY_NONE && i <= 0) { SSLfatal(s, ssl_x509err2alert(s->verify_result), SSL_R_CERTIFICATE_VERIFY...
WORK_STATE tls_post_process_server_certificate(SSL *s, WORK_STATE wst) { i = ssl_verify_cert_chain(s, s->session->peer_chain); if (i == -1) { return WORK_MORE_A; } if (s->verify_mode != SSL_VERIFY_NONE && i == 0) { SSLfatal(s, ssl_x509err2alert(s->verify_result), SSL_R_CERTIFICATE_VERIFY...
WORK_STATE tls_post_process_server_certificate(SSL *s, WORK_STATE wst) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ i = ssl_verify_cert_chain(s, s->session->peer_chain); if (i == -1) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return WORK_MORE_A; } if (s->verify_mode != SSL_VERIFY...
WORK_STATE tls_post_process_server_certificate(SSL *s, WORK_STATE wst) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ i = ssl_verify_cert_chain(s, s->session->peer_chain); if (i == -1) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ return WORK_MORE_A; } if (s->verify_mode != SSL_VERIFY...
WORK_STATE tls_post_process_server_certificate(SSL *s, WORK_STATE wst) { i = ssl_verify_cert_chain(s, s->session->peer_chain); if (i == -1) { return WORK_MORE_A; } - if (s->verify_mode != SSL_VERIFY_NONE && i <= 0) { + if (s->verify_mode != SSL_VERIFY_NONE && i == 0) { SSLfatal(s...
CVE-2021-4181
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-sysdig-event.c
dissect_event_params
static int dissect_event_params(tvbuff_t *tvb, wtap_syscall_header* syscall_header, int offset, proto_tree *tree, int encoding, int * const *hf_indexes) { int len_offset = offset; int param_offset; int len_size; guint32 cur_param; switch (syscall_header->record_type) { case BLOCK_TYPE_SYSDIG_EVE...
static int dissect_event_params(tvbuff_t *tvb, wtap_syscall_header* syscall_header, int offset, proto_tree *tree, int encoding, int * const *hf_indexes) { int len_offset = offset; int param_offset; int len_size; guint32 cur_param; switch (syscall_header->record_type) { case BLOCK_TYPE_SYSDIG_EVE...
static int dissect_event_params(tvbuff_t *tvb, wtap_syscall_header* syscall_header, int offset, proto_tree *tree, int encoding, int * const *hf_indexes) { int len_offset = offset; int param_offset; guint32 cur_param; if (syscall_header->record_type == BLOCK_TYPE_SYSDIG_EVENT_V2) { param_offset =...
static int dissect_event_params(tvbuff_t *tvb, wtap_syscall_header* syscall_header, int offset, proto_tree *tree, int encoding, int * const *hf_indexes) { int len_offset = offset; int param_offset; guint32 cur_param; if (syscall_header->record_type == BLOCK_TYPE_SYSDIG_EVENT_V2) { param_offset =...
static int dissect_event_params(tvbuff_t *tvb, wtap_syscall_header* syscall_header, int offset, proto_tree *tree, int encoding, int * const *hf_indexes) { switch (syscall_header->record_type) { case BLOCK_TYPE_SYSDIG_EVENT_V2_LARGE: param_offset = offset + dissect_header_lens_v2_large(tvb, syscall_heade...
static int dissect_event_params(tvbuff_t *tvb, wtap_syscall_header* syscall_header, int offset, proto_tree *tree, int encoding, int * const *hf_indexes) { switch (syscall_header->record_type) { case BLOCK_TYPE_SYSDIG_EVENT_V2_LARGE: param_offset = offset + dissect_header_lens_v2_large(tvb, syscall_heade...
static int dissect_event_params(tvbuff_t *tvb, wtap_syscall_header* syscall_header, int offset, proto_tree *tree, int encoding, int * const *hf_indexes) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (syscall_header->record_type == BLOCK_TYPE_SYSDIG_EVENT_V2) { param_offset = offset + dissect_header...
static int dissect_event_params(tvbuff_t *tvb, wtap_syscall_header* syscall_header, int offset, proto_tree *tree, int encoding, int * const *hf_indexes) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (syscall_header->record_type == BLOCK_TYPE_SYSDIG_EVENT_V2) { param_offset = offset + dissect_header...
static int dissect_event_params(tvbuff_t *tvb, wtap_syscall_header* syscall_header, int offset, proto_tree *tree, int encoding, int * const *hf_indexes) { switch (syscall_header->record_type) { case BLOCK_TYPE_SYSDIG_EVENT_V2_LARGE: param_offset = offset + dissect_header_lens_v2_large(tvb, syscall_h...
CVE-2021-4182
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/file-rfc7468.c
dissect_rfc7468
static gint dissect_rfc7468(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { int offset; int linelen; int next_offset; const guchar *line; const guchar *labelp; int labellen; char *label; proto_tree *rfc7468_tree, *preeb_tree, *posteb_tree; proto_item *rfc7468_item...
static gint dissect_rfc7468(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { int offset; int linelen; int next_offset; const guchar *line; const guchar *labelp; int labellen; char *label; proto_tree *rfc7468_tree, *preeb_tree, *posteb_tree; proto_item *rfc7468_item...
static gint dissect_rfc7468(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { int offset; int linelen; int next_offset; const guchar *line; const guchar *labelp; int labellen; char *label; proto_tree *rfc7468_tree, *preeb_tree, *posteb_tree; proto_item *rfc7468_item...
static gint dissect_rfc7468(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { int offset; int linelen; int next_offset; const guchar *line; const guchar *labelp; int labellen; char *label; proto_tree *rfc7468_tree, *preeb_tree, *posteb_tree; proto_item *rfc7468_item...
static gint dissect_rfc7468(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { offset = 0; rfc7468_item = proto_tree_add_item(tree, proto_rfc7468, tvb, offset, -1, ENC_NA); rfc7468_tree = proto_item_add_subtree(rfc7468_item, ett_rfc7468); col_set_str(pinfo->cinfo, COL_PROTOCOL, "rfc7468...
static gint dissect_rfc7468(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { offset = 0; rfc7468_item = proto_tree_add_item(tree, proto_rfc7468, tvb, offset, -1, ENC_NA); rfc7468_tree = proto_item_add_subtree(rfc7468_item, ett_rfc7468); col_set_str(pinfo->cinfo, COL_PROTOCOL, "rfc7468...
static gint dissect_rfc7468(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ offset = 0; rfc7468_item = proto_tree_add_item(tree, proto_rfc7468, tvb, offset, -1, ENC_NA); rfc7468_tree = proto_item_add_subtree(rfc7468_item, ett_rfc7468); ...
static gint dissect_rfc7468(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ offset = 0; rfc7468_item = proto_tree_add_item(tree, proto_rfc7468, tvb, offset, -1, ENC_NA); rfc7468_tree = proto_item_add_subtree(rfc7468_item, ett_rfc7468); ...
static gint dissect_rfc7468(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { offset = 0; rfc7468_item = proto_tree_add_item(tree, proto_rfc7468, tvb, offset, -1, ENC_NA); rfc7468_tree = proto_item_add_subtree(rfc7468_item, ett_rfc7468); col_set_str(pinfo->cinfo, COL_PROTOCOL, "rf...
CVE-2021-4183
Wireshark
https://github.com/wireshark/wireshark
wiretap/pcapng.c
pcapng_process_options
gboolean pcapng_process_options(FILE_T fh, wtapng_block_t *wblock, section_info_t *section_info, guint opt_cont_buf_len, gboolean (*process_option)(wtapng_block_t *, const section_info_t *, guint16, guint16, const guint8 *, int *, gchar **), pcapng_opt_byte_order_e byte_order, int *err, ...
gboolean pcapng_process_options(FILE_T fh, wtapng_block_t *wblock, section_info_t *section_info, guint opt_cont_buf_len, gboolean (*process_option)(wtapng_block_t *, const section_info_t *, guint16, guint16, const guint8 *, int *, gchar **), pcapng_opt_byte_order_e byte_order, int *err, ...
gboolean pcapng_process_options(FILE_T fh, wtapng_block_t *wblock, section_info_t *section_info, guint opt_cont_buf_len, gboolean (*process_option)(wtapng_block_t *, const section_info_t *, guint16, guint16, const guint8 *, int *, gchar **), pcapng_opt_byte_order_e byte_order, int *err, ...
gboolean pcapng_process_options(FILE_T fh, wtapng_block_t *wblock, section_info_t *section_info, guint opt_cont_buf_len, gboolean (*process_option)(wtapng_block_t *, const section_info_t *, guint16, guint16, const guint8 *, int *, gchar **), pcapng_opt_byte_order_e byte_order, int *err, ...
gboolean pcapng_process_options(FILE_T fh, wtapng_block_t *wblock, section_info_t *section_info, guint opt_cont_buf_len, gboolean (*process_option)(wtapng_block_t *, const section_info_t *, guint16, guint16, const guint8 *, int *, gchar **), pcapng_opt_byte_order_e byte_order, int *err, ...
gboolean pcapng_process_options(FILE_T fh, wtapng_block_t *wblock, section_info_t *section_info, guint opt_cont_buf_len, gboolean (*process_option)(wtapng_block_t *, const section_info_t *, guint16, guint16, const guint8 *, int *, gchar **), pcapng_opt_byte_order_e byte_order, int *err, ...
gboolean pcapng_process_options(FILE_T fh, wtapng_block_t *wblock, section_info_t *section_info, guint opt_cont_buf_len, gboolean (*process_option)(wtapng_block_t *, const section_info_t *, guint16, guint16, const guint8 *, int *, gchar **), pcapng_opt_byte_order_e byte_order, int *err, ...
gboolean pcapng_process_options(FILE_T fh, wtapng_block_t *wblock, section_info_t *section_info, guint opt_cont_buf_len, gboolean (*process_option)(wtapng_block_t *, const section_info_t *, guint16, guint16, const guint8 *, int *, gchar **), pcapng_opt_byte_order_e byte_order, int *err, ...
gboolean pcapng_process_options(FILE_T fh, wtapng_block_t *wblock, section_info_t *section_info, guint opt_cont_buf_len, gboolean (*process_option)(wtapng_block_t *, const section_info_t *, guint16, guint16, const guint8 *, int *, gchar **), pcapng_opt_byte_order_e byte_order, int *err...
CVE-2021-4184
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-bt-dht.c
dissect_bt_dht_values
static int dissect_bt_dht_values(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char **result, const char *label ) { proto_item *ti; proto_tree *sub_tree; proto_item *value_ti; proto_tree *value_tree; guint peer_index; guint string_len; ti = proto_tree_add_item( tre...
static int dissect_bt_dht_values(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char **result, const char *label ) { proto_item *ti; proto_tree *sub_tree; proto_item *value_ti; proto_tree *value_tree; guint peer_index; guint string_len; ti = proto_tree_add_item( tre...
static int dissect_bt_dht_values(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char **result, const char *label ) { proto_item *ti; proto_tree *sub_tree; proto_item *value_ti; proto_tree *value_tree; guint peer_index; guint string_len; ti = proto_tree_add_item( tre...
static int dissect_bt_dht_values(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char **result, const char *label ) { proto_item *ti; proto_tree *sub_tree; proto_item *value_ti; proto_tree *value_tree; guint peer_index; guint string_len; ti = proto_tree_add_item( tre...
static int dissect_bt_dht_values(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char **result, const char *label ) { ti = proto_tree_add_item( tree, hf_bt_dht_peers, tvb, offset, 0, ENC_NA ); offset += 1; while( tvb_get_guint8(tvb,offset)!='e' ) { string_len = bencoded_stri...
static int dissect_bt_dht_values(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char **result, const char *label ) { ti = proto_tree_add_item( tree, hf_bt_dht_peers, tvb, offset, 0, ENC_NA ); offset += 1; while( tvb_get_guint8(tvb,offset)!='e' ) { string_len = bencoded_stri...
static int dissect_bt_dht_values(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char **result, const char *label ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ti = proto_tree_add_item( tree, hf_bt_dht_peers, tvb, offset, 0, ENC_NA ); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT *...
static int dissect_bt_dht_values(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char **result, const char *label ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ti = proto_tree_add_item( tree, hf_bt_dht_peers, tvb, offset, 0, ENC_NA ); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT *...
static int dissect_bt_dht_values(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, const char **result, const char *label ) { ti = proto_tree_add_item( tree, hf_bt_dht_peers, tvb, offset, 0, ENC_NA ); offset += 1; while( tvb_get_guint8(tvb,offset)!='e' ) { string_len = bencoded...
CVE-2021-4185
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-rtmpt.c
dissect_rtmpt_common
static void dissect_rtmpt_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, guint32 seq, guint32 lastackseq) { int offset = 0; int remain; int want; guint8 header_type; int basic_hlen; int message_hlen; guint32 id; guint32 ts = 0; guint32 tsd ...
static void dissect_rtmpt_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, guint32 seq, guint32 lastackseq) { int offset = 0; int remain; int want; guint8 header_type; int basic_hlen; int message_hlen; guint32 id; guint32 ts = 0; guint32 tsd ...
static void dissect_rtmpt_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, guint32 seq, guint32 lastackseq) { int offset = 0; int remain; int want; guint8 header_type; int basic_hlen; int message_hlen; guint32 id; guint32 ts = 0; guint32 tsd ...
static void dissect_rtmpt_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, guint32 seq, guint32 lastackseq) { int offset = 0; int remain; int want; guint8 header_type; int basic_hlen; int message_hlen; guint32 id; guint32 ts = 0; guint32 tsd ...
static void dissect_rtmpt_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, guint32 seq, guint32 lastackseq) { remain = tvb_reported_length(tvb); if (!remain) { return; } RTMPT_DEBUG("Segment: cdir=%d seq=%d-%d\n", cdir, seq, seq+remain-1); if (pinfo-...
static void dissect_rtmpt_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, guint32 seq, guint32 lastackseq) { remain = tvb_reported_length(tvb); if (!remain) { return; } RTMPT_DEBUG("Segment: cdir=%d seq=%d-%d\n", cdir, seq, seq+remain-1); if (pinfo-...
static void dissect_rtmpt_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, guint32 seq, guint32 lastackseq) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ remain = tvb_reported_length(tvb); if (!remain) { return; } RTMPT_DEBUG("Segment: cdir=%d seq=...
static void dissect_rtmpt_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, guint32 seq, guint32 lastackseq) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ remain = tvb_reported_length(tvb); if (!remain) { return; } RTMPT_DEBUG("Segment: cdir=%d seq=...
static void dissect_rtmpt_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, guint32 seq, guint32 lastackseq) { remain = tvb_reported_length(tvb); if (!remain) { return; } RTMPT_DEBUG("Segment: cdir=%d seq=%d-%d\n", cdir, seq, seq+remain-1); if ...
CVE-2021-4186
Wireshark
https://github.com/wireshark/wireshark
plugins/epan/gryphon/packet-gryphon.c
decode_command
static int decode_command(tvbuff_t *tvb, packet_info* pinfo, int msglen, int offset, int dst, proto_tree *pt) { guint32 cmd; guint32 context, ioctl_command; proto_tree *ft; proto_item *hi; gryphon_pkt_info_t *pkt_info; hi = proto_tree_add_item_ret_uint(pt, hf_gryphon_cmd, tvb, offset, 1, ENC_BIG...
static int decode_command(tvbuff_t *tvb, packet_info* pinfo, int msglen, int offset, int dst, proto_tree *pt) { guint32 cmd; guint32 context, ioctl_command; proto_tree *ft; proto_item *hi; gryphon_pkt_info_t *pkt_info; hi = proto_tree_add_item_ret_uint(pt, hf_gryphon_cmd, tvb, offset, 1, ENC_BIG...
static int decode_command(tvbuff_t *tvb, packet_info* pinfo, int msglen, int offset, int dst, proto_tree *pt) { guint32 cmd; guint32 context, ioctl_command; proto_tree *ft; proto_item *hi; gryphon_pkt_info_t *pkt_info; hi = proto_tree_add_item_ret_uint(pt, hf_gryphon_cmd, tvb, offset, 1, ENC_BIG...
static int decode_command(tvbuff_t *tvb, packet_info* pinfo, int msglen, int offset, int dst, proto_tree *pt) { guint32 cmd; guint32 context, ioctl_command; proto_tree *ft; proto_item *hi; gryphon_pkt_info_t *pkt_info; hi = proto_tree_add_item_ret_uint(pt, hf_gryphon_cmd, tvb, offset, 1, ENC_BIG...
static int decode_command(tvbuff_t *tvb, packet_info* pinfo, int msglen, int offset, int dst, proto_tree *pt) { hi = proto_tree_add_item_ret_uint(pt, hf_gryphon_cmd, tvb, offset, 1, ENC_BIG_ENDIAN, &cmd); if (cmd > 0x3F) { cmd += dst * 256; } if (!pinfo->fd->visited) { gryphon_conversati...
static int decode_command(tvbuff_t *tvb, packet_info* pinfo, int msglen, int offset, int dst, proto_tree *pt) { hi = proto_tree_add_item_ret_uint(pt, hf_gryphon_cmd, tvb, offset, 1, ENC_BIG_ENDIAN, &cmd); if (cmd > 0x3F) { cmd += dst * 256; } pkt_info = (gryphon_pkt_info_t*)p_get_proto_data(wmem...
static int decode_command(tvbuff_t *tvb, packet_info* pinfo, int msglen, int offset, int dst, proto_tree *pt) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ hi = proto_tree_add_item_ret_uint(pt, hf_gryphon_cmd, tvb, offset, 1, ENC_BIG_ENDIAN, &cmd); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (cmd...
static int decode_command(tvbuff_t *tvb, packet_info* pinfo, int msglen, int offset, int dst, proto_tree *pt) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ hi = proto_tree_add_item_ret_uint(pt, hf_gryphon_cmd, tvb, offset, 1, ENC_BIG_ENDIAN, &cmd); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (cmd...
static int decode_command(tvbuff_t *tvb, packet_info* pinfo, int msglen, int offset, int dst, proto_tree *pt) { hi = proto_tree_add_item_ret_uint(pt, hf_gryphon_cmd, tvb, offset, 1, ENC_BIG_ENDIAN, &cmd); if (cmd > 0x3F) { cmd += dst * 256; } - if (!pinfo->fd->visited) { + pkt_info = (gry...
CVE-2021-4186
Wireshark
https://github.com/wireshark/wireshark
plugins/epan/gryphon/packet-gryphon.c
decode_response
static int decode_response(tvbuff_t *tvb, packet_info* pinfo, int offset, int src, proto_tree *pt) { int msglen; guint32 cmd; proto_tree *ft; gryphon_pkt_info_t *pkt_info, *pkt_info_list; msglen = tvb_reported_length_remaining(tvb, offset); cmd = tvb_get_guint8(tvb, offset); if (cmd > 0x3F) ...
static int decode_response(tvbuff_t *tvb, packet_info* pinfo, int offset, int src, proto_tree *pt) { int msglen; guint32 cmd; proto_tree *ft; gryphon_pkt_info_t *pkt_info, *pkt_info_list; msglen = tvb_reported_length_remaining(tvb, offset); cmd = tvb_get_guint8(tvb, offset); if (cmd > 0x3F) ...
static int decode_response(tvbuff_t *tvb, packet_info* pinfo, int offset, int src, proto_tree *pt) { int msglen; guint32 cmd; proto_tree *ft; gryphon_pkt_info_t *pkt_info, *pkt_info_list; msglen = tvb_reported_length_remaining(tvb, offset); cmd = tvb_get_guint8(tvb, offset); if (cmd > 0x3F) ...
static int decode_response(tvbuff_t *tvb, packet_info* pinfo, int offset, int src, proto_tree *pt) { int msglen; guint32 cmd; proto_tree *ft; gryphon_pkt_info_t *pkt_info, *pkt_info_list; msglen = tvb_reported_length_remaining(tvb, offset); cmd = tvb_get_guint8(tvb, offset); if (cmd > 0x3F) ...
static int decode_response(tvbuff_t *tvb, packet_info* pinfo, int offset, int src, proto_tree *pt) { msglen = tvb_reported_length_remaining(tvb, offset); cmd = tvb_get_guint8(tvb, offset); if (cmd > 0x3F) { cmd += src * 256; } if (!pinfo->fd->visited) { gryphon_conversation *conv_dat...
static int decode_response(tvbuff_t *tvb, packet_info* pinfo, int offset, int src, proto_tree *pt) { msglen = tvb_reported_length_remaining(tvb, offset); cmd = tvb_get_guint8(tvb, offset); if (cmd > 0x3F) { cmd += src * 256; } pkt_info = (gryphon_pkt_info_t*)p_get_proto_data(wmem_file_scope(...
static int decode_response(tvbuff_t *tvb, packet_info* pinfo, int offset, int src, proto_tree *pt) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ msglen = tvb_reported_length_remaining(tvb, offset); cmd = tvb_get_guint8(tvb, offset); if (cmd > 0x3F) { cmd += src * 256; } if (!pinfo->fd-...
static int decode_response(tvbuff_t *tvb, packet_info* pinfo, int offset, int src, proto_tree *pt) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ msglen = tvb_reported_length_remaining(tvb, offset); cmd = tvb_get_guint8(tvb, offset); if (cmd > 0x3F) { cmd += src * 256; } pkt_info = (gry...
static int decode_response(tvbuff_t *tvb, packet_info* pinfo, int offset, int src, proto_tree *pt) { msglen = tvb_reported_length_remaining(tvb, offset); cmd = tvb_get_guint8(tvb, offset); if (cmd > 0x3F) { cmd += src * 256; } - if (!pinfo->fd->visited) { + pkt_info = (gryphon_pkt_in...
CVE-2021-4190
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-kafka.c
dissect_kafka_bytes_new
static int dissect_kafka_bytes_new(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, int *p_bytes_offset, int *p_bytes_length, gboolean *p_invalid) { gint64 val; guint len; proto_item *pi; *p_invalid = FALSE; len = tvb_get_varint(tvb, offset, 5, &val, ENC_VART_ZIGZAG); ...
static int dissect_kafka_bytes_new(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, int *p_bytes_offset, int *p_bytes_length, gboolean *p_invalid) { gint64 val; guint len; proto_item *pi; *p_invalid = FALSE; len = tvb_get_varint(tvb, offset, 5, &val, ENC_VART_ZIGZAG); ...
static int dissect_kafka_bytes_new(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, int *p_bytes_offset, int *p_bytes_length, gboolean *p_invalid) { gint64 val; guint len; proto_item *pi; *p_invalid = FALSE; len = tvb_get_varint(tvb, offset, 5, &val, ENC_VART_ZIGZAG); ...
static int dissect_kafka_bytes_new(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, int *p_bytes_offset, int *p_bytes_length, gboolean *p_invalid) { gint64 val; guint len; proto_item *pi; *p_invalid = FALSE; len = tvb_get_varint(tvb, offset, 5, &val, ENC_VART_ZIGZAG); ...
static int dissect_kafka_bytes_new(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, int *p_bytes_offset, int *p_bytes_length, gboolean *p_invalid) { len = tvb_get_varint(tvb, offset, 5, &val, ENC_VART_ZIGZAG); if (len == 0) { pi = proto_tree_add_bytes_format_value(tree, hf_i...
static int dissect_kafka_bytes_new(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, int *p_bytes_offset, int *p_bytes_length, gboolean *p_invalid) { len = tvb_get_varint(tvb, offset, 5, &val, ENC_VART_ZIGZAG); if (len == 0) { pi = proto_tree_add_bytes_format_value(tree, hf_i...
static int dissect_kafka_bytes_new(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, int *p_bytes_offset, int *p_bytes_length, gboolean *p_invalid) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ len = tvb_get_varint(tvb, offset, 5, &val, ENC_VART_ZIGZAG); if (len == 0) { ...
static int dissect_kafka_bytes_new(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, int *p_bytes_offset, int *p_bytes_length, gboolean *p_invalid) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ len = tvb_get_varint(tvb, offset, 5, &val, ENC_VART_ZIGZAG); if (len == 0) { ...
static int dissect_kafka_bytes_new(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, int *p_bytes_offset, int *p_bytes_length, gboolean *p_invalid) { len = tvb_get_varint(tvb, offset, 5, &val, ENC_VART_ZIGZAG); if (len == 0) { pi = proto_tree_add_bytes_format_value(tree, ...
CVE-2021-4190
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-kafka.c
dissect_kafka_compact_array
static int dissect_kafka_compact_array(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, int offset, kafka_api_version_t api_version, int(*func)(tvbuff_t*, packet_info*, proto_tree*, int, kafka_api_version_t), int *p_count) { gint64 count; gint32 len; len = tvb_get_...
static int dissect_kafka_compact_array(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, int offset, kafka_api_version_t api_version, int(*func)(tvbuff_t*, packet_info*, proto_tree*, int, kafka_api_version_t), int *p_count) { gint64 count; gint32 len; len = tvb_get_...
static int dissect_kafka_compact_array(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, int offset, kafka_api_version_t api_version, int(*func)(tvbuff_t*, packet_info*, proto_tree*, int, kafka_api_version_t), int *p_count) { gint64 count; gint32 len; len = tvb_get_...
static int dissect_kafka_compact_array(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, int offset, kafka_api_version_t api_version, int(*func)(tvbuff_t*, packet_info*, proto_tree*, int, kafka_api_version_t), int *p_count) { gint64 count; gint32 len; len = tvb_get_...
static int dissect_kafka_compact_array(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, int offset, kafka_api_version_t api_version, int(*func)(tvbuff_t*, packet_info*, proto_tree*, int, kafka_api_version_t), int *p_count) { len = tvb_get_varint(tvb, offset, FT_VART_MAX_LE...
static int dissect_kafka_compact_array(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, int offset, kafka_api_version_t api_version, int(*func)(tvbuff_t*, packet_info*, proto_tree*, int, kafka_api_version_t), int *p_count) { len = tvb_get_varint(tvb, offset, FT_VART_MAX_LE...
static int dissect_kafka_compact_array(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, int offset, kafka_api_version_t api_version, int(*func)(tvbuff_t*, packet_info*, proto_tree*, int, kafka_api_version_t), int *p_count) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
static int dissect_kafka_compact_array(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, int offset, kafka_api_version_t api_version, int(*func)(tvbuff_t*, packet_info*, proto_tree*, int, kafka_api_version_t), int *p_count) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
static int dissect_kafka_compact_array(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, int offset, kafka_api_version_t api_version, int(*func)(tvbuff_t*, packet_info*, proto_tree*, int, kafka_api_version_t), int *p_count) { len = tvb_get_varint(tvb, offset, FT_VART_MAX...
CVE-2021-4190
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-kafka.c
dissect_kafka_compact_bytes
static int dissect_kafka_compact_bytes(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_length) { guint len; guint64 length; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { pi =...
static int dissect_kafka_compact_bytes(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_length) { guint len; guint64 length; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { pi =...
static int dissect_kafka_compact_bytes(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_length) { guint len; guint64 length; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { pi =...
static int dissect_kafka_compact_bytes(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_length) { guint len; guint64 length; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { pi =...
static int dissect_kafka_compact_bytes(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_length) { len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { pi = proto_tree_add_item(tree, hf_item, tvb, offset, 0, ENC...
static int dissect_kafka_compact_bytes(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_length) { len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { pi = proto_tree_add_item(tree, hf_item, tvb, offset, 0, ENC...
static int dissect_kafka_compact_bytes(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_length) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { pi = prot...
static int dissect_kafka_compact_bytes(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_length) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { pi = prot...
static int dissect_kafka_compact_bytes(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_length) { len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { pi = proto_tree_add_item(tree, hf_item, tvb, offset, 0,...
CVE-2021-4190
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-kafka.c
dissect_kafka_compact_string
static int dissect_kafka_compact_string(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_length) { guint len; guint64 length; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { pi ...
static int dissect_kafka_compact_string(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_length) { guint len; guint64 length; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { pi ...
static int dissect_kafka_compact_string(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_length) { guint len; guint64 length; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { pi ...
static int dissect_kafka_compact_string(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_length) { guint len; guint64 length; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { pi ...
static int dissect_kafka_compact_string(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_length) { len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { pi = proto_tree_add_item(tree, hf_item, tvb, offset, 0, EN...
static int dissect_kafka_compact_string(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_length) { len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { pi = proto_tree_add_item(tree, hf_item, tvb, offset, 0, EN...
static int dissect_kafka_compact_string(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_length) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { pi = pro...
static int dissect_kafka_compact_string(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_length) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { pi = pro...
static int dissect_kafka_compact_string(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_length) { len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { pi = proto_tree_add_item(tree, hf_item, tvb, offset, 0...
CVE-2021-4190
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-kafka.c
dissect_kafka_offset_delta
static int dissect_kafka_offset_delta(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, guint64 base_offset) { gint64 val; guint len; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &val, ENC_VART_ZIGZAG); pi = proto_tree_add_int64(tree, hf_item, tvb, o...
static int dissect_kafka_offset_delta(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, guint64 base_offset) { gint64 val; guint len; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &val, ENC_VART_ZIGZAG); pi = proto_tree_add_int64(tree, hf_item, tvb, o...
static int dissect_kafka_offset_delta(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, guint64 base_offset) { gint64 val; guint len; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &val, ENC_VART_ZIGZAG); pi = proto_tree_add_int64(tree, hf_item, tvb, o...
static int dissect_kafka_offset_delta(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, guint64 base_offset) { gint64 val; guint len; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &val, ENC_VART_ZIGZAG); pi = proto_tree_add_int64(tree, hf_item, tvb, o...
static int dissect_kafka_offset_delta(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, guint64 base_offset) { len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &val, ENC_VART_ZIGZAG); pi = proto_tree_add_int64(tree, hf_item, tvb, offset, len, base_offset+val); if (len == 0) { ...
static int dissect_kafka_offset_delta(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, guint64 base_offset) { len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &val, ENC_VART_ZIGZAG); pi = proto_tree_add_int64(tree, hf_item, tvb, offset, len, base_offset+val); if (len == 0) { ...
static int dissect_kafka_offset_delta(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, guint64 base_offset) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &val, ENC_VART_ZIGZAG); pi = proto_tree_add_int64(tree, hf_item, tvb, of...
static int dissect_kafka_offset_delta(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, guint64 base_offset) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &val, ENC_VART_ZIGZAG); pi = proto_tree_add_int64(tree, hf_item, tvb, of...
static int dissect_kafka_offset_delta(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, guint64 base_offset) { len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &val, ENC_VART_ZIGZAG); pi = proto_tree_add_int64(tree, hf_item, tvb, offset, len, base_offset+val); if (len == 0)...
CVE-2021-4190
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-kafka.c
dissect_kafka_record
static int dissect_kafka_record(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int start_offset, guint64 base_offset, guint64 first_timestamp) { proto_item *record_ti; proto_tree *subtree; gint64 size; guint len; int offset, end_offset; gboolean invalid; offset = start_offset; subt...
static int dissect_kafka_record(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int start_offset, guint64 base_offset, guint64 first_timestamp) { proto_item *record_ti; proto_tree *subtree; gint64 size; guint len; int offset, end_offset; gboolean invalid; offset = start_offset; subt...
static int dissect_kafka_record(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int start_offset, guint64 base_offset, guint64 first_timestamp) { proto_item *record_ti; proto_tree *subtree; gint64 size; guint len; int offset, end_offset; gboolean invalid; offset = start_offset; subt...
static int dissect_kafka_record(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int start_offset, guint64 base_offset, guint64 first_timestamp) { proto_item *record_ti; proto_tree *subtree; gint64 size; guint len; int offset, end_offset; gboolean invalid; offset = start_offset; subt...
static int dissect_kafka_record(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int start_offset, guint64 base_offset, guint64 first_timestamp) { offset = start_offset; subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_record, &record_ti, "Record"); len = tvb_get_varint(tvb, offset, 5, ...
static int dissect_kafka_record(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int start_offset, guint64 base_offset, guint64 first_timestamp) { offset = start_offset; subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_record, &record_ti, "Record"); len = tvb_get_varint(tvb, offset, 5, ...
static int dissect_kafka_record(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int start_offset, guint64 base_offset, guint64 first_timestamp) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ offset = start_offset; subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_record, &record_ti, "R...
static int dissect_kafka_record(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int start_offset, guint64 base_offset, guint64 first_timestamp) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ offset = start_offset; subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_record, &record_ti, "R...
static int dissect_kafka_record(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int start_offset, guint64 base_offset, guint64 first_timestamp) { offset = start_offset; subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_record, &record_ti, "Record"); len = tvb_get_varint(tvb, offset,...
CVE-2021-4190
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-kafka.c
dissect_kafka_record_headers
static int dissect_kafka_record_headers(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) { proto_item *record_headers_ti; proto_tree *subtree; gint64 count; guint len; int i; gboolean invalid = FALSE; subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_record_he...
static int dissect_kafka_record_headers(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) { proto_item *record_headers_ti; proto_tree *subtree; gint64 count; guint len; int i; gboolean invalid = FALSE; subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_record_he...
static int dissect_kafka_record_headers(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) { proto_item *record_headers_ti; proto_tree *subtree; gint64 count; guint len; int i; gboolean invalid = FALSE; subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_record_he...
static int dissect_kafka_record_headers(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) { proto_item *record_headers_ti; proto_tree *subtree; gint64 count; guint len; int i; gboolean invalid = FALSE; subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_record_he...
static int dissect_kafka_record_headers(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) { subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_record_headers, &record_headers_ti, "Headers"); len = tvb_get_varint(tvb, offset, 5, &count, ENC_VART_ZIGZAG); if (len == 0) { ...
static int dissect_kafka_record_headers(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) { subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_record_headers, &record_headers_ti, "Headers"); len = tvb_get_varint(tvb, offset, 5, &count, ENC_VART_ZIGZAG); if (len == 0) { ...
static int dissect_kafka_record_headers(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_record_headers, &record_headers_ti, "Headers"); len = tvb_get_varint(tvb, offset, 5, &cou...
static int dissect_kafka_record_headers(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_record_headers, &record_headers_ti, "Headers"); len = tvb_get_varint(tvb, offset, 5, &cou...
static int dissect_kafka_record_headers(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) { subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_record_headers, &record_headers_ti, "Headers"); len = tvb_get_varint(tvb, offset, 5, &count, ENC_VART_ZIGZAG); if (len == 0) { ...
CVE-2021-4190
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-kafka.c
dissect_kafka_string_new
static int dissect_kafka_string_new(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, int *p_string_offset, int *p_string_length) { gint64 val; guint len; proto_item *pi; len = tvb_get_varint(tvb, offset, 5, &val, ENC_VART_ZIGZAG); if (len == 0) { pi = proto_tree_...
static int dissect_kafka_string_new(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, int *p_string_offset, int *p_string_length) { gint64 val; guint len; proto_item *pi; len = tvb_get_varint(tvb, offset, 5, &val, ENC_VART_ZIGZAG); if (len == 0) { pi = proto_tree_...
static int dissect_kafka_string_new(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, int *p_string_offset, int *p_string_length) { gint64 val; guint len; proto_item *pi; len = tvb_get_varint(tvb, offset, 5, &val, ENC_VART_ZIGZAG); if (len == 0) { pi = proto_tree_...
static int dissect_kafka_string_new(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, int *p_string_offset, int *p_string_length) { gint64 val; guint len; proto_item *pi; len = tvb_get_varint(tvb, offset, 5, &val, ENC_VART_ZIGZAG); if (len == 0) { pi = proto_tree_...
static int dissect_kafka_string_new(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, int *p_string_offset, int *p_string_length) { len = tvb_get_varint(tvb, offset, 5, &val, ENC_VART_ZIGZAG); if (len == 0) { pi = proto_tree_add_string_format_value(tree, hf_item, tvb, offset+...
static int dissect_kafka_string_new(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, int *p_string_offset, int *p_string_length) { len = tvb_get_varint(tvb, offset, 5, &val, ENC_VART_ZIGZAG); if (len == 0) { pi = proto_tree_add_string_format_value(tree, hf_item, tvb, offset+...
static int dissect_kafka_string_new(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, int *p_string_offset, int *p_string_length) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ len = tvb_get_varint(tvb, offset, 5, &val, ENC_VART_ZIGZAG); if (len == 0) { pi = proto_tree_a...
static int dissect_kafka_string_new(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, int *p_string_offset, int *p_string_length) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ len = tvb_get_varint(tvb, offset, 5, &val, ENC_VART_ZIGZAG); if (len == 0) { pi = proto_tree_a...
static int dissect_kafka_string_new(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, int *p_string_offset, int *p_string_length) { len = tvb_get_varint(tvb, offset, 5, &val, ENC_VART_ZIGZAG); if (len == 0) { pi = proto_tree_add_string_format_value(tree, hf_item, tvb, off...
CVE-2021-4190
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-kafka.c
dissect_kafka_tagged_field_data
static int dissect_kafka_tagged_field_data(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_len) { proto_item *pi; guint64 length; gint32 len; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { le...
static int dissect_kafka_tagged_field_data(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_len) { proto_item *pi; guint64 length; gint32 len; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { le...
static int dissect_kafka_tagged_field_data(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_len) { proto_item *pi; guint64 length; gint32 len; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { le...
static int dissect_kafka_tagged_field_data(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_len) { proto_item *pi; guint64 length; gint32 len; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { le...
static int dissect_kafka_tagged_field_data(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_len) { len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { length = 0; } pi = proto_tree_add_item(tree, hf_it...
static int dissect_kafka_tagged_field_data(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_len) { len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { length = 0; } pi = proto_tree_add_item(tree, hf_it...
static int dissect_kafka_tagged_field_data(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { length =...
static int dissect_kafka_tagged_field_data(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { length =...
static int dissect_kafka_tagged_field_data(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, int *p_offset, int *p_len) { len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &length, ENC_VART_PROTOBUF); if (len == 0) { length = 0; } pi = proto_tree_add_item(tree,...
CVE-2021-4190
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-kafka.c
dissect_kafka_tagged_fields
static int dissect_kafka_tagged_fields(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, kafka_api_version_t api_version ) { gint64 count; guint len; proto_item *subti; proto_tree *subtree; subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_tagged_fields, &subti, "Tagge...
static int dissect_kafka_tagged_fields(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, kafka_api_version_t api_version ) { gint64 count; guint len; proto_item *subti; proto_tree *subtree; subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_tagged_fields, &subti, "Tagge...
static int dissect_kafka_tagged_fields(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, kafka_api_version_t api_version ) { gint64 count; guint len; proto_item *subti; proto_tree *subtree; subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_tagged_fields, &subti, "Tagge...
static int dissect_kafka_tagged_fields(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, kafka_api_version_t api_version ) { gint64 count; guint len; proto_item *subti; proto_tree *subtree; subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_tagged_fields, &subti, "Tagge...
static int dissect_kafka_tagged_fields(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, kafka_api_version_t api_version ) { subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_tagged_fields, &subti, "Tagged fields"); len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &count, ENC_VA...
static int dissect_kafka_tagged_fields(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, kafka_api_version_t api_version ) { subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_tagged_fields, &subti, "Tagged fields"); len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &count, ENC_VA...
static int dissect_kafka_tagged_fields(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, kafka_api_version_t api_version ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_tagged_fields, &subti, "Tagged fields"); len = tvb_get_v...
static int dissect_kafka_tagged_fields(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, kafka_api_version_t api_version ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_tagged_fields, &subti, "Tagged fields"); len = tvb_get_v...
static int dissect_kafka_tagged_fields(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, kafka_api_version_t api_version ) { subtree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_kafka_tagged_fields, &subti, "Tagged fields"); len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &count, ENC...
CVE-2021-4190
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-kafka.c
dissect_kafka_timestamp_delta
static int dissect_kafka_timestamp_delta(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, guint64 first_timestamp) { nstime_t nstime; guint64 milliseconds; guint64 val; guint len; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &val, ENC_VART_ZIGZA...
static int dissect_kafka_timestamp_delta(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, guint64 first_timestamp) { nstime_t nstime; guint64 milliseconds; guint64 val; guint len; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &val, ENC_VART_ZIGZA...
static int dissect_kafka_timestamp_delta(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, guint64 first_timestamp) { nstime_t nstime; guint64 milliseconds; guint64 val; guint len; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &val, ENC_VART_ZIGZA...
static int dissect_kafka_timestamp_delta(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, guint64 first_timestamp) { nstime_t nstime; guint64 milliseconds; guint64 val; guint len; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &val, ENC_VART_ZIGZA...
static int dissect_kafka_timestamp_delta(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, guint64 first_timestamp) { len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &val, ENC_VART_ZIGZAG); pi = proto_tree_add_time(tree, hf_item, tvb, offset, len, &nstime); if (len == 0) { ...
static int dissect_kafka_timestamp_delta(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, guint64 first_timestamp) { len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &val, ENC_VART_ZIGZAG); pi = proto_tree_add_time(tree, hf_item, tvb, offset, len, &nstime); if (len == 0) { ...
static int dissect_kafka_timestamp_delta(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, guint64 first_timestamp) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &val, ENC_VART_ZIGZAG); /* PLACEHOLDER: DO NOT DELETE THIS COMMEN...
static int dissect_kafka_timestamp_delta(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, guint64 first_timestamp) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &val, ENC_VART_ZIGZAG); /* PLACEHOLDER: DO NOT DELETE THIS COMMEN...
static int dissect_kafka_timestamp_delta(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int hf_item, int offset, guint64 first_timestamp) { len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &val, ENC_VART_ZIGZAG); pi = proto_tree_add_time(tree, hf_item, tvb, offset, len, &nstime); if (len == 0) {...
CVE-2021-4190
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-kafka.c
dissect_kafka_varint
static int dissect_kafka_varint(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, gint64 *p_value) { gint64 value; guint len; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &value, ENC_VART_ZIGZAG); pi = proto_tree_add_int64(tree, hf_item, tvb, offset,...
static int dissect_kafka_varint(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, gint64 *p_value) { gint64 value; guint len; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &value, ENC_VART_ZIGZAG); pi = proto_tree_add_int64(tree, hf_item, tvb, offset,...
static int dissect_kafka_varint(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, gint64 *p_value) { gint64 value; guint len; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &value, ENC_VART_ZIGZAG); pi = proto_tree_add_int64(tree, hf_item, tvb, offset,...
static int dissect_kafka_varint(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, gint64 *p_value) { gint64 value; guint len; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &value, ENC_VART_ZIGZAG); pi = proto_tree_add_int64(tree, hf_item, tvb, offset,...
static int dissect_kafka_varint(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, gint64 *p_value) { len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &value, ENC_VART_ZIGZAG); pi = proto_tree_add_int64(tree, hf_item, tvb, offset, len, value); if (len == 0) { expert_add_...
static int dissect_kafka_varint(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, gint64 *p_value) { len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &value, ENC_VART_ZIGZAG); pi = proto_tree_add_int64(tree, hf_item, tvb, offset, len, value); if (len == 0) { expert_add_...
static int dissect_kafka_varint(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, gint64 *p_value) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &value, ENC_VART_ZIGZAG); pi = proto_tree_add_int64(tree, hf_item, tvb, offset, le...
static int dissect_kafka_varint(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, gint64 *p_value) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &value, ENC_VART_ZIGZAG); pi = proto_tree_add_int64(tree, hf_item, tvb, offset, le...
static int dissect_kafka_varint(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, gint64 *p_value) { len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &value, ENC_VART_ZIGZAG); pi = proto_tree_add_int64(tree, hf_item, tvb, offset, len, value); if (len == 0) { expert...
CVE-2021-4190
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-kafka.c
dissect_kafka_varuint
static int dissect_kafka_varuint(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, guint64 *p_value) { guint64 value; guint len; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &value, ENC_VART_PROTOBUF); pi = proto_tree_add_uint64(tree, hf_item, tvb, o...
static int dissect_kafka_varuint(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, guint64 *p_value) { guint64 value; guint len; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &value, ENC_VART_PROTOBUF); pi = proto_tree_add_uint64(tree, hf_item, tvb, o...
static int dissect_kafka_varuint(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, guint64 *p_value) { guint64 value; guint len; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &value, ENC_VART_PROTOBUF); pi = proto_tree_add_uint64(tree, hf_item, tvb, o...
static int dissect_kafka_varuint(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, guint64 *p_value) { guint64 value; guint len; proto_item *pi; len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &value, ENC_VART_PROTOBUF); pi = proto_tree_add_uint64(tree, hf_item, tvb, o...
static int dissect_kafka_varuint(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, guint64 *p_value) { len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &value, ENC_VART_PROTOBUF); pi = proto_tree_add_uint64(tree, hf_item, tvb, offset, len, value); if (len == 0) { expert...
static int dissect_kafka_varuint(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, guint64 *p_value) { len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &value, ENC_VART_PROTOBUF); pi = proto_tree_add_uint64(tree, hf_item, tvb, offset, len, value); if (len == 0) { expert...
static int dissect_kafka_varuint(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, guint64 *p_value) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &value, ENC_VART_PROTOBUF); pi = proto_tree_add_uint64(tree, hf_item, tvb, offse...
static int dissect_kafka_varuint(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, guint64 *p_value) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &value, ENC_VART_PROTOBUF); pi = proto_tree_add_uint64(tree, hf_item, tvb, offse...
static int dissect_kafka_varuint(proto_tree *tree, int hf_item, tvbuff_t *tvb, packet_info *pinfo, int offset, guint64 *p_value) { len = tvb_get_varint(tvb, offset, FT_VART_MAX_LEN, &value, ENC_VART_PROTOBUF); pi = proto_tree_add_uint64(tree, hf_item, tvb, offset, len, value); if (len == 0) { e...
CVE-2022-0581
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-cms.c
dissect_cms_AttributeValue
static int dissect_cms_AttributeValue(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_AttributeValue(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_AttributeValue(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_AttributeValue(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_AttributeValue(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_AttributeValue(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_AttributeValue(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_AttributeValue(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_AttributeValue(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_ContentInfo
int dissect_cms_ContentInfo(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { top_tree = tree; offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset, ContentInfo_sequence, hf_index, ett_cms_ContentInfo); content_tvb = NULL; object_identi...
int dissect_cms_ContentInfo(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { top_tree = tree; offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset, ContentInfo_sequence, hf_index, ett_cms_ContentInfo); top_tree = NULL; return offset; }
int dissect_cms_ContentInfo(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { top_tree = tree; offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset, ContentInfo_sequence, hf_index, ett_cms_ContentInfo); content_tvb = NULL; object_identi...
int dissect_cms_ContentInfo(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { top_tree = tree; offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset, ContentInfo_sequence, hf_index, ett_cms_ContentInfo); top_tree = NULL; return offset; }
int dissect_cms_ContentInfo(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { top_tree = tree; offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset, ContentInfo_sequence, hf_index, ett_cms_ContentInfo); content_tvb = NULL; object_identi...
int dissect_cms_ContentInfo(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { top_tree = tree; offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset, ContentInfo_sequence, hf_index, ett_cms_ContentInfo); top_tree = NULL; return offset; }...
int dissect_cms_ContentInfo(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { top_tree = tree; offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset, ContentInfo_sequence, hf_index, ett_cms_ContentInfo); content_tvb = NULL; object_identi...
int dissect_cms_ContentInfo(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { top_tree = tree; offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset, ContentInfo_sequence, hf_index, ett_cms_ContentInfo); top_tree = NULL; return offset; }
int dissect_cms_ContentInfo(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { top_tree = tree; offset = dissect_ber_sequence(implicit_tag, actx, tree, tvb, offset, ContentInfo_sequence, hf_index, ett_cms_ContentInfo); - content_tvb = NULL; - object_i...
CVE-2022-0581
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-cms.c
dissect_cms_ContentType
int dissect_cms_ContentType(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_index, &object_identifier_id); if(object_identifier_id) { n...
int dissect_cms_ContentType(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_identifier...
int dissect_cms_ContentType(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_index, &object_identifier_id); if(object_identifier_id) { n...
int dissect_cms_ContentType(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_identifier...
int dissect_cms_ContentType(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_index, &object_identifier_id); if(object_identifier_id) { n...
int dissect_cms_ContentType(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_identifier...
int dissect_cms_ContentType(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_index, &object_identifier_id); if(object_identifier_id) { n...
int dissect_cms_ContentType(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_identifier...
int dissect_cms_ContentType(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_ident...
CVE-2022-0581
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-cms.c
dissect_cms_EncryptedContent
static int dissect_cms_EncryptedContent(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *encrypted_tvb; proto_item *item; offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, &encrypted_tvb); item = actx->creat...
static int dissect_cms_EncryptedContent(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *encrypted_tvb; proto_item *item; offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, &encrypted_tvb); struct cms_private...
static int dissect_cms_EncryptedContent(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *encrypted_tvb; proto_item *item; offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, &encrypted_tvb); item = actx->creat...
static int dissect_cms_EncryptedContent(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *encrypted_tvb; proto_item *item; offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, &encrypted_tvb); struct cms_private...
static int dissect_cms_EncryptedContent(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *encrypted_tvb; proto_item *item; offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, &encrypted_tvb); item = actx->creat...
static int dissect_cms_EncryptedContent(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *encrypted_tvb; proto_item *item; offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, &encrypted_tvb); struct cms_private...
static int dissect_cms_EncryptedContent(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *encrypted_tvb; proto_item *item; offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, &encrypted_tvb); item = actx->creat...
static int dissect_cms_EncryptedContent(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *encrypted_tvb; proto_item *item; offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, &encrypted_tvb); struct cms_private...
static int dissect_cms_EncryptedContent(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { tvbuff_t *encrypted_tvb; proto_item *item; offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, &encrypted_tvb); + struct cms_pr...
CVE-2022-0581
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-cms.c
dissect_cms_MessageDigest
static int dissect_cms_MessageDigest(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { proto_item *pi; int old_offset = offset; offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, NULL); pi = actx->created_item; old_...
static int dissect_cms_MessageDigest(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); proto_item *pi; int old_offset = offset; offset = dissect_ber_octet_string(implicit_tag, actx...
static int dissect_cms_MessageDigest(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { proto_item *pi; int old_offset = offset; offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, NULL); pi = actx->created_item; old_...
static int dissect_cms_MessageDigest(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); proto_item *pi; int old_offset = offset; offset = dissect_ber_octet_string(implicit_tag, actx...
static int dissect_cms_MessageDigest(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { proto_item *pi; int old_offset = offset; offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, NULL); pi = actx->created_item; old_...
static int dissect_cms_MessageDigest(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); proto_item *pi; int old_offset = offset; offset = dissect_ber_octet_string(implicit_tag, actx...
static int dissect_cms_MessageDigest(gboolean implicit_tag, tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) { proto_item *pi; int old_offset = offset; offset = dissect_ber_octet_string(implicit_tag, actx, tree, tvb, offset, hf_index, NULL); pi = actx->created_item; old_...
static int dissect_cms_MessageDigest(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); proto_item *pi; int old_offset = offset; offset = dissect_ber_octet_string(implicit_tag, actx...
static int dissect_cms_MessageDigest(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); proto_item *pi; int old_offset = offset; offset = dissect_ber_octet_string(implicit_tag,...