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-2016-7176 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-h225.c | dissect_h225_Connect_UUIE | static int dissect_h225_Connect_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
h225_packet_info* h225_pi;
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Connect_UUIE, Connect_UUIE_sequence);
h225_pi = (h225_packet_info*)p_get_proto_data(wmem_p... | static int dissect_h225_Connect_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
h225_packet_info* h225_pi;
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Connect_UUIE, Connect_UUIE_sequence);
h225_pi = (h225_packet_info*)p_get_proto_data(wmem_p... | static int dissect_h225_Connect_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Connect_UUIE, Connect_UUIE_sequence);
h225_pi->cs_type = H225_CONNECT;
if (contains_faststart == TRUE ) {
g_s... | static int dissect_h225_Connect_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Connect_UUIE, Connect_UUIE_sequence);
h225_pi->cs_type = H225_CONNECT;
if (contains_faststart) {
char temp[50... | static int dissect_h225_Connect_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Connect_UUIE, Connect_UUIE_sequence);
h225_pi = (h225_packet_info*)p_get_proto_data(wmem_packet_scope(), actx->pinfo, pro... | static int dissect_h225_Connect_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Connect_UUIE, Connect_UUIE_sequence);
h225_pi = (h225_packet_info*)p_get_proto_data(wmem_packet_scope(), actx->pinfo, pro... | static int dissect_h225_Connect_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Connect_UUIE, Connect_UUIE_sequence);
h225_pi->cs_type = H225_CONNECT;
if (contains_faststart == TRUE ) {
g_s... | static int dissect_h225_Connect_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Connect_UUIE, Connect_UUIE_sequence);
h225_pi->cs_type = H225_CONNECT;
if (contains_faststart) {
char temp[50... | static int dissect_h225_Connect_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Connect_UUIE, Connect_UUIE_sequence);
h225_pi = (h225_packet_info*)p_get_proto_data(wmem_packet_scope(), actx->pinfo, ... |
CVE-2016-7176 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-h225.c | dissect_h225_FastStart_item | static int dissect_h225_FastStart_item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
tvbuff_t *value_tvb = NULL;
char codec_str[50];
h225_packet_info* h225_pi;
codec_str[0] = '\0';
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, NO_BOUND, NO_BOU... | static int dissect_h225_FastStart_item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
tvbuff_t *value_tvb = NULL;
char codec_str[50];
h225_packet_info* h225_pi;
codec_str[0] = '\0';
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, NO_BOUND, NO_BOU... | static int dissect_h225_FastStart_item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
tvbuff_t *value_tvb = NULL;
char codec_str[50];
codec_str[0] = '\0';
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, NO_BOUND, NO_BOUND, FALSE, &value_tvb);
if ... | static int dissect_h225_FastStart_item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
tvbuff_t *value_tvb = NULL;
char codec_str[50];
codec_str[0] = '\0';
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, NO_BOUND, NO_BOUND, FALSE, &value_tvb);
if ... | static int dissect_h225_FastStart_item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
tvbuff_t *value_tvb = NULL;
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, NO_BOUND, NO_BOUND, FALSE, &value_tvb);
if (value_tvb && tvb_reported_length(value_tvb)) {
... | static int dissect_h225_FastStart_item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
tvbuff_t *value_tvb = NULL;
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, NO_BOUND, NO_BOUND, FALSE, &value_tvb);
if (value_tvb && tvb_reported_length(value_tvb)) {
... | static int dissect_h225_FastStart_item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
tvbuff_t *value_tvb = NULL;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, NO_BOUND, NO_BOUND, FALSE, &value_tvb);
if... | static int dissect_h225_FastStart_item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
tvbuff_t *value_tvb = NULL;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, NO_BOUND, NO_BOUND, FALSE, &value_tvb);
if... | static int dissect_h225_FastStart_item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
tvbuff_t *value_tvb = NULL;
offset = dissect_per_octet_string(tvb, offset, actx, tree, hf_index, NO_BOUND, NO_BOUND, FALSE, &value_tvb);
if (value_tvb && tvb_reported_length(value_tvb))... |
CVE-2016-7176 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-h225.c | dissect_h225_Progress_UUIE | static int dissect_h225_Progress_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
h225_packet_info* h225_pi;
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Progress_UUIE, Progress_UUIE_sequence);
h225_pi = (h225_packet_info*)p_get_proto_data(wme... | static int dissect_h225_Progress_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
h225_packet_info* h225_pi;
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Progress_UUIE, Progress_UUIE_sequence);
h225_pi = (h225_packet_info*)p_get_proto_data(wme... | static int dissect_h225_Progress_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Progress_UUIE, Progress_UUIE_sequence);
h225_pi->cs_type = H225_PROGRESS;
if (contains_faststart == TRUE ) {
... | static int dissect_h225_Progress_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Progress_UUIE, Progress_UUIE_sequence);
h225_pi->cs_type = H225_PROGRESS;
if (contains_faststart) {
char tem... | static int dissect_h225_Progress_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Progress_UUIE, Progress_UUIE_sequence);
h225_pi = (h225_packet_info*)p_get_proto_data(wmem_packet_scope(), actx->pinfo, ... | static int dissect_h225_Progress_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Progress_UUIE, Progress_UUIE_sequence);
h225_pi = (h225_packet_info*)p_get_proto_data(wmem_packet_scope(), actx->pinfo, ... | static int dissect_h225_Progress_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Progress_UUIE, Progress_UUIE_sequence);
h225_pi->cs_type = H225_PROGRESS;
if (contains_faststart == TRUE ) {
... | static int dissect_h225_Progress_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Progress_UUIE, Progress_UUIE_sequence);
h225_pi->cs_type = H225_PROGRESS;
if (contains_faststart) {
char tem... | static int dissect_h225_Progress_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Progress_UUIE, Progress_UUIE_sequence);
h225_pi = (h225_packet_info*)p_get_proto_data(wmem_packet_scope(), actx->pinf... |
CVE-2016-7176 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-h225.c | dissect_h225_Setup_UUIE | static int dissect_h225_Setup_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
h225_packet_info* h225_pi;
contains_faststart = FALSE;
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Setup_UUIE, Setup_UUIE_sequence);
h225_pi = (h225_packet_inf... | static int dissect_h225_Setup_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
h225_packet_info* h225_pi;
contains_faststart = FALSE;
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Setup_UUIE, Setup_UUIE_sequence);
h225_pi = (h225_packet_inf... | static int dissect_h225_Setup_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
contains_faststart = FALSE;
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Setup_UUIE, Setup_UUIE_sequence);
h225_pi->cs_type = H225_SETUP;
if (contains_faststart... | static int dissect_h225_Setup_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
contains_faststart = FALSE;
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Setup_UUIE, Setup_UUIE_sequence);
h225_pi->cs_type = H225_SETUP;
if (contains_faststart... | static int dissect_h225_Setup_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
contains_faststart = FALSE;
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Setup_UUIE, Setup_UUIE_sequence);
h225_pi = (h225_packet_info*)p_get_proto_data(wmem_packet... | static int dissect_h225_Setup_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
contains_faststart = FALSE;
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Setup_UUIE, Setup_UUIE_sequence);
h225_pi = (h225_packet_info*)p_get_proto_data(wmem_packet... | static int dissect_h225_Setup_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
contains_faststart = FALSE;
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Setup_UUIE, Setup_UUIE_sequence);
h225_pi->cs_type = H225_SETUP;
if (contains_faststart... | static int dissect_h225_Setup_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
contains_faststart = FALSE;
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Setup_UUIE, Setup_UUIE_sequence);
h225_pi->cs_type = H225_SETUP;
if (contains_faststart... | static int dissect_h225_Setup_UUIE(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
contains_faststart = FALSE;
offset = dissect_per_sequence(tvb, offset, actx, tree, hf_index, ett_h225_Setup_UUIE, Setup_UUIE_sequence);
h225_pi = (h225_packet_info*)p_get_proto_data(wmem_pa... |
CVE-2016-7177 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-catapult-dct2000.c | attach_fp_info | static void attach_fp_info(packet_info *pinfo, gboolean received, const char *protocol_name, int variant) {
int i=0;
int chan;
int tf_start, num_chans_start;
gint node_type;
int calculated_variant;
struct fp_info *p_fp_info = (struct fp_info *)p_get_proto_data(wmem_file_scope(), pinfo, proto_fp,... | static void attach_fp_info(packet_info *pinfo, gboolean received, const char *protocol_name, int variant) {
int i=0;
int chan;
int tf_start, num_chans_start;
gint node_type;
int calculated_variant;
struct fp_info *p_fp_info = (struct fp_info *)p_get_proto_data(wmem_file_scope(), pinfo, proto_fp,... | static void attach_fp_info(packet_info *pinfo, gboolean received, const char *protocol_name, int variant) {
int i=0;
int chan;
int tf_start, num_chans_start;
gint node_type;
int calculated_variant;
struct fp_info *p_fp_info = (struct fp_info *)p_get_proto_data(wmem_file_scope(), pinfo, proto_fp,... | static void attach_fp_info(packet_info *pinfo, gboolean received, const char *protocol_name, int variant) {
int i=0;
int chan;
int tf_start, num_chans_start;
gint node_type;
int calculated_variant;
struct fp_info *p_fp_info = (struct fp_info *)p_get_proto_data(wmem_file_scope(), pinfo, proto_fp,... | static void attach_fp_info(packet_info *pinfo, gboolean received, const char *protocol_name, int variant) {
int i=0;
struct fp_info *p_fp_info = (struct fp_info *)p_get_proto_data(wmem_file_scope(), pinfo, proto_fp, 0);
if (p_fp_info != NULL) {
return;
}
p_fp_info->channel = outhdr_values[i+... | static void attach_fp_info(packet_info *pinfo, gboolean received, const char *protocol_name, int variant) {
int i=0;
struct fp_info *p_fp_info = (struct fp_info *)p_get_proto_data(wmem_file_scope(), pinfo, proto_fp, 0);
if (p_fp_info != NULL) {
return;
}
p_fp_info->channel = outhdr_values[i+... | static void attach_fp_info(packet_info *pinfo, gboolean received, const char *protocol_name, int variant) {
int i=0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct fp_info *p_fp_info = (struct fp_info *)p_get_proto_data(wmem_file_scope(), pinfo, proto_fp, 0);
if (p_fp_info != NULL) {
retur... | static void attach_fp_info(packet_info *pinfo, gboolean received, const char *protocol_name, int variant) {
int i=0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
struct fp_info *p_fp_info = (struct fp_info *)p_get_proto_data(wmem_file_scope(), pinfo, proto_fp, 0);
if (p_fp_info != NULL) {
retur... | static void attach_fp_info(packet_info *pinfo, gboolean received, const char *protocol_name, int variant) {
int i=0;
struct fp_info *p_fp_info = (struct fp_info *)p_get_proto_data(wmem_file_scope(), pinfo, proto_fp, 0);
if (p_fp_info != NULL) {
return;
}
p_fp_info->channel = outhdr_va... |
CVE-2016-7179 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-catapult-dct2000.c | parse_outhdr_string | static void parse_outhdr_string(const guchar *outhdr_string, gint outhdr_string_len) {
int n = 0;
for (outhdr_values_found=0; outhdr_values_found < MAX_HDR_VALUES; ) {
guint digit_array[MAX_HDR_VALUES];
guint number_digits = 0;
guint number = 0;
guint multiplier = 1;
guin... | static void parse_outhdr_string(const guchar *outhdr_string, gint outhdr_string_len) {
int n = 0;
for (outhdr_values_found=0; outhdr_values_found < MAX_HDR_VALUES; ) {
guint digit_array[MAX_HDR_VALUES];
guint number_digits = 0;
guint number = 0;
guint multiplier = 1;
guin... | static void parse_outhdr_string(const guchar *outhdr_string, gint outhdr_string_len) {
int n = 0;
for (outhdr_values_found=0; outhdr_values_found < MAX_HDR_VALUES; ) {
guint digit_array[MAX_HDR_VALUES];
guint number_digits = 0;
guint number = 0;
guint multiplier = 1;
guin... | static void parse_outhdr_string(const guchar *outhdr_string, gint outhdr_string_len) {
int n = 0;
for (outhdr_values_found=0; outhdr_values_found < MAX_HDR_VALUES; ) {
guint digit_array[MAX_HDR_VALUES];
guint number_digits = 0;
guint number = 0;
guint multiplier = 1;
guin... | static void parse_outhdr_string(const guchar *outhdr_string, gint outhdr_string_len) {
int n = 0;
for (outhdr_values_found=0; outhdr_values_found < MAX_HDR_VALUES; ) {
guint number_digits = 0;
guint multiplier = 1;
guint d;
for ( ; n < outhdr_string_len; n++) {
if (!g... | static void parse_outhdr_string(const guchar *outhdr_string, gint outhdr_string_len) {
int n = 0;
for (outhdr_values_found=0; outhdr_values_found < MAX_HDR_VALUES; ) {
guint number_digits = 0;
guint multiplier = 1;
guint d;
for ( ; (n < outhdr_string_len) && (number_digits < MAX_... | static void parse_outhdr_string(const guchar *outhdr_string, gint outhdr_string_len) {
int n = 0;
for (outhdr_values_found=0; outhdr_values_found < MAX_HDR_VALUES; ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint number_digits = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
gui... | static void parse_outhdr_string(const guchar *outhdr_string, gint outhdr_string_len) {
int n = 0;
for (outhdr_values_found=0; outhdr_values_found < MAX_HDR_VALUES; ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint number_digits = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
gui... | static void parse_outhdr_string(const guchar *outhdr_string, gint outhdr_string_len) {
int n = 0;
for (outhdr_values_found=0; outhdr_values_found < MAX_HDR_VALUES; ) {
guint number_digits = 0;
guint multiplier = 1;
guint d;
- for ( ; n < outhdr_string_len; n++) {
+ fo... |
CVE-2016-7180 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-ipmi-trace.c | dissect_ipmi_trace | static int dissect_ipmi_trace(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
guint block_type, chn_num, data_type, tmp;
tvbuff_t * next_tvb;
if (tvb_captured_length(tvb) < 11) {
call_data_dissector(tvb, pinfo, tree);
return tvb_captured_length(tvb);
}
tmp = tvb_g... | static int dissect_ipmi_trace(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
guint block_type, chn_num, data_type, tmp;
tvbuff_t * next_tvb;
if (tvb_captured_length(tvb) < 11) {
call_data_dissector(tvb, pinfo, tree);
return tvb_captured_length(tvb);
}
tmp = tvb_g... | static void dissect_ipmi_trace(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
guint block_type, chn_num, data_type, tmp;
tvbuff_t * next_tvb;
if (tvb_captured_length(tvb) < 11) {
call_dissector(data_dissector_handle, tvb, pinfo, tree);
return;
}
tmp = tvb_get_guint8(tvb, 0);
... | static void dissect_ipmi_trace(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
guint block_type, chn_num, data_type, tmp;
tvbuff_t * next_tvb;
if (tvb_captured_length(tvb) < 11) {
call_dissector(data_dissector_handle, tvb, pinfo, tree);
return;
}
tmp = tvb_get_guint8(tvb, 0);
... | static int dissect_ipmi_trace(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
if (tvb_captured_length(tvb) < 11) {
return tvb_captured_length(tvb);
}
tmp = tvb_get_guint8(tvb, 0);
block_type = (tmp >> 4) & 3;
chn_num = tmp & 0xF;
data_type = tvb_get_guint8(tvb, 7);
... | static int dissect_ipmi_trace(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
if (tvb_captured_length(tvb) < 11) {
return tvb_captured_length(tvb);
}
tmp = tvb_get_guint8(tvb, 0);
block_type = (tmp >> 4) & 3;
chn_num = tmp & 0xF;
data_type = tvb_get_guint8(tvb, 7);
... | static void dissect_ipmi_trace(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (tvb_captured_length(tvb) < 11) {
call_dissector(data_dissector_handle, tvb, pinfo, tree);
return;
}
tmp = tvb_get_guint8(tvb, 0);
block_type = (tmp ... | static void dissect_ipmi_trace(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (tvb_captured_length(tvb) < 11) {
call_dissector(data_dissector_handle, tvb, pinfo, tree);
return;
}
tmp = tvb_get_guint8(tvb, 0);
block_type = (tmp ... | static int dissect_ipmi_trace(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
if (tvb_captured_length(tvb) < 11) {
return tvb_captured_length(tvb);
}
tmp = tvb_get_guint8(tvb, 0);
block_type = (tmp >> 4) & 3;
chn_num = tmp & 0xF;
data_type = tvb_get_guint8(tvb... |
CVE-2016-7421 | QEMU | https://github.com/qemu/qemu | hw/scsi/vmw_pvscsi.c | pvscsi_ring_pop_req_descr | static hwaddr pvscsi_ring_pop_req_descr(PVSCSIRingInfo *mgr) {
uint32_t ready_ptr = RS_GET_FIELD(mgr, reqProdIdx);
if (ready_ptr != mgr->consumed_ptr) {
uint32_t next_ready_ptr = mgr->consumed_ptr++ & mgr->txr_len_mask;
uint32_t next_ready_page = next_ready_ptr / PVSCSI_MAX_NUM_REQ_ENTRIES_PER_P... | static hwaddr pvscsi_ring_pop_req_descr(PVSCSIRingInfo *mgr) {
uint32_t ready_ptr = RS_GET_FIELD(mgr, reqProdIdx);
uint32_t ring_size = PVSCSI_MAX_NUM_PAGES_REQ_RG * PVSCSI_MAX_NUM_REQ_ENTRIES_PER_PAGE;
if (ready_ptr != mgr->consumed_ptr && ready_ptr - mgr->consumed_ptr < ring_size) {
uint32_t next_... | static hwaddr pvscsi_ring_pop_req_descr(PVSCSIRingInfo *mgr) {
uint32_t ready_ptr = RS_GET_FIELD(mgr, reqProdIdx);
if (ready_ptr != mgr->consumed_ptr) {
uint32_t next_ready_ptr = mgr->consumed_ptr++ & mgr->txr_len_mask;
uint32_t next_ready_page = next_ready_ptr / PVSCSI_MAX_NUM_REQ_ENTRIES_PER_P... | static hwaddr pvscsi_ring_pop_req_descr(PVSCSIRingInfo *mgr) {
uint32_t ready_ptr = RS_GET_FIELD(mgr, reqProdIdx);
uint32_t ring_size = PVSCSI_MAX_NUM_PAGES_REQ_RG * PVSCSI_MAX_NUM_REQ_ENTRIES_PER_PAGE;
if (ready_ptr != mgr->consumed_ptr && ready_ptr - mgr->consumed_ptr < ring_size) {
uint32_t next_... | static hwaddr pvscsi_ring_pop_req_descr(PVSCSIRingInfo *mgr) {
uint32_t ready_ptr = RS_GET_FIELD(mgr, reqProdIdx);
if (ready_ptr != mgr->consumed_ptr) {
uint32_t next_ready_ptr = mgr->consumed_ptr++ & mgr->txr_len_mask;
uint32_t next_ready_page = next_ready_ptr / PVSCSI_MAX_NUM_REQ_ENTRIES_PER_P... | static hwaddr pvscsi_ring_pop_req_descr(PVSCSIRingInfo *mgr) {
uint32_t ready_ptr = RS_GET_FIELD(mgr, reqProdIdx);
uint32_t ring_size = PVSCSI_MAX_NUM_PAGES_REQ_RG * PVSCSI_MAX_NUM_REQ_ENTRIES_PER_PAGE;
if (ready_ptr != mgr->consumed_ptr && ready_ptr - mgr->consumed_ptr < ring_size) {
uint32_t next_... | static hwaddr pvscsi_ring_pop_req_descr(PVSCSIRingInfo *mgr) {
uint32_t ready_ptr = RS_GET_FIELD(mgr, reqProdIdx);
if (ready_ptr != mgr->consumed_ptr) {
uint32_t next_ready_ptr = mgr->consumed_ptr++ & mgr->txr_len_mask;
uint32_t next_ready_page = next_ready_ptr / PVSCSI_MAX_NUM_REQ_ENTRIES_PER_P... | static hwaddr pvscsi_ring_pop_req_descr(PVSCSIRingInfo *mgr) {
uint32_t ready_ptr = RS_GET_FIELD(mgr, reqProdIdx);
uint32_t ring_size = PVSCSI_MAX_NUM_PAGES_REQ_RG * PVSCSI_MAX_NUM_REQ_ENTRIES_PER_PAGE;
if (ready_ptr != mgr->consumed_ptr && ready_ptr - mgr->consumed_ptr < ring_size) {
uint32_t next_... | static hwaddr pvscsi_ring_pop_req_descr(PVSCSIRingInfo *mgr) {
uint32_t ready_ptr = RS_GET_FIELD(mgr, reqProdIdx);
- if (ready_ptr != mgr->consumed_ptr) {
+ uint32_t ring_size = PVSCSI_MAX_NUM_PAGES_REQ_RG * PVSCSI_MAX_NUM_REQ_ENTRIES_PER_PAGE;
+ if (ready_ptr != mgr->consumed_ptr && ready_ptr - mgr->con... |
CVE-2016-7423 | QEMU | https://github.com/qemu/qemu | hw/scsi/mptsas.c | mptsas_process_scsi_io_request | static int mptsas_process_scsi_io_request(MPTSASState *s, MPIMsgSCSIIORequest *scsi_io, hwaddr addr) {
MPTSASRequest *req;
MPIMsgSCSIIOReply reply;
SCSIDevice *sdev;
int status;
mptsas_fix_scsi_io_endianness(scsi_io);
trace_mptsas_process_scsi_io_request(s, scsi_io->Bus, scsi_io->TargetID, scsi_... | static int mptsas_process_scsi_io_request(MPTSASState *s, MPIMsgSCSIIORequest *scsi_io, hwaddr addr) {
MPTSASRequest *req;
MPIMsgSCSIIOReply reply;
SCSIDevice *sdev;
int status;
mptsas_fix_scsi_io_endianness(scsi_io);
trace_mptsas_process_scsi_io_request(s, scsi_io->Bus, scsi_io->TargetID, scsi_... | static int mptsas_process_scsi_io_request(MPTSASState *s, MPIMsgSCSIIORequest *scsi_io, hwaddr addr) {
MPTSASRequest *req;
MPIMsgSCSIIOReply reply;
SCSIDevice *sdev;
int status;
mptsas_fix_scsi_io_endianness(scsi_io);
trace_mptsas_process_scsi_io_request(s, scsi_io->Bus, scsi_io->TargetID, scsi_... | static int mptsas_process_scsi_io_request(MPTSASState *s, MPIMsgSCSIIORequest *scsi_io, hwaddr addr) {
MPTSASRequest *req;
MPIMsgSCSIIOReply reply;
SCSIDevice *sdev;
int status;
mptsas_fix_scsi_io_endianness(scsi_io);
trace_mptsas_process_scsi_io_request(s, scsi_io->Bus, scsi_io->TargetID, scsi_... | static int mptsas_process_scsi_io_request(MPTSASState *s, MPIMsgSCSIIORequest *scsi_io, hwaddr addr) {
if (status) {
goto bad;
}
req = g_new(MPTSASRequest, 1);
QTAILQ_SERT_TAIL(&s->pending, req, next);
status = mptsas_build_sgl(s, req, addr);
if (req->qsg.size < scsi_io->DataLength) {
... | static int mptsas_process_scsi_io_request(MPTSASState *s, MPIMsgSCSIIORequest *scsi_io, hwaddr addr) {
if (status) {
goto bad;
}
req = g_new0(MPTSASRequest, 1);
QTAILQ_SERT_TAIL(&s->pending, req, next);
status = mptsas_build_sgl(s, req, addr);
if (req->qsg.size < scsi_io->DataLength) {
... | static int mptsas_process_scsi_io_request(MPTSASState *s, MPIMsgSCSIIORequest *scsi_io, hwaddr addr) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (status) {
goto bad;
}
req = g_new(MPTSASRequest, 1);
QTAILQ_SERT_TAIL(&s->pending, req, next);
/* PLACEHOLDER: DO NOT DELETE THIS COMME... | static int mptsas_process_scsi_io_request(MPTSASState *s, MPIMsgSCSIIORequest *scsi_io, hwaddr addr) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (status) {
goto bad;
}
req = g_new0(MPTSASRequest, 1);
QTAILQ_SERT_TAIL(&s->pending, req, next);
/* PLACEHOLDER: DO NOT DELETE THIS COMM... | static int mptsas_process_scsi_io_request(MPTSASState *s, MPIMsgSCSIIORequest *scsi_io, hwaddr addr) {
if (status) {
goto bad;
}
- req = g_new(MPTSASRequest, 1);
+ req = g_new0(MPTSASRequest, 1);
QTAILQ_SERT_TAIL(&s->pending, req, next);
status = mptsas_build_sgl(s, req, addr);
... |
CVE-2016-7957 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-btl2cap.c | dissect_disconnrequestresponse | static int dissect_disconnrequestresponse(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_tree *command_tree, bthci_acl_data_t *acl_data, btl2cap_data_t *l2cap_data,
gboolean is_request) {
guint16 scid;
guint16 dcid;
guint psm = 0;
const gchar *service_name = "Unknown";
... | static int dissect_disconnrequestresponse(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_tree *command_tree, bthci_acl_data_t *acl_data, btl2cap_data_t *l2cap_data,
gboolean is_request) {
guint16 scid;
guint16 dcid;
guint psm = 0;
const gchar *service_name = "Unknown";
... | static int dissect_disconnrequestresponse(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_tree *command_tree, bthci_acl_data_t *acl_data, btl2cap_data_t *l2cap_data,
gboolean is_request) {
guint16 scid;
guint16 dcid;
guint psm = 0;
const gchar *service_name = "Unknown";
... | static int dissect_disconnrequestresponse(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_tree *command_tree, bthci_acl_data_t *acl_data, btl2cap_data_t *l2cap_data,
gboolean is_request) {
guint16 scid;
guint16 dcid;
guint psm = 0;
const gchar *service_name = "Unknown";
... | static int dissect_disconnrequestresponse(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_tree *command_tree, bthci_acl_data_t *acl_data, btl2cap_data_t *l2cap_data,
gboolean is_request) {
const gchar *service_name = "Unknown";
dcid = tvb_get_letohs(tvb, offset);
proto_tree_ad... | static int dissect_disconnrequestresponse(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_tree *command_tree, bthci_acl_data_t *acl_data, btl2cap_data_t *l2cap_data,
gboolean is_request) {
const gchar *service_name = "Unknown";
dcid = tvb_get_letohs(tvb, offset);
proto_tree_ad... | static int dissect_disconnrequestresponse(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_tree *command_tree, bthci_acl_data_t *acl_data, btl2cap_data_t *l2cap_data,
gboolean is_request) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const gchar *service_name = "Unknown";
dci... | static int dissect_disconnrequestresponse(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_tree *command_tree, bthci_acl_data_t *acl_data, btl2cap_data_t *l2cap_data,
gboolean is_request) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const gchar *service_name = "Unknown";
dci... | static int dissect_disconnrequestresponse(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_tree *command_tree, bthci_acl_data_t *acl_data, btl2cap_data_t *l2cap_data,
gboolean is_request) {
const gchar *service_name = "Unknown";
dcid = tvb_get_letohs(tvb, offset);
proto_tr... |
CVE-2016-9372 | Wireshark | https://github.com/wireshark/wireshark | plugins/profinet/packet-pn-rtc-one.c | dissect_PNIO_C_SDU_RTC1 | int dissect_PNIO_C_SDU_RTC1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep ) {
proto_tree *data_tree = NULL;
guint16 frameOffset;
guint32 objectCounter;
gboolean inputFlag;
gboolean outputFlag;
gboolean psInfoText;
proto_item *IODataObject_item;
proto_item ... | int dissect_PNIO_C_SDU_RTC1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep ) {
proto_tree *data_tree = NULL;
guint16 frameOffset;
guint32 objectCounter;
gboolean inputFlag;
gboolean outputFlag;
gboolean psInfoText;
proto_item *data_item;
proto_item *IODataO... | int dissect_PNIO_C_SDU_RTC1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep ) {
proto_tree *data_tree = NULL;
guint16 frameOffset;
guint32 objectCounter;
gboolean inputFlag;
gboolean outputFlag;
gboolean psInfoText;
proto_item *IODataObject_item;
proto_item ... | int dissect_PNIO_C_SDU_RTC1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep ) {
proto_tree *data_tree = NULL;
guint16 frameOffset;
guint32 objectCounter;
gboolean inputFlag;
gboolean outputFlag;
gboolean psInfoText;
proto_item *data_item;
proto_item *IODataO... | int dissect_PNIO_C_SDU_RTC1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep ) {
gboolean psInfoText;
proto_item *IODataObject_item;
stationInfo *station_info = NULL;
number_io_data_objects_input_cr = 0;
number_iocs_input_cr = 0;
number_io_data_objects_output_cr = 0;... | int dissect_PNIO_C_SDU_RTC1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep ) {
gboolean psInfoText;
proto_item *data_item;
proto_item *IODataObject_item;
stationInfo *station_info = NULL;
number_io_data_objects_input_cr = 0;
number_iocs_input_cr = 0;
number_io_... | int dissect_PNIO_C_SDU_RTC1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
gboolean psInfoText;
proto_item *IODataObject_item;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
stationInfo *station_info = NULL;
/* PLACE... | int dissect_PNIO_C_SDU_RTC1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
gboolean psInfoText;
proto_item *data_item;
proto_item *IODataObject_item;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
stationInfo *statio... | int dissect_PNIO_C_SDU_RTC1(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep ) {
gboolean psInfoText;
+ proto_item *data_item;
proto_item *IODataObject_item;
stationInfo *station_info = NULL;
number_io_data_objects_input_cr = 0;
number_iocs_input_cr = 0;
nu... |
CVE-2016-9372 | Wireshark | https://github.com/wireshark/wireshark | plugins/profinet/packet-pn-rtc-one.c | init_pn_io_rtc1 | void init_pn_io_rtc1(int proto) {
static hf_register_info hf[] = {
{
&hf_pn_io_io_data_object, {
"IODataObject", "pn_io.io_data_object", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL
}
}, {
&hf_pn_io_io_data_object_info_module_diff, {
... | void init_pn_io_rtc1(int proto) {
static hf_register_info hf[] = {
{
&hf_pn_io_io_data_object, {
"IODataObject", "pn_io.io_data_object", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL
}
}, {
&hf_pn_io_io_data_object_info_module_diff, {
... | void init_pn_io_rtc1(int proto) {
static hf_register_info hf[] = {
{
&hf_pn_io_io_data_object, {
"IODataObject", "pn_io.io_data_object", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL
}
}, {
&hf_pn_io_io_data_object_info_module_diff, {
... | void init_pn_io_rtc1(int proto) {
static hf_register_info hf[] = {
{
&hf_pn_io_io_data_object, {
"IODataObject", "pn_io.io_data_object", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL
}
}, {
&hf_pn_io_io_data_object_info_module_diff, {
... | void init_pn_io_rtc1(int proto) {
static gint *ett[] = {
&ett_pn_io_rtc, &ett_pn_io_ioxs, &ett_pn_io_io_data_object
};
proto_pn_io_rtc1 = proto;
proto_register_subtree_array(ett, array_length(ett));
}
| void init_pn_io_rtc1(int proto) {
static gint *ett[] = {
&ett_pn_io_rtc, &ett_pn_io_ioxs, &ett_pn_io_io_data_object
};
static ei_register_info ei[] = {
{ &ei_pn_io_too_many_data_objects, { "pn_io.too_many_data_objects", PI_MALFORMED, PI_ERROR, "Too many data objects", EXPFILL }},
};
... | void init_pn_io_rtc1(int proto) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
static gint *ett[] = {
&ett_pn_io_rtc, &ett_pn_io_ioxs, &ett_pn_io_io_data_object
};
proto_pn_io_rtc1 = proto;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
proto_register_subtree_array(ett, array_length(ett)... | void init_pn_io_rtc1(int proto) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
static gint *ett[] = {
&ett_pn_io_rtc, &ett_pn_io_ioxs, &ett_pn_io_io_data_object
};
static ei_register_info ei[] = {
{ &ei_pn_io_too_many_data_objects, { "pn_io.too_many_data_objects", PI_MALFORMED, PI_ERROR... | void init_pn_io_rtc1(int proto) {
static gint *ett[] = {
&ett_pn_io_rtc, &ett_pn_io_ioxs, &ett_pn_io_io_data_object
};
+ static ei_register_info ei[] = {
+ { &ei_pn_io_too_many_data_objects, { "pn_io.too_many_data_objects", PI_MALFORMED, PI_ERROR, "Too many data objects", EXPFILL }},
+ ... |
CVE-2016-9373 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-dcerpc-nt.c | cb_str_postprocess | void cb_str_postprocess(packet_info *pinfo, proto_tree *tree, proto_item *item, dcerpc_info *di, tvbuff_t *tvb, int start_offset, int end_offset, void *callback_args) {
gint options = GPOTER_TO_T(callback_args);
gint levels = CB_STR_ITEM_LEVELS(options);
guint8 *s;
if (start_offset % 4) {
start_... | void cb_str_postprocess(packet_info *pinfo, proto_tree *tree, proto_item *item, dcerpc_info *di, tvbuff_t *tvb, int start_offset, int end_offset, void *callback_args) {
gint options = GPOTER_TO_T(callback_args);
gint levels = CB_STR_ITEM_LEVELS(options);
guint8 *s;
if (start_offset % 4) {
start_... | void cb_str_postprocess(packet_info *pinfo, proto_tree *tree, proto_item *item, dcerpc_info *di, tvbuff_t *tvb, int start_offset, int end_offset, void *callback_args) {
gint options = GPOTER_TO_T(callback_args);
gint levels = CB_STR_ITEM_LEVELS(options);
guint8 *s;
if (start_offset % 4) {
start_... | void cb_str_postprocess(packet_info *pinfo, proto_tree *tree, proto_item *item, dcerpc_info *di, tvbuff_t *tvb, int start_offset, int end_offset, void *callback_args) {
gint options = GPOTER_TO_T(callback_args);
gint levels = CB_STR_ITEM_LEVELS(options);
guint8 *s;
if (start_offset % 4) {
start_... | void cb_str_postprocess(packet_info *pinfo, proto_tree *tree, proto_item *item, dcerpc_info *di, tvbuff_t *tvb, int start_offset, int end_offset, void *callback_args) {
gint options = GPOTER_TO_T(callback_args);
gint levels = CB_STR_ITEM_LEVELS(options);
if (start_offset % 4) {
start_offset += 4 - (... | void cb_str_postprocess(packet_info *pinfo, proto_tree *tree, proto_item *item, dcerpc_info *di, tvbuff_t *tvb, int start_offset, int end_offset, void *callback_args) {
gint options = GPOTER_TO_T(callback_args);
gint levels = CB_STR_ITEM_LEVELS(options);
if (start_offset % 4) {
start_offset += 4 - (... | void cb_str_postprocess(packet_info *pinfo, proto_tree *tree, proto_item *item, dcerpc_info *di, tvbuff_t *tvb, int start_offset, int end_offset, void *callback_args) {
gint options = GPOTER_TO_T(callback_args);
gint levels = CB_STR_ITEM_LEVELS(options);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if ... | void cb_str_postprocess(packet_info *pinfo, proto_tree *tree, proto_item *item, dcerpc_info *di, tvbuff_t *tvb, int start_offset, int end_offset, void *callback_args) {
gint options = GPOTER_TO_T(callback_args);
gint levels = CB_STR_ITEM_LEVELS(options);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if ... | void cb_str_postprocess(packet_info *pinfo, proto_tree *tree, proto_item *item, dcerpc_info *di, tvbuff_t *tvb, int start_offset, int end_offset, void *callback_args) {
gint options = GPOTER_TO_T(callback_args);
gint levels = CB_STR_ITEM_LEVELS(options);
if (start_offset % 4) {
start_offset += ... |
CVE-2016-9373 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-dcerpc-nt.c | cb_wstr_postprocess | void cb_wstr_postprocess(packet_info *pinfo, proto_tree *tree, proto_item *item, dcerpc_info *di, tvbuff_t *tvb, int start_offset, int end_offset, void *callback_args) {
gint options = GPOTER_TO_T(callback_args);
gint levels = CB_STR_ITEM_LEVELS(options);
char *s;
if (start_offset % 4) {
start_o... | void cb_wstr_postprocess(packet_info *pinfo, proto_tree *tree, proto_item *item, dcerpc_info *di, tvbuff_t *tvb, int start_offset, int end_offset, void *callback_args) {
gint options = GPOTER_TO_T(callback_args);
gint levels = CB_STR_ITEM_LEVELS(options);
char *s;
if (start_offset % 4) {
start_o... | void cb_wstr_postprocess(packet_info *pinfo, proto_tree *tree, proto_item *item, dcerpc_info *di, tvbuff_t *tvb, int start_offset, int end_offset, void *callback_args) {
gint options = GPOTER_TO_T(callback_args);
gint levels = CB_STR_ITEM_LEVELS(options);
char *s;
if (start_offset % 4) {
start_o... | void cb_wstr_postprocess(packet_info *pinfo, proto_tree *tree, proto_item *item, dcerpc_info *di, tvbuff_t *tvb, int start_offset, int end_offset, void *callback_args) {
gint options = GPOTER_TO_T(callback_args);
gint levels = CB_STR_ITEM_LEVELS(options);
char *s;
if (start_offset % 4) {
start_o... | void cb_wstr_postprocess(packet_info *pinfo, proto_tree *tree, proto_item *item, dcerpc_info *di, tvbuff_t *tvb, int start_offset, int end_offset, void *callback_args) {
gint options = GPOTER_TO_T(callback_args);
gint levels = CB_STR_ITEM_LEVELS(options);
if (start_offset % 4) {
start_offset += 4 - ... | void cb_wstr_postprocess(packet_info *pinfo, proto_tree *tree, proto_item *item, dcerpc_info *di, tvbuff_t *tvb, int start_offset, int end_offset, void *callback_args) {
gint options = GPOTER_TO_T(callback_args);
gint levels = CB_STR_ITEM_LEVELS(options);
if (start_offset % 4) {
start_offset += 4 - ... | void cb_wstr_postprocess(packet_info *pinfo, proto_tree *tree, proto_item *item, dcerpc_info *di, tvbuff_t *tvb, int start_offset, int end_offset, void *callback_args) {
gint options = GPOTER_TO_T(callback_args);
gint levels = CB_STR_ITEM_LEVELS(options);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if... | void cb_wstr_postprocess(packet_info *pinfo, proto_tree *tree, proto_item *item, dcerpc_info *di, tvbuff_t *tvb, int start_offset, int end_offset, void *callback_args) {
gint options = GPOTER_TO_T(callback_args);
gint levels = CB_STR_ITEM_LEVELS(options);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if... | void cb_wstr_postprocess(packet_info *pinfo, proto_tree *tree, proto_item *item, dcerpc_info *di, tvbuff_t *tvb, int start_offset, int end_offset, void *callback_args) {
gint options = GPOTER_TO_T(callback_args);
gint levels = CB_STR_ITEM_LEVELS(options);
if (start_offset % 4) {
start_offset +=... |
CVE-2016-9373 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-dcerpc-spoolss.c | dissect_SYSTEM_TIME_ptr | static int dissect_SYSTEM_TIME_ptr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) {
dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data;
char *str;
offset = dissect_SYSTEM_TIME( tvb, offset, pinfo, tree, di, drep, NULL, FALSE, &str);
dcv->private_... | static int dissect_SYSTEM_TIME_ptr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) {
dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data;
char *str;
offset = dissect_SYSTEM_TIME( tvb, offset, pinfo, tree, di, drep, NULL, FALSE, &str);
dcv->private_... | static int dissect_SYSTEM_TIME_ptr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) {
dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data;
char *str;
offset = dissect_SYSTEM_TIME( tvb, offset, pinfo, tree, di, drep, NULL, FALSE, &str);
dcv->private_... | static int dissect_SYSTEM_TIME_ptr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) {
dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data;
char *str;
offset = dissect_SYSTEM_TIME( tvb, offset, pinfo, tree, di, drep, NULL, FALSE, &str);
dcv->private_... | static int dissect_SYSTEM_TIME_ptr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) {
dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data;
char *str;
offset = dissect_SYSTEM_TIME( tvb, offset, pinfo, tree, di, drep, NULL, FALSE, &str);
dcv->private_... | static int dissect_SYSTEM_TIME_ptr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) {
dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data;
char *str;
offset = dissect_SYSTEM_TIME( tvb, offset, pinfo, tree, di, drep, NULL, FALSE, &str);
dcv->private_... | static int dissect_SYSTEM_TIME_ptr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) {
dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data;
char *str;
offset = dissect_SYSTEM_TIME( tvb, offset, pinfo, tree, di, drep, NULL, FALSE, &str);
dcv->private_... | static int dissect_SYSTEM_TIME_ptr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) {
dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data;
char *str;
offset = dissect_SYSTEM_TIME( tvb, offset, pinfo, tree, di, drep, NULL, FALSE, &str);
dcv->private_... | static int dissect_SYSTEM_TIME_ptr(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) {
dcerpc_call_value *dcv = (dcerpc_call_value *)di->call_data;
char *str;
offset = dissect_SYSTEM_TIME( tvb, offset, pinfo, tree, di, drep, NULL, FALSE, &str);
- dcv->pri... |
CVE-2016-9374 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-alljoyn.c | handle_message_body_parameters | static gint handle_message_body_parameters(tvbuff_t *tvb, packet_info *pinfo, proto_tree *header_tree, guint encoding, gint offset, gint32 body_length, const guint8 *signature,
guint8 signature_length) {
gint packet_length, end_of_body;
proto_tree *tree;
proto_item *item;
const gint starting_off... | static gint handle_message_body_parameters(tvbuff_t *tvb, packet_info *pinfo, proto_tree *header_tree, guint encoding, gint offset, gint32 body_length, const guint8 *signature,
guint8 signature_length) {
gint packet_length, end_of_body;
proto_tree *tree;
proto_item *item;
const gint starting_off... | static gint handle_message_body_parameters(tvbuff_t *tvb, packet_info *pinfo, proto_tree *header_tree, guint encoding, gint offset, gint32 body_length, guint8 *signature, guint8 signature_length) {
gint packet_length, end_of_body;
proto_tree *tree;
proto_item *item;
packet_length = tvb_reported_length(t... | static gint handle_message_body_parameters(tvbuff_t *tvb, packet_info *pinfo, proto_tree *header_tree, guint encoding, gint offset, gint32 body_length, guint8 *signature, guint8 signature_length) {
gint packet_length, end_of_body;
proto_tree *tree;
proto_item *item;
packet_length = tvb_reported_length(t... | static gint handle_message_body_parameters(tvbuff_t *tvb, packet_info *pinfo, proto_tree *header_tree, guint encoding, gint offset, gint32 body_length, const guint8 *signature,
guint8 signature_length) {
packet_length = tvb_reported_length(tvb);
item = proto_tree_add_item(header_tree, hf_alljoyn_mess_bo... | static gint handle_message_body_parameters(tvbuff_t *tvb, packet_info *pinfo, proto_tree *header_tree, guint encoding, gint offset, gint32 body_length, const guint8 *signature,
guint8 signature_length) {
packet_length = tvb_reported_length(tvb);
item = proto_tree_add_item(header_tree, hf_alljoyn_mess_bo... | static gint handle_message_body_parameters(tvbuff_t *tvb, packet_info *pinfo, proto_tree *header_tree, guint encoding, gint offset, gint32 body_length, guint8 *signature, guint8 signature_length) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
packet_length = tvb_reported_length(tvb);
item = proto_tree_add_... | static gint handle_message_body_parameters(tvbuff_t *tvb, packet_info *pinfo, proto_tree *header_tree, guint encoding, gint offset, gint32 body_length, guint8 *signature, guint8 signature_length) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
packet_length = tvb_reported_length(tvb);
item = proto_tree_add_... | static gint handle_message_body_parameters(tvbuff_t *tvb, packet_info *pinfo, proto_tree *header_tree, guint encoding, gint offset, gint32 body_length, const guint8 *signature,
guint8 signature_length) {
packet_length = tvb_reported_length(tvb);
item = proto_tree_add_item(header_tree, hf_alljoyn_mes... |
CVE-2016-9374 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-alljoyn.c | parse_arg | static gint parse_arg(tvbuff_t *tvb, packet_info *pinfo, proto_item *header_item, guint encoding, gint offset, proto_tree *field_tree, gboolean is_reply_to, guint8 type_id, guint8 field_code,
const guint8 **signature, guint8 *signature_length, gint field_starting_offset) {
gint length;
gin... | static gint parse_arg(tvbuff_t *tvb, packet_info *pinfo, proto_item *header_item, guint encoding, gint offset, proto_tree *field_tree, gboolean is_reply_to, guint8 type_id, guint8 field_code,
const guint8 **signature, guint8 *signature_length, gint field_starting_offset) {
gint length;
gin... | static gint parse_arg(tvbuff_t *tvb, packet_info *pinfo, proto_item *header_item, guint encoding, gint offset, proto_tree *field_tree, gboolean is_reply_to, guint8 type_id, guint8 field_code,
guint8 **signature, guint8 *signature_length) {
gint length;
gint saved_offset = offset;
const... | static gint parse_arg(tvbuff_t *tvb, packet_info *pinfo, proto_item *header_item, guint encoding, gint offset, proto_tree *field_tree, gboolean is_reply_to, guint8 type_id, guint8 field_code,
guint8 **signature, guint8 *signature_length) {
gint length;
gint saved_offset = offset;
const... | static gint parse_arg(tvbuff_t *tvb, packet_info *pinfo, proto_item *header_item, guint encoding, gint offset, proto_tree *field_tree, gboolean is_reply_to, guint8 type_id, guint8 field_code,
const guint8 **signature, guint8 *signature_length, gint field_starting_offset) {
switch(type_id) {
... | static gint parse_arg(tvbuff_t *tvb, packet_info *pinfo, proto_item *header_item, guint encoding, gint offset, proto_tree *field_tree, gboolean is_reply_to, guint8 type_id, guint8 field_code,
const guint8 **signature, guint8 *signature_length, gint field_starting_offset) {
switch(type_id) {
... | static gint parse_arg(tvbuff_t *tvb, packet_info *pinfo, proto_item *header_item, guint encoding, gint offset, proto_tree *field_tree, gboolean is_reply_to, guint8 type_id, guint8 field_code,
guint8 **signature, guint8 *signature_length) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
swit... | static gint parse_arg(tvbuff_t *tvb, packet_info *pinfo, proto_item *header_item, guint encoding, gint offset, proto_tree *field_tree, gboolean is_reply_to, guint8 type_id, guint8 field_code,
guint8 **signature, guint8 *signature_length) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
swit... | static gint parse_arg(tvbuff_t *tvb, packet_info *pinfo, proto_item *header_item, guint encoding, gint offset, proto_tree *field_tree, gboolean is_reply_to, guint8 type_id, guint8 field_code,
const guint8 **signature, guint8 *signature_length, gint field_starting_offset) {
switch(type_id) {... |
CVE-2016-9376 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-openflow_v5.c | dissect_openflow_flow_update_v5 | static int dissect_openflow_flow_update_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
proto_tree *update_tree;
guint16 update_len;
guint16 update_event;
gint32 update_end;
update_len = tvb_get_ntohs(tvb, offset);
update_end = offset + update_len;
upda... | static int dissect_openflow_flow_update_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
proto_tree *update_tree;
guint16 update_len;
guint16 update_event;
gint32 update_end;
proto_item *ti;
update_len = tvb_get_ntohs(tvb, offset);
update_end = offset + ... | static int dissect_openflow_flow_update_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
proto_item *ti;
proto_tree *update_tree;
guint16 update_len;
guint16 update_event;
guint16 update_end;
update_len = tvb_get_ntohs(tvb, offset);
update_end = offset +... | static int dissect_openflow_flow_update_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
proto_item *ti;
proto_tree *update_tree;
guint16 update_len;
guint16 update_event;
guint16 update_end;
update_len = tvb_get_ntohs(tvb, offset);
update_end = offset +... | static int dissect_openflow_flow_update_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
gint32 update_end;
update_len = tvb_get_ntohs(tvb, offset);
update_event = tvb_get_ntohs(tvb, offset + 2);
update_tree = proto_tree_add_subtree(tree, tvb, offset, update_len, et... | static int dissect_openflow_flow_update_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
gint32 update_end;
proto_item *ti;
update_len = tvb_get_ntohs(tvb, offset);
update_event = tvb_get_ntohs(tvb, offset + 2);
update_tree = proto_tree_add_subtree(tree, tvb, of... | static int dissect_openflow_flow_update_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint16 update_end;
update_len = tvb_get_ntohs(tvb, offset);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
update_event = tvb_g... | static int dissect_openflow_flow_update_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint16 update_end;
update_len = tvb_get_ntohs(tvb, offset);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
update_event = tvb_g... | static int dissect_openflow_flow_update_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
gint32 update_end;
+ proto_item *ti;
update_len = tvb_get_ntohs(tvb, offset);
update_event = tvb_get_ntohs(tvb, offset + 2);
update_tree = proto_tree_add_subtree(tree, t... |
CVE-2016-9376 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-openflow_v5.c | dissect_openflow_match_v5 | static int dissect_openflow_match_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
proto_item *ti;
proto_tree *match_tree;
guint16 match_type;
guint16 match_length;
gint32 fields_end;
guint16 pad_length;
match_tree = proto_tree_add_subtree(tree, tvb, off... | static int dissect_openflow_match_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
proto_item *ti;
proto_tree *match_tree;
guint16 match_type;
guint16 match_length;
gint32 fields_end;
guint16 pad_length;
match_tree = proto_tree_add_subtree(tree, tvb, off... | static int dissect_openflow_match_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
proto_item *ti;
proto_tree *match_tree;
guint16 match_type;
guint16 match_length;
guint16 fields_end;
guint16 pad_length;
ti = proto_tree_add_text(tree, tvb, offset, -1, "... | static int dissect_openflow_match_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
proto_item *ti;
proto_tree *match_tree;
guint16 match_type;
guint16 match_length;
guint16 fields_end;
guint16 pad_length;
ti = proto_tree_add_text(tree, tvb, offset, -1, "... | static int dissect_openflow_match_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
match_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v5_match, &ti, "Match");
match_type = tvb_get_ntohs(tvb, offset);
proto_tree_add_item(match_tree, hf_openflow_v5_ma... | static int dissect_openflow_match_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
match_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v5_match, &ti, "Match");
match_type = tvb_get_ntohs(tvb, offset);
proto_tree_add_item(match_tree, hf_openflow_v5_ma... | static int dissect_openflow_match_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ti = proto_tree_add_text(tree, tvb, offset, -1, "Match");
match_tree = proto_item_add_subtree(ti, ett_openflow_v5_match);
match_type = tv... | static int dissect_openflow_match_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ti = proto_tree_add_text(tree, tvb, offset, -1, "Match");
match_tree = proto_item_add_subtree(ti, ett_openflow_v5_match);
match_type = tv... | static int dissect_openflow_match_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
match_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v5_match, &ti, "Match");
match_type = tvb_get_ntohs(tvb, offset);
proto_tree_add_item(match_tree, hf_openflow_v... |
CVE-2016-9376 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-openflow_v5.c | dissect_openflow_meter_band_v5 | static int dissect_openflow_meter_band_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
proto_item *ti;
proto_tree *band_tree;
guint16 band_type;
guint16 band_len;
band_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v5_meter_band, &ti, "Meter ... | static int dissect_openflow_meter_band_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
proto_item *ti;
proto_tree *band_tree;
guint16 band_type;
guint16 band_len;
band_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v5_meter_band, &ti, "Meter ... | static int dissect_openflow_meter_band_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
proto_item *ti;
proto_tree *band_tree;
guint16 band_type;
guint16 band_len;
ti = proto_tree_add_text(tree, tvb, offset, -1, "Meter band");
band_tree = proto_item_add_subt... | static int dissect_openflow_meter_band_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
proto_item *ti;
proto_tree *band_tree;
guint16 band_type;
guint16 band_len;
ti = proto_tree_add_text(tree, tvb, offset, -1, "Meter band");
band_tree = proto_item_add_subt... | static int dissect_openflow_meter_band_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
band_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v5_meter_band, &ti, "Meter band");
band_type = tvb_get_ntohs(tvb, offset);
proto_tree_add_item(band_tree, hf_op... | static int dissect_openflow_meter_band_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
band_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v5_meter_band, &ti, "Meter band");
band_type = tvb_get_ntohs(tvb, offset);
proto_tree_add_item(band_tree, hf_op... | static int dissect_openflow_meter_band_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ti = proto_tree_add_text(tree, tvb, offset, -1, "Meter band");
band_tree = proto_item_add_subtree(ti, ett_openflow_v5_meter_band);
b... | static int dissect_openflow_meter_band_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ti = proto_tree_add_text(tree, tvb, offset, -1, "Meter band");
band_tree = proto_item_add_subtree(ti, ett_openflow_v5_meter_band);
b... | static int dissect_openflow_meter_band_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
band_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v5_meter_band, &ti, "Meter band");
band_type = tvb_get_ntohs(tvb, offset);
proto_tree_add_item(band_tree, h... |
CVE-2016-9376 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-openflow_v5.c | dissect_openflow_queue_desc_prop_v5 | static int dissect_openflow_queue_desc_prop_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
proto_item *ti;
proto_tree *prop_tree;
guint16 prop_type;
guint16 prop_len;
prop_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v5_queue_desc_prop, &t... | static int dissect_openflow_queue_desc_prop_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
proto_item *ti;
proto_tree *prop_tree;
guint16 prop_type;
guint16 prop_len;
prop_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v5_queue_desc_prop, &t... | static int dissect_openflow_queue_desc_prop_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
proto_item *ti;
proto_tree *prop_tree;
guint16 prop_type;
guint16 prop_len;
ti = proto_tree_add_text(tree, tvb, offset, -1, "Queue property");
prop_tree = proto_item... | static int dissect_openflow_queue_desc_prop_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
proto_item *ti;
proto_tree *prop_tree;
guint16 prop_type;
guint16 prop_len;
ti = proto_tree_add_text(tree, tvb, offset, -1, "Queue property");
prop_tree = proto_item... | static int dissect_openflow_queue_desc_prop_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
prop_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v5_queue_desc_prop, &ti, "Queue property");
prop_type = tvb_get_ntohs(tvb, offset);
proto_tree_add_item(pr... | static int dissect_openflow_queue_desc_prop_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
prop_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v5_queue_desc_prop, &ti, "Queue property");
prop_type = tvb_get_ntohs(tvb, offset);
proto_tree_add_item(pr... | static int dissect_openflow_queue_desc_prop_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ti = proto_tree_add_text(tree, tvb, offset, -1, "Queue property");
prop_tree = proto_item_add_subtree(ti, ett_openflow_v5_queue_des... | static int dissect_openflow_queue_desc_prop_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ti = proto_tree_add_text(tree, tvb, offset, -1, "Queue property");
prop_tree = proto_item_add_subtree(ti, ett_openflow_v5_queue_des... | static int dissect_openflow_queue_desc_prop_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
prop_tree = proto_tree_add_subtree(tree, tvb, offset, -1, ett_openflow_v5_queue_desc_prop, &ti, "Queue property");
prop_type = tvb_get_ntohs(tvb, offset);
proto_tree_add_ite... |
CVE-2016-9376 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-openflow_v5.c | proto_register_openflow_v5 | void proto_register_openflow_v5(void) {
static hf_register_info hf[] = {
{
&hf_openflow_v5_version, {
"Version", "openflow_v5.version", FT_UT8, BASE_HEX, VALS(openflow_v5_version_values), 0x0, NULL, HFILL
}
}, {
&hf_openflow_v5_type, {
... | void proto_register_openflow_v5(void) {
static hf_register_info hf[] = {
{
&hf_openflow_v5_version, {
"Version", "openflow_v5.version", FT_UT8, BASE_HEX, VALS(openflow_v5_version_values), 0x0, NULL, HFILL
}
}, {
&hf_openflow_v5_type, {
... | void proto_register_openflow_v5(void) {
static hf_register_info hf[] = {
{
&hf_openflow_v5_version, {
"Version", "openflow_v5.version", FT_UT8, BASE_HEX, VALS(openflow_v5_version_values), 0x0, NULL, HFILL
}
}, {
&hf_openflow_v5_type, {
... | void proto_register_openflow_v5(void) {
static hf_register_info hf[] = {
{
&hf_openflow_v5_version, {
"Version", "openflow_v5.version", FT_UT8, BASE_HEX, VALS(openflow_v5_version_values), 0x0, NULL, HFILL
}
}, {
&hf_openflow_v5_type, {
... | void proto_register_openflow_v5(void) {
static ei_register_info ei[] = {
{
&ei_openflow_v5_oxm_undecoded, {
"openflow_v5.oxm.undecoded", PI_UNDECODED, PI_NOTE, "Unknown OMX body.", EXPFILL
}
}, {
&ei_openflow_v5_match_undecoded, {
"... | void proto_register_openflow_v5(void) {
static ei_register_info ei[] = {
{
&ei_openflow_v5_oxm_undecoded, {
"openflow_v5.oxm.undecoded", PI_UNDECODED, PI_NOTE, "Unknown OMX body.", EXPFILL
}
}, {
&ei_openflow_v5_match_undecoded, {
"... | void proto_register_openflow_v5(void) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
static ei_register_info ei[] = {
{
&ei_openflow_v5_oxm_undecoded, {
"openflow_v5.oxm.undecoded", PI_UNDECODED, PI_NOTE, "Unknown OMX body.", EXPFILL
}
}, {
&e... | void proto_register_openflow_v5(void) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
static ei_register_info ei[] = {
{
&ei_openflow_v5_oxm_undecoded, {
"openflow_v5.oxm.undecoded", PI_UNDECODED, PI_NOTE, "Unknown OMX body.", EXPFILL
}
}, {
&e... | void proto_register_openflow_v5(void) {
static ei_register_info ei[] = {
{
&ei_openflow_v5_oxm_undecoded, {
"openflow_v5.oxm.undecoded", PI_UNDECODED, PI_NOTE, "Unknown OMX body.", EXPFILL
}
}, {
&ei_openflow_v5_match_undecoded, {
... |
CVE-2016-9603 | QEMU | https://github.com/qemu/qemu | hw/display/cirrus_vga.c | cirrus_do_copy | static int cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) {
int sx = 0, sy = 0;
int dx = 0, dy = 0;
int depth = 0;
int notify = 0;
if (*s->cirrus_rop == cirrus_bitblt_rop_fwd_src || *s->cirrus_rop == cirrus_bitblt_rop_bkwd_src) {
int width, height;
depth = s->vga.g... | static int cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) {
int sx = 0, sy = 0;
int dx = 0, dy = 0;
int depth = 0;
int notify = 0;
if (*s->cirrus_rop == cirrus_bitblt_rop_fwd_src || *s->cirrus_rop == cirrus_bitblt_rop_bkwd_src) {
int width, height;
depth = s->vga.g... | static int cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) {
int sx = 0, sy = 0;
int dx = 0, dy = 0;
int depth = 0;
int notify = 0;
if (*s->cirrus_rop == cirrus_bitblt_rop_fwd_src || *s->cirrus_rop == cirrus_bitblt_rop_bkwd_src) {
int width, height;
depth = s->vga.g... | static int cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) {
int sx = 0, sy = 0;
int dx = 0, dy = 0;
int depth = 0;
int notify = 0;
if (*s->cirrus_rop == cirrus_bitblt_rop_fwd_src || *s->cirrus_rop == cirrus_bitblt_rop_bkwd_src) {
int width, height;
depth = s->vga.g... | static int cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) {
int sx = 0, sy = 0;
int dx = 0, dy = 0;
int depth = 0;
if (*s->cirrus_rop == cirrus_bitblt_rop_fwd_src || *s->cirrus_rop == cirrus_bitblt_rop_bkwd_src) {
depth = s->vga.get_bpp(&s->vga) / 8;
if (!depth) {
... | static int cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) {
int sx = 0, sy = 0;
int dx = 0, dy = 0;
int depth = 0;
if (*s->cirrus_rop == cirrus_bitblt_rop_fwd_src || *s->cirrus_rop == cirrus_bitblt_rop_bkwd_src) {
depth = s->vga.get_bpp(&s->vga) / 8;
if (!depth) {
... | static int cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) {
int sx = 0, sy = 0;
int dx = 0, dy = 0;
int depth = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (*s->cirrus_rop == cirrus_bitblt_rop_fwd_src || *s->cirrus_rop == cirrus_bitblt_rop_bkwd_src) {
/* PLACEHOLDER: D... | static int cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) {
int sx = 0, sy = 0;
int dx = 0, dy = 0;
int depth = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (*s->cirrus_rop == cirrus_bitblt_rop_fwd_src || *s->cirrus_rop == cirrus_bitblt_rop_bkwd_src) {
/* PLACEHOLDER: D... | static int cirrus_do_copy(CirrusVGAState *s, int dst, int src, int w, int h) {
int sx = 0, sy = 0;
int dx = 0, dy = 0;
int depth = 0;
if (*s->cirrus_rop == cirrus_bitblt_rop_fwd_src || *s->cirrus_rop == cirrus_bitblt_rop_bkwd_src) {
depth = s->vga.get_bpp(&s->vga) / 8;
if (!depth)... |
CVE-2017-11399 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/apedec.c | ape_decode_frame | static int ape_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) {
AVFrame *frame = data;
const uint8_t *buf = avpkt->data;
APEContext *s = avctx->priv_data;
uint8_t *sample8;
int16_t *sample16;
int32_t *sample24;
int i, ch, ret;
int blockstodecode;
... | static int ape_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) {
AVFrame *frame = data;
const uint8_t *buf = avpkt->data;
APEContext *s = avctx->priv_data;
uint8_t *sample8;
int16_t *sample16;
int32_t *sample24;
int i, ch, ret;
int blockstodecode;
... | static int ape_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) {
AVFrame *frame = data;
const uint8_t *buf = avpkt->data;
APEContext *s = avctx->priv_data;
uint8_t *sample8;
int16_t *sample16;
int32_t *sample24;
int i, ch, ret;
int blockstodecode;
... | static int ape_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) {
AVFrame *frame = data;
const uint8_t *buf = avpkt->data;
APEContext *s = avctx->priv_data;
uint8_t *sample8;
int16_t *sample16;
int32_t *sample24;
int i, ch, ret;
int blockstodecode;
... | static int ape_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) {
APEContext *s = avctx->priv_data;
int blockstodecode;
av_assert0(s->samples >= 0);
if(!s->samples) {
if (!s->data) {
return AVERROR(ENOMEM);
}
s->ptr = s->data;
... | static int ape_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) {
APEContext *s = avctx->priv_data;
int blockstodecode;
uint64_t decoded_buffer_size;
av_assert0(s->samples >= 0);
if(!s->samples) {
if (!s->data) {
return AVERROR(ENOMEM);
... | static int ape_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
APEContext *s = avctx->priv_data;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int blockstodecode;
av_assert0(s->samples >= 0);
if(!s->samples) {
... | static int ape_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
APEContext *s = avctx->priv_data;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int blockstodecode;
uint64_t decoded_buffer_size;
av_assert0(s->samp... | static int ape_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) {
APEContext *s = avctx->priv_data;
int blockstodecode;
+ uint64_t decoded_buffer_size;
av_assert0(s->samples >= 0);
if(!s->samples) {
if (!s->data) {
return AVERROR(ENOMEM);... |
CVE-2017-11407 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-mq.c | proto_register_mq | void proto_register_mq(void) {
static hf_register_info hf[] = {
{ &hf_mq_tsh_StructID, {"StructID..", "mq.tsh.structid", FT_STRGZ, BASE_NONE, NULL, 0x0, NULL, HFILL }}, { &hf_mq_tsh_mqseglen, {"MQSegmLen.", "mq.tsh.seglength", FT_UT32, BASE_DEC, NULL, 0x0, "TSH MQ Segment length", HFILL }}, { &hf_mq_tsh_con... | void proto_register_mq(void) {
static hf_register_info hf[] = {
{ &hf_mq_tsh_StructID, {"StructID..", "mq.tsh.structid", FT_STRGZ, BASE_NONE, NULL, 0x0, NULL, HFILL }}, { &hf_mq_tsh_mqseglen, {"MQSegmLen.", "mq.tsh.seglength", FT_UT32, BASE_DEC, NULL, 0x0, "TSH MQ Segment length", HFILL }}, { &hf_mq_tsh_con... | void proto_register_mq(void) {
static hf_register_info hf[] = {
{ &hf_mq_tsh_StructID, {"StructID..", "mq.tsh.structid", FT_STRGZ, BASE_NONE, NULL, 0x0, NULL, HFILL }}, { &hf_mq_tsh_mqseglen, {"MQSegmLen.", "mq.tsh.seglength", FT_UT32, BASE_DEC, NULL, 0x0, "TSH MQ Segment length", HFILL }}, { &hf_mq_tsh_con... | void proto_register_mq(void) {
static hf_register_info hf[] = {
{ &hf_mq_tsh_StructID, {"StructID..", "mq.tsh.structid", FT_STRGZ, BASE_NONE, NULL, 0x0, NULL, HFILL }}, { &hf_mq_tsh_mqseglen, {"MQSegmLen.", "mq.tsh.seglength", FT_UT32, BASE_DEC, NULL, 0x0, "TSH MQ Segment length", HFILL }}, { &hf_mq_tsh_con... | void proto_register_mq(void) {
static gint *ett[] = {
&ett_mq, &ett_mq_tsh, &ett_mq_tsh_tcf, &ett_mq_tsh_tcf2, &ett_mq_api, &ett_mq_socket, &ett_mq_msh, &ett_mq_caut, &ett_mq_xqh, &ett_mq_id, &ett_mq_id_icf1, &ett_mq_id_icf2, &ett_mq_id_icf3, &ett_mq_id_ief1, &ett_mq_id_ief2, &ett_mq_uid, &ett_mq_conn, &ett... | void proto_register_mq(void) {
static gint *ett[] = {
&ett_mq, &ett_mq_tsh, &ett_mq_tsh_tcf, &ett_mq_tsh_tcf2, &ett_mq_api, &ett_mq_socket, &ett_mq_msh, &ett_mq_caut, &ett_mq_xqh, &ett_mq_id, &ett_mq_id_icf1, &ett_mq_id_icf2, &ett_mq_id_icf3, &ett_mq_id_ief1, &ett_mq_id_ief2, &ett_mq_uid, &ett_mq_conn, &ett... | void proto_register_mq(void) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
static gint *ett[] = {
&ett_mq, &ett_mq_tsh, &ett_mq_tsh_tcf, &ett_mq_tsh_tcf2, &ett_mq_api, &ett_mq_socket, &ett_mq_msh, &ett_mq_caut, &ett_mq_xqh, &ett_mq_id, &ett_mq_id_icf1, &ett_mq_id_icf2, &ett_mq_id_icf3, &ett_mq_id_ief1... | void proto_register_mq(void) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
static gint *ett[] = {
&ett_mq, &ett_mq_tsh, &ett_mq_tsh_tcf, &ett_mq_tsh_tcf2, &ett_mq_api, &ett_mq_socket, &ett_mq_msh, &ett_mq_caut, &ett_mq_xqh, &ett_mq_id, &ett_mq_id_icf1, &ett_mq_id_icf2, &ett_mq_id_icf3, &ett_mq_id_ief1... | void proto_register_mq(void) {
static gint *ett[] = {
&ett_mq, &ett_mq_tsh, &ett_mq_tsh_tcf, &ett_mq_tsh_tcf2, &ett_mq_api, &ett_mq_socket, &ett_mq_msh, &ett_mq_caut, &ett_mq_xqh, &ett_mq_id, &ett_mq_id_icf1, &ett_mq_id_icf2, &ett_mq_id_icf3, &ett_mq_id_ief1, &ett_mq_id_ief2, &ett_mq_uid, &ett_mq_conn, &... |
CVE-2017-11407 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-mq.c | reassemble_mq | static int reassemble_mq(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
mq_parm_t mq_parm;
if (tvb_reported_length(tvb) < 28) {
return 0;
}
memset(&mq_parm, 0, sizeof(mq_parm_t));
mq_parm.mq_strucID = tvb_get_ntohl(tvb, 0);
if ( (mq_parm.mq_strucID & MQ_MASK_TSHx) ==... | static int reassemble_mq(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
mq_parm_t mq_parm;
if (tvb_reported_length(tvb) < 28) {
return 0;
}
memset(&mq_parm, 0, sizeof(mq_parm_t));
mq_parm.mq_strucID = tvb_get_ntohl(tvb, 0);
if ( (mq_parm.mq_strucID & MQ_MASK_TSHx) ==... | static int reassemble_mq(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
mq_parm_t mq_parm;
if (tvb_reported_length(tvb) < 28) {
return 0;
}
memset(&mq_parm, 0, sizeof(mq_parm_t));
mq_parm.mq_strucID = tvb_get_ntohl(tvb, 0);
if ( (mq_parm.mq_strucID & MQ_MASK_TSHx) ==... | static int reassemble_mq(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
mq_parm_t mq_parm;
if (tvb_reported_length(tvb) < 28) {
return 0;
}
memset(&mq_parm, 0, sizeof(mq_parm_t));
mq_parm.mq_strucID = tvb_get_ntohl(tvb, 0);
if ( (mq_parm.mq_strucID & MQ_MASK_TSHx) ==... | static int reassemble_mq(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
if (tvb_reported_length(tvb) < 28) {
return 0;
}
mq_parm.mq_strucID = tvb_get_ntohl(tvb, 0);
if ( (mq_parm.mq_strucID & MQ_MASK_TSHx) == MQ_STRUCTID_TSHx || (mq_parm.mq_strucID & MQ_MASK_TSHx) == MQ_STRU... | static int reassemble_mq(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
if (tvb_reported_length(tvb) < 28) {
return 0;
}
mq_parm.mq_strucID = tvb_get_ntohl(tvb, 0);
if ( (mq_parm.mq_strucID & MQ_MASK_TSHx) == MQ_STRUCTID_TSHx || (mq_parm.mq_strucID & MQ_MASK_TSHx) == MQ_STRU... | static int reassemble_mq(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (tvb_reported_length(tvb) < 28) {
return 0;
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
mq_parm.mq_strucID = tvb_get_ntohl(tvb, 0);
if ( (mq_p... | static int reassemble_mq(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (tvb_reported_length(tvb) < 28) {
return 0;
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
mq_parm.mq_strucID = tvb_get_ntohl(tvb, 0);
if ( (mq_p... | static int reassemble_mq(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
if (tvb_reported_length(tvb) < 28) {
return 0;
}
mq_parm.mq_strucID = tvb_get_ntohl(tvb, 0);
if ( (mq_parm.mq_strucID & MQ_MASK_TSHx) == MQ_STRUCTID_TSHx || (mq_parm.mq_strucID & MQ_MASK_TSHx) == M... |
CVE-2017-11408 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-amqp.c | get_amqp_1_0_value_formatter | static void get_amqp_1_0_value_formatter(tvbuff_t *tvb, packet_info *pinfo, guint8 code, int offset, int hf_amqp_type, const char *name, guint32 hf_amqp_subtype_count, const int **hf_amqp_subtypes,
guint *length_size, proto_item *item) {
struct amqp1_typeinfo* element_type;
const char *value = NULL;
... | static void get_amqp_1_0_value_formatter(tvbuff_t *tvb, packet_info *pinfo, guint8 code, int offset, int hf_amqp_type, const char *name, guint32 hf_amqp_subtype_count, const int **hf_amqp_subtypes,
guint *length_size, proto_item *item) {
struct amqp1_typeinfo* element_type;
const char *value = NULL;
... | static void get_amqp_1_0_value_formatter(tvbuff_t *tvb, packet_info *pinfo, guint8 code, int offset, int bound, int hf_amqp_type, const char *name, guint32 hf_amqp_subtype_count,
const int **hf_amqp_subtypes, guint *length_size, proto_item *item) {
struct amqp1_typeinfo* element_type;
const char *value ... | static void get_amqp_1_0_value_formatter(tvbuff_t *tvb, packet_info *pinfo, guint8 code, int offset, int bound, int hf_amqp_type, const char *name, guint32 hf_amqp_subtype_count,
const int **hf_amqp_subtypes, guint *length_size, proto_item *item) {
struct amqp1_typeinfo* element_type;
const char *value ... | static void get_amqp_1_0_value_formatter(tvbuff_t *tvb, packet_info *pinfo, guint8 code, int offset, int hf_amqp_type, const char *name, guint32 hf_amqp_subtype_count, const int **hf_amqp_subtypes,
guint *length_size, proto_item *item) {
if (element_type) {
} else {
switch (code) {
case ... | static void get_amqp_1_0_value_formatter(tvbuff_t *tvb, packet_info *pinfo, guint8 code, int offset, int hf_amqp_type, const char *name, guint32 hf_amqp_subtype_count, const int **hf_amqp_subtypes,
guint *length_size, proto_item *item) {
if (element_type) {
} else {
switch (code) {
case ... | static void get_amqp_1_0_value_formatter(tvbuff_t *tvb, packet_info *pinfo, guint8 code, int offset, int bound, int hf_amqp_type, const char *name, guint32 hf_amqp_subtype_count,
const int **hf_amqp_subtypes, guint *length_size, proto_item *item) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (eleme... | static void get_amqp_1_0_value_formatter(tvbuff_t *tvb, packet_info *pinfo, guint8 code, int offset, int bound, int hf_amqp_type, const char *name, guint32 hf_amqp_subtype_count,
const int **hf_amqp_subtypes, guint *length_size, proto_item *item) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (eleme... | static void get_amqp_1_0_value_formatter(tvbuff_t *tvb, packet_info *pinfo, guint8 code, int offset, int hf_amqp_type, const char *name, guint32 hf_amqp_subtype_count, const int **hf_amqp_subtypes,
guint *length_size, proto_item *item) {
if (element_type) {
} else {
switch (code) {
... |
CVE-2017-11410 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-wbxml.c | parse_wbxml_attribute_list_defined | static guint32 parse_wbxml_attribute_list_defined (proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, guint32 offset, guint32 str_tbl, guint8 level, guint8 *codepage_attr,
const wbxml_decoding *map) {
guint32 tvb_len = tvb_reported_length (tvb);
guint32 off = offset;
guint32 len;
guint str_len... | static guint32 parse_wbxml_attribute_list_defined (proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, guint32 offset, guint32 str_tbl, guint8 level, guint8 *codepage_attr,
const wbxml_decoding *map) {
guint32 tvb_len = tvb_reported_length (tvb);
guint32 off = offset;
guint32 len;
guint str_len... | static guint32 parse_wbxml_attribute_list_defined (proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, guint32 offset, guint32 str_tbl, guint8 level, guint8 *codepage_attr,
const wbxml_decoding *map) {
guint32 tvb_len = tvb_reported_length (tvb);
guint32 off = offset;
guint32 len;
guint str_len... | static guint32 parse_wbxml_attribute_list_defined (proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, guint32 offset, guint32 str_tbl, guint8 level, guint8 *codepage_attr,
const wbxml_decoding *map) {
guint32 tvb_len = tvb_reported_length (tvb);
guint32 off = offset;
guint32 len;
guint str_len... | static guint32 parse_wbxml_attribute_list_defined (proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, guint32 offset, guint32 str_tbl, guint8 level, guint8 *codepage_attr,
const wbxml_decoding *map) {
guint32 tvb_len = tvb_reported_length (tvb);
guint32 off = offset;
guint8 attr_save_known = 0;
... | static guint32 parse_wbxml_attribute_list_defined (proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, guint32 offset, guint32 str_tbl, guint8 level, guint8 *codepage_attr,
const wbxml_decoding *map) {
guint32 tvb_len = tvb_reported_length (tvb);
guint32 off = offset;
guint8 attr_save_known = 0;
... | static guint32 parse_wbxml_attribute_list_defined (proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, guint32 offset, guint32 str_tbl, guint8 level, guint8 *codepage_attr,
const wbxml_decoding *map) {
guint32 tvb_len = tvb_reported_length (tvb);
guint32 off = offset;
/* PLACEHOLDER: DO NOT DELETE ... | static guint32 parse_wbxml_attribute_list_defined (proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, guint32 offset, guint32 str_tbl, guint8 level, guint8 *codepage_attr,
const wbxml_decoding *map) {
guint32 tvb_len = tvb_reported_length (tvb);
guint32 off = offset;
/* PLACEHOLDER: DO NOT DELETE ... | static guint32 parse_wbxml_attribute_list_defined (proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, guint32 offset, guint32 str_tbl, guint8 level, guint8 *codepage_attr,
const wbxml_decoding *map) {
guint32 tvb_len = tvb_reported_length (tvb);
guint32 off = offset;
guint8 attr_save_known = ... |
CVE-2017-11410 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-wbxml.c | parse_wbxml_tag_defined | static guint32 parse_wbxml_tag_defined (proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, guint32 offset, guint32 str_tbl, guint8 *level, guint8 *codepage_stag, guint8 *codepage_attr,
const wbxml_decoding *map) {
guint32 tvb_len = tvb_reported_length (tvb);
guint32 off... | static guint32 parse_wbxml_tag_defined (proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, guint32 offset, guint32 str_tbl, guint8 *level, guint8 *codepage_stag, guint8 *codepage_attr,
const wbxml_decoding *map) {
guint32 tvb_len = tvb_reported_length (tvb);
guint32 off... | static guint32 parse_wbxml_tag_defined (proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, guint32 offset, guint32 str_tbl, guint8 *level, guint8 *codepage_stag, guint8 *codepage_attr,
const wbxml_decoding *map) {
guint32 tvb_len = tvb_reported_length (tvb);
guint32 off... | static guint32 parse_wbxml_tag_defined (proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, guint32 offset, guint32 str_tbl, guint8 *level, guint8 *codepage_stag, guint8 *codepage_attr,
const wbxml_decoding *map) {
guint32 tvb_len = tvb_reported_length (tvb);
guint32 off... | static guint32 parse_wbxml_tag_defined (proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, guint32 offset, guint32 str_tbl, guint8 *level, guint8 *codepage_stag, guint8 *codepage_attr,
const wbxml_decoding *map) {
guint32 tvb_len = tvb_reported_length (tvb);
guint32 off... | static guint32 parse_wbxml_tag_defined (proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, guint32 offset, guint32 str_tbl, guint8 *level, guint8 *codepage_stag, guint8 *codepage_attr,
const wbxml_decoding *map) {
guint32 tvb_len = tvb_reported_length (tvb);
guint32 off... | static guint32 parse_wbxml_tag_defined (proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, guint32 offset, guint32 str_tbl, guint8 *level, guint8 *codepage_stag, guint8 *codepage_attr,
const wbxml_decoding *map) {
guint32 tvb_len = tvb_reported_length (tvb);
guint32 off... | static guint32 parse_wbxml_tag_defined (proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, guint32 offset, guint32 str_tbl, guint8 *level, guint8 *codepage_stag, guint8 *codepage_attr,
const wbxml_decoding *map) {
guint32 tvb_len = tvb_reported_length (tvb);
guint32 off... | static guint32 parse_wbxml_tag_defined (proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, guint32 offset, guint32 str_tbl, guint8 *level, guint8 *codepage_stag, guint8 *codepage_attr,
const wbxml_decoding *map) {
guint32 tvb_len = tvb_reported_length (tvb);
guint32... |
CVE-2017-11411 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-opensafety.c | dissect_opensafety_ssdo_message | static void dissect_opensafety_ssdo_message(tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *opensafety_tree, opensafety_packet_info * packet, proto_item * opensafety_item ) {
proto_item *item;
proto_tree *ssdo_tree, *ssdo_payload;
guint16 taddr = 0, sdn = 0, server = 0, client = 0, n = 0, ct = 0;
... | static void dissect_opensafety_ssdo_message(tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *opensafety_tree, opensafety_packet_info * packet, proto_item * opensafety_item ) {
proto_item *item;
proto_tree *ssdo_tree, *ssdo_payload;
guint16 taddr = 0, sdn = 0, server = 0, client = 0, n = 0, ct = 0;
... | static void dissect_opensafety_ssdo_message(tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *opensafety_tree, opensafety_packet_info * packet, proto_item * opensafety_item ) {
proto_item *item;
proto_tree *ssdo_tree, *ssdo_payload;
guint16 taddr = 0, sdn = 0, server = 0, client = 0, n = 0, ct = 0;
... | static void dissect_opensafety_ssdo_message(tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *opensafety_tree, opensafety_packet_info * packet, proto_item * opensafety_item ) {
proto_item *item;
proto_tree *ssdo_tree, *ssdo_payload;
guint16 taddr = 0, sdn = 0, server = 0, client = 0, n = 0, ct = 0;
... | static void dissect_opensafety_ssdo_message(tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *opensafety_tree, opensafety_packet_info * packet, proto_item * opensafety_item ) {
guint16 taddr = 0, sdn = 0, server = 0, client = 0, n = 0, ct = 0;
guint32 abortcode, ssdoIndex = 0, ssdoSubIndex = 0, payloadSize... | static void dissect_opensafety_ssdo_message(tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *opensafety_tree, opensafety_packet_info * packet, proto_item * opensafety_item ) {
guint16 taddr = 0, sdn = 0, server = 0, client = 0, n = 0, ct = 0;
guint32 abortcode, ssdoIndex = 0, ssdoSubIndex = 0, payloadSize... | static void dissect_opensafety_ssdo_message(tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *opensafety_tree, opensafety_packet_info * packet, proto_item * opensafety_item ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint16 taddr = 0, sdn = 0, server = 0, client = 0, n = 0, ct = 0;
guint32 abort... | static void dissect_opensafety_ssdo_message(tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *opensafety_tree, opensafety_packet_info * packet, proto_item * opensafety_item ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint16 taddr = 0, sdn = 0, server = 0, client = 0, n = 0, ct = 0;
guint32 abort... | static void dissect_opensafety_ssdo_message(tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *opensafety_tree, opensafety_packet_info * packet, proto_item * opensafety_item ) {
guint16 taddr = 0, sdn = 0, server = 0, client = 0, n = 0, ct = 0;
guint32 abortcode, ssdoIndex = 0, ssdoSubIndex = 0, payloadS... |
CVE-2017-11719 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/dnxhddec.c | dnxhd_decode_header | static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame, const uint8_t *buf, int buf_size, int first_field) {
int i, cid, ret;
int old_bit_depth = ctx->bit_depth, bitdepth;
uint64_t header_prefix;
if (buf_size < 0x280) {
av_log(ctx->avctx, AV_LOG_ERROR, "buffer too small (%d < 640).\n",... | static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame, const uint8_t *buf, int buf_size, int first_field) {
int i, cid, ret;
int old_bit_depth = ctx->bit_depth, bitdepth;
uint64_t header_prefix;
if (buf_size < 0x280) {
av_log(ctx->avctx, AV_LOG_ERROR, "buffer too small (%d < 640).\n",... | static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame, const uint8_t *buf, int buf_size, int first_field) {
int i, cid, ret;
int old_bit_depth = ctx->bit_depth, bitdepth;
uint64_t header_prefix;
if (buf_size < 0x280) {
av_log(ctx->avctx, AV_LOG_ERROR, "buffer too small (%d < 640).\n",... | static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame, const uint8_t *buf, int buf_size, int first_field) {
int i, cid, ret;
int old_bit_depth = ctx->bit_depth, bitdepth;
uint64_t header_prefix;
if (buf_size < 0x280) {
av_log(ctx->avctx, AV_LOG_ERROR, "buffer too small (%d < 640).\n",... | static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame, const uint8_t *buf, int buf_size, int first_field) {
int old_bit_depth = ctx->bit_depth, bitdepth;
header_prefix = ff_dnxhd_parse_header_prefix(buf);
if (header_prefix == 0) {
return AVERROR_VALIDDATA;
}
if (buf[5] & 2) {
... | static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame, const uint8_t *buf, int buf_size, int first_field) {
int old_bit_depth = ctx->bit_depth, bitdepth;
header_prefix = ff_dnxhd_parse_header_prefix(buf);
if (header_prefix == 0) {
return AVERROR_VALIDDATA;
}
if (buf[5] & 2) {
... | static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame, const uint8_t *buf, int buf_size, int first_field) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int old_bit_depth = ctx->bit_depth, bitdepth;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
header_prefix = avpriv_dnxhd_parse_header_prefi... | static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame, const uint8_t *buf, int buf_size, int first_field) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int old_bit_depth = ctx->bit_depth, bitdepth;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
header_prefix = avpriv_dnxhd_parse_header_prefi... | static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame, const uint8_t *buf, int buf_size, int first_field) {
int old_bit_depth = ctx->bit_depth, bitdepth;
header_prefix = ff_dnxhd_parse_header_prefix(buf);
if (header_prefix == 0) {
return AVERROR_VALIDDATA;
}
if (buf[5] & 2)... |
CVE-2017-13764 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-mbtcp.c | dissect_modbus | static int dissect_modbus(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) {
proto_tree *modbus_tree;
proto_item *mi;
int offset = 0;
int* packet_type = (int*)data;
gint payload_start, payload_len, len;
guint8 function_code, exception_code;
modbus_pkt_info_t *pkt_info;
if... | static int dissect_modbus(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) {
proto_tree *modbus_tree;
proto_item *mi;
int offset = 0;
int* packet_type = (int*)data;
gint payload_start, payload_len, len;
guint8 function_code, exception_code;
modbus_pkt_info_t *pkt_info;
if... | static int dissect_modbus(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) {
proto_tree *modbus_tree;
proto_item *mi;
int offset = 0;
int* packet_type = (int*)data;
gint payload_start, payload_len, len;
guint8 function_code, exception_code;
modbus_pkt_info_t *pkt_info;
if... | static int dissect_modbus(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) {
proto_tree *modbus_tree;
proto_item *mi;
int offset = 0;
int* packet_type = (int*)data;
gint payload_start, payload_len, len;
guint8 function_code, exception_code;
modbus_pkt_info_t *pkt_info;
if... | static int dissect_modbus(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) {
int offset = 0;
len = tvb_captured_length(tvb);
if (len == 0) {
return 0;
}
mi = proto_tree_add_protocol_format(tree, proto_modbus, tvb, offset, len, "Modbus");
modbus_tree = proto_item_add_subtr... | static int dissect_modbus(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) {
int offset = 0;
len = tvb_captured_length(tvb);
if (len == 0) {
return 0;
}
mi = proto_tree_add_protocol_format(tree, proto_modbus, tvb, offset, len, "Modbus");
modbus_tree = proto_item_add_subtr... | static int dissect_modbus(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int offset = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
len = tvb_captured_length(tvb);
if (len == 0) {
return 0;
}
mi = proto_tree_add_pro... | static int dissect_modbus(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int offset = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
len = tvb_captured_length(tvb);
if (len == 0) {
return 0;
}
mi = proto_tree_add_pro... | static int dissect_modbus(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) {
int offset = 0;
len = tvb_captured_length(tvb);
if (len == 0) {
return 0;
}
mi = proto_tree_add_protocol_format(tree, proto_modbus, tvb, offset, len, "Modbus");
modbus_tree = proto_item_a... |
CVE-2017-13765 | Wireshark | https://github.com/wireshark/wireshark | plugins/irda/packet-ircomm.c | dissect_ircomm_parameters | static gboolean dissect_ircomm_parameters(tvbuff_t* tvb, guint offset, packet_info* pinfo, proto_tree* tree, guint list_index, guint8 attr_type, guint8 circuit_id ) {
guint len;
guint n = 0;
proto_item* ti;
proto_tree* p_tree;
char buf[256];
guint8 pv;
if (!check_iap_octet_result(tvb, tree, ... | static gboolean dissect_ircomm_parameters(tvbuff_t* tvb, guint offset, packet_info* pinfo, proto_tree* tree, guint list_index, guint8 attr_type, guint8 circuit_id ) {
guint len;
guint n = 0;
proto_item* ti;
proto_tree* p_tree;
char buf[256];
guint8 pv;
if (!check_iap_octet_result(tvb, tree, ... | static gboolean dissect_ircomm_parameters(tvbuff_t* tvb, guint offset, packet_info* pinfo, proto_tree* tree, guint list_index, guint8 attr_type, guint8 circuit_id ) {
guint len;
guint n = 0;
proto_item* ti;
proto_tree* p_tree;
char buf[256];
guint8 pv;
if (!check_iap_octet_result(tvb, tree, ... | static gboolean dissect_ircomm_parameters(tvbuff_t* tvb, guint offset, packet_info* pinfo, proto_tree* tree, guint list_index, guint8 attr_type, guint8 circuit_id ) {
guint len;
guint n = 0;
proto_item* ti;
proto_tree* p_tree;
char buf[256];
guint8 pv;
if (!check_iap_octet_result(tvb, tree, ... | static gboolean dissect_ircomm_parameters(tvbuff_t* tvb, guint offset, packet_info* pinfo, proto_tree* tree, guint list_index, guint8 attr_type, guint8 circuit_id ) {
guint n = 0;
if (!check_iap_octet_result(tvb, tree, offset, "Parameters", attr_type)) {
return TRUE;
}
if (tree) {
len = ... | static gboolean dissect_ircomm_parameters(tvbuff_t* tvb, guint offset, packet_info* pinfo, proto_tree* tree, guint list_index, guint8 attr_type, guint8 circuit_id ) {
guint n = 0;
if (!check_iap_octet_result(tvb, tree, offset, "Parameters", attr_type)) {
return TRUE;
}
if (tree) {
len = ... | static gboolean dissect_ircomm_parameters(tvbuff_t* tvb, guint offset, packet_info* pinfo, proto_tree* tree, guint list_index, guint8 attr_type, guint8 circuit_id ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint n = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!check_iap_octet_result(tvb,... | static gboolean dissect_ircomm_parameters(tvbuff_t* tvb, guint offset, packet_info* pinfo, proto_tree* tree, guint list_index, guint8 attr_type, guint8 circuit_id ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint n = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!check_iap_octet_result(tvb,... | static gboolean dissect_ircomm_parameters(tvbuff_t* tvb, guint offset, packet_info* pinfo, proto_tree* tree, guint list_index, guint8 attr_type, guint8 circuit_id ) {
guint n = 0;
if (!check_iap_octet_result(tvb, tree, offset, "Parameters", attr_type)) {
return TRUE;
}
if (tree) {
... |
CVE-2017-13766 | Wireshark | https://github.com/wireshark/wireshark | plugins/profinet/packet-dcerpc-pn-io.c | dissect_ExpectedSubmoduleBlockReq_block | static int dissect_ExpectedSubmoduleBlockReq_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh,
guint8 u8BlockVersionLow) {
guint16 u16NumberOfAPIs;
guint32 u32Api;
guint16 u16SlotNr;
guint32 u32ModuleIdentNumber;
... | static int dissect_ExpectedSubmoduleBlockReq_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh,
guint8 u8BlockVersionLow) {
guint16 u16NumberOfAPIs;
guint32 u32Api;
guint16 u16SlotNr;
guint32 u32ModuleIdentNumber;
... | static int dissect_ExpectedSubmoduleBlockReq_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh,
guint8 u8BlockVersionLow) {
guint16 u16NumberOfAPIs;
guint32 u32Api;
guint16 u16SlotNr;
guint32 u32ModuleIdentNumber;
... | static int dissect_ExpectedSubmoduleBlockReq_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh,
guint8 u8BlockVersionLow) {
guint16 u16NumberOfAPIs;
guint32 u32Api;
guint16 u16SlotNr;
guint32 u32ModuleIdentNumber;
... | static int dissect_ExpectedSubmoduleBlockReq_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh,
guint8 u8BlockVersionLow) {
const char vendorIdStr[] = "VendorID=\"";
const char deviceIdStr[] = "DeviceID=\"";
const char mo... | static int dissect_ExpectedSubmoduleBlockReq_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh,
guint8 u8BlockVersionLow) {
const char vendorIdStr[] = "VendorID=\"";
const char deviceIdStr[] = "DeviceID=\"";
const char mo... | static int dissect_ExpectedSubmoduleBlockReq_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh,
guint8 u8BlockVersionLow) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const char vendorIdStr[] = "VendorID=\"";
const cha... | static int dissect_ExpectedSubmoduleBlockReq_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh,
guint8 u8BlockVersionLow) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const char vendorIdStr[] = "VendorID=\"";
const cha... | static int dissect_ExpectedSubmoduleBlockReq_block(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, proto_item *item, guint8 *drep, guint8 u8BlockVersionHigh,
guint8 u8BlockVersionLow) {
const char vendorIdStr[] = "VendorID=\"";
const char deviceIdStr[] = "DeviceID=\"";
const ch... |
CVE-2017-13767 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-msdp.c | dissect_msdp | static int dissect_msdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
proto_item *ti;
proto_tree *msdp_tree;
int offset;
guint8 type;
guint16 length;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSDP");
col_set_str(pinfo->cinfo, COL_FO, val_to_str_const(tvb_get_guint8(tvb, ... | static int dissect_msdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
proto_item *ti;
proto_tree *msdp_tree;
int offset;
guint8 type;
guint16 length;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSDP");
col_set_str(pinfo->cinfo, COL_FO, val_to_str_const(tvb_get_guint8(tvb, ... | static void dissect_msdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
proto_item *ti;
proto_tree *msdp_tree;
int offset;
guint8 type;
guint16 length;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSDP");
col_set_str(pinfo->cinfo, COL_FO, val_to_str_const(tvb_get_guint8(tvb, 0), msdp_typ... | static void dissect_msdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
proto_item *ti;
proto_tree *msdp_tree;
int offset;
guint8 type;
guint16 length;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSDP");
col_set_str(pinfo->cinfo, COL_FO, val_to_str_const(tvb_get_guint8(tvb, 0), msdp_typ... | static int dissect_msdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSDP");
col_set_str(pinfo->cinfo, COL_FO, val_to_str_const(tvb_get_guint8(tvb, 0), msdp_types, "<Unknown MSDP message type>"));
ti = proto_tree_add_item(tree, proto_msdp, tvb,... | static int dissect_msdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSDP");
col_set_str(pinfo->cinfo, COL_FO, val_to_str_const(tvb_get_guint8(tvb, 0), msdp_types, "<Unknown MSDP TLV type>"));
ti = proto_tree_add_item(tree, proto_msdp, tvb, 0, ... | static void dissect_msdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSDP");
col_set_str(pinfo->cinfo, COL_FO, val_to_str_const(tvb_get_guint8(tvb, 0), msdp_types, "<Unknown MSDP message type>"));
ti = prot... | static void dissect_msdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSDP");
col_set_str(pinfo->cinfo, COL_FO, val_to_str_const(tvb_get_guint8(tvb, 0), msdp_types, "<Unknown MSDP TLV type>"));
ti = proto_tr... | static int dissect_msdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSDP");
- col_set_str(pinfo->cinfo, COL_FO, val_to_str_const(tvb_get_guint8(tvb, 0), msdp_types, "<Unknown MSDP message type>"));
+ col_set_str(pinfo->cinfo, COL_FO, val_to_st... |
CVE-2017-13767 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-msdp.c | dissect_msdp_notification | static void dissect_msdp_notification(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, guint16 tlv_len) {
guint8 error, error_sub;
const value_string *vals;
proto_tree_add_item(tree, hf_msdp_not_o, tvb, *offset, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hf_msdp_not_error, tvb, *offs... | static void dissect_msdp_notification(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, guint16 tlv_len) {
guint8 error, error_sub;
const value_string *vals;
gint reported_length;
tvbuff_t *next_tvb;
if (tlv_len < 1) {
return;
}
proto_tree_add_item(tree, hf_msdp_not_o... | static void dissect_msdp_notification(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, guint16 tlv_len) {
guint8 error, error_sub;
const value_string *vals;
proto_tree_add_item(tree, hf_msdp_not_o, tvb, *offset, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hf_msdp_not_error, tvb, *offs... | static void dissect_msdp_notification(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, guint16 tlv_len) {
guint8 error, error_sub;
const value_string *vals;
gint reported_length;
tvbuff_t *next_tvb;
if (tlv_len < 1) {
return;
}
proto_tree_add_item(tree, hf_msdp_not_o... | static void dissect_msdp_notification(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, guint16 tlv_len) {
const value_string *vals;
proto_tree_add_item(tree, hf_msdp_not_o, tvb, *offset, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hf_msdp_not_error, tvb, *offset, 1, ENC_BIG_ENDIAN);
e... | static void dissect_msdp_notification(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, guint16 tlv_len) {
const value_string *vals;
gint reported_length;
tvbuff_t *next_tvb;
if (tlv_len < 1) {
return;
}
proto_tree_add_item(tree, hf_msdp_not_o, tvb, *offset, 1, ENC_BIG_EN... | static void dissect_msdp_notification(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, guint16 tlv_len) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const value_string *vals;
proto_tree_add_item(tree, hf_msdp_not_o, tvb, *offset, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hf_msdp_... | static void dissect_msdp_notification(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, guint16 tlv_len) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const value_string *vals;
gint reported_length;
tvbuff_t *next_tvb;
if (tlv_len < 1) {
return;
}
proto_tree_add_ite... | static void dissect_msdp_notification(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, guint16 tlv_len) {
const value_string *vals;
+ gint reported_length;
+ tvbuff_t *next_tvb;
+ if (tlv_len < 1) {
+ return;
+ }
proto_tree_add_item(tree, hf_msdp_not_o, tvb, *offset, 1, EN... |
CVE-2017-13767 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-msdp.c | dissect_msdp_sa | static void dissect_msdp_sa(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, int length) {
guint8 entries;
if (length < 1) {
return;
}
entries = tvb_get_guint8(tvb, *offset);
proto_tree_add_uint(tree, hf_msdp_sa_entry_count, tvb, *offset, 1, entries);
*offset += 1;
l... | static void dissect_msdp_sa(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, int length) {
guint8 entries;
if (length < 1) {
return;
}
entries = tvb_get_guint8(tvb, *offset);
proto_tree_add_uint(tree, hf_msdp_sa_entry_count, tvb, *offset, 1, entries);
*offset += 1;
l... | static void dissect_msdp_sa(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, int length) {
guint8 entries;
if (length < 1) {
return;
}
entries = tvb_get_guint8(tvb, *offset);
proto_tree_add_uint(tree, hf_msdp_sa_entry_count, tvb, *offset, 1, entries);
*offset += 1;
l... | static void dissect_msdp_sa(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, int length) {
guint8 entries;
if (length < 1) {
return;
}
entries = tvb_get_guint8(tvb, *offset);
proto_tree_add_uint(tree, hf_msdp_sa_entry_count, tvb, *offset, 1, entries);
*offset += 1;
l... | static void dissect_msdp_sa(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, int length) {
if (length < 1) {
return;
}
entries = tvb_get_guint8(tvb, *offset);
proto_tree_add_uint(tree, hf_msdp_sa_entry_count, tvb, *offset, 1, entries);
*offset += 1;
length -= 1;
if (... | static void dissect_msdp_sa(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, int length) {
if (length < 1) {
return;
}
entries = tvb_get_guint8(tvb, *offset);
proto_tree_add_uint(tree, hf_msdp_sa_entry_count, tvb, *offset, 1, entries);
*offset += 1;
length -= 1;
if (... | static void dissect_msdp_sa(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, int length) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (length < 1) {
return;
}
entries = tvb_get_guint8(tvb, *offset);
proto_tree_add_uint(tree, hf_msdp_sa_entry_count, tvb, *offset, 1, ent... | static void dissect_msdp_sa(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, int length) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (length < 1) {
return;
}
entries = tvb_get_guint8(tvb, *offset);
proto_tree_add_uint(tree, hf_msdp_sa_entry_count, tvb, *offset, 1, ent... | static void dissect_msdp_sa(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int *offset, int length) {
if (length < 1) {
return;
}
entries = tvb_get_guint8(tvb, *offset);
proto_tree_add_uint(tree, hf_msdp_sa_entry_count, tvb, *offset, 1, entries);
*offset += 1;
length -= 1;
... |
CVE-2017-13767 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-msdp.c | proto_register_msdp | void proto_register_msdp(void) {
static hf_register_info hf[] = {
{
&hf_msdp_type, {
"Type", "msdp.type", FT_UT8, BASE_DEC, VALS(msdp_types), 0, "MSDP TLV type", HFILL
}
}, {
&hf_msdp_length, {
"Length", "msdp.length", FT_UT16, BASE... | void proto_register_msdp(void) {
static hf_register_info hf[] = {
{
&hf_msdp_type, {
"Type", "msdp.type", FT_UT8, BASE_DEC, VALS(msdp_types), 0, "MSDP TLV type", HFILL
}
}, {
&hf_msdp_length, {
"Length", "msdp.length", FT_UT16, BASE... | void proto_register_msdp(void) {
static hf_register_info hf[] = {
{
&hf_msdp_type, {
"Type", "msdp.type", FT_UT8, BASE_DEC, VALS(msdp_types), 0, "MSDP TLV type", HFILL
}
}, {
&hf_msdp_length, {
"Length", "msdp.length", FT_UT16, BASE... | void proto_register_msdp(void) {
static hf_register_info hf[] = {
{
&hf_msdp_type, {
"Type", "msdp.type", FT_UT8, BASE_DEC, VALS(msdp_types), 0, "MSDP TLV type", HFILL
}
}, {
&hf_msdp_length, {
"Length", "msdp.length", FT_UT16, BASE... | void proto_register_msdp(void) {
static hf_register_info hf[] = {
{
&hf_msdp_type, {
"Type", "msdp.type", FT_UT8, BASE_DEC, VALS(msdp_types), 0, "MSDP TLV type", HFILL
}
}, {
&hf_msdp_length, {
"Length", "msdp.length", FT_UT16, BASE... | void proto_register_msdp(void) {
static hf_register_info hf[] = {
{
&hf_msdp_type, {
"Type", "msdp.type", FT_UT8, BASE_DEC, VALS(msdp_types), 0, "MSDP TLV type", HFILL
}
}, {
&hf_msdp_length, {
"Length", "msdp.length", FT_UT16, BASE... | void proto_register_msdp(void) {
static hf_register_info hf[] = {
{
&hf_msdp_type, {
"Type", "msdp.type", FT_UT8, BASE_DEC, VALS(msdp_types), 0, "MSDP TLV type", HFILL
}
}, {
&hf_msdp_length, {
"Length", "msdp.length", FT_UT16, BASE... | void proto_register_msdp(void) {
static hf_register_info hf[] = {
{
&hf_msdp_type, {
"Type", "msdp.type", FT_UT8, BASE_DEC, VALS(msdp_types), 0, "MSDP TLV type", HFILL
}
}, {
&hf_msdp_length, {
"Length", "msdp.length", FT_UT16, BASE... | void proto_register_msdp(void) {
static hf_register_info hf[] = {
{
&hf_msdp_type, {
"Type", "msdp.type", FT_UT8, BASE_DEC, VALS(msdp_types), 0, "MSDP TLV type", HFILL
}
}, {
&hf_msdp_length, {
"Length", "msdp.length", FT_U... |
CVE-2017-14054 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavformat/rmdec.c | ivr_read_header | static int ivr_read_header(AVFormatContext *s) {
unsigned tag, type, len, tlen, value;
int i, j, n, count, nb_streams = 0, ret;
uint8_t key[256], val[256];
AVIOContext *pb = s->pb;
AVStream *st;
int64_t pos, offset, temp;
pos = avio_tell(pb);
tag = avio_rl32(pb);
if (tag == MKTAG('.'... | static int ivr_read_header(AVFormatContext *s) {
unsigned tag, type, len, tlen, value;
int i, j, n, count, nb_streams = 0, ret;
uint8_t key[256], val[256];
AVIOContext *pb = s->pb;
AVStream *st;
int64_t pos, offset, temp;
pos = avio_tell(pb);
tag = avio_rl32(pb);
if (tag == MKTAG('.'... | static int ivr_read_header(AVFormatContext *s) {
unsigned tag, type, len, tlen, value;
int i, j, n, count, nb_streams = 0, ret;
uint8_t key[256], val[256];
AVIOContext *pb = s->pb;
AVStream *st;
int64_t pos, offset, temp;
pos = avio_tell(pb);
tag = avio_rl32(pb);
if (tag == MKTAG('.'... | static int ivr_read_header(AVFormatContext *s) {
unsigned tag, type, len, tlen, value;
int i, j, n, count, nb_streams = 0, ret;
uint8_t key[256], val[256];
AVIOContext *pb = s->pb;
AVStream *st;
int64_t pos, offset, temp;
pos = avio_tell(pb);
tag = avio_rl32(pb);
if (tag == MKTAG('.'... | static int ivr_read_header(AVFormatContext *s) {
AVIOContext *pb = s->pb;
pos = avio_tell(pb);
tag = avio_rl32(pb);
if (tag == MKTAG('.','R','1','M')) {
if (avio_rb16(pb) != 1) {
return AVERROR_VALIDDATA;
}
if (avio_r8(pb) != 1) {
return AVERROR_VALIDDATA;... | static int ivr_read_header(AVFormatContext *s) {
AVIOContext *pb = s->pb;
pos = avio_tell(pb);
tag = avio_rl32(pb);
if (tag == MKTAG('.','R','1','M')) {
if (avio_rb16(pb) != 1) {
return AVERROR_VALIDDATA;
}
if (avio_r8(pb) != 1) {
return AVERROR_VALIDDATA;... | static int ivr_read_header(AVFormatContext *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
AVIOContext *pb = s->pb;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
pos = avio_tell(pb);
tag = avio_rl32(pb);
if (tag == MKTAG('.','R','1','M')) {
if (avio_rb16(pb) != 1) {
retur... | static int ivr_read_header(AVFormatContext *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
AVIOContext *pb = s->pb;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
pos = avio_tell(pb);
tag = avio_rl32(pb);
if (tag == MKTAG('.','R','1','M')) {
if (avio_rb16(pb) != 1) {
retur... | static int ivr_read_header(AVFormatContext *s) {
AVIOContext *pb = s->pb;
pos = avio_tell(pb);
tag = avio_rl32(pb);
if (tag == MKTAG('.','R','1','M')) {
if (avio_rb16(pb) != 1) {
return AVERROR_VALIDDATA;
}
if (avio_r8(pb) != 1) {
return AVERROR_... |
CVE-2017-14055 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavformat/mvdec.c | mv_read_header | static int mv_read_header(AVFormatContext *avctx) {
MvContext *mv = avctx->priv_data;
AVIOContext *pb = avctx->pb;
AVStream *ast = NULL, *vst = NULL;
int version, i;
int ret;
avio_skip(pb, 4);
version = avio_rb16(pb);
if (version == 2) {
uint64_t timestamp;
int v;
... | static int mv_read_header(AVFormatContext *avctx) {
MvContext *mv = avctx->priv_data;
AVIOContext *pb = avctx->pb;
AVStream *ast = NULL, *vst = NULL;
int version, i;
int ret;
avio_skip(pb, 4);
version = avio_rb16(pb);
if (version == 2) {
uint64_t timestamp;
int v;
... | static int mv_read_header(AVFormatContext *avctx) {
MvContext *mv = avctx->priv_data;
AVIOContext *pb = avctx->pb;
AVStream *ast = NULL, *vst = NULL;
int version, i;
int ret;
avio_skip(pb, 4);
version = avio_rb16(pb);
if (version == 2) {
uint64_t timestamp;
int v;
... | static int mv_read_header(AVFormatContext *avctx) {
MvContext *mv = avctx->priv_data;
AVIOContext *pb = avctx->pb;
AVStream *ast = NULL, *vst = NULL;
int version, i;
int ret;
avio_skip(pb, 4);
version = avio_rb16(pb);
if (version == 2) {
uint64_t timestamp;
int v;
... | static int mv_read_header(AVFormatContext *avctx) {
AVIOContext *pb = avctx->pb;
avio_skip(pb, 4);
version = avio_rb16(pb);
if (version == 2) {
avio_skip(pb, 22);
ast = avformat_new_stream(avctx, NULL);
if (!ast) {
return AVERROR(ENOMEM);
}
vst = avfor... | static int mv_read_header(AVFormatContext *avctx) {
AVIOContext *pb = avctx->pb;
avio_skip(pb, 4);
version = avio_rb16(pb);
if (version == 2) {
avio_skip(pb, 22);
ast = avformat_new_stream(avctx, NULL);
if (!ast) {
return AVERROR(ENOMEM);
}
vst = avfor... | static int mv_read_header(AVFormatContext *avctx) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
AVIOContext *pb = avctx->pb;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
avio_skip(pb, 4);
version = avio_rb16(pb);
if (version == 2) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
av... | static int mv_read_header(AVFormatContext *avctx) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
AVIOContext *pb = avctx->pb;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
avio_skip(pb, 4);
version = avio_rb16(pb);
if (version == 2) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
av... | static int mv_read_header(AVFormatContext *avctx) {
AVIOContext *pb = avctx->pb;
avio_skip(pb, 4);
version = avio_rb16(pb);
if (version == 2) {
avio_skip(pb, 22);
ast = avformat_new_stream(avctx, NULL);
if (!ast) {
return AVERROR(ENOMEM);
}
... |
CVE-2017-14057 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavformat/asfdec_f.c | asf_read_marker | static int asf_read_marker(AVFormatContext *s, int64_t size) {
AVIOContext *pb = s->pb;
ASFContext *asf = s->priv_data;
int i, count, name_len, ret;
char name[1024];
avio_rl64(pb);
avio_rl64(pb);
count = avio_rl32(pb);
avio_rl16(pb);
name_len = avio_rl16(pb);
for (i = 0; i < name... | static int asf_read_marker(AVFormatContext *s, int64_t size) {
AVIOContext *pb = s->pb;
ASFContext *asf = s->priv_data;
int i, count, name_len, ret;
char name[1024];
avio_rl64(pb);
avio_rl64(pb);
count = avio_rl32(pb);
avio_rl16(pb);
name_len = avio_rl16(pb);
avio_skip(pb, name_l... | static int asf_read_marker(AVFormatContext *s, int64_t size) {
AVIOContext *pb = s->pb;
ASFContext *asf = s->priv_data;
int i, count, name_len, ret;
char name[1024];
avio_rl64(pb);
avio_rl64(pb);
count = avio_rl32(pb);
avio_rl16(pb);
name_len = avio_rl16(pb);
for (i = 0; i < name... | static int asf_read_marker(AVFormatContext *s, int64_t size) {
AVIOContext *pb = s->pb;
ASFContext *asf = s->priv_data;
int i, count, name_len, ret;
char name[1024];
avio_rl64(pb);
avio_rl64(pb);
count = avio_rl32(pb);
avio_rl16(pb);
name_len = avio_rl16(pb);
avio_skip(pb, name_l... | static int asf_read_marker(AVFormatContext *s, int64_t size) {
AVIOContext *pb = s->pb;
avio_rl64(pb);
avio_rl64(pb);
count = avio_rl32(pb);
avio_rl16(pb);
name_len = avio_rl16(pb);
for (i = 0; i < name_len; i++)
avio_r8(pb);
for (i = 0; i < count; i++) {
int name_len;
... | static int asf_read_marker(AVFormatContext *s, int64_t size) {
AVIOContext *pb = s->pb;
avio_rl64(pb);
avio_rl64(pb);
count = avio_rl32(pb);
avio_rl16(pb);
name_len = avio_rl16(pb);
avio_skip(pb, name_len);
for (i = 0; i < count; i++) {
int name_len;
if (avio_feof(pb)) {
... | static int asf_read_marker(AVFormatContext *s, int64_t size) {
AVIOContext *pb = s->pb;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
avio_rl64(pb);
avio_rl64(pb);
count = avio_rl32(pb);
avio_rl16(pb);
name_len = avio_rl16(pb);
for (i = 0; i < name_len; i++)
avio_r8(pb);
for ... | static int asf_read_marker(AVFormatContext *s, int64_t size) {
AVIOContext *pb = s->pb;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
avio_rl64(pb);
avio_rl64(pb);
count = avio_rl32(pb);
avio_rl16(pb);
name_len = avio_rl16(pb);
avio_skip(pb, name_len);
for (i = 0; i < count; i++) {
... | static int asf_read_marker(AVFormatContext *s, int64_t size) {
AVIOContext *pb = s->pb;
avio_rl64(pb);
avio_rl64(pb);
count = avio_rl32(pb);
avio_rl16(pb);
name_len = avio_rl16(pb);
- for (i = 0; i < name_len; i++)
- avio_r8(pb);
+ avio_skip(pb, name_len);
for (i = 0; i ... |
CVE-2017-14058 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavformat/hls.c | read_data | static int read_data(void *opaque, uint8_t *buf, int buf_size) {
struct playlist *v = opaque;
HLSContext *c = v->parent->priv_data;
int ret, i;
int just_opened = 0;
restart:
if (!v->needed) {
return AVERROR_EOF;
}
if (!v->input) {
int64_t reload_interval;
struct segme... | static int read_data(void *opaque, uint8_t *buf, int buf_size) {
struct playlist *v = opaque;
HLSContext *c = v->parent->priv_data;
int ret, i;
int just_opened = 0;
int reload_count = 0;
restart:
if (!v->needed) {
return AVERROR_EOF;
}
if (!v->input) {
int64_t reload_inte... | static int read_data(void *opaque, uint8_t *buf, int buf_size) {
struct playlist *v = opaque;
HLSContext *c = v->parent->priv_data;
int ret, i;
int just_opened = 0;
restart:
if (!v->needed) {
return AVERROR_EOF;
}
if (!v->input) {
int64_t reload_interval;
struct segme... | static int read_data(void *opaque, uint8_t *buf, int buf_size) {
struct playlist *v = opaque;
HLSContext *c = v->parent->priv_data;
int ret, i;
int just_opened = 0;
int reload_count = 0;
restart:
if (!v->needed) {
return AVERROR_EOF;
}
if (!v->input) {
int64_t reload_inte... | static int read_data(void *opaque, uint8_t *buf, int buf_size) {
HLSContext *c = v->parent->priv_data;
int just_opened = 0;
restart:
if (!v->needed) {
return AVERROR_EOF;
}
if (!v->input) {
reload_interval = default_reload_interval(v);
reload:
if (!v->finished && av_gettime_r... | static int read_data(void *opaque, uint8_t *buf, int buf_size) {
HLSContext *c = v->parent->priv_data;
int just_opened = 0;
int reload_count = 0;
restart:
if (!v->needed) {
return AVERROR_EOF;
}
if (!v->input) {
reload_interval = default_reload_interval(v);
reload:
reload... | static int read_data(void *opaque, uint8_t *buf, int buf_size) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
HLSContext *c = v->parent->priv_data;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int just_opened = 0;
restart:
if (!v->needed) {
return AVERROR_EOF;
}
if (!v->input) {
... | static int read_data(void *opaque, uint8_t *buf, int buf_size) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
HLSContext *c = v->parent->priv_data;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int just_opened = 0;
int reload_count = 0;
restart:
if (!v->needed) {
return AVERROR_EOF;
... | static int read_data(void *opaque, uint8_t *buf, int buf_size) {
HLSContext *c = v->parent->priv_data;
int just_opened = 0;
+ int reload_count = 0;
restart:
if (!v->needed) {
return AVERROR_EOF;
}
if (!v->input) {
reload_interval = default_reload_interval(v);
reload:
+ ... |
CVE-2017-14059 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavformat/cinedec.c | cine_read_header | static int cine_read_header(AVFormatContext *avctx) {
AVIOContext *pb = avctx->pb;
AVStream *st;
unsigned int version, compression, offImageHeader, offSetup, offImageOffsets, biBitCount, length, CFA;
int vflip;
char *description;
uint64_t i;
st = avformat_new_stream(avctx, NULL);
if (!st... | static int cine_read_header(AVFormatContext *avctx) {
AVIOContext *pb = avctx->pb;
AVStream *st;
unsigned int version, compression, offImageHeader, offSetup, offImageOffsets, biBitCount, length, CFA;
int vflip;
char *description;
uint64_t i;
st = avformat_new_stream(avctx, NULL);
if (!st... | static int cine_read_header(AVFormatContext *avctx) {
AVIOContext *pb = avctx->pb;
AVStream *st;
unsigned int version, compression, offImageHeader, offSetup, offImageOffsets, biBitCount, length, CFA;
int vflip;
char *description;
uint64_t i;
st = avformat_new_stream(avctx, NULL);
if (!st... | static int cine_read_header(AVFormatContext *avctx) {
AVIOContext *pb = avctx->pb;
AVStream *st;
unsigned int version, compression, offImageHeader, offSetup, offImageOffsets, biBitCount, length, CFA;
int vflip;
char *description;
uint64_t i;
st = avformat_new_stream(avctx, NULL);
if (!st... | static int cine_read_header(AVFormatContext *avctx) {
AVIOContext *pb = avctx->pb;
st = avformat_new_stream(avctx, NULL);
if (!st) {
return AVERROR(ENOMEM);
}
avio_skip(pb, 4);
compression = avio_rl16(pb);
version = avio_rl16(pb);
avio_skip(pb, 12);
st->duration = avio_rl32(p... | static int cine_read_header(AVFormatContext *avctx) {
AVIOContext *pb = avctx->pb;
st = avformat_new_stream(avctx, NULL);
if (!st) {
return AVERROR(ENOMEM);
}
avio_skip(pb, 4);
compression = avio_rl16(pb);
version = avio_rl16(pb);
avio_skip(pb, 12);
st->duration = avio_rl32(p... | static int cine_read_header(AVFormatContext *avctx) {
AVIOContext *pb = avctx->pb;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
st = avformat_new_stream(avctx, NULL);
if (!st) {
return AVERROR(ENOMEM);
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
avio_skip(pb, 4);
compression... | static int cine_read_header(AVFormatContext *avctx) {
AVIOContext *pb = avctx->pb;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
st = avformat_new_stream(avctx, NULL);
if (!st) {
return AVERROR(ENOMEM);
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
avio_skip(pb, 4);
compression... | static int cine_read_header(AVFormatContext *avctx) {
AVIOContext *pb = avctx->pb;
st = avformat_new_stream(avctx, NULL);
if (!st) {
return AVERROR(ENOMEM);
}
avio_skip(pb, 4);
compression = avio_rl16(pb);
version = avio_rl16(pb);
avio_skip(pb, 12);
st->duration = ... |
CVE-2017-14167 | QEMU | https://github.com/qemu/qemu | hw/i386/multiboot.c | load_multiboot | int load_multiboot(FWCfgState *fw_cfg, FILE *f, const char *kernel_filename, const char *initrd_filename, const char *kernel_cmdline, int kernel_file_size, uint8_t *header) {
int i, is_multiboot = 0;
uint32_t flags = 0;
uint32_t mh_entry_addr;
uint32_t mh_load_addr;
uint32_t mb_kernel_size;
Mult... | int load_multiboot(FWCfgState *fw_cfg, FILE *f, const char *kernel_filename, const char *initrd_filename, const char *kernel_cmdline, int kernel_file_size, uint8_t *header) {
int i, is_multiboot = 0;
uint32_t flags = 0;
uint32_t mh_entry_addr;
uint32_t mh_load_addr;
uint32_t mb_kernel_size;
Mult... | int load_multiboot(FWCfgState *fw_cfg, FILE *f, const char *kernel_filename, const char *initrd_filename, const char *kernel_cmdline, int kernel_file_size, uint8_t *header) {
int i, is_multiboot = 0;
uint32_t flags = 0;
uint32_t mh_entry_addr;
uint32_t mh_load_addr;
uint32_t mb_kernel_size;
Mult... | int load_multiboot(FWCfgState *fw_cfg, FILE *f, const char *kernel_filename, const char *initrd_filename, const char *kernel_cmdline, int kernel_file_size, uint8_t *header) {
int i, is_multiboot = 0;
uint32_t flags = 0;
uint32_t mh_entry_addr;
uint32_t mh_load_addr;
uint32_t mb_kernel_size;
Mult... | int load_multiboot(FWCfgState *fw_cfg, FILE *f, const char *kernel_filename, const char *initrd_filename, const char *kernel_cmdline, int kernel_file_size, uint8_t *header) {
for (i = 0; i < (8192 - 48); i += 4) {
}
if (flags & 0x00000004) {
fprintf(stderr, "qemu: multiboot knows VBE. we don't.\n");... | int load_multiboot(FWCfgState *fw_cfg, FILE *f, const char *kernel_filename, const char *initrd_filename, const char *kernel_cmdline, int kernel_file_size, uint8_t *header) {
for (i = 0; i < (8192 - 48); i += 4) {
}
if (flags & 0x00000004) {
fprintf(stderr, "qemu: multiboot knows VBE. we don't.\n");... | int load_multiboot(FWCfgState *fw_cfg, FILE *f, const char *kernel_filename, const char *initrd_filename, const char *kernel_cmdline, int kernel_file_size, uint8_t *header) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
for (i = 0; i < (8192 - 48); i += 4) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | int load_multiboot(FWCfgState *fw_cfg, FILE *f, const char *kernel_filename, const char *initrd_filename, const char *kernel_cmdline, int kernel_file_size, uint8_t *header) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
for (i = 0; i < (8192 - 48); i += 4) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | int load_multiboot(FWCfgState *fw_cfg, FILE *f, const char *kernel_filename, const char *initrd_filename, const char *kernel_cmdline, int kernel_file_size, uint8_t *header) {
for (i = 0; i < (8192 - 48); i += 4) {
}
if (flags & 0x00000004) {
fprintf(stderr, "qemu: multiboot knows VBE. we don't.... |
CVE-2017-14169 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavformat/mxfdec.c | mxf_read_primer_pack | static int mxf_read_primer_pack(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) {
MXFContext *mxf = arg;
int item_num = avio_rb32(pb);
int item_len = avio_rb32(pb);
if (item_len != 18) {
avpriv_request_sample(pb, "Primer pack item length %d", item_len);
return... | static int mxf_read_primer_pack(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) {
MXFContext *mxf = arg;
int item_num = avio_rb32(pb);
int item_len = avio_rb32(pb);
if (item_len != 18) {
avpriv_request_sample(pb, "Primer pack item length %d", item_len);
return... | static int mxf_read_primer_pack(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) {
MXFContext *mxf = arg;
int item_num = avio_rb32(pb);
int item_len = avio_rb32(pb);
if (item_len != 18) {
avpriv_request_sample(pb, "Primer pack item length %d", item_len);
return... | static int mxf_read_primer_pack(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) {
MXFContext *mxf = arg;
int item_num = avio_rb32(pb);
int item_len = avio_rb32(pb);
if (item_len != 18) {
avpriv_request_sample(pb, "Primer pack item length %d", item_len);
return... | static int mxf_read_primer_pack(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) {
int item_num = avio_rb32(pb);
if (item_len != 18) {
return AVERROR_PATCHWELCOME;
}
if (item_num > 65536) {
av_log(mxf->fc, AV_LOG_ERROR, "item_num %d is too large\n", item_num);
... | static int mxf_read_primer_pack(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) {
int item_num = avio_rb32(pb);
if (item_len != 18) {
return AVERROR_PATCHWELCOME;
}
if (item_num > 65536 || item_num < 0) {
av_log(mxf->fc, AV_LOG_ERROR, "item_num %d is too large... | static int mxf_read_primer_pack(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int item_num = avio_rb32(pb);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (item_len != 18) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | static int mxf_read_primer_pack(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int item_num = avio_rb32(pb);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (item_len != 18) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | static int mxf_read_primer_pack(void *arg, AVIOContext *pb, int tag, int size, UID uid, int64_t klv_offset) {
int item_num = avio_rb32(pb);
if (item_len != 18) {
return AVERROR_PATCHWELCOME;
}
- if (item_num > 65536) {
+ if (item_num > 65536 || item_num < 0) {
av_log(mxf->fc, AV_... |
CVE-2017-14170 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavformat/mxfdec.c | mxf_read_index_entry_array | static int mxf_read_index_entry_array(AVIOContext *pb, MXFIndexTableSegment *segment) {
int i, length;
segment->nb_index_entries = avio_rb32(pb);
length = avio_rb32(pb);
if (!(segment->temporal_offset_entries=av_calloc(segment->nb_index_entries, sizeof(*segment->temporal_offset_entries)))
||... | static int mxf_read_index_entry_array(AVIOContext *pb, MXFIndexTableSegment *segment) {
int i, length;
segment->nb_index_entries = avio_rb32(pb);
length = avio_rb32(pb);
if(segment->nb_index_entries && length < 11) {
return AVERROR_VALIDDATA;
}
if (!(segment->temporal_offset_entries=av_c... | static int mxf_read_index_entry_array(AVIOContext *pb, MXFIndexTableSegment *segment) {
int i, length;
segment->nb_index_entries = avio_rb32(pb);
length = avio_rb32(pb);
if (!(segment->temporal_offset_entries=av_calloc(segment->nb_index_entries, sizeof(*segment->temporal_offset_entries)))
||... | static int mxf_read_index_entry_array(AVIOContext *pb, MXFIndexTableSegment *segment) {
int i, length;
segment->nb_index_entries = avio_rb32(pb);
length = avio_rb32(pb);
if(segment->nb_index_entries && length < 11) {
return AVERROR_VALIDDATA;
}
if (!(segment->temporal_offset_entries=av_c... | static int mxf_read_index_entry_array(AVIOContext *pb, MXFIndexTableSegment *segment) {
segment->nb_index_entries = avio_rb32(pb);
length = avio_rb32(pb);
if (!(segment->temporal_offset_entries=av_calloc(segment->nb_index_entries, sizeof(*segment->temporal_offset_entries)))
|| !(segment->flag_en... | static int mxf_read_index_entry_array(AVIOContext *pb, MXFIndexTableSegment *segment) {
segment->nb_index_entries = avio_rb32(pb);
length = avio_rb32(pb);
if(segment->nb_index_entries && length < 11) {
return AVERROR_VALIDDATA;
}
if (!(segment->temporal_offset_entries=av_calloc(segment->nb_i... | static int mxf_read_index_entry_array(AVIOContext *pb, MXFIndexTableSegment *segment) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
segment->nb_index_entries = avio_rb32(pb);
length = avio_rb32(pb);
if (!(segment->temporal_offset_entries=av_calloc(segment->nb_index_entries, sizeof(*segment->temporal_o... | static int mxf_read_index_entry_array(AVIOContext *pb, MXFIndexTableSegment *segment) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
segment->nb_index_entries = avio_rb32(pb);
length = avio_rb32(pb);
if(segment->nb_index_entries && length < 11) {
return AVERROR_VALIDDATA;
}
if (!(segmen... | static int mxf_read_index_entry_array(AVIOContext *pb, MXFIndexTableSegment *segment) {
segment->nb_index_entries = avio_rb32(pb);
length = avio_rb32(pb);
+ if(segment->nb_index_entries && length < 11) {
+ return AVERROR_VALIDDATA;
+ }
if (!(segment->temporal_offset_entries=av_calloc(segmen... |
CVE-2017-14171 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavformat/nsvdec.c | nsv_parse_NSVf_header | static int nsv_parse_NSVf_header(AVFormatContext *s) {
NSVContext *nsv = s->priv_data;
AVIOContext *pb = s->pb;
unsigned int av_unused file_size;
unsigned int size;
int64_t duration;
int strings_size;
int table_entries;
int table_entries_used;
nsv->state = NSV_UNSYNC;
size = avio... | static int nsv_parse_NSVf_header(AVFormatContext *s) {
NSVContext *nsv = s->priv_data;
AVIOContext *pb = s->pb;
unsigned int av_unused file_size;
unsigned int size;
int64_t duration;
int strings_size;
int table_entries;
int table_entries_used;
nsv->state = NSV_UNSYNC;
size = avio... | static int nsv_parse_NSVf_header(AVFormatContext *s) {
NSVContext *nsv = s->priv_data;
AVIOContext *pb = s->pb;
unsigned int av_unused file_size;
unsigned int size;
int64_t duration;
int strings_size;
int table_entries;
int table_entries_used;
av_log(s, AV_LOG_TRACE, "%s()\n", __FUNC... | static int nsv_parse_NSVf_header(AVFormatContext *s) {
NSVContext *nsv = s->priv_data;
AVIOContext *pb = s->pb;
unsigned int av_unused file_size;
unsigned int size;
int64_t duration;
int strings_size;
int table_entries;
int table_entries_used;
av_log(s, AV_LOG_TRACE, "%s()\n", __FUNC... | static int nsv_parse_NSVf_header(AVFormatContext *s) {
AVIOContext *pb = s->pb;
size = avio_rl32(pb);
if (size < 28) {
return -1;
}
file_size = (uint32_t)avio_rl32(pb);
av_log(s, AV_LOG_TRACE, "NSV NSVf chunk_size %u\n", size);
av_log(s, AV_LOG_TRACE, "NSV NSVf file_size %u\n", file_... | static int nsv_parse_NSVf_header(AVFormatContext *s) {
AVIOContext *pb = s->pb;
size = avio_rl32(pb);
if (size < 28) {
return -1;
}
file_size = (uint32_t)avio_rl32(pb);
av_log(s, AV_LOG_TRACE, "NSV NSVf chunk_size %u\n", size);
av_log(s, AV_LOG_TRACE, "NSV NSVf file_size %u\n", file_... | static int nsv_parse_NSVf_header(AVFormatContext *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
AVIOContext *pb = s->pb;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
size = avio_rl32(pb);
if (size < 28) {
return -1;
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
file_size ... | static int nsv_parse_NSVf_header(AVFormatContext *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
AVIOContext *pb = s->pb;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
size = avio_rl32(pb);
if (size < 28) {
return -1;
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
file_size ... | static int nsv_parse_NSVf_header(AVFormatContext *s) {
AVIOContext *pb = s->pb;
size = avio_rl32(pb);
if (size < 28) {
return -1;
}
file_size = (uint32_t)avio_rl32(pb);
av_log(s, AV_LOG_TRACE, "NSV NSVf chunk_size %u\n", size);
av_log(s, AV_LOG_TRACE, "NSV NSVf file_size %u\... |
CVE-2017-14222 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavformat/mov.c | read_tfra | static int read_tfra(MOVContext *mov, AVIOContext *f) {
MOVFragmentIndex* index = NULL;
int version, fieldlength, i, j;
int64_t pos = avio_tell(f);
uint32_t size = avio_rb32(f);
void *tmp;
if (avio_rb32(f) != MKBETAG('t', 'f', 'r', 'a')) {
return 1;
}
av_log(mov->fc, AV_LOG_VERBO... | static int read_tfra(MOVContext *mov, AVIOContext *f) {
MOVFragmentIndex* index = NULL;
int version, fieldlength, i, j;
int64_t pos = avio_tell(f);
uint32_t size = avio_rb32(f);
void *tmp;
if (avio_rb32(f) != MKBETAG('t', 'f', 'r', 'a')) {
return 1;
}
av_log(mov->fc, AV_LOG_VERBO... | static int read_tfra(MOVContext *mov, AVIOContext *f) {
MOVFragmentIndex* index = NULL;
int version, fieldlength, i, j;
int64_t pos = avio_tell(f);
uint32_t size = avio_rb32(f);
void *tmp;
if (avio_rb32(f) != MKBETAG('t', 'f', 'r', 'a')) {
return 1;
}
av_log(mov->fc, AV_LOG_VERBO... | static int read_tfra(MOVContext *mov, AVIOContext *f) {
MOVFragmentIndex* index = NULL;
int version, fieldlength, i, j;
int64_t pos = avio_tell(f);
uint32_t size = avio_rb32(f);
void *tmp;
if (avio_rb32(f) != MKBETAG('t', 'f', 'r', 'a')) {
return 1;
}
av_log(mov->fc, AV_LOG_VERBO... | static int read_tfra(MOVContext *mov, AVIOContext *f) {
int64_t pos = avio_tell(f);
uint32_t size = avio_rb32(f);
if (avio_rb32(f) != MKBETAG('t', 'f', 'r', 'a')) {
return 1;
}
index = av_mallocz(sizeof(MOVFragmentIndex));
if (!index) {
return AVERROR(ENOMEM);
}
version =... | static int read_tfra(MOVContext *mov, AVIOContext *f) {
int64_t pos = avio_tell(f);
uint32_t size = avio_rb32(f);
if (avio_rb32(f) != MKBETAG('t', 'f', 'r', 'a')) {
return 1;
}
index = av_mallocz(sizeof(MOVFragmentIndex));
if (!index) {
return AVERROR(ENOMEM);
}
version =... | static int read_tfra(MOVContext *mov, AVIOContext *f) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int64_t pos = avio_tell(f);
uint32_t size = avio_rb32(f);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (avio_rb32(f) != MKBETAG('t', 'f', 'r', 'a')) {
return 1;
}
/* PLACEHOLDER:... | static int read_tfra(MOVContext *mov, AVIOContext *f) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int64_t pos = avio_tell(f);
uint32_t size = avio_rb32(f);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (avio_rb32(f) != MKBETAG('t', 'f', 'r', 'a')) {
return 1;
}
/* PLACEHOLDER:... | static int read_tfra(MOVContext *mov, AVIOContext *f) {
int64_t pos = avio_tell(f);
uint32_t size = avio_rb32(f);
if (avio_rb32(f) != MKBETAG('t', 'f', 'r', 'a')) {
return 1;
}
index = av_mallocz(sizeof(MOVFragmentIndex));
if (!index) {
return AVERROR(ENOMEM);
}
... |
CVE-2017-14223 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavformat/asfdec_f.c | asf_build_simple_index | static int asf_build_simple_index(AVFormatContext *s, int stream_index) {
ff_asf_guid g;
ASFContext *asf = s->priv_data;
int64_t current_pos = avio_tell(s->pb);
int64_t ret;
if((ret = avio_seek(s->pb, asf->data_object_offset + asf->data_object_size, SEEK_SET)) < 0) {
return ret;
}
if... | static int asf_build_simple_index(AVFormatContext *s, int stream_index) {
ff_asf_guid g;
ASFContext *asf = s->priv_data;
int64_t current_pos = avio_tell(s->pb);
int64_t ret;
if((ret = avio_seek(s->pb, asf->data_object_offset + asf->data_object_size, SEEK_SET)) < 0) {
return ret;
}
if... | static int asf_build_simple_index(AVFormatContext *s, int stream_index) {
ff_asf_guid g;
ASFContext *asf = s->priv_data;
int64_t current_pos = avio_tell(s->pb);
int64_t ret;
if((ret = avio_seek(s->pb, asf->data_object_offset + asf->data_object_size, SEEK_SET)) < 0) {
return ret;
}
if... | static int asf_build_simple_index(AVFormatContext *s, int stream_index) {
ff_asf_guid g;
ASFContext *asf = s->priv_data;
int64_t current_pos = avio_tell(s->pb);
int64_t ret;
if((ret = avio_seek(s->pb, asf->data_object_offset + asf->data_object_size, SEEK_SET)) < 0) {
return ret;
}
if... | static int asf_build_simple_index(AVFormatContext *s, int stream_index) {
ASFContext *asf = s->priv_data;
int64_t current_pos = avio_tell(s->pb);
if((ret = avio_seek(s->pb, asf->data_object_offset + asf->data_object_size, SEEK_SET)) < 0) {
return ret;
}
if ((ret = ff_get_guid(s->pb, &g)) < 0... | static int asf_build_simple_index(AVFormatContext *s, int stream_index) {
ASFContext *asf = s->priv_data;
int64_t current_pos = avio_tell(s->pb);
if((ret = avio_seek(s->pb, asf->data_object_offset + asf->data_object_size, SEEK_SET)) < 0) {
return ret;
}
if ((ret = ff_get_guid(s->pb, &g)) < 0... | static int asf_build_simple_index(AVFormatContext *s, int stream_index) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ASFContext *asf = s->priv_data;
int64_t current_pos = avio_tell(s->pb);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if((ret = avio_seek(s->pb, asf->data_object_offset + asf->data... | static int asf_build_simple_index(AVFormatContext *s, int stream_index) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ASFContext *asf = s->priv_data;
int64_t current_pos = avio_tell(s->pb);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if((ret = avio_seek(s->pb, asf->data_object_offset + asf->data... | static int asf_build_simple_index(AVFormatContext *s, int stream_index) {
ASFContext *asf = s->priv_data;
int64_t current_pos = avio_tell(s->pb);
if((ret = avio_seek(s->pb, asf->data_object_offset + asf->data_object_size, SEEK_SET)) < 0) {
return ret;
}
if ((ret = ff_get_guid(s->pb, &... |
CVE-2017-14225 | FFmpeg | https://github.com/FFmpeg/FFmpeg | ffprobe.c | show_stream | static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_idx, InputStream *ist, int in_program) {
AVStream *stream = ist->st;
AVCodecParameters *par;
AVCodecContext *dec_ctx;
char val_str[128];
const char *s;
AVRational sar, dar;
AVBPrint pbuf;
const AVCodecDescripto... | static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_idx, InputStream *ist, int in_program) {
AVStream *stream = ist->st;
AVCodecParameters *par;
AVCodecContext *dec_ctx;
char val_str[128];
const char *s;
AVRational sar, dar;
AVBPrint pbuf;
const AVCodecDescripto... | static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_idx, InputStream *ist, int in_program) {
AVStream *stream = ist->st;
AVCodecParameters *par;
AVCodecContext *dec_ctx;
char val_str[128];
const char *s;
AVRational sar, dar;
AVBPrint pbuf;
const AVCodecDescripto... | static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_idx, InputStream *ist, int in_program) {
AVStream *stream = ist->st;
AVCodecParameters *par;
AVCodecContext *dec_ctx;
char val_str[128];
const char *s;
AVRational sar, dar;
AVBPrint pbuf;
const AVCodecDescripto... | static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_idx, InputStream *ist, int in_program) {
AVStream *stream = ist->st;
writer_print_section_header(w, in_program ? SECTION_ID_PROGRAM_STREAM : SECTION_ID_STREAM);
par = stream->codecpar;
switch (par->codec_type) {
case AVMED... | static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_idx, InputStream *ist, int in_program) {
AVStream *stream = ist->st;
writer_print_section_header(w, in_program ? SECTION_ID_PROGRAM_STREAM : SECTION_ID_STREAM);
par = stream->codecpar;
switch (par->codec_type) {
case AVMED... | static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_idx, InputStream *ist, int in_program) {
AVStream *stream = ist->st;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
writer_print_section_header(w, in_program ? SECTION_ID_PROGRAM_STREAM : SECTION_ID_STREAM);
/* PLACEHOLDER: DO ... | static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_idx, InputStream *ist, int in_program) {
AVStream *stream = ist->st;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
writer_print_section_header(w, in_program ? SECTION_ID_PROGRAM_STREAM : SECTION_ID_STREAM);
/* PLACEHOLDER: DO ... | static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_idx, InputStream *ist, int in_program) {
AVStream *stream = ist->st;
writer_print_section_header(w, in_program ? SECTION_ID_PROGRAM_STREAM : SECTION_ID_STREAM);
par = stream->codecpar;
switch (par->codec_type) {
case... |
CVE-2017-14767 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavformat/rtpdec_h264.c | sdp_parse_fmtp_config_h264 | static int sdp_parse_fmtp_config_h264(AVFormatContext *s, AVStream *stream, PayloadContext *h264_data, const char *attr, const char *value) {
AVCodecParameters *par = stream->codecpar;
if (!strcmp(attr, "packetization-mode")) {
av_log(s, AV_LOG_DEBUG, "RTP Packetization Mode: %d\n", atoi(value));
... | static int sdp_parse_fmtp_config_h264(AVFormatContext *s, AVStream *stream, PayloadContext *h264_data, const char *attr, const char *value) {
AVCodecParameters *par = stream->codecpar;
if (!strcmp(attr, "packetization-mode")) {
av_log(s, AV_LOG_DEBUG, "RTP Packetization Mode: %d\n", atoi(value));
... | static int sdp_parse_fmtp_config_h264(AVFormatContext *s, AVStream *stream, PayloadContext *h264_data, const char *attr, const char *value) {
AVCodecParameters *par = stream->codecpar;
if (!strcmp(attr, "packetization-mode")) {
av_log(s, AV_LOG_DEBUG, "RTP Packetization Mode: %d\n", atoi(value));
... | static int sdp_parse_fmtp_config_h264(AVFormatContext *s, AVStream *stream, PayloadContext *h264_data, const char *attr, const char *value) {
AVCodecParameters *par = stream->codecpar;
if (!strcmp(attr, "packetization-mode")) {
av_log(s, AV_LOG_DEBUG, "RTP Packetization Mode: %d\n", atoi(value));
... | static int sdp_parse_fmtp_config_h264(AVFormatContext *s, AVStream *stream, PayloadContext *h264_data, const char *attr, const char *value) {
if (!strcmp(attr, "packetization-mode")) {
} else if (!strcmp(attr, "profile-level-id")) {
} else if (!strcmp(attr, "sprop-parameter-sets")) {
int ret;
... | static int sdp_parse_fmtp_config_h264(AVFormatContext *s, AVStream *stream, PayloadContext *h264_data, const char *attr, const char *value) {
if (!strcmp(attr, "packetization-mode")) {
} else if (!strcmp(attr, "profile-level-id")) {
} else if (!strcmp(attr, "sprop-parameter-sets")) {
int ret;
... | static int sdp_parse_fmtp_config_h264(AVFormatContext *s, AVStream *stream, PayloadContext *h264_data, const char *attr, const char *value) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!strcmp(attr, "packetization-mode")) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} else if (!strcmp(attr, "p... | static int sdp_parse_fmtp_config_h264(AVFormatContext *s, AVStream *stream, PayloadContext *h264_data, const char *attr, const char *value) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!strcmp(attr, "packetization-mode")) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} else if (!strcmp(attr, "p... | static int sdp_parse_fmtp_config_h264(AVFormatContext *s, AVStream *stream, PayloadContext *h264_data, const char *attr, const char *value) {
if (!strcmp(attr, "packetization-mode")) {
} else if (!strcmp(attr, "profile-level-id")) {
} else if (!strcmp(attr, "sprop-parameter-sets")) {
int ret;
-... |
CVE-2017-15118 | QEMU | https://github.com/qemu/qemu | nbd/server.c | nbd_negotiate_handle_info | static int nbd_negotiate_handle_info(NBDClient *client, uint32_t length, uint32_t opt, uint16_t myflags, Error **errp) {
int rc;
char name[NBD_MAX_NAME_SIZE + 1];
NBDExport *exp;
uint16_t requests;
uint16_t request;
uint32_t namelen;
bool sendname = false;
bool blocksize = false;
uin... | static int nbd_negotiate_handle_info(NBDClient *client, uint32_t length, uint32_t opt, uint16_t myflags, Error **errp) {
int rc;
char name[NBD_MAX_NAME_SIZE + 1];
NBDExport *exp;
uint16_t requests;
uint16_t request;
uint32_t namelen;
bool sendname = false;
bool blocksize = false;
uin... | static int nbd_negotiate_handle_info(NBDClient *client, uint32_t length, uint32_t opt, uint16_t myflags, Error **errp) {
int rc;
char name[NBD_MAX_NAME_SIZE + 1];
NBDExport *exp;
uint16_t requests;
uint16_t request;
uint32_t namelen;
bool sendname = false;
bool blocksize = false;
uin... | static int nbd_negotiate_handle_info(NBDClient *client, uint32_t length, uint32_t opt, uint16_t myflags, Error **errp) {
int rc;
char name[NBD_MAX_NAME_SIZE + 1];
NBDExport *exp;
uint16_t requests;
uint16_t request;
uint32_t namelen;
bool sendname = false;
bool blocksize = false;
uin... | static int nbd_negotiate_handle_info(NBDClient *client, uint32_t length, uint32_t opt, uint16_t myflags, Error **errp) {
if (length < sizeof(namelen) + sizeof(requests)) {
goto invalid;
}
length -= sizeof(namelen);
if (namelen > length - sizeof(requests) || (length - namelen) % 2) {
goto... | static int nbd_negotiate_handle_info(NBDClient *client, uint32_t length, uint32_t opt, uint16_t myflags, Error **errp) {
if (length < sizeof(namelen) + sizeof(requests)) {
goto invalid;
}
length -= sizeof(namelen);
if (namelen > length - sizeof(requests) || (length - namelen) % 2) {
goto... | static int nbd_negotiate_handle_info(NBDClient *client, uint32_t length, uint32_t opt, uint16_t myflags, Error **errp) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (length < sizeof(namelen) + sizeof(requests)) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
goto invalid;
}
/* PLACEHOLD... | static int nbd_negotiate_handle_info(NBDClient *client, uint32_t length, uint32_t opt, uint16_t myflags, Error **errp) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (length < sizeof(namelen) + sizeof(requests)) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
goto invalid;
}
/* PLACEHOLD... | static int nbd_negotiate_handle_info(NBDClient *client, uint32_t length, uint32_t opt, uint16_t myflags, Error **errp) {
if (length < sizeof(namelen) + sizeof(requests)) {
goto invalid;
}
length -= sizeof(namelen);
if (namelen > length - sizeof(requests) || (length - namelen) % 2) {
+ ... |
CVE-2017-15189 | Wireshark | https://github.com/wireshark/wireshark | plugins/docsis/packet-docsis.c | dissect_docsis | static int dissect_docsis (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data ) {
guint8 fc = 0;
guint8 fctype = 0;
guint8 fcparm = 0;
guint8 exthdr = 0;
guint16 mac_parm = 0;
guint8 hdrlen = DOCSIS_M_HEADER_LEN;
guint16 len_sid = 0;
tvbuff_t *next_tvb = NULL;
tvbuff_... | static int dissect_docsis (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data ) {
guint8 fc = 0;
guint8 fctype = 0;
guint8 fcparm = 0;
guint8 exthdr = 0;
guint16 mac_parm = 0;
guint8 hdrlen = DOCSIS_M_HEADER_LEN;
guint16 len_sid = 0;
tvbuff_t *next_tvb = NULL;
tvbuff_... | static int dissect_docsis (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data ) {
guint8 fc = 0;
guint8 fctype = 0;
guint8 fcparm = 0;
guint8 exthdr = 0;
guint16 mac_parm = 0;
guint8 hdrlen = DOCSIS_M_HEADER_LEN;
guint16 len_sid = 0;
tvbuff_t *next_tvb = NULL;
tvbuff_... | static int dissect_docsis (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data ) {
guint8 fc = 0;
guint8 fctype = 0;
guint8 fcparm = 0;
guint8 exthdr = 0;
guint16 mac_parm = 0;
guint8 hdrlen = DOCSIS_M_HEADER_LEN;
guint16 len_sid = 0;
tvbuff_t *next_tvb = NULL;
tvbuff_... | static int dissect_docsis (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data ) {
fc = tvb_get_guint8 (tvb, 0);
if (fcparm == FCPARM_QUEUE_DEPTH_REQ_FRM) {
mac_parm = tvb_get_ntohs (tvb, 1);
len_sid = tvb_get_ntohs (tvb, 3);
} else {
mac_parm = tvb_get_guint8 (tvb, 1)... | static int dissect_docsis (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data ) {
fc = tvb_get_guint8 (tvb, 0);
if (fcparm == FCPARM_QUEUE_DEPTH_REQ_FRM) {
mac_parm = tvb_get_ntohs (tvb, 1);
len_sid = tvb_get_ntohs (tvb, 3);
} else {
mac_parm = tvb_get_guint8 (tvb, 1)... | static int dissect_docsis (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
fc = tvb_get_guint8 (tvb, 0);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (fcparm == FCPARM_QUEUE_DEPTH_REQ_FRM) {
mac_parm = tvb_get_ntohs (tvb, 1... | static int dissect_docsis (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
fc = tvb_get_guint8 (tvb, 0);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (fcparm == FCPARM_QUEUE_DEPTH_REQ_FRM) {
mac_parm = tvb_get_ntohs (tvb, 1... | static int dissect_docsis (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data ) {
fc = tvb_get_guint8 (tvb, 0);
if (fcparm == FCPARM_QUEUE_DEPTH_REQ_FRM) {
mac_parm = tvb_get_ntohs (tvb, 1);
len_sid = tvb_get_ntohs (tvb, 3);
} else {
mac_parm = tvb_get_guint8 (... |
CVE-2017-15190 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-rtsp.c | rtsp_create_conversation | static void rtsp_create_conversation(packet_info *pinfo, proto_item *ti, const guchar *line_begin, size_t line_len, gint rdt_feature_level, rtsp_type_t rtsp_type_packet) {
conversation_t *conv;
guchar buf[256];
guchar *tmp;
gboolean rtp_udp_transport = FALSE;
gboolean rtp_tcp_transport = FALSE;
... | static void rtsp_create_conversation(packet_info *pinfo, proto_item *ti, const guchar *line_begin, size_t line_len, gint rdt_feature_level, rtsp_type_t rtsp_type_packet) {
conversation_t *conv;
guchar buf[256];
guchar *tmp;
gboolean rtp_udp_transport = FALSE;
gboolean rtp_tcp_transport = FALSE;
... | static void rtsp_create_conversation(packet_info *pinfo, proto_item *ti, const guchar *line_begin, size_t line_len, gint rdt_feature_level, rtsp_type_t rtsp_type_packet) {
conversation_t *conv;
guchar buf[256];
guchar *tmp;
gboolean rtp_udp_transport = FALSE;
gboolean rtp_tcp_transport = FALSE;
... | static void rtsp_create_conversation(packet_info *pinfo, proto_item *ti, const guchar *line_begin, size_t line_len, gint rdt_feature_level, rtsp_type_t rtsp_type_packet) {
conversation_t *conv;
guchar buf[256];
guchar *tmp;
gboolean rtp_udp_transport = FALSE;
gboolean rtp_tcp_transport = FALSE;
... | static void rtsp_create_conversation(packet_info *pinfo, proto_item *ti, const guchar *line_begin, size_t line_len, gint rdt_feature_level, rtsp_type_t rtsp_type_packet) {
address dst_addr;
if (rtsp_type_packet != RTSP_REPLY) {
return;
}
if ((tmp = strstr(buf, rtsp_sps_server_port))) {
} els... | static void rtsp_create_conversation(packet_info *pinfo, proto_item *ti, const guchar *line_begin, size_t line_len, gint rdt_feature_level, rtsp_type_t rtsp_type_packet) {
address dst_addr;
guint32 ip4_addr;
if (rtsp_type_packet != RTSP_REPLY) {
return;
}
if ((tmp = strstr(buf, rtsp_sps_serv... | static void rtsp_create_conversation(packet_info *pinfo, proto_item *ti, const guchar *line_begin, size_t line_len, gint rdt_feature_level, rtsp_type_t rtsp_type_packet) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
address dst_addr;
if (rtsp_type_packet != RTSP_REPLY) {
return;
}
/* PLACE... | static void rtsp_create_conversation(packet_info *pinfo, proto_item *ti, const guchar *line_begin, size_t line_len, gint rdt_feature_level, rtsp_type_t rtsp_type_packet) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
address dst_addr;
guint32 ip4_addr;
if (rtsp_type_packet != RTSP_REPLY) {
retu... | static void rtsp_create_conversation(packet_info *pinfo, proto_item *ti, const guchar *line_begin, size_t line_len, gint rdt_feature_level, rtsp_type_t rtsp_type_packet) {
address dst_addr;
+ guint32 ip4_addr;
if (rtsp_type_packet != RTSP_REPLY) {
return;
}
if ((tmp = strstr(buf, rtsp_s... |
CVE-2017-15191 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-dmp.c | dissect_7bit_string | static gchar *dissect_7bit_string (tvbuff_t *tvb, gint offset, gint length, guchar *byte_rest) {
guchar *encoded = (guchar *)tvb_memdup (wmem_packet_scope(), tvb, offset, length);
guchar *decoded = (guchar *)wmem_alloc0 (wmem_packet_scope(), (size_t)(length * 1.2) + 1);
guchar rest = 0, bits = 1;
gint l... | static gchar *dissect_7bit_string (tvbuff_t *tvb, gint offset, gint length, guchar *byte_rest) {
guchar *encoded, *decoded;
guchar rest = 0, bits = 1;
gint len = 0, i;
if (length <= 0) {
decoded = "";
} else {
encoded = (guchar *)tvb_memdup (wmem_packet_scope(), tvb, offset, length);... | static gchar *dissect_7bit_string (tvbuff_t *tvb, gint offset, gint length) {
guchar *encoded = (guchar *)tvb_memdup (wmem_packet_scope(), tvb, offset, length);
guchar *decoded = (guchar *)wmem_alloc0 (wmem_packet_scope(), (size_t)(length * 1.2) + 1);
guchar rest = 0, bits = 1;
gint len = 0, i;
for ... | static gchar *dissect_7bit_string (tvbuff_t *tvb, gint offset, gint length) {
guchar *encoded, *decoded;
guchar rest = 0, bits = 1;
gint len = 0, i;
if (length <= 0) {
decoded = "";
} else {
encoded = (guchar *)tvb_memdup (wmem_packet_scope(), tvb, offset, length);
decoded = ... | static gchar *dissect_7bit_string (tvbuff_t *tvb, gint offset, gint length, guchar *byte_rest) {
guchar *encoded = (guchar *)tvb_memdup (wmem_packet_scope(), tvb, offset, length);
guchar *decoded = (guchar *)wmem_alloc0 (wmem_packet_scope(), (size_t)(length * 1.2) + 1);
guchar rest = 0, bits = 1;
gint l... | static gchar *dissect_7bit_string (tvbuff_t *tvb, gint offset, gint length, guchar *byte_rest) {
guchar *encoded, *decoded;
guchar rest = 0, bits = 1;
gint len = 0, i;
if (length <= 0) {
decoded = "";
} else {
encoded = (guchar *)tvb_memdup (wmem_packet_scope(), tvb, offset, length);... | static gchar *dissect_7bit_string (tvbuff_t *tvb, gint offset, gint length) {
guchar *encoded = (guchar *)tvb_memdup (wmem_packet_scope(), tvb, offset, length);
guchar *decoded = (guchar *)wmem_alloc0 (wmem_packet_scope(), (size_t)(length * 1.2) + 1);
guchar rest = 0, bits = 1;
gint len = 0, i;
for ... | static gchar *dissect_7bit_string (tvbuff_t *tvb, gint offset, gint length) {
guchar *encoded, *decoded;
guchar rest = 0, bits = 1;
gint len = 0, i;
if (length <= 0) {
decoded = "";
} else {
encoded = (guchar *)tvb_memdup (wmem_packet_scope(), tvb, offset, length);
decoded = ... | static gchar *dissect_7bit_string (tvbuff_t *tvb, gint offset, gint length, guchar *byte_rest) {
- guchar *encoded = (guchar *)tvb_memdup (wmem_packet_scope(), tvb, offset, length);
- guchar *decoded = (guchar *)wmem_alloc0 (wmem_packet_scope(), (size_t)(length * 1.2) + 1);
+ guchar *encoded, *decoded;
g... |
CVE-2017-15192 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-btatt.c | get_request | static request_data_t * get_request(tvbuff_t *tvb, gint offset, packet_info *pinfo, guint8 opcode, bluetooth_data_t *bluetooth_data) {
request_data_t *request_data;
wmem_tree_key_t key[4];
wmem_tree_t *sub_wmemtree;
gint frame_number;
key[0].length = 1;
key[0].key = &bluetooth_data->interface_id... | static request_data_t * get_request(tvbuff_t *tvb, gint offset, packet_info *pinfo, guint8 opcode, bluetooth_data_t *bluetooth_data) {
request_data_t *request_data;
wmem_tree_key_t key[4];
wmem_tree_t *sub_wmemtree;
guint32 frame_number, curr_layer_num;
curr_layer_num = pinfo->curr_layer_num;
ke... | static request_data_t * get_request(tvbuff_t *tvb, gint offset, packet_info *pinfo, guint8 opcode, bluetooth_data_t *bluetooth_data) {
request_data_t *request_data;
wmem_tree_key_t key[4];
wmem_tree_t *sub_wmemtree;
gint frame_number;
key[0].length = 1;
key[0].key = &bluetooth_data->interface_id... | static request_data_t * get_request(tvbuff_t *tvb, gint offset, packet_info *pinfo, guint8 opcode, bluetooth_data_t *bluetooth_data) {
request_data_t *request_data;
wmem_tree_key_t key[4];
wmem_tree_t *sub_wmemtree;
guint32 frame_number, curr_layer_num;
curr_layer_num = pinfo->curr_layer_num;
ke... | static request_data_t * get_request(tvbuff_t *tvb, gint offset, packet_info *pinfo, guint8 opcode, bluetooth_data_t *bluetooth_data) {
wmem_tree_t *sub_wmemtree;
gint frame_number;
key[0].length = 1;
key[1].key = &bluetooth_data->adapter_id;
key[2].length = 0;
key[2].key = NULL;
frame_number... | static request_data_t * get_request(tvbuff_t *tvb, gint offset, packet_info *pinfo, guint8 opcode, bluetooth_data_t *bluetooth_data) {
wmem_tree_t *sub_wmemtree;
guint32 frame_number, curr_layer_num;
curr_layer_num = pinfo->curr_layer_num;
key[0].length = 1;
key[1].key = &bluetooth_data->adapter_id;... | static request_data_t * get_request(tvbuff_t *tvb, gint offset, packet_info *pinfo, guint8 opcode, bluetooth_data_t *bluetooth_data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
wmem_tree_t *sub_wmemtree;
gint frame_number;
key[0].length = 1;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
key[... | static request_data_t * get_request(tvbuff_t *tvb, gint offset, packet_info *pinfo, guint8 opcode, bluetooth_data_t *bluetooth_data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
wmem_tree_t *sub_wmemtree;
guint32 frame_number, curr_layer_num;
curr_layer_num = pinfo->curr_layer_num;
key[0].length ... | static request_data_t * get_request(tvbuff_t *tvb, gint offset, packet_info *pinfo, guint8 opcode, bluetooth_data_t *bluetooth_data) {
wmem_tree_t *sub_wmemtree;
- gint frame_number;
+ guint32 frame_number, curr_layer_num;
+ curr_layer_num = pinfo->curr_layer_num;
key[0].length = 1;
key[1].key ... |
CVE-2017-15192 | 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[4];
guint32 frame_number;
request_data_t *request_data;
frame_number = pinfo->num;
key[0].length = 1;
key[0].key = &bluetooth_data->inter... | 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[4];
guint32 frame_number;
request_data_t *request_data;
frame_number = pinfo->num;
key[0].length = 1;
key[0].key = &bluetooth_data->inter... | 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[4];
guint32 frame_number;
request_data_t *request_data;
frame_number = pinfo->num;
key[0].length = 1;
key[2].length = 1;
key[2].key =... | 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[4];
guint32 frame_number;
request_data_t *request_data;
frame_number = pinfo->num;
key[0].length = 1;
/* PLACEHOLDER: DO NOT DELETE THIS ... | 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[4];
- guint32 frame_number;
+ wmem_tree_key_t key[5];
+ guint32 frame_number, curr_layer_num;
request_data_t *request_data;
frame_number... |
CVE-2017-15193 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-mbim.c | mbim_dissect_adpclk_freq_info | static void mbim_dissect_adpclk_freq_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, elem_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tree_add_i... | static void mbim_dissect_adpclk_freq_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, elem_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tree_add_i... | static void mbim_dissect_adpclk_freq_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, elem_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tree_add_i... | static void mbim_dissect_adpclk_freq_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, elem_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tree_add_i... | static void mbim_dissect_adpclk_freq_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (elem_count) {
pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), elem_count);
subtree = proto_tree_add_subtree(tree, tvb, offset, 8*elem_count, ett_mbim... | static void mbim_dissect_adpclk_freq_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (elem_count) {
pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_list));
subtree = proto_tree_add_subtree(tree, tvb, offset, 8*elem_count, ett_mbim_pair_list, NULL, ... | static void mbim_dissect_adpclk_freq_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (elem_count) {
pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), elem_count);
subtree = proto_tree_add... | static void mbim_dissect_adpclk_freq_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (elem_count) {
pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_list));
subtree = proto_tree_add_subtree(tree, tvb... | static void mbim_dissect_adpclk_freq_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (elem_count) {
- pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), elem_count);
+ pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pai... |
CVE-2017-15193 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-mbim.c | mbim_dissect_atds_operators | static void mbim_dissect_atds_operators(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, elem_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tree_add_ite... | static void mbim_dissect_atds_operators(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, elem_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tree_add_ite... | static void mbim_dissect_atds_operators(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, elem_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tree_add_ite... | static void mbim_dissect_atds_operators(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, elem_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tree_add_ite... | static void mbim_dissect_atds_operators(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (elem_count) {
pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), elem_count);
subtree = proto_tree_add_subtree(tree, tvb, offset, 8*elem_count, ett_mbim_p... | static void mbim_dissect_atds_operators(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (elem_count) {
pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_list));
subtree = proto_tree_add_subtree(tree, tvb, offset, 8*elem_count, ett_mbim_pair_list, NULL, "O... | static void mbim_dissect_atds_operators(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (elem_count) {
pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), elem_count);
subtree = proto_tree_add_s... | static void mbim_dissect_atds_operators(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (elem_count) {
pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_list));
subtree = proto_tree_add_subtree(tree, tvb, ... | static void mbim_dissect_atds_operators(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (elem_count) {
- pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), elem_count);
+ pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_... |
CVE-2017-15193 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-mbim.c | mbim_dissect_atds_projection_tables | static void mbim_dissect_atds_projection_tables(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, elem_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tree... | static void mbim_dissect_atds_projection_tables(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, elem_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tree... | static void mbim_dissect_atds_projection_tables(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, elem_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tree... | static void mbim_dissect_atds_projection_tables(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, elem_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tree... | static void mbim_dissect_atds_projection_tables(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (elem_count) {
pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), elem_count);
subtree = proto_tree_add_subtree(tree, tvb, offset, 8*elem_count, et... | static void mbim_dissect_atds_projection_tables(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (elem_count) {
pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_list));
subtree = proto_tree_add_subtree(tree, tvb, offset, 8*elem_count, ett_mbim_pair_list, ... | static void mbim_dissect_atds_projection_tables(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (elem_count) {
pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), elem_count);
subtree = proto_tr... | static void mbim_dissect_atds_projection_tables(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (elem_count) {
pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_list));
subtree = proto_tree_add_subtree(tre... | static void mbim_dissect_atds_projection_tables(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (elem_count) {
- pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), elem_count);
+ pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mb... |
CVE-2017-15193 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-mbim.c | mbim_dissect_device_service_subscribe_list | static void mbim_dissect_device_service_subscribe_list(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, element_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
... | static void mbim_dissect_device_service_subscribe_list(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, element_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
... | static void mbim_dissect_device_service_subscribe_list(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, element_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
... | static void mbim_dissect_device_service_subscribe_list(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, element_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
... | static void mbim_dissect_device_service_subscribe_list(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (element_count) {
pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), element_count);
subtree = proto_tree_add_subtree(tree, tvb, offset, 8*e... | static void mbim_dissect_device_service_subscribe_list(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (element_count) {
pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_list));
subtree = proto_tree_add_subtree(tree, tvb, offset, 8*element_count, ett_mbi... | static void mbim_dissect_device_service_subscribe_list(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (element_count) {
pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), element_count);
subtr... | static void mbim_dissect_device_service_subscribe_list(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (element_count) {
pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_list));
subtree = proto_tree_add_s... | static void mbim_dissect_device_service_subscribe_list(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (element_count) {
- pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), element_count);
+ pair_list = wmem_array_new(wmem_packet_scope(), siz... |
CVE-2017-15193 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-mbim.c | mbim_dissect_device_services_info | static void mbim_dissect_device_services_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, device_services_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
p... | static void mbim_dissect_device_services_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, device_services_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
p... | static void mbim_dissect_device_services_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, device_services_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
p... | static void mbim_dissect_device_services_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, device_services_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
p... | static void mbim_dissect_device_services_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (device_services_count) {
pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), device_services_count);
subtree = proto_tree_add_subtree(tree, tvb, offs... | static void mbim_dissect_device_services_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (device_services_count) {
pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_list));
subtree = proto_tree_add_subtree(tree, tvb, offset, 8*device_services_count, ... | static void mbim_dissect_device_services_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (device_services_count) {
pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), device_services_count);
... | static void mbim_dissect_device_services_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (device_services_count) {
pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_list));
subtree = proto_tree_add_su... | static void mbim_dissect_device_services_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (device_services_count) {
- pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), device_services_count);
+ pair_list = wmem_array_new(wmem_packet_scope... |
CVE-2017-15193 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-mbim.c | mbim_dissect_packet_filters | static void mbim_dissect_packet_filters(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, packet_filters_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tr... | static void mbim_dissect_packet_filters(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, packet_filters_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tr... | static void mbim_dissect_packet_filters(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, packet_filters_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tr... | static void mbim_dissect_packet_filters(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, packet_filters_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tr... | static void mbim_dissect_packet_filters(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (packet_filters_count) {
pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), packet_filters_count);
subtree = proto_tree_add_subtree(tree, tvb, offset, 8*pa... | static void mbim_dissect_packet_filters(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (packet_filters_count) {
pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_list));
subtree = proto_tree_add_subtree(tree, tvb, offset, 8*packet_filters_count, ett_mbim... | static void mbim_dissect_packet_filters(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (packet_filters_count) {
pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), packet_filters_count);
subtre... | static void mbim_dissect_packet_filters(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (packet_filters_count) {
pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_list));
subtree = proto_tree_add_subtree(t... | static void mbim_dissect_packet_filters(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (packet_filters_count) {
- pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), packet_filters_count);
+ pair_list = wmem_array_new(wmem_packet_scope(), size... |
CVE-2017-15193 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-mbim.c | mbim_dissect_phonebook_read_info | static void mbim_dissect_phonebook_read_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, element_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tree... | static void mbim_dissect_phonebook_read_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, element_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tree... | static void mbim_dissect_phonebook_read_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, element_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tree... | static void mbim_dissect_phonebook_read_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, element_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tree... | static void mbim_dissect_phonebook_read_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (element_count) {
pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), element_count);
subtree = proto_tree_add_subtree(tree, tvb, offset, 8*element_cou... | static void mbim_dissect_phonebook_read_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (element_count) {
pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_list));
subtree = proto_tree_add_subtree(tree, tvb, offset, 8*element_count, ett_mbim_pair_lis... | static void mbim_dissect_phonebook_read_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (element_count) {
pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), element_count);
subtree = proto... | static void mbim_dissect_phonebook_read_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (element_count) {
pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_list));
subtree = proto_tree_add_subtree(tre... | static void mbim_dissect_phonebook_read_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (element_count) {
- pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), element_count);
+ pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct... |
CVE-2017-15193 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-mbim.c | mbim_dissect_providers | static void mbim_dissect_providers(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, elem_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tree_add_item_ret... | static void mbim_dissect_providers(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, elem_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tree_add_item_ret... | static void mbim_dissect_providers(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, elem_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tree_add_item_ret... | static void mbim_dissect_providers(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, elem_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_tree_add_item_ret... | static void mbim_dissect_providers(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (elem_count) {
pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), elem_count);
subtree = proto_tree_add_subtree(tree, tvb, offset, 8*elem_count, ett_mbim_pair_l... | static void mbim_dissect_providers(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (elem_count) {
pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_list));
subtree = proto_tree_add_subtree(tree, tvb, offset, 8*elem_count, ett_mbim_pair_list, NULL, "Provid... | static void mbim_dissect_providers(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (elem_count) {
pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), elem_count);
subtree = proto_tree_add_subtre... | static void mbim_dissect_providers(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (elem_count) {
pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_list));
subtree = proto_tree_add_subtree(tree, tvb, offse... | static void mbim_dissect_providers(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (elem_count) {
- pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), elem_count);
+ pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_list)... |
CVE-2017-15193 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-mbim.c | mbim_dissect_provisioned_contexts_info | static void mbim_dissect_provisioned_contexts_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, elem_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_t... | static void mbim_dissect_provisioned_contexts_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, elem_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_t... | static void mbim_dissect_provisioned_contexts_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, elem_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_t... | static void mbim_dissect_provisioned_contexts_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
proto_tree *subtree;
gint base_offset;
guint32 i, elem_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
base_offset = offset;
proto_t... | static void mbim_dissect_provisioned_contexts_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (elem_count) {
pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), elem_count);
subtree = proto_tree_add_subtree(tree, tvb, offset, 8*elem_count,... | static void mbim_dissect_provisioned_contexts_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (elem_count) {
pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_list));
subtree = proto_tree_add_subtree(tree, tvb, offset, 8*elem_count, ett_mbim_pair_lis... | static void mbim_dissect_provisioned_contexts_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (elem_count) {
pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), elem_count);
subtree = proto... | static void mbim_dissect_provisioned_contexts_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (elem_count) {
pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_list));
subtree = proto_tree_add_subtree(... | static void mbim_dissect_provisioned_contexts_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset) {
if (elem_count) {
- pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), elem_count);
+ pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct... |
CVE-2017-15193 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-mbim.c | mbim_dissect_sms_read_info | static void mbim_dissect_sms_read_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, struct mbim_conv_info *mbim_conv) {
proto_tree *subtree;
gint base_offset;
guint32 i, format, element_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
... | static void mbim_dissect_sms_read_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, struct mbim_conv_info *mbim_conv) {
proto_tree *subtree;
gint base_offset;
guint32 i, format, element_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
... | static void mbim_dissect_sms_read_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, struct mbim_conv_info *mbim_conv) {
proto_tree *subtree;
gint base_offset;
guint32 i, format, element_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
... | static void mbim_dissect_sms_read_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, struct mbim_conv_info *mbim_conv) {
proto_tree *subtree;
gint base_offset;
guint32 i, format, element_count;
wmem_array_t *pair_list;
struct mbim_pair_list pair_list_item, *p_pair_list_item;
... | static void mbim_dissect_sms_read_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, struct mbim_conv_info *mbim_conv) {
if (element_count) {
pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), element_count);
subtree = proto_tree_add_subtree(tree... | static void mbim_dissect_sms_read_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, struct mbim_conv_info *mbim_conv) {
if (element_count) {
pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_list));
subtree = proto_tree_add_subtree(tree, tvb, offset, 8*elem... | static void mbim_dissect_sms_read_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, struct mbim_conv_info *mbim_conv) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (element_count) {
pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), element_cou... | static void mbim_dissect_sms_read_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, struct mbim_conv_info *mbim_conv) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (element_count) {
pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_list));
subtree ... | static void mbim_dissect_sms_read_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, struct mbim_conv_info *mbim_conv) {
if (element_count) {
- pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), element_count);
+ pair_list = wmem_array_new(wmem_p... |
CVE-2017-15193 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-mbim.c | mbim_dissect_subscriber_ready_status | static void mbim_dissect_subscriber_ready_status(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, struct mbim_conv_info *mbim_conv) {
proto_tree *subtree;
gint base_offset;
guint32 i, subscriber_id_offset, subscriber_id_size, sim_icc_id_offset, sim_icc_id_size, elem_count;
proto_item *i... | static void mbim_dissect_subscriber_ready_status(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, struct mbim_conv_info *mbim_conv) {
proto_tree *subtree;
gint base_offset;
guint32 i, subscriber_id_offset, subscriber_id_size, sim_icc_id_offset, sim_icc_id_size, elem_count;
proto_item *i... | static void mbim_dissect_subscriber_ready_status(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, struct mbim_conv_info *mbim_conv) {
proto_tree *subtree;
gint base_offset;
guint32 i, subscriber_id_offset, subscriber_id_size, sim_icc_id_offset, sim_icc_id_size, elem_count;
proto_item *i... | static void mbim_dissect_subscriber_ready_status(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, struct mbim_conv_info *mbim_conv) {
proto_tree *subtree;
gint base_offset;
guint32 i, subscriber_id_offset, subscriber_id_size, sim_icc_id_offset, sim_icc_id_size, elem_count;
proto_item *i... | static void mbim_dissect_subscriber_ready_status(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, struct mbim_conv_info *mbim_conv) {
if (elem_count) {
pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), elem_count);
subtree = proto_tree_add_subtree(... | static void mbim_dissect_subscriber_ready_status(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, struct mbim_conv_info *mbim_conv) {
if (elem_count) {
pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_list));
subtree = proto_tree_add_subtree(tree, tvb, offset,... | static void mbim_dissect_subscriber_ready_status(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, struct mbim_conv_info *mbim_conv) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (elem_count) {
pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), elem... | static void mbim_dissect_subscriber_ready_status(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, struct mbim_conv_info *mbim_conv) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (elem_count) {
pair_list = wmem_array_new(wmem_packet_scope(), sizeof(struct mbim_pair_list));
s... | static void mbim_dissect_subscriber_ready_status(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, struct mbim_conv_info *mbim_conv) {
if (elem_count) {
- pair_list = wmem_array_sized_new(wmem_packet_scope(), sizeof(struct mbim_pair_list), elem_count);
+ pair_list = wmem_array_new(wm... |
CVE-2017-15672 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/ffv1dec.c | decode_frame | static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) {
uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
FFV1Context *f = avctx->priv_data;
RangeCoder *const c = &f->slice_context[0]->c;
int i, ret;
uint8_t keystate = 128;
uint8_t *buf_p;
AVFr... | static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) {
uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
FFV1Context *f = avctx->priv_data;
RangeCoder *const c = &f->slice_context[0]->c;
int i, ret;
uint8_t keystate = 128;
uint8_t *buf_p;
AVFr... | static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) {
uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
FFV1Context *f = avctx->priv_data;
RangeCoder *const c = &f->slice_context[0]->c;
int i, ret;
uint8_t keystate = 128;
uint8_t *buf_p;
AVFr... | static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) {
uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
FFV1Context *f = avctx->priv_data;
RangeCoder *const c = &f->slice_context[0]->c;
int i, ret;
uint8_t keystate = 128;
uint8_t *buf_p;
AVFr... | static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) {
}
| static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) {
}
| static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}
| static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} | |
CVE-2017-16840 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/vc2enc_dwt.c | ff_vc2enc_free_transforms | av_cold void ff_vc2enc_free_transforms(VC2TransformContext *s) {
av_freep(&s->buffer);
} | av_cold void ff_vc2enc_free_transforms(VC2TransformContext *s) {
av_free(s->buffer - s->padding);
s->buffer = NULL;
} | av_cold void ff_vc2enc_free_transforms(VC2TransformContext *s) {
av_freep(&s->buffer);
} | av_cold void ff_vc2enc_free_transforms(VC2TransformContext *s) {
av_free(s->buffer - s->padding);
s->buffer = NULL;
} | av_cold void ff_vc2enc_free_transforms(VC2TransformContext *s) {
av_freep(&s->buffer);
}
| av_cold void ff_vc2enc_free_transforms(VC2TransformContext *s) {
av_free(s->buffer - s->padding);
s->buffer = NULL;
}
| av_cold void ff_vc2enc_free_transforms(VC2TransformContext *s) {
av_freep(&s->buffer);
}
| av_cold void ff_vc2enc_free_transforms(VC2TransformContext *s) {
av_free(s->buffer - s->padding);
s->buffer = NULL;
} | av_cold void ff_vc2enc_free_transforms(VC2TransformContext *s) {
- av_freep(&s->buffer);
+ av_free(s->buffer - s->padding);
+ s->buffer = NULL;
} |
CVE-2017-16840 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/vc2enc_dwt.c | ff_vc2enc_init_transforms | av_cold int ff_vc2enc_init_transforms(VC2TransformContext *s, int p_width, int p_height) {
s->vc2_subband_dwt[VC2_TRANSFORM_9_7] = vc2_subband_dwt_97;
s->vc2_subband_dwt[VC2_TRANSFORM_5_3] = vc2_subband_dwt_53;
s->vc2_subband_dwt[VC2_TRANSFORM_HAAR] = vc2_subband_dwt_haar;
s->vc2_subband_dwt[VC2_TRANSFO... | av_cold int ff_vc2enc_init_transforms(VC2TransformContext *s, int p_stride, int p_height, int slice_w, int slice_h) {
s->vc2_subband_dwt[VC2_TRANSFORM_9_7] = vc2_subband_dwt_97;
s->vc2_subband_dwt[VC2_TRANSFORM_5_3] = vc2_subband_dwt_53;
s->vc2_subband_dwt[VC2_TRANSFORM_HAAR] = vc2_subband_dwt_haar;
s->... | av_cold int ff_vc2enc_init_transforms(VC2TransformContext *s, int p_width, int p_height) {
s->vc2_subband_dwt[VC2_TRANSFORM_9_7] = vc2_subband_dwt_97;
s->vc2_subband_dwt[VC2_TRANSFORM_5_3] = vc2_subband_dwt_53;
s->vc2_subband_dwt[VC2_TRANSFORM_HAAR] = vc2_subband_dwt_haar;
s->vc2_subband_dwt[VC2_TRANSFO... | av_cold int ff_vc2enc_init_transforms(VC2TransformContext *s, int p_stride, int p_height, int slice_w, int slice_h) {
s->vc2_subband_dwt[VC2_TRANSFORM_9_7] = vc2_subband_dwt_97;
s->vc2_subband_dwt[VC2_TRANSFORM_5_3] = vc2_subband_dwt_53;
s->vc2_subband_dwt[VC2_TRANSFORM_HAAR] = vc2_subband_dwt_haar;
s->... | av_cold int ff_vc2enc_init_transforms(VC2TransformContext *s, int p_width, int p_height) {
s->vc2_subband_dwt[VC2_TRANSFORM_HAAR_S] = vc2_subband_dwt_haar_shift;
s->buffer = av_malloc(2*p_width*p_height*sizeof(dwtcoef));
if (!s->buffer) {
return 1;
}
return 0;
}
| av_cold int ff_vc2enc_init_transforms(VC2TransformContext *s, int p_stride, int p_height, int slice_w, int slice_h) {
s->vc2_subband_dwt[VC2_TRANSFORM_HAAR_S] = vc2_subband_dwt_haar_shift;
s->buffer = av_calloc((p_stride + slice_w)*(p_height + slice_h), sizeof(dwtcoef));
if (!s->buffer) {
return 1;
... | av_cold int ff_vc2enc_init_transforms(VC2TransformContext *s, int p_width, int p_height) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
s->vc2_subband_dwt[VC2_TRANSFORM_HAAR_S] = vc2_subband_dwt_haar_shift;
s->buffer = av_malloc(2*p_width*p_height*sizeof(dwtcoef));
if (!s->buffer) {
return 1;
... | av_cold int ff_vc2enc_init_transforms(VC2TransformContext *s, int p_stride, int p_height, int slice_w, int slice_h) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
s->vc2_subband_dwt[VC2_TRANSFORM_HAAR_S] = vc2_subband_dwt_haar_shift;
s->buffer = av_calloc((p_stride + slice_w)*(p_height + slice_h), sizeof(d... | -av_cold int ff_vc2enc_init_transforms(VC2TransformContext *s, int p_width, int p_height) {
+av_cold int ff_vc2enc_init_transforms(VC2TransformContext *s, int p_stride, int p_height, int slice_w, int slice_h) {
s->vc2_subband_dwt[VC2_TRANSFORM_HAAR_S] = vc2_subband_dwt_haar_shift;
- s->buffer = av_malloc(2*p_wi... |
CVE-2017-17081 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/x86/mpegvideodsp.c | gmc_mmx | static void gmc_mmx(uint8_t *dst, uint8_t *src, int stride, int h, int ox, int oy, int dxx, int dxy, int dyx, int dyy, int shift, int r, int width, int height) {
const int w = 8;
const int ix = ox >> (16 + shift);
const int iy = oy >> (16 + shift);
const int oxs = ox >> 4;
const int oys = oy >> 4;
... | static void gmc_mmx(uint8_t *dst, uint8_t *src, int stride, int h, int ox, int oy, int dxx, int dxy, int dyx, int dyy, int shift, int r, int width, int height) {
const int w = 8;
const int ix = ox >> (16 + shift);
const int iy = oy >> (16 + shift);
const int oxs = ox >> 4;
const int oys = oy >> 4;
... | static void gmc_mmx(uint8_t *dst, uint8_t *src, int stride, int h, int ox, int oy, int dxx, int dxy, int dyx, int dyy, int shift, int r, int width, int height) {
const int w = 8;
const int ix = ox >> (16 + shift);
const int iy = oy >> (16 + shift);
const int oxs = ox >> 4;
const int oys = oy >> 4;
... | static void gmc_mmx(uint8_t *dst, uint8_t *src, int stride, int h, int ox, int oy, int dxx, int dxy, int dyx, int dyy, int shift, int r, int width, int height) {
const int w = 8;
const int ix = ox >> (16 + shift);
const int iy = oy >> (16 + shift);
const int oxs = ox >> 4;
const int oys = oy >> 4;
... | static void gmc_mmx(uint8_t *dst, uint8_t *src, int stride, int h, int ox, int oy, int dxx, int dxy, int dyx, int dyy, int shift, int r, int width, int height) {
const int w = 8;
const int ix = ox >> (16 + shift);
const int iy = oy >> (16 + shift);
const int dxxs = dxx >> 4;
const int dxys = dxy >> ... | static void gmc_mmx(uint8_t *dst, uint8_t *src, int stride, int h, int ox, int oy, int dxx, int dxy, int dyx, int dyy, int shift, int r, int width, int height) {
const int w = 8;
const int ix = ox >> (16 + shift);
const int iy = oy >> (16 + shift);
const int dxxs = dxx >> 4;
const int dxys = dxy >> ... | static void gmc_mmx(uint8_t *dst, uint8_t *src, int stride, int h, int ox, int oy, int dxx, int dxy, int dyx, int dyy, int shift, int r, int width, int height) {
const int w = 8;
const int ix = ox >> (16 + shift);
const int iy = oy >> (16 + shift);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const... | static void gmc_mmx(uint8_t *dst, uint8_t *src, int stride, int h, int ox, int oy, int dxx, int dxy, int dyx, int dyy, int shift, int r, int width, int height) {
const int w = 8;
const int ix = ox >> (16 + shift);
const int iy = oy >> (16 + shift);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const... | static void gmc_mmx(uint8_t *dst, uint8_t *src, int stride, int h, int ox, int oy, int dxx, int dxy, int dyx, int dyy, int shift, int r, int width, int height) {
const int w = 8;
const int ix = ox >> (16 + shift);
const int iy = oy >> (16 + shift);
const int dxxs = dxx >> 4;
const int dxys = d... |
CVE-2017-17083 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-netbios.c | process_netbios_name | int process_netbios_name(const guchar *name_ptr, char *name_ret, int name_ret_len) {
int i;
int name_type = *(name_ptr + NETBIOS_NAME_LEN - 1);
guchar name_char;
static const char hex_digits[16] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
for (i = 0; i < NETBIOS_NAME_LEN - 1... | int process_netbios_name(const guchar *name_ptr, char *name_ret, int name_ret_len) {
int i;
int name_type = *(name_ptr + NETBIOS_NAME_LEN - 1);
guchar name_char;
char *name_ret_orig = name_ret;
static const char hex_digits[16] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
... | int process_netbios_name(const guchar *name_ptr, char *name_ret, int name_ret_len) {
int i;
int name_type = *(name_ptr + NETBIOS_NAME_LEN - 1);
guchar name_char;
static const char hex_digits[16] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
for (i = 0; i < NETBIOS_NAME_LEN - 1... | int process_netbios_name(const guchar *name_ptr, char *name_ret, int name_ret_len) {
int i;
int name_type = *(name_ptr + NETBIOS_NAME_LEN - 1);
guchar name_char;
char *name_ret_orig = name_ret;
static const char hex_digits[16] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
... | int process_netbios_name(const guchar *name_ptr, char *name_ret, int name_ret_len) {
int name_type = *(name_ptr + NETBIOS_NAME_LEN - 1);
guchar name_char;
static const char hex_digits[16] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
for (i = 0; i < NETBIOS_NAME_LEN - 1; i++) {
... | int process_netbios_name(const guchar *name_ptr, char *name_ret, int name_ret_len) {
int name_type = *(name_ptr + NETBIOS_NAME_LEN - 1);
guchar name_char;
char *name_ret_orig = name_ret;
static const char hex_digits[16] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
for (i = 0;... | int process_netbios_name(const guchar *name_ptr, char *name_ret, int name_ret_len) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int name_type = *(name_ptr + NETBIOS_NAME_LEN - 1);
guchar name_char;
static const char hex_digits[16] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
... | int process_netbios_name(const guchar *name_ptr, char *name_ret, int name_ret_len) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int name_type = *(name_ptr + NETBIOS_NAME_LEN - 1);
guchar name_char;
char *name_ret_orig = name_ret;
static const char hex_digits[16] = {'0','1','2','3','4','5','6','7'... | int process_netbios_name(const guchar *name_ptr, char *name_ret, int name_ret_len) {
int name_type = *(name_ptr + NETBIOS_NAME_LEN - 1);
guchar name_char;
+ char *name_ret_orig = name_ret;
static const char hex_digits[16] = {'0','1','2','3','4','5','6','7','8','9','a','b','c','d','e','f'};
for (... |
CVE-2017-17084 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-iwarp-mpa.c | dissect_mpa_fpdu | static guint16 dissect_mpa_fpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, mpa_state_t *state, struct tcpinfo *tcpinfo, guint8 endpoint) {
proto_item *mpa_item = NULL;
proto_item *mpa_header_item = NULL;
proto_tree *mpa_tree = NULL;
proto_tree *mpa_header_tree = NULL;
guint8 pad_length;
... | static guint16 dissect_mpa_fpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, mpa_state_t *state, struct tcpinfo *tcpinfo, guint8 endpoint) {
proto_item *mpa_item = NULL;
proto_item *mpa_header_item = NULL;
proto_tree *mpa_tree = NULL;
proto_tree *mpa_header_tree = NULL;
guint8 pad_length;
... | static guint16 dissect_mpa_fpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, mpa_state_t *state, struct tcpinfo *tcpinfo, guint8 endpoint) {
proto_item *mpa_item = NULL;
proto_item *mpa_header_item = NULL;
proto_tree *mpa_tree = NULL;
proto_tree *mpa_header_tree = NULL;
guint8 pad_length;
... | static guint16 dissect_mpa_fpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, mpa_state_t *state, struct tcpinfo *tcpinfo, guint8 endpoint) {
proto_item *mpa_item = NULL;
proto_item *mpa_header_item = NULL;
proto_tree *mpa_tree = NULL;
proto_tree *mpa_header_tree = NULL;
guint8 pad_length;
... | static guint16 dissect_mpa_fpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, mpa_state_t *state, struct tcpinfo *tcpinfo, guint8 endpoint) {
if (state->minfo[endpoint].valid && get_first_marker_offset(state, tcpinfo, endpoint) == 0) {
offset = MPA_MARKER_LEN;
} else {
offset = 0;
}
... | static guint16 dissect_mpa_fpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, mpa_state_t *state, struct tcpinfo *tcpinfo, guint8 endpoint) {
if (state->minfo[endpoint].valid && get_first_marker_offset(state, tcpinfo, endpoint) == 0) {
offset = MPA_MARKER_LEN;
} else {
offset = 0;
}
... | static guint16 dissect_mpa_fpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, mpa_state_t *state, struct tcpinfo *tcpinfo, guint8 endpoint) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (state->minfo[endpoint].valid && get_first_marker_offset(state, tcpinfo, endpoint) == 0) {
offset = MPA_MA... | static guint16 dissect_mpa_fpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, mpa_state_t *state, struct tcpinfo *tcpinfo, guint8 endpoint) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (state->minfo[endpoint].valid && get_first_marker_offset(state, tcpinfo, endpoint) == 0) {
offset = MPA_MA... | static guint16 dissect_mpa_fpdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, mpa_state_t *state, struct tcpinfo *tcpinfo, guint8 endpoint) {
if (state->minfo[endpoint].valid && get_first_marker_offset(state, tcpinfo, endpoint) == 0) {
offset = MPA_MARKER_LEN;
} else {
offset = 0;
... |
CVE-2017-17085 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-cipsafety.c | dissect_cip_safety_data | static void dissect_cip_safety_data( proto_tree *tree, proto_item *item, tvbuff_t *tvb, int item_length, packet_info *pinfo, cip_safety_info_t* safety_info) {
int base_length, io_data_size;
gboolean multicast = in4_addr_is_multicast(pntoh32(pinfo->dst.data));
gboolean server_dir = FALSE;
enum enip_conni... | static void dissect_cip_safety_data( proto_tree *tree, proto_item *item, tvbuff_t *tvb, int item_length, packet_info *pinfo, cip_safety_info_t* safety_info) {
int base_length, io_data_size;
gboolean multicast = in4_addr_is_multicast(pntoh32(pinfo->dst.data));
gboolean server_dir = FALSE;
enum enip_conni... | static void dissect_cip_safety_data( proto_tree *tree, proto_item *item, tvbuff_t *tvb, int item_length, packet_info *pinfo) {
int base_length, io_data_size;
gboolean multicast = (((pntoh32(pinfo->dst.data)) & 0xf0000000) == 0xe0000000);
gboolean server_dir = FALSE;
enum enip_connid_type conn_type = ECI... | static void dissect_cip_safety_data( proto_tree *tree, proto_item *item, tvbuff_t *tvb, int item_length, packet_info *pinfo) {
int base_length, io_data_size;
gboolean multicast = (((pntoh32(pinfo->dst.data)) & 0xf0000000) == 0xe0000000);
gboolean server_dir = FALSE;
enum enip_connid_type conn_type = ECI... | static void dissect_cip_safety_data( proto_tree *tree, proto_item *item, tvbuff_t *tvb, int item_length, packet_info *pinfo, cip_safety_info_t* safety_info) {
base_length = multicast ? 12 : 6;
if (((conn_type == ECIDT_O2T) && (server_dir == FALSE)) || ((conn_type == ECIDT_T2O) && (server_dir == TRUE))) {
} ... | static void dissect_cip_safety_data( proto_tree *tree, proto_item *item, tvbuff_t *tvb, int item_length, packet_info *pinfo, cip_safety_info_t* safety_info) {
base_length = multicast ? 12 : 6;
if (item_length <= base_length) {
expert_add_info(pinfo, item, &ei_mal_io);
return;
}
if (((con... | static void dissect_cip_safety_data( proto_tree *tree, proto_item *item, tvbuff_t *tvb, int item_length, packet_info *pinfo) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
base_length = multicast ? 12 : 6;
if (((conn_type == ECIDT_O2T) && (server_dir == FALSE)) || ((conn_type == ECIDT_T2O) && (server_dir =... | static void dissect_cip_safety_data( proto_tree *tree, proto_item *item, tvbuff_t *tvb, int item_length, packet_info *pinfo) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
base_length = multicast ? 12 : 6;
if (item_length <= base_length) {
expert_add_info(pinfo, item, &ei_mal_io);
return;
... | static void dissect_cip_safety_data( proto_tree *tree, proto_item *item, tvbuff_t *tvb, int item_length, packet_info *pinfo, cip_safety_info_t* safety_info) {
base_length = multicast ? 12 : 6;
+ if (item_length <= base_length) {
+ expert_add_info(pinfo, item, &ei_mal_io);
+ return;
+ }
if... |
CVE-2017-17935 | Wireshark | https://github.com/wireshark/wireshark | epan/wslua/wslua_file.c | File_read_line | static int File_read_line(lua_State *L, FILE_T ft) {
static gchar linebuff[MAX_LE_LENGTH];
gint64 pos_before = file_tell(ft);
gint length = 0;
if (file_gets(linebuff, MAX_LE_LENGTH, ft) == NULL) {
lua_pushnil(L);
return 0;
}
length = (gint)(file_tell(ft) - pos_before);
if (li... | static int File_read_line(lua_State *L, FILE_T ft) {
static gchar linebuff[MAX_LE_LENGTH];
gint64 pos_before = file_tell(ft);
gint length = 0;
if (file_gets(linebuff, MAX_LE_LENGTH, ft) == NULL) {
lua_pushnil(L);
return 0;
}
length = (gint)(file_tell(ft) - pos_before);
if (le... | static int File_read_line(lua_State *L, FILE_T ft) {
static gchar linebuff[MAX_LE_LENGTH];
gint64 pos_before = file_tell(ft);
gint length = 0;
if (file_gets(linebuff, MAX_LE_LENGTH, ft) == NULL) {
lua_pushnil(L);
return 0;
}
length = (gint)(file_tell(ft) - pos_before);
if (li... | static int File_read_line(lua_State *L, FILE_T ft) {
static gchar linebuff[MAX_LE_LENGTH];
gint64 pos_before = file_tell(ft);
gint length = 0;
if (file_gets(linebuff, MAX_LE_LENGTH, ft) == NULL) {
lua_pushnil(L);
return 0;
}
length = (gint)(file_tell(ft) - pos_before);
if (le... | static int File_read_line(lua_State *L, FILE_T ft) {
gint64 pos_before = file_tell(ft);
if (file_gets(linebuff, MAX_LE_LENGTH, ft) == NULL) {
return 0;
}
length = (gint)(file_tell(ft) - pos_before);
if (linebuff[length-1] == '\n') {
length--;
if (length > 0 && linebuff[length... | static int File_read_line(lua_State *L, FILE_T ft) {
gint64 pos_before = file_tell(ft);
if (file_gets(linebuff, MAX_LE_LENGTH, ft) == NULL) {
return 0;
}
length = (gint)(file_tell(ft) - pos_before);
if (length > 0 && linebuff[length-1] == '\n') {
length--;
if (length > 0 && l... | static int File_read_line(lua_State *L, FILE_T ft) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
gint64 pos_before = file_tell(ft);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (file_gets(linebuff, MAX_LE_LENGTH, ft) == NULL) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
return 0;
... | static int File_read_line(lua_State *L, FILE_T ft) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
gint64 pos_before = file_tell(ft);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (file_gets(linebuff, MAX_LE_LENGTH, ft) == NULL) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
return 0;
... | static int File_read_line(lua_State *L, FILE_T ft) {
gint64 pos_before = file_tell(ft);
if (file_gets(linebuff, MAX_LE_LENGTH, ft) == NULL) {
return 0;
}
length = (gint)(file_tell(ft) - pos_before);
- if (linebuff[length-1] == '\n') {
+ if (length > 0 && linebuff[length-1] == '\n') {... |
CVE-2017-17997 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-mrdisc.c | dissect_mrdisc | static int dissect_mrdisc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data ) {
proto_tree *tree;
proto_item *item;
guint8 type;
int offset = 0;
guint32 dst = g_htonl(MC_ALL_RERS);
if (memcmp(pinfo->dst.data, &dst, 4)) {
return 0;
}
col_set_str(pinfo->cinfo, ... | static int dissect_mrdisc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data ) {
proto_tree *tree;
proto_item *item;
guint8 type;
int offset = 0;
guint32 dst = g_htonl(MC_ALL_RERS);
if ((pinfo->dst.type != AT_IPv4) || memcmp(pinfo->dst.data, &dst, 4)) {
return 0;
... | static int dissect_mrdisc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data ) {
proto_tree *tree;
proto_item *item;
guint8 type;
int offset = 0;
guint32 dst = g_htonl(MC_ALL_RERS);
if (memcmp(pinfo->dst.data, &dst, 4)) {
return 0;
}
col_set_str(pinfo->cinfo, ... | static int dissect_mrdisc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data ) {
proto_tree *tree;
proto_item *item;
guint8 type;
int offset = 0;
guint32 dst = g_htonl(MC_ALL_RERS);
if ((pinfo->dst.type != AT_IPv4) || memcmp(pinfo->dst.data, &dst, 4)) {
return 0;
... | static int dissect_mrdisc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data ) {
guint32 dst = g_htonl(MC_ALL_RERS);
if (memcmp(pinfo->dst.data, &dst, 4)) {
return 0;
}
col_set_str(pinfo->cinfo, COL_PROTOCOL, "MRDISC");
}
| static int dissect_mrdisc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data ) {
guint32 dst = g_htonl(MC_ALL_RERS);
if ((pinfo->dst.type != AT_IPv4) || memcmp(pinfo->dst.data, &dst, 4)) {
return 0;
}
col_set_str(pinfo->cinfo, COL_PROTOCOL, "MRDISC");
}
| static int dissect_mrdisc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint32 dst = g_htonl(MC_ALL_RERS);
if (memcmp(pinfo->dst.data, &dst, 4)) {
return 0;
}
col_set_str(pinfo->cinfo, COL_PROTOCOL, "MRDISC");
/*... | static int dissect_mrdisc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint32 dst = g_htonl(MC_ALL_RERS);
if ((pinfo->dst.type != AT_IPv4) || memcmp(pinfo->dst.data, &dst, 4)) {
return 0;
}
col_set_str(pinfo->cinfo,... | static int dissect_mrdisc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data ) {
guint32 dst = g_htonl(MC_ALL_RERS);
- if (memcmp(pinfo->dst.data, &dst, 4)) {
+ if ((pinfo->dst.type != AT_IPv4) || memcmp(pinfo->dst.data, &dst, 4)) {
return 0;
}
col_set_str(pinfo->cinfo... |
CVE-2017-18030 | QEMU | https://github.com/qemu/qemu | hw/display/cirrus_vga.c | cirrus_invalidate_region | static void cirrus_invalidate_region(CirrusVGAState * s, int off_begin, int off_pitch, int bytesperline, int lines) {
int y;
int off_cur;
int off_cur_end;
for (y = 0; y < lines; y++) {
off_cur = off_begin;
off_cur_end = (off_cur + bytesperline) & s->cirrus_addr_mask;
memory_regio... | static void cirrus_invalidate_region(CirrusVGAState * s, int off_begin, int off_pitch, int bytesperline, int lines) {
int y;
int off_cur;
int off_cur_end;
if (off_pitch < 0) {
off_begin -= bytesperline - 1;
}
for (y = 0; y < lines; y++) {
off_cur = off_begin;
off_cur_end ... | static void cirrus_invalidate_region(CirrusVGAState * s, int off_begin, int off_pitch, int bytesperline, int lines) {
int y;
int off_cur;
int off_cur_end;
for (y = 0; y < lines; y++) {
off_cur = off_begin;
off_cur_end = (off_cur + bytesperline) & s->cirrus_addr_mask;
memory_regio... | static void cirrus_invalidate_region(CirrusVGAState * s, int off_begin, int off_pitch, int bytesperline, int lines) {
int y;
int off_cur;
int off_cur_end;
if (off_pitch < 0) {
off_begin -= bytesperline - 1;
}
for (y = 0; y < lines; y++) {
off_cur = off_begin;
off_cur_end ... | static void cirrus_invalidate_region(CirrusVGAState * s, int off_begin, int off_pitch, int bytesperline, int lines) {
int off_cur_end;
for (y = 0; y < lines; y++) {
off_cur = off_begin;
off_cur_end = (off_cur + bytesperline) & s->cirrus_addr_mask;
memory_region_set_dirty(&s->vga.vram, of... | static void cirrus_invalidate_region(CirrusVGAState * s, int off_begin, int off_pitch, int bytesperline, int lines) {
int off_cur_end;
if (off_pitch < 0) {
off_begin -= bytesperline - 1;
}
for (y = 0; y < lines; y++) {
off_cur = off_begin;
off_cur_end = (off_cur + bytesperline) &... | static void cirrus_invalidate_region(CirrusVGAState * s, int off_begin, int off_pitch, int bytesperline, int lines) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int off_cur_end;
for (y = 0; y < lines; y++) {
off_cur = off_begin;
off_cur_end = (off_cur + bytesperline) & s->cirrus_addr_mask... | static void cirrus_invalidate_region(CirrusVGAState * s, int off_begin, int off_pitch, int bytesperline, int lines) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int off_cur_end;
if (off_pitch < 0) {
off_begin -= bytesperline - 1;
}
for (y = 0; y < lines; y++) {
off_cur = off_begin... | static void cirrus_invalidate_region(CirrusVGAState * s, int off_begin, int off_pitch, int bytesperline, int lines) {
int off_cur_end;
+ if (off_pitch < 0) {
+ off_begin -= bytesperline - 1;
+ }
for (y = 0; y < lines; y++) {
off_cur = off_begin;
off_cur_end = (off_cur + bytespe... |
CVE-2017-2615 | QEMU | https://github.com/qemu/qemu | hw/display/cirrus_vga.c | blit_region_is_unsafe | static bool blit_region_is_unsafe(struct CirrusVGAState *s, int32_t pitch, int32_t addr) {
if (pitch < 0) {
int64_t min = addr + ((int64_t)s->cirrus_blt_height-1) * pitch;
int32_t max = addr + s->cirrus_blt_width;
if (min < 0 || max > s->vga.vram_size) {
return true;
}
... | static bool blit_region_is_unsafe(struct CirrusVGAState *s, int32_t pitch, int32_t addr) {
if (pitch < 0) {
int64_t min = addr + ((int64_t)s->cirrus_blt_height - 1) * pitch - s->cirrus_blt_width;
if (min < -1 || addr >= s->vga.vram_size) {
return true;
}
} else {
int6... | static bool blit_region_is_unsafe(struct CirrusVGAState *s, int32_t pitch, int32_t addr) {
if (!pitch) {
return true;
}
if (pitch < 0) {
int64_t min = addr + ((int64_t)s->cirrus_blt_height-1) * pitch;
int32_t max = addr + s->cirrus_blt_width;
if (min < 0 || max > s->vga.vram_... | static bool blit_region_is_unsafe(struct CirrusVGAState *s, int32_t pitch, int32_t addr) {
if (!pitch) {
return true;
}
if (pitch < 0) {
int64_t min = addr + ((int64_t)s->cirrus_blt_height - 1) * pitch - s->cirrus_blt_width;
if (min < -1 || addr >= s->vga.vram_size) {
ret... | static bool blit_region_is_unsafe(struct CirrusVGAState *s, int32_t pitch, int32_t addr) {
if (pitch < 0) {
int64_t min = addr + ((int64_t)s->cirrus_blt_height-1) * pitch;
int32_t max = addr + s->cirrus_blt_width;
if (min < 0 || max > s->vga.vram_size) {
return true;
}
... | static bool blit_region_is_unsafe(struct CirrusVGAState *s, int32_t pitch, int32_t addr) {
if (pitch < 0) {
int64_t min = addr + ((int64_t)s->cirrus_blt_height - 1) * pitch - s->cirrus_blt_width;
if (min < -1 || addr >= s->vga.vram_size) {
return true;
}
} else {
}
re... | static bool blit_region_is_unsafe(struct CirrusVGAState *s, int32_t pitch, int32_t addr) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (pitch < 0) {
int64_t min = addr + ((int64_t)s->cirrus_blt_height-1) * pitch;
int32_t max = addr + s->cirrus_blt_width;
if (min < 0 || max > s->vga.... | static bool blit_region_is_unsafe(struct CirrusVGAState *s, int32_t pitch, int32_t addr) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (pitch < 0) {
int64_t min = addr + ((int64_t)s->cirrus_blt_height - 1) * pitch - s->cirrus_blt_width;
if (min < -1 || addr >= s->vga.vram_size) {
... | static bool blit_region_is_unsafe(struct CirrusVGAState *s, int32_t pitch, int32_t addr) {
if (pitch < 0) {
- int64_t min = addr + ((int64_t)s->cirrus_blt_height-1) * pitch;
- int32_t max = addr + s->cirrus_blt_width;
- if (min < 0 || max > s->vga.vram_size) {
+ int64_t min = addr + ((... |
CVE-2017-2630 | QEMU | https://github.com/qemu/qemu | nbd/client.c | drop_sync | static ssize_t drop_sync(QIOChannel *ioc, size_t size) {
ssize_t ret = 0;
char small[1024];
char *buffer;
buffer = sizeof(small) < size ? small : g_malloc(M(65536, size));
while (size > 0) {
ssize_t count = read_sync(ioc, buffer, M(65536, size));
if (count <= 0) {
goto cl... | static ssize_t drop_sync(QIOChannel *ioc, size_t size) {
ssize_t ret = 0;
char small[1024];
char *buffer;
buffer = sizeof(small) >= size ? small : g_malloc(M(65536, size));
while (size > 0) {
ssize_t count = read_sync(ioc, buffer, M(65536, size));
if (count <= 0) {
goto c... | static ssize_t drop_sync(QIOChannel *ioc, size_t size) {
ssize_t ret = 0;
char small[1024];
char *buffer;
buffer = sizeof(small) < size ? small : g_malloc(M(65536, size));
while (size > 0) {
ssize_t count = read_sync(ioc, buffer, M(65536, size));
if (count <= 0) {
goto cl... | static ssize_t drop_sync(QIOChannel *ioc, size_t size) {
ssize_t ret = 0;
char small[1024];
char *buffer;
buffer = sizeof(small) >= size ? small : g_malloc(M(65536, size));
while (size > 0) {
ssize_t count = read_sync(ioc, buffer, M(65536, size));
if (count <= 0) {
goto c... | static ssize_t drop_sync(QIOChannel *ioc, size_t size) {
ssize_t ret = 0;
char *buffer;
buffer = sizeof(small) < size ? small : g_malloc(M(65536, size));
while (size > 0) {
ssize_t count = read_sync(ioc, buffer, M(65536, size));
if (count <= 0) {
goto cleanup;
}
... | static ssize_t drop_sync(QIOChannel *ioc, size_t size) {
ssize_t ret = 0;
char *buffer;
buffer = sizeof(small) >= size ? small : g_malloc(M(65536, size));
while (size > 0) {
ssize_t count = read_sync(ioc, buffer, M(65536, size));
if (count <= 0) {
goto cleanup;
}
... | static ssize_t drop_sync(QIOChannel *ioc, size_t size) {
ssize_t ret = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
char *buffer;
buffer = sizeof(small) < size ? small : g_malloc(M(65536, size));
while (size > 0) {
ssize_t count = read_sync(ioc, buffer, M(65536, size));
if (count... | static ssize_t drop_sync(QIOChannel *ioc, size_t size) {
ssize_t ret = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
char *buffer;
buffer = sizeof(small) >= size ? small : g_malloc(M(65536, size));
while (size > 0) {
ssize_t count = read_sync(ioc, buffer, M(65536, size));
if (coun... | static ssize_t drop_sync(QIOChannel *ioc, size_t size) {
ssize_t ret = 0;
char *buffer;
- buffer = sizeof(small) < size ? small : g_malloc(M(65536, size));
+ buffer = sizeof(small) >= size ? small : g_malloc(M(65536, size));
while (size > 0) {
ssize_t count = read_sync(ioc, buffer, M(6553... |
CVE-2017-3730 | OpenSSL | https://github.com/openssl/openssl | ssl/statem/statem_clnt.c | tls_construct_cke_dhe | static int tls_construct_cke_dhe(SSL *s, unsigned char **p, int *len, int *al) {
DH *dh_clnt = NULL;
const BIGNUM *pub_key;
EVP_PKEY *ckey = NULL, *skey = NULL;
skey = s->s3->peer_tmp;
if (skey == NULL) {
SSLerr(SSL_F_TLS_CONSTRUCT_CKE_DHE, ERR_R_TERNAL_ERROR);
return 0;
}
ck... | static int tls_construct_cke_dhe(SSL *s, unsigned char **p, int *len, int *al) {
DH *dh_clnt = NULL;
const BIGNUM *pub_key;
EVP_PKEY *ckey = NULL, *skey = NULL;
skey = s->s3->peer_tmp;
if (skey == NULL) {
SSLerr(SSL_F_TLS_CONSTRUCT_CKE_DHE, ERR_R_TERNAL_ERROR);
return 0;
}
ck... | static int tls_construct_cke_dhe(SSL *s, WPACKET *pkt, int *al) {
DH *dh_clnt = NULL;
const BIGNUM *pub_key;
EVP_PKEY *ckey = NULL, *skey = NULL;
unsigned char *keybytes = NULL;
skey = s->s3->peer_tmp;
if (skey == NULL) {
goto err;
}
ckey = ssl_generate_pkey(skey);
dh_clnt = ... | static int tls_construct_cke_dhe(SSL *s, WPACKET *pkt, int *al) {
DH *dh_clnt = NULL;
const BIGNUM *pub_key;
EVP_PKEY *ckey = NULL, *skey = NULL;
unsigned char *keybytes = NULL;
skey = s->s3->peer_tmp;
if (skey == NULL) {
goto err;
}
ckey = ssl_generate_pkey(skey);
if (ckey =... | static int tls_construct_cke_dhe(SSL *s, unsigned char **p, int *len, int *al) {
skey = s->s3->peer_tmp;
if (skey == NULL) {
return 0;
}
ckey = ssl_generate_pkey(skey);
dh_clnt = EVP_PKEY_get0_DH(ckey);
if (dh_clnt == NULL || ssl_derive(s, ckey, skey) == 0) {
EVP_PKEY_free(ckey);... | static int tls_construct_cke_dhe(SSL *s, unsigned char **p, int *len, int *al) {
skey = s->s3->peer_tmp;
if (skey == NULL) {
return 0;
}
ckey = ssl_generate_pkey(skey);
if (ckey == NULL) {
SSLerr(SSL_F_TLS_CONSTRUCT_CKE_DHE, ERR_R_TERNAL_ERROR);
return 0;
}
dh_clnt = ... | static int tls_construct_cke_dhe(SSL *s, WPACKET *pkt, int *al) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
skey = s->s3->peer_tmp;
if (skey == NULL) {
goto err;
}
ckey = ssl_generate_pkey(skey);
dh_clnt = EVP_PKEY_get0_DH(ckey);
if (dh_clnt == NULL || ssl_derive(s, ckey, skey, 0... | static int tls_construct_cke_dhe(SSL *s, WPACKET *pkt, int *al) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
skey = s->s3->peer_tmp;
if (skey == NULL) {
goto err;
}
ckey = ssl_generate_pkey(skey);
if (ckey == NULL) {
goto err;
}
dh_clnt = EVP_PKEY_get0_DH(ckey);
if... | static int tls_construct_cke_dhe(SSL *s, unsigned char **p, int *len, int *al) {
skey = s->s3->peer_tmp;
if (skey == NULL) {
return 0;
}
ckey = ssl_generate_pkey(skey);
+ if (ckey == NULL) {
+ SSLerr(SSL_F_TLS_CONSTRUCT_CKE_DHE, ERR_R_TERNAL_ERROR);
+ return 0;
+ }
... |
CVE-2017-3730 | OpenSSL | https://github.com/openssl/openssl | ssl/statem/statem_clnt.c | tls_construct_cke_ecdhe | static int tls_construct_cke_ecdhe(SSL *s, unsigned char **p, int *len, int *al) {
unsigned char *encodedPoint = NULL;
int encoded_pt_len = 0;
EVP_PKEY *ckey = NULL, *skey = NULL;
skey = s->s3->peer_tmp;
if (skey == NULL) {
SSLerr(SSL_F_TLS_CONSTRUCT_CKE_ECDHE, ERR_R_TERNAL_ERROR);
r... | static int tls_construct_cke_ecdhe(SSL *s, unsigned char **p, int *len, int *al) {
unsigned char *encodedPoint = NULL;
int encoded_pt_len = 0;
EVP_PKEY *ckey = NULL, *skey = NULL;
skey = s->s3->peer_tmp;
if (skey == NULL) {
SSLerr(SSL_F_TLS_CONSTRUCT_CKE_ECDHE, ERR_R_TERNAL_ERROR);
r... | static int tls_construct_cke_ecdhe(SSL *s, WPACKET *pkt, int *al) {
unsigned char *encodedPoint = NULL;
size_t encoded_pt_len = 0;
EVP_PKEY *ckey = NULL, *skey = NULL;
int ret = 0;
skey = s->s3->peer_tmp;
if (skey == NULL) {
SSLerr(SSL_F_TLS_CONSTRUCT_CKE_ECDHE, ERR_R_TERNAL_ERROR);
... | static int tls_construct_cke_ecdhe(SSL *s, WPACKET *pkt, int *al) {
unsigned char *encodedPoint = NULL;
size_t encoded_pt_len = 0;
EVP_PKEY *ckey = NULL, *skey = NULL;
int ret = 0;
skey = s->s3->peer_tmp;
if (skey == NULL) {
SSLerr(SSL_F_TLS_CONSTRUCT_CKE_ECDHE, ERR_R_TERNAL_ERROR);
... | static int tls_construct_cke_ecdhe(SSL *s, unsigned char **p, int *len, int *al) {
skey = s->s3->peer_tmp;
if (skey == NULL) {
return 0;
}
ckey = ssl_generate_pkey(skey);
if (ssl_derive(s, ckey, skey) == 0) {
goto err;
}
encoded_pt_len = EVP_PKEY_get1_tls_encodedpoint(ckey, &... | static int tls_construct_cke_ecdhe(SSL *s, unsigned char **p, int *len, int *al) {
skey = s->s3->peer_tmp;
if (skey == NULL) {
return 0;
}
ckey = ssl_generate_pkey(skey);
if (ckey == NULL) {
SSLerr(SSL_F_TLS_CONSTRUCT_CKE_ECDHE, ERR_R_TERNAL_ERROR);
goto err;
}
if (ss... | static int tls_construct_cke_ecdhe(SSL *s, WPACKET *pkt, int *al) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
skey = s->s3->peer_tmp;
if (skey == NULL) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
return 0;
}
ckey = ssl_generate_pkey(skey);
if (ssl_derive(s, ckey, skey, 0) == ... | static int tls_construct_cke_ecdhe(SSL *s, WPACKET *pkt, int *al) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
skey = s->s3->peer_tmp;
if (skey == NULL) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
return 0;
}
ckey = ssl_generate_pkey(skey);
if (ckey == NULL) {
SSLerr(S... | static int tls_construct_cke_ecdhe(SSL *s, unsigned char **p, int *len, int *al) {
skey = s->s3->peer_tmp;
if (skey == NULL) {
return 0;
}
ckey = ssl_generate_pkey(skey);
+ if (ckey == NULL) {
+ SSLerr(SSL_F_TLS_CONSTRUCT_CKE_ECDHE, ERR_R_TERNAL_ERROR);
+ goto err;
+ }
... |
CVE-2017-3731 | OpenSSL | https://github.com/openssl/openssl | crypto/evp/e_aes.c | aes_ccm_ctrl | static int aes_ccm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) {
EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX,c);
switch (type) {
case EVP_CTRL_IT:
cctx->key_set = 0;
cctx->iv_set = 0;
cctx->L = 8;
cctx->M = 12;
cctx->tag_set = 0;
cctx->len_set... | static int aes_ccm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) {
EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX,c);
switch (type) {
case EVP_CTRL_IT:
cctx->key_set = 0;
cctx->iv_set = 0;
cctx->L = 8;
cctx->M = 12;
cctx->tag_set = 0;
cctx->len_set... | static int aes_ccm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) {
EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX,c);
switch (type) {
case EVP_CTRL_IT:
cctx->key_set = 0;
cctx->iv_set = 0;
cctx->L = 8;
cctx->M = 12;
cctx->tag_set = 0;
cctx->len_set... | static int aes_ccm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) {
EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX,c);
switch (type) {
case EVP_CTRL_IT:
cctx->key_set = 0;
cctx->iv_set = 0;
cctx->L = 8;
cctx->M = 12;
cctx->tag_set = 0;
cctx->len_set... | static int aes_ccm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) {
EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX,c);
switch (type) {
case EVP_CTRL_AEAD_TLS1_AAD:
if (arg != EVP_AEAD_TLS1_AAD_LEN) {
return 0;
}
memcpy(EVP_CIPHER_CTX_buf_noconst(c), ptr, arg);
... | static int aes_ccm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) {
EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX,c);
switch (type) {
case EVP_CTRL_AEAD_TLS1_AAD:
if (arg != EVP_AEAD_TLS1_AAD_LEN) {
return 0;
}
memcpy(EVP_CIPHER_CTX_buf_noconst(c), ptr, arg);
... | static int aes_ccm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) {
EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX,c);
switch (type) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
case EVP_CTRL_AEAD_TLS1_AAD:
if (arg != EVP_AEAD_TLS1_AAD_LEN) {
return 0;
}
... | static int aes_ccm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) {
EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX,c);
switch (type) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
case EVP_CTRL_AEAD_TLS1_AAD:
if (arg != EVP_AEAD_TLS1_AAD_LEN) {
return 0;
}
... | static int aes_ccm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) {
EVP_AES_CCM_CTX *cctx = EVP_C_DATA(EVP_AES_CCM_CTX,c);
switch (type) {
case EVP_CTRL_AEAD_TLS1_AAD:
if (arg != EVP_AEAD_TLS1_AAD_LEN) {
return 0;
}
memcpy(EVP_CIPHER_CTX_buf_noconst(c), ptr... |
CVE-2017-3731 | OpenSSL | https://github.com/openssl/openssl | crypto/evp/e_aes.c | aes_gcm_ctrl | static int aes_gcm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) {
EVP_AES_GCM_CTX *gctx = EVP_C_DATA(EVP_AES_GCM_CTX,c);
switch (type) {
case EVP_CTRL_IT:
gctx->key_set = 0;
gctx->iv_set = 0;
gctx->ivlen = EVP_CIPHER_CTX_iv_length(c);
gctx->iv = EVP_CIPHER_CTX_iv_noc... | static int aes_gcm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) {
EVP_AES_GCM_CTX *gctx = EVP_C_DATA(EVP_AES_GCM_CTX,c);
switch (type) {
case EVP_CTRL_IT:
gctx->key_set = 0;
gctx->iv_set = 0;
gctx->ivlen = EVP_CIPHER_CTX_iv_length(c);
gctx->iv = EVP_CIPHER_CTX_iv_noc... | static int aes_gcm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) {
EVP_AES_GCM_CTX *gctx = EVP_C_DATA(EVP_AES_GCM_CTX,c);
switch (type) {
case EVP_CTRL_IT:
gctx->key_set = 0;
gctx->iv_set = 0;
gctx->ivlen = EVP_CIPHER_CTX_iv_length(c);
gctx->iv = EVP_CIPHER_CTX_iv_noc... | static int aes_gcm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) {
EVP_AES_GCM_CTX *gctx = EVP_C_DATA(EVP_AES_GCM_CTX,c);
switch (type) {
case EVP_CTRL_IT:
gctx->key_set = 0;
gctx->iv_set = 0;
gctx->ivlen = EVP_CIPHER_CTX_iv_length(c);
gctx->iv = EVP_CIPHER_CTX_iv_noc... | static int aes_gcm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) {
EVP_AES_GCM_CTX *gctx = EVP_C_DATA(EVP_AES_GCM_CTX,c);
switch (type) {
case EVP_CTRL_AEAD_TLS1_AAD:
if (arg != EVP_AEAD_TLS1_AAD_LEN) {
return 0;
}
memcpy(EVP_CIPHER_CTX_buf_noconst(c), ptr, arg);
... | static int aes_gcm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) {
EVP_AES_GCM_CTX *gctx = EVP_C_DATA(EVP_AES_GCM_CTX,c);
switch (type) {
case EVP_CTRL_AEAD_TLS1_AAD:
if (arg != EVP_AEAD_TLS1_AAD_LEN) {
return 0;
}
memcpy(EVP_CIPHER_CTX_buf_noconst(c), ptr, arg);
... | static int aes_gcm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) {
EVP_AES_GCM_CTX *gctx = EVP_C_DATA(EVP_AES_GCM_CTX,c);
switch (type) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
case EVP_CTRL_AEAD_TLS1_AAD:
if (arg != EVP_AEAD_TLS1_AAD_LEN) {
return 0;
}
... | static int aes_gcm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) {
EVP_AES_GCM_CTX *gctx = EVP_C_DATA(EVP_AES_GCM_CTX,c);
switch (type) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
case EVP_CTRL_AEAD_TLS1_AAD:
if (arg != EVP_AEAD_TLS1_AAD_LEN) {
return 0;
}
... | static int aes_gcm_ctrl(EVP_CIPHER_CTX *c, int type, int arg, void *ptr) {
EVP_AES_GCM_CTX *gctx = EVP_C_DATA(EVP_AES_GCM_CTX,c);
switch (type) {
case EVP_CTRL_AEAD_TLS1_AAD:
if (arg != EVP_AEAD_TLS1_AAD_LEN) {
return 0;
}
memcpy(EVP_CIPHER_CTX_buf_noconst(c), ptr... |
CVE-2017-3731 | OpenSSL | https://github.com/openssl/openssl | crypto/evp/e_chacha20_poly1305.c | chacha20_poly1305_ctrl | static int chacha20_poly1305_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) {
EVP_CHACHA_AEAD_CTX *actx = aead_data(ctx);
switch(type) {
case EVP_CTRL_IT:
if (actx == NULL) {
actx = ctx->cipher_data = OPENSSL_zalloc(sizeof(*actx) + Poly1305_ctx_size());
}
if (act... | static int chacha20_poly1305_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) {
EVP_CHACHA_AEAD_CTX *actx = aead_data(ctx);
switch(type) {
case EVP_CTRL_IT:
if (actx == NULL) {
actx = ctx->cipher_data = OPENSSL_zalloc(sizeof(*actx) + Poly1305_ctx_size());
}
if (act... | static int chacha20_poly1305_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) {
EVP_CHACHA_AEAD_CTX *actx = aead_data(ctx);
switch(type) {
case EVP_CTRL_IT:
if (actx == NULL) {
actx = ctx->cipher_data = OPENSSL_zalloc(sizeof(*actx) + Poly1305_ctx_size());
}
if (act... | static int chacha20_poly1305_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) {
EVP_CHACHA_AEAD_CTX *actx = aead_data(ctx);
switch(type) {
case EVP_CTRL_IT:
if (actx == NULL) {
actx = ctx->cipher_data = OPENSSL_zalloc(sizeof(*actx) + Poly1305_ctx_size());
}
if (act... | static int chacha20_poly1305_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) {
switch(type) {
case EVP_CTRL_AEAD_TLS1_AAD:
if (arg != EVP_AEAD_TLS1_AAD_LEN) {
return 0;
}
{
unsigned char *aad = ptr, temp[POLY1305_BLOCK_SIZE];
len = aad[EVP_AEAD... | static int chacha20_poly1305_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) {
switch(type) {
case EVP_CTRL_AEAD_TLS1_AAD:
if (arg != EVP_AEAD_TLS1_AAD_LEN) {
return 0;
}
{
unsigned char *aad = ptr, temp[POLY1305_BLOCK_SIZE];
len = aad[EVP_AEAD... | static int chacha20_poly1305_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
switch(type) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
case EVP_CTRL_AEAD_TLS1_AAD:
if (arg != EVP_AEAD_TLS1_AAD_LEN) {
return 0;
}
... | static int chacha20_poly1305_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
switch(type) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
case EVP_CTRL_AEAD_TLS1_AAD:
if (arg != EVP_AEAD_TLS1_AAD_LEN) {
return 0;
}
... | static int chacha20_poly1305_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr) {
switch(type) {
case EVP_CTRL_AEAD_TLS1_AAD:
if (arg != EVP_AEAD_TLS1_AAD_LEN) {
return 0;
}
{
unsigned char *aad = ptr, temp[POLY1305_BLOCK_SIZE];
len = aad... |
CVE-2017-5596 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-asterix.c | asterix_fspec_len | static guint8 asterix_fspec_len (tvbuff_t *tvb, guint offset) {
guint8 i;
for (i = 0; (tvb_get_guint8 (tvb, offset + i) & 1) && i < tvb_reported_length (tvb) - offset; i++);
return i + 1;
} | static guint asterix_fspec_len (tvbuff_t *tvb, guint offset) {
guint i;
guint max_length = tvb_reported_length (tvb) - offset;
for (i = 0; (tvb_get_guint8 (tvb, offset + i) & 1) && i < max_length; i++);
return i + 1;
} | static guint8 asterix_fspec_len (tvbuff_t *tvb, guint offset) {
guint8 i;
for (i = 0; (tvb_get_guint8 (tvb, offset + i) & 1) && i < tvb_reported_length (tvb) - offset; i++);
return i + 1;
} | static guint asterix_fspec_len (tvbuff_t *tvb, guint offset) {
guint i;
guint max_length = tvb_reported_length (tvb) - offset;
for (i = 0; (tvb_get_guint8 (tvb, offset + i) & 1) && i < max_length; i++);
return i + 1;
} | static guint8 asterix_fspec_len (tvbuff_t *tvb, guint offset) {
guint8 i;
for (i = 0; (tvb_get_guint8 (tvb, offset + i) & 1) && i < tvb_reported_length (tvb) - offset; i++);
return i + 1;
}
| static guint asterix_fspec_len (tvbuff_t *tvb, guint offset) {
guint i;
guint max_length = tvb_reported_length (tvb) - offset;
for (i = 0; (tvb_get_guint8 (tvb, offset + i) & 1) && i < max_length; i++);
return i + 1;
}
| static guint8 asterix_fspec_len (tvbuff_t *tvb, guint offset) {
guint8 i;
for (i = 0; (tvb_get_guint8 (tvb, offset + i) & 1) && i < tvb_reported_length (tvb) - offset; i++);
return i + 1;
}
| static guint asterix_fspec_len (tvbuff_t *tvb, guint offset) {
guint i;
guint max_length = tvb_reported_length (tvb) - offset;
for (i = 0; (tvb_get_guint8 (tvb, offset + i) & 1) && i < max_length; i++);
return i + 1;
} | -static guint8 asterix_fspec_len (tvbuff_t *tvb, guint offset) {
- guint8 i;
- for (i = 0; (tvb_get_guint8 (tvb, offset + i) & 1) && i < tvb_reported_length (tvb) - offset; i++);
+static guint asterix_fspec_len (tvbuff_t *tvb, guint offset) {
+ guint i;
+ guint max_length = tvb_reported_length (tvb) - offse... |
CVE-2017-5597 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-dhcpv6.c | dissect_cablelabs_specific_opts | static void dissect_cablelabs_specific_opts(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int voff, int len) {
guint16 type, tlv_len, opt_len, sub_value;
proto_item *ti;
proto_item *ti2;
proto_tree *subtree;
proto_tree *subtree2;
gint tlv5_cap_index, tlv5_counter, tl... | static void dissect_cablelabs_specific_opts(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int voff, int len) {
guint type, sub_value;
proto_item *ti;
proto_item *ti2;
proto_tree *subtree;
proto_tree *subtree2;
int tlv5_cap_index, tlv5_counter, tlv5_cap_len;
int o... | static void dissect_cablelabs_specific_opts(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int voff, int len) {
guint16 type, tlv_len, opt_len, sub_value;
proto_item *ti;
proto_item *ti2;
proto_tree *subtree;
proto_tree *subtree2;
gint tlv5_cap_index, tlv5_counter, tl... | static void dissect_cablelabs_specific_opts(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int voff, int len) {
guint type, sub_value;
proto_item *ti;
proto_item *ti2;
proto_tree *subtree;
proto_tree *subtree2;
int tlv5_cap_index, tlv5_counter, tlv5_cap_len;
int o... | static void dissect_cablelabs_specific_opts(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int voff, int len) {
guint16 type, tlv_len, opt_len, sub_value;
proto_item *ti;
proto_tree *subtree2;
gint tlv5_cap_index, tlv5_counter, tlv5_cap_len;
int off = voff, sub_off, i, fi... | static void dissect_cablelabs_specific_opts(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int voff, int len) {
guint type, sub_value;
proto_item *ti;
proto_tree *subtree2;
int tlv5_cap_index, tlv5_counter, tlv5_cap_len;
int off = voff, sub_off, i, tlv_len, field_len, opt... | static void dissect_cablelabs_specific_opts(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int voff, int len) {
guint16 type, tlv_len, opt_len, sub_value;
proto_item *ti;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
proto_tree *subtree2;
gint tlv5_cap_index, tlv5_counter... | static void dissect_cablelabs_specific_opts(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int voff, int len) {
guint type, sub_value;
proto_item *ti;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
proto_tree *subtree2;
int tlv5_cap_index, tlv5_counter, tlv5_cap_len;
i... | static void dissect_cablelabs_specific_opts(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int voff, int len) {
- guint16 type, tlv_len, opt_len, sub_value;
+ guint type, sub_value;
proto_item *ti;
proto_tree *subtree2;
- gint tlv5_cap_index, tlv5_counter, tlv5_cap_len;
-... |
CVE-2017-5597 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-dhcpv6.c | dissect_packetcable_cccV6_option | static int dissect_packetcable_cccV6_option(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int optoff, int optend) {
int suboptoff = optoff;
guint16 subopt, subopt_len;
guint8 type;
proto_item *vti, *ti;
proto_tree *pkt_s_tree;
int i;
subopt = tvb_get_ntohs(tvb, o... | static int dissect_packetcable_cccV6_option(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int optoff, int optend) {
int suboptoff = optoff;
guint16 subopt, subopt_len;
guint8 type;
proto_item *vti, *ti;
proto_tree *pkt_s_tree;
int i;
subopt = tvb_get_ntohs(tvb, o... | static int dissect_packetcable_cccV6_option(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int optoff, int optend) {
int suboptoff = optoff;
guint16 subopt, subopt_len;
guint8 type;
proto_item *vti, *ti;
proto_tree *pkt_s_tree;
int i;
subopt = tvb_get_ntohs(tvb, o... | static int dissect_packetcable_cccV6_option(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int optoff, int optend) {
int suboptoff = optoff;
guint16 subopt, subopt_len;
guint8 type;
proto_item *vti, *ti;
proto_tree *pkt_s_tree;
int i;
subopt = tvb_get_ntohs(tvb, o... | static int dissect_packetcable_cccV6_option(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int optoff, int optend) {
int suboptoff = optoff;
subopt = tvb_get_ntohs(tvb, optoff);
suboptoff += 2;
subopt_len = tvb_get_ntohs(tvb, suboptoff);
suboptoff += 2;
if (optend <= ... | static int dissect_packetcable_cccV6_option(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int optoff, int optend) {
int suboptoff = optoff;
subopt = tvb_get_ntohs(tvb, optoff);
suboptoff += 2;
subopt_len = tvb_get_ntohs(tvb, suboptoff);
suboptoff += 2;
if (optend <= ... | static int dissect_packetcable_cccV6_option(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int optoff, int optend) {
int suboptoff = optoff;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
subopt = tvb_get_ntohs(tvb, optoff);
suboptoff += 2;
subopt_len = tvb_get_ntohs(tvb, ... | static int dissect_packetcable_cccV6_option(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int optoff, int optend) {
int suboptoff = optoff;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
subopt = tvb_get_ntohs(tvb, optoff);
suboptoff += 2;
subopt_len = tvb_get_ntohs(tvb, ... | static int dissect_packetcable_cccV6_option(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int optoff, int optend) {
int suboptoff = optoff;
subopt = tvb_get_ntohs(tvb, optoff);
suboptoff += 2;
subopt_len = tvb_get_ntohs(tvb, suboptoff);
suboptoff += 2;
if (opt... |
CVE-2017-5597 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-dhcpv6.c | dissect_packetcable_ccc_option | static int dissect_packetcable_ccc_option(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int optoff, int optend) {
int suboptoff = optoff;
guint16 subopt, subopt_len;
proto_item *vti;
proto_tree *pkt_s_tree;
subopt = tvb_get_ntohs(tvb, optoff);
suboptoff += 2;
sub... | static int dissect_packetcable_ccc_option(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int optoff, int optend) {
int suboptoff = optoff;
guint16 subopt, subopt_len;
proto_item *vti;
proto_tree *pkt_s_tree;
subopt = tvb_get_ntohs(tvb, optoff);
suboptoff += 2;
sub... | static int dissect_packetcable_ccc_option(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int optoff, int optend) {
int suboptoff = optoff;
guint16 subopt, subopt_len;
proto_item *vti;
proto_tree *pkt_s_tree;
subopt = tvb_get_ntohs(tvb, optoff);
suboptoff += 2;
sub... | static int dissect_packetcable_ccc_option(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int optoff, int optend) {
int suboptoff = optoff;
guint16 subopt, subopt_len;
proto_item *vti;
proto_tree *pkt_s_tree;
subopt = tvb_get_ntohs(tvb, optoff);
suboptoff += 2;
sub... | static int dissect_packetcable_ccc_option(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int optoff, int optend) {
int suboptoff = optoff;
subopt = tvb_get_ntohs(tvb, optoff);
suboptoff += 2;
subopt_len = tvb_get_ntohs(tvb, suboptoff);
suboptoff += 2;
if (optend <= 0)... | static int dissect_packetcable_ccc_option(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int optoff, int optend) {
int suboptoff = optoff;
subopt = tvb_get_ntohs(tvb, optoff);
suboptoff += 2;
subopt_len = tvb_get_ntohs(tvb, suboptoff);
suboptoff += 2;
if (optend <= 0)... | static int dissect_packetcable_ccc_option(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int optoff, int optend) {
int suboptoff = optoff;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
subopt = tvb_get_ntohs(tvb, optoff);
suboptoff += 2;
subopt_len = tvb_get_ntohs(tvb, su... | static int dissect_packetcable_ccc_option(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int optoff, int optend) {
int suboptoff = optoff;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
subopt = tvb_get_ntohs(tvb, optoff);
suboptoff += 2;
subopt_len = tvb_get_ntohs(tvb, su... | static int dissect_packetcable_ccc_option(proto_tree *v_tree, proto_item *v_item, packet_info *pinfo, tvbuff_t *tvb, int optoff, int optend) {
int suboptoff = optoff;
subopt = tvb_get_ntohs(tvb, optoff);
suboptoff += 2;
subopt_len = tvb_get_ntohs(tvb, suboptoff);
suboptoff += 2;
if (opten... |
CVE-2017-5667 | QEMU | https://github.com/qemu/qemu | hw/sd/sdhci.c | sdhci_sdma_transfer_multi_blocks | static void sdhci_sdma_transfer_multi_blocks(SDHCIState *s) {
bool page_aligned = false;
unsigned int n, begin;
const uint16_t block_size = s->blksize & 0x0fff;
uint32_t boundary_chk = 1 << (((s->blksize & 0xf000) >> 12) + 12);
uint32_t boundary_count = boundary_chk - (s->sdmasysad % boundary_chk);
... | static void sdhci_sdma_transfer_multi_blocks(SDHCIState *s) {
bool page_aligned = false;
unsigned int n, begin;
const uint16_t block_size = s->blksize & 0x0fff;
uint32_t boundary_chk = 1 << (((s->blksize & 0xf000) >> 12) + 12);
uint32_t boundary_count = boundary_chk - (s->sdmasysad % boundary_chk);
... | static void sdhci_sdma_transfer_multi_blocks(SDHCIState *s) {
bool page_aligned = false;
unsigned int n, begin;
const uint16_t block_size = s->blksize & 0x0fff;
uint32_t boundary_chk = 1 << (((s->blksize & 0xf000) >> 12) + 12);
uint32_t boundary_count = boundary_chk - (s->sdmasysad % boundary_chk);
... | static void sdhci_sdma_transfer_multi_blocks(SDHCIState *s) {
bool page_aligned = false;
unsigned int n, begin;
const uint16_t block_size = s->blksize & 0x0fff;
uint32_t boundary_chk = 1 << (((s->blksize & 0xf000) >> 12) + 12);
uint32_t boundary_count = boundary_chk - (s->sdmasysad % boundary_chk);
... | static void sdhci_sdma_transfer_multi_blocks(SDHCIState *s) {
bool page_aligned = false;
const uint16_t block_size = s->blksize & 0x0fff;
uint32_t boundary_chk = 1 << (((s->blksize & 0xf000) >> 12) + 12);
uint32_t boundary_count = boundary_chk - (s->sdmasysad % boundary_chk);
if ((s->sdmasysad % bou... | static void sdhci_sdma_transfer_multi_blocks(SDHCIState *s) {
bool page_aligned = false;
const uint16_t block_size = s->blksize & 0x0fff;
uint32_t boundary_chk = 1 << (((s->blksize & 0xf000) >> 12) + 12);
uint32_t boundary_count = boundary_chk - (s->sdmasysad % boundary_chk);
if ((s->sdmasysad % bou... | static void sdhci_sdma_transfer_multi_blocks(SDHCIState *s) {
bool page_aligned = false;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const uint16_t block_size = s->blksize & 0x0fff;
uint32_t boundary_chk = 1 << (((s->blksize & 0xf000) >> 12) + 12);
uint32_t boundary_count = boundary_chk - (s->sdma... | static void sdhci_sdma_transfer_multi_blocks(SDHCIState *s) {
bool page_aligned = false;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const uint16_t block_size = s->blksize & 0x0fff;
uint32_t boundary_chk = 1 << (((s->blksize & 0xf000) >> 12) + 12);
uint32_t boundary_count = boundary_chk - (s->sdma... | static void sdhci_sdma_transfer_multi_blocks(SDHCIState *s) {
bool page_aligned = false;
const uint16_t block_size = s->blksize & 0x0fff;
uint32_t boundary_chk = 1 << (((s->blksize & 0xf000) >> 12) + 12);
uint32_t boundary_count = boundary_chk - (s->sdmasysad % boundary_chk);
if ((s->sdmasysad... |
CVE-2017-5931 | QEMU | https://github.com/qemu/qemu | hw/virtio/virtio-crypto.c | virtio_crypto_sym_op_helper | static CryptoDevBackendSymOpInfo * virtio_crypto_sym_op_helper(VirtIODevice *vdev, struct virtio_crypto_cipher_para *cipher_para, struct virtio_crypto_alg_chain_data_para *alg_chain_para,
struct iovec *iov, unsigned int out_num) {
VirtIOCrypto *vcrypto = VIRTIO_CRYPTO(vdev);
CryptoDevBackendSymOpInfo *o... | static CryptoDevBackendSymOpInfo * virtio_crypto_sym_op_helper(VirtIODevice *vdev, struct virtio_crypto_cipher_para *cipher_para, struct virtio_crypto_alg_chain_data_para *alg_chain_para,
struct iovec *iov, unsigned int out_num) {
VirtIOCrypto *vcrypto = VIRTIO_CRYPTO(vdev);
CryptoDevBackendSymOpInfo *o... | static CryptoDevBackendSymOpInfo * virtio_crypto_sym_op_helper(VirtIODevice *vdev, struct virtio_crypto_cipher_para *cipher_para, struct virtio_crypto_alg_chain_data_para *alg_chain_para,
struct iovec *iov, unsigned int out_num) {
VirtIOCrypto *vcrypto = VIRTIO_CRYPTO(vdev);
CryptoDevBackendSymOpInfo *o... | static CryptoDevBackendSymOpInfo * virtio_crypto_sym_op_helper(VirtIODevice *vdev, struct virtio_crypto_cipher_para *cipher_para, struct virtio_crypto_alg_chain_data_para *alg_chain_para,
struct iovec *iov, unsigned int out_num) {
VirtIOCrypto *vcrypto = VIRTIO_CRYPTO(vdev);
CryptoDevBackendSymOpInfo *o... | static CryptoDevBackendSymOpInfo * virtio_crypto_sym_op_helper(VirtIODevice *vdev, struct virtio_crypto_cipher_para *cipher_para, struct virtio_crypto_alg_chain_data_para *alg_chain_para,
struct iovec *iov, unsigned int out_num) {
uint32_t aad_len = 0, hash_result_len = 0;
uint32_t cipher_start_src_offs... | static CryptoDevBackendSymOpInfo * virtio_crypto_sym_op_helper(VirtIODevice *vdev, struct virtio_crypto_cipher_para *cipher_para, struct virtio_crypto_alg_chain_data_para *alg_chain_para,
struct iovec *iov, unsigned int out_num) {
uint32_t aad_len = 0, hash_result_len = 0;
uint32_t cipher_start_src_offs... | static CryptoDevBackendSymOpInfo * virtio_crypto_sym_op_helper(VirtIODevice *vdev, struct virtio_crypto_cipher_para *cipher_para, struct virtio_crypto_alg_chain_data_para *alg_chain_para,
struct iovec *iov, unsigned int out_num) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
uint32_t aad_len = 0, hash_... | static CryptoDevBackendSymOpInfo * virtio_crypto_sym_op_helper(VirtIODevice *vdev, struct virtio_crypto_cipher_para *cipher_para, struct virtio_crypto_alg_chain_data_para *alg_chain_para,
struct iovec *iov, unsigned int out_num) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
uint32_t aad_len = 0, hash_... | static CryptoDevBackendSymOpInfo * virtio_crypto_sym_op_helper(VirtIODevice *vdev, struct virtio_crypto_cipher_para *cipher_para, struct virtio_crypto_alg_chain_data_para *alg_chain_para,
struct iovec *iov, unsigned int out_num) {
uint32_t aad_len = 0, hash_result_len = 0;
uint32_t cipher_start_src_... |
CVE-2017-6058 | QEMU | https://github.com/qemu/qemu | hw/net/net_rx_pkt.c | net_rx_pkt_attach_iovec | void net_rx_pkt_attach_iovec(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t iovoff, bool strip_vlan) {
uint16_t tci = 0;
uint16_t ploff = iovoff;
assert(pkt);
pkt->vlan_stripped = false;
if (strip_vlan) {
pkt->vlan_stripped = eth_strip_vlan(iov, iovcnt, iovoff, pkt->ehdr_b... | void net_rx_pkt_attach_iovec(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t iovoff, bool strip_vlan) {
uint16_t tci = 0;
uint16_t ploff = iovoff;
assert(pkt);
if (strip_vlan) {
pkt->ehdr_buf_len = eth_strip_vlan(iov, iovcnt, iovoff, pkt->ehdr_buf, &ploff, &tci);
} else {
... | void net_rx_pkt_attach_iovec(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t iovoff, bool strip_vlan) {
uint16_t tci = 0;
uint16_t ploff = iovoff;
assert(pkt);
pkt->vlan_stripped = false;
if (strip_vlan) {
pkt->vlan_stripped = eth_strip_vlan(iov, iovcnt, iovoff, pkt->ehdr_b... | void net_rx_pkt_attach_iovec(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t iovoff, bool strip_vlan) {
uint16_t tci = 0;
uint16_t ploff = iovoff;
assert(pkt);
if (strip_vlan) {
pkt->ehdr_buf_len = eth_strip_vlan(iov, iovcnt, iovoff, pkt->ehdr_buf, &ploff, &tci);
} else {
... | void net_rx_pkt_attach_iovec(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t iovoff, bool strip_vlan) {
uint16_t tci = 0;
uint16_t ploff = iovoff;
assert(pkt);
pkt->vlan_stripped = false;
if (strip_vlan) {
pkt->vlan_stripped = eth_strip_vlan(iov, iovcnt, iovoff, pkt->ehdr_b... | void net_rx_pkt_attach_iovec(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t iovoff, bool strip_vlan) {
uint16_t tci = 0;
uint16_t ploff = iovoff;
assert(pkt);
if (strip_vlan) {
pkt->ehdr_buf_len = eth_strip_vlan(iov, iovcnt, iovoff, pkt->ehdr_buf, &ploff, &tci);
} else {
... | void net_rx_pkt_attach_iovec(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t iovoff, bool strip_vlan) {
uint16_t tci = 0;
uint16_t ploff = iovoff;
assert(pkt);
pkt->vlan_stripped = false;
if (strip_vlan) {
pkt->vlan_stripped = eth_strip_vlan(iov, iovcnt, iovoff, pkt->ehdr_b... | void net_rx_pkt_attach_iovec(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t iovoff, bool strip_vlan) {
uint16_t tci = 0;
uint16_t ploff = iovoff;
assert(pkt);
if (strip_vlan) {
pkt->ehdr_buf_len = eth_strip_vlan(iov, iovcnt, iovoff, pkt->ehdr_buf, &ploff, &tci);
} else {
... | void net_rx_pkt_attach_iovec(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t iovoff, bool strip_vlan) {
uint16_t tci = 0;
uint16_t ploff = iovoff;
assert(pkt);
- pkt->vlan_stripped = false;
if (strip_vlan) {
- pkt->vlan_stripped = eth_strip_vlan(iov, iovcnt, iovoff, pkt-... |
CVE-2017-6058 | QEMU | https://github.com/qemu/qemu | hw/net/net_rx_pkt.c | net_rx_pkt_attach_iovec_ex | void net_rx_pkt_attach_iovec_ex(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t iovoff, bool strip_vlan, uint16_t vet) {
uint16_t tci = 0;
uint16_t ploff = iovoff;
assert(pkt);
pkt->vlan_stripped = false;
if (strip_vlan) {
pkt->vlan_stripped = eth_strip_vlan_ex(iov, iovcnt,... | void net_rx_pkt_attach_iovec_ex(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t iovoff, bool strip_vlan, uint16_t vet) {
uint16_t tci = 0;
uint16_t ploff = iovoff;
assert(pkt);
if (strip_vlan) {
pkt->ehdr_buf_len = eth_strip_vlan_ex(iov, iovcnt, iovoff, vet, pkt->ehdr_buf, &plo... | void net_rx_pkt_attach_iovec_ex(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t iovoff, bool strip_vlan, uint16_t vet) {
uint16_t tci = 0;
uint16_t ploff = iovoff;
assert(pkt);
pkt->vlan_stripped = false;
if (strip_vlan) {
pkt->vlan_stripped = eth_strip_vlan_ex(iov, iovcnt,... | void net_rx_pkt_attach_iovec_ex(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t iovoff, bool strip_vlan, uint16_t vet) {
uint16_t tci = 0;
uint16_t ploff = iovoff;
assert(pkt);
if (strip_vlan) {
pkt->ehdr_buf_len = eth_strip_vlan_ex(iov, iovcnt, iovoff, vet, pkt->ehdr_buf, &plo... | void net_rx_pkt_attach_iovec_ex(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t iovoff, bool strip_vlan, uint16_t vet) {
uint16_t tci = 0;
uint16_t ploff = iovoff;
assert(pkt);
pkt->vlan_stripped = false;
if (strip_vlan) {
pkt->vlan_stripped = eth_strip_vlan_ex(iov, iovcnt,... | void net_rx_pkt_attach_iovec_ex(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t iovoff, bool strip_vlan, uint16_t vet) {
uint16_t tci = 0;
uint16_t ploff = iovoff;
assert(pkt);
if (strip_vlan) {
pkt->ehdr_buf_len = eth_strip_vlan_ex(iov, iovcnt, iovoff, vet, pkt->ehdr_buf, &plo... | void net_rx_pkt_attach_iovec_ex(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t iovoff, bool strip_vlan, uint16_t vet) {
uint16_t tci = 0;
uint16_t ploff = iovoff;
assert(pkt);
pkt->vlan_stripped = false;
if (strip_vlan) {
pkt->vlan_stripped = eth_strip_vlan_ex(iov, iovcnt,... | void net_rx_pkt_attach_iovec_ex(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t iovoff, bool strip_vlan, uint16_t vet) {
uint16_t tci = 0;
uint16_t ploff = iovoff;
assert(pkt);
if (strip_vlan) {
pkt->ehdr_buf_len = eth_strip_vlan_ex(iov, iovcnt, iovoff, vet, pkt->ehdr_buf, &plo... | void net_rx_pkt_attach_iovec_ex(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t iovoff, bool strip_vlan, uint16_t vet) {
uint16_t tci = 0;
uint16_t ploff = iovoff;
assert(pkt);
- pkt->vlan_stripped = false;
if (strip_vlan) {
- pkt->vlan_stripped = eth_strip_vlan_ex(iov, ... |
CVE-2017-6058 | QEMU | https://github.com/qemu/qemu | hw/net/net_rx_pkt.c | net_rx_pkt_dump | void net_rx_pkt_dump(struct NetRxPkt *pkt) {
assert(pkt);
printf("RX PKT: tot_len: %d, vlan_stripped: %d, vlan_tag: %d\n", pkt->tot_len, pkt->vlan_stripped, pkt->tci);
} | void net_rx_pkt_dump(struct NetRxPkt *pkt) {
assert(pkt);
printf("RX PKT: tot_len: %d, ehdr_buf_len: %lu, vlan_tag: %d\n", pkt->tot_len, pkt->ehdr_buf_len, pkt->tci);
} | void net_rx_pkt_dump(struct NetRxPkt *pkt) {
NetRxPkt *pkt = (NetRxPkt *)pkt;
assert(pkt);
printf("RX PKT: tot_len: %d, vlan_stripped: %d, vlan_tag: %d\n", pkt->tot_len, pkt->vlan_stripped, pkt->tci);
} | void net_rx_pkt_dump(struct NetRxPkt *pkt) {
NetRxPkt *pkt = (NetRxPkt *)pkt;
assert(pkt);
printf("RX PKT: tot_len: %d, ehdr_buf_len: %lu, vlan_tag: %d\n", pkt->tot_len, pkt->ehdr_buf_len, pkt->tci);
} | void net_rx_pkt_dump(struct NetRxPkt *pkt) {
assert(pkt);
printf("RX PKT: tot_len: %d, vlan_stripped: %d, vlan_tag: %d\n", pkt->tot_len, pkt->vlan_stripped, pkt->tci);
}
| void net_rx_pkt_dump(struct NetRxPkt *pkt) {
assert(pkt);
printf("RX PKT: tot_len: %d, ehdr_buf_len: %lu, vlan_tag: %d\n", pkt->tot_len, pkt->ehdr_buf_len, pkt->tci);
}
| void net_rx_pkt_dump(struct NetRxPkt *pkt) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
assert(pkt);
printf("RX PKT: tot_len: %d, vlan_stripped: %d, vlan_tag: %d\n", pkt->tot_len, pkt->vlan_stripped, pkt->tci);
}
| void net_rx_pkt_dump(struct NetRxPkt *pkt) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
assert(pkt);
printf("RX PKT: tot_len: %d, ehdr_buf_len: %lu, vlan_tag: %d\n", pkt->tot_len, pkt->ehdr_buf_len, pkt->tci);
} | void net_rx_pkt_dump(struct NetRxPkt *pkt) {
assert(pkt);
- printf("RX PKT: tot_len: %d, vlan_stripped: %d, vlan_tag: %d\n", pkt->tot_len, pkt->vlan_stripped, pkt->tci);
+ printf("RX PKT: tot_len: %d, ehdr_buf_len: %lu, vlan_tag: %d\n", pkt->tot_len, pkt->ehdr_buf_len, pkt->tci);
} |
CVE-2017-6058 | QEMU | https://github.com/qemu/qemu | hw/net/net_rx_pkt.c | net_rx_pkt_is_vlan_stripped | bool net_rx_pkt_is_vlan_stripped(struct NetRxPkt *pkt) {
assert(pkt);
return pkt->vlan_stripped;
} | bool net_rx_pkt_is_vlan_stripped(struct NetRxPkt *pkt) {
assert(pkt);
return pkt->ehdr_buf_len ? true : false;
} | bool net_rx_pkt_is_vlan_stripped(struct NetRxPkt *pkt) {
assert(pkt);
return pkt->vlan_stripped;
} | bool net_rx_pkt_is_vlan_stripped(struct NetRxPkt *pkt) {
assert(pkt);
return pkt->ehdr_buf_len ? true : false;
} | bool net_rx_pkt_is_vlan_stripped(struct NetRxPkt *pkt) {
assert(pkt);
return pkt->vlan_stripped;
}
| bool net_rx_pkt_is_vlan_stripped(struct NetRxPkt *pkt) {
assert(pkt);
return pkt->ehdr_buf_len ? true : false;
}
| bool net_rx_pkt_is_vlan_stripped(struct NetRxPkt *pkt) {
assert(pkt);
return pkt->vlan_stripped;
}
| bool net_rx_pkt_is_vlan_stripped(struct NetRxPkt *pkt) {
assert(pkt);
return pkt->ehdr_buf_len ? true : false;
} | bool net_rx_pkt_is_vlan_stripped(struct NetRxPkt *pkt) {
assert(pkt);
- return pkt->vlan_stripped;
+ return pkt->ehdr_buf_len ? true : false;
} |
CVE-2017-6058 | QEMU | https://github.com/qemu/qemu | hw/net/net_rx_pkt.c | net_rx_pkt_pull_data | static void net_rx_pkt_pull_data(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t ploff) {
if (pkt->vlan_stripped) {
net_rx_pkt_iovec_realloc(pkt, iovcnt + 1);
pkt->vec[0].iov_base = pkt->ehdr_buf;
pkt->vec[0].iov_len = sizeof(pkt->ehdr_buf);
pkt->tot_len = iov_size(... | static void net_rx_pkt_pull_data(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t ploff) {
if (pkt->ehdr_buf_len) {
net_rx_pkt_iovec_realloc(pkt, iovcnt + 1);
pkt->vec[0].iov_base = pkt->ehdr_buf;
pkt->vec[0].iov_len = pkt->ehdr_buf_len;
pkt->tot_len = iov_size(iov, ... | static void net_rx_pkt_pull_data(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t ploff) {
if (pkt->vlan_stripped) {
net_rx_pkt_iovec_realloc(pkt, iovcnt + 1);
pkt->vec[0].iov_base = pkt->ehdr_buf;
pkt->vec[0].iov_len = sizeof(pkt->ehdr_buf);
pkt->tot_len = iov_size(... | static void net_rx_pkt_pull_data(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t ploff) {
if (pkt->ehdr_buf_len) {
net_rx_pkt_iovec_realloc(pkt, iovcnt + 1);
pkt->vec[0].iov_base = pkt->ehdr_buf;
pkt->vec[0].iov_len = pkt->ehdr_buf_len;
pkt->tot_len = iov_size(iov, ... | static void net_rx_pkt_pull_data(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t ploff) {
if (pkt->vlan_stripped) {
net_rx_pkt_iovec_realloc(pkt, iovcnt + 1);
pkt->vec[0].iov_base = pkt->ehdr_buf;
pkt->vec[0].iov_len = sizeof(pkt->ehdr_buf);
pkt->tot_len = iov_size(... | static void net_rx_pkt_pull_data(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t ploff) {
if (pkt->ehdr_buf_len) {
net_rx_pkt_iovec_realloc(pkt, iovcnt + 1);
pkt->vec[0].iov_base = pkt->ehdr_buf;
pkt->vec[0].iov_len = pkt->ehdr_buf_len;
pkt->tot_len = iov_size(iov, ... | static void net_rx_pkt_pull_data(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t ploff) {
if (pkt->vlan_stripped) {
net_rx_pkt_iovec_realloc(pkt, iovcnt + 1);
pkt->vec[0].iov_base = pkt->ehdr_buf;
pkt->vec[0].iov_len = sizeof(pkt->ehdr_buf);
pkt->tot_len = iov_size(... | static void net_rx_pkt_pull_data(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t ploff) {
if (pkt->ehdr_buf_len) {
net_rx_pkt_iovec_realloc(pkt, iovcnt + 1);
pkt->vec[0].iov_base = pkt->ehdr_buf;
pkt->vec[0].iov_len = pkt->ehdr_buf_len;
pkt->tot_len = iov_size(iov, ... | static void net_rx_pkt_pull_data(struct NetRxPkt *pkt, const struct iovec *iov, int iovcnt, size_t ploff) {
- if (pkt->vlan_stripped) {
+ if (pkt->ehdr_buf_len) {
net_rx_pkt_iovec_realloc(pkt, iovcnt + 1);
pkt->vec[0].iov_base = pkt->ehdr_buf;
- pkt->vec[0].iov_len = sizeof(pkt->ehdr_buf... |
CVE-2017-6418 | ClamAV | https://github.com/Cisco-Talos/clamav | libclamav/message.c | messageAddArgument | void messageAddArgument(message *m, const char *arg) {
int offset;
char *p;
assert(m != NULL);
if(arg == NULL) {
return;
}
while(isspace(*arg))
arg++;
if(*arg == '\0') {
return;
}
cli_dbgmsg("messageAddArgument, arg='%s'\n", arg);
if(!usefulArg(arg)) {
... | void messageAddArgument(message *m, const char *arg) {
int offset;
char *p;
assert(m != NULL);
if(arg == NULL) {
return;
}
while(isspace(*arg))
arg++;
if(*arg == '\0') {
return;
}
cli_dbgmsg("messageAddArgument, arg='%s'\n", arg);
if(!usefulArg(arg)) {
... | void messageAddArgument(message *m, const char *arg) {
int offset;
char *p;
assert(m != NULL);
if(arg == NULL) {
return;
}
while(isspace(*arg))
arg++;
if(*arg == '\0') {
return;
}
cli_dbgmsg("messageAddArgument, arg='%s'\n", arg);
if(!usefulArg(arg)) {
... | void messageAddArgument(message *m, const char *arg) {
int offset;
char *p;
assert(m != NULL);
if(arg == NULL) {
return;
}
while(isspace(*arg))
arg++;
if(*arg == '\0') {
return;
}
cli_dbgmsg("messageAddArgument, arg='%s'\n", arg);
if(!usefulArg(arg)) {
... | void messageAddArgument(message *m, const char *arg) {
assert(m != NULL);
if(arg == NULL) {
return;
}
while(isspace(*arg))
arg++;
cli_dbgmsg("messageAddArgument, arg='%s'\n", arg);
if(!usefulArg(arg)) {
return;
}
for(offset = 0; offset < m->numberOfArguments; offs... | void messageAddArgument(message *m, const char *arg) {
assert(m != NULL);
if(arg == NULL) {
return;
}
while(isspace(*arg))
arg++;
cli_dbgmsg("messageAddArgument, arg='%s'\n", arg);
if(!usefulArg(arg)) {
return;
}
for(offset = 0; offset < m->numberOfArguments; offs... | void messageAddArgument(message *m, const char *arg) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
assert(m != NULL);
if(arg == NULL) {
return;
}
while(isspace(*arg))
arg++;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
cli_dbgmsg("messageAddArgument, arg='%s'\n", arg);
... | void messageAddArgument(message *m, const char *arg) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
assert(m != NULL);
if(arg == NULL) {
return;
}
while(isspace(*arg))
arg++;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
cli_dbgmsg("messageAddArgument, arg='%s'\n", arg);
... | void messageAddArgument(message *m, const char *arg) {
assert(m != NULL);
if(arg == NULL) {
return;
}
while(isspace(*arg))
arg++;
cli_dbgmsg("messageAddArgument, arg='%s'\n", arg);
if(!usefulArg(arg)) {
return;
}
for(offset = 0; offset < m->numberOfArg... |
CVE-2017-6418 | ClamAV | https://github.com/Cisco-Talos/clamav | libclamav/message.c | messageFindArgument | char * messageFindArgument(const message *m, const char *variable) {
int i;
size_t len;
assert(m != NULL);
assert(variable != NULL);
len = strlen(variable);
for(i = 0; i < m->numberOfArguments; i++) {
const char *ptr;
ptr = messageGetArgument(m, i);
if((ptr == NULL) || (*... | char * messageFindArgument(const message *m, const char *variable) {
int i;
size_t len;
assert(m != NULL);
assert(variable != NULL);
len = strlen(variable);
for(i = 0; i < m->numberOfArguments; i++) {
const char *ptr;
ptr = messageGetArgument(m, i);
if((ptr == NULL) || (*... | char * messageFindArgument(const message *m, const char *variable) {
int i;
size_t len;
assert(m != NULL);
assert(variable != NULL);
len = strlen(variable);
for(i = 0; i < m->numberOfArguments; i++) {
const char *ptr;
ptr = messageGetArgument(m, i);
if((ptr == NULL) || (*... | char * messageFindArgument(const message *m, const char *variable) {
int i;
size_t len;
assert(m != NULL);
assert(variable != NULL);
len = strlen(variable);
for(i = 0; i < m->numberOfArguments; i++) {
const char *ptr;
ptr = messageGetArgument(m, i);
if((ptr == NULL) || (*... | char * messageFindArgument(const message *m, const char *variable) {
assert(m != NULL);
assert(variable != NULL);
len = strlen(variable);
for(i = 0; i < m->numberOfArguments; i++) {
ptr = messageGetArgument(m, i);
cli_dbgmsg("messageFindArgument: compare %lu bytes of %s with %s\n", (unsi... | char * messageFindArgument(const message *m, const char *variable) {
assert(m != NULL);
assert(variable != NULL);
len = strlen(variable);
for(i = 0; i < m->numberOfArguments; i++) {
ptr = messageGetArgument(m, i);
cli_dbgmsg("messageFindArgument: compare %lu bytes of %s with %s\n", (unsi... | char * messageFindArgument(const message *m, const char *variable) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
assert(m != NULL);
assert(variable != NULL);
len = strlen(variable);
for(i = 0; i < m->numberOfArguments; i++) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ptr = messageG... | char * messageFindArgument(const message *m, const char *variable) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
assert(m != NULL);
assert(variable != NULL);
len = strlen(variable);
for(i = 0; i < m->numberOfArguments; i++) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ptr = messageG... | char * messageFindArgument(const message *m, const char *variable) {
assert(m != NULL);
assert(variable != NULL);
len = strlen(variable);
for(i = 0; i < m->numberOfArguments; i++) {
ptr = messageGetArgument(m, i);
cli_dbgmsg("messageFindArgument: compare %lu bytes of %s with %s\n"... |
CVE-2017-6419 | ClamAV | https://github.com/Cisco-Talos/clamav | libclamav/libmspack-0.5alpha/mspack/lzxd.c | lzxd_decompress | int lzxd_decompress(struct lzxd_stream *lzx, off_t out_bytes) {
register unsigned int bit_buffer;
register int bits_left, i=0;
unsigned char *i_ptr, *i_end;
register unsigned short sym;
int match_length, length_footer, extra, verbatim_bits, bytes_todo;
int this_run, main_element, aligned_bits, j... | int lzxd_decompress(struct lzxd_stream *lzx, off_t out_bytes) {
register unsigned int bit_buffer;
register int bits_left, i=0;
unsigned char *i_ptr, *i_end;
register unsigned short sym;
int match_length, length_footer, extra, verbatim_bits, bytes_todo;
int this_run, main_element, aligned_bits, j... | int lzxd_decompress(struct lzxd_stream *lzx, off_t out_bytes) {
register unsigned int bit_buffer;
register int bits_left, i=0;
unsigned char *i_ptr, *i_end;
register unsigned short sym;
int match_length, length_footer, extra, verbatim_bits, bytes_todo;
int this_run, main_element, aligned_bits, j... | int lzxd_decompress(struct lzxd_stream *lzx, off_t out_bytes) {
register unsigned int bit_buffer;
register int bits_left, i=0;
unsigned char *i_ptr, *i_end;
register unsigned short sym;
int match_length, length_footer, extra, verbatim_bits, bytes_todo;
int this_run, main_element, aligned_bits, j... | int lzxd_decompress(struct lzxd_stream *lzx, off_t out_bytes) {
if (!lzx || (out_bytes < 0)) {
return MSPACK_ERR_ARGS;
}
i = lzx->o_end - lzx->o_ptr;
if ((off_t) i > out_bytes) {
i = (int) out_bytes;
}
if (i) {
if (lzx->sys->write(lzx->output, lzx->o_ptr, i) != i) {
... | int lzxd_decompress(struct lzxd_stream *lzx, off_t out_bytes) {
if (!lzx || (out_bytes < 0)) {
return MSPACK_ERR_ARGS;
}
i = lzx->o_end - lzx->o_ptr;
if ((off_t) i > out_bytes) {
i = (int) out_bytes;
}
if (i) {
if (lzx->sys->write(lzx->output, lzx->o_ptr, i) != i) {
... | int lzxd_decompress(struct lzxd_stream *lzx, off_t out_bytes) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!lzx || (out_bytes < 0)) {
return MSPACK_ERR_ARGS;
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
i = lzx->o_end - lzx->o_ptr;
if ((off_t) i > out_bytes) {
i = (int)... | int lzxd_decompress(struct lzxd_stream *lzx, off_t out_bytes) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!lzx || (out_bytes < 0)) {
return MSPACK_ERR_ARGS;
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
i = lzx->o_end - lzx->o_ptr;
if ((off_t) i > out_bytes) {
i = (int)... | int lzxd_decompress(struct lzxd_stream *lzx, off_t out_bytes) {
if (!lzx || (out_bytes < 0)) {
return MSPACK_ERR_ARGS;
}
i = lzx->o_end - lzx->o_ptr;
if ((off_t) i > out_bytes) {
i = (int) out_bytes;
}
if (i) {
if (lzx->sys->write(lzx->output, lzx->o_ptr, i) != ... |
CVE-2017-6419 | ClamAV | https://github.com/Cisco-Talos/clamav | libclamav/libmspack-0.5alpha/mspack/lzxd.c | lzxd_free | void lzxd_free(struct lzxd_stream *lzx) {
struct mspack_system *sys;
if (lzx) {
sys = lzx->sys;
sys->free(lzx->inbuf);
sys->free(lzx->window);
sys->free(lzx);
}
} | void lzxd_free(struct lzxd_stream *lzx) {
struct mspack_system *sys;
if (lzx) {
sys = lzx->sys;
if(lzx->inbuf) {
sys->free(lzx->inbuf);
}
if(lzx->window) {
sys->free(lzx->window);
}
sys->free(lzx);
}
} | void lzxd_free(struct lzxd_stream *lzx) {
struct mspack_system *sys;
if (lzx) {
sys = lzx->sys;
sys->free(lzx->inbuf);
sys->free(lzx->window);
sys->free(lzx);
}
} | void lzxd_free(struct lzxd_stream *lzx) {
struct mspack_system *sys;
if (lzx) {
sys = lzx->sys;
if(lzx->inbuf) {
sys->free(lzx->inbuf);
}
if(lzx->window) {
sys->free(lzx->window);
}
sys->free(lzx);
}
} | void lzxd_free(struct lzxd_stream *lzx) {
struct mspack_system *sys;
if (lzx) {
sys = lzx->sys;
sys->free(lzx->inbuf);
sys->free(lzx->window);
sys->free(lzx);
}
}
| void lzxd_free(struct lzxd_stream *lzx) {
struct mspack_system *sys;
if (lzx) {
sys = lzx->sys;
if(lzx->inbuf) {
sys->free(lzx->inbuf);
}
if(lzx->window) {
sys->free(lzx->window);
}
sys->free(lzx);
}
}
| void lzxd_free(struct lzxd_stream *lzx) {
struct mspack_system *sys;
if (lzx) {
sys = lzx->sys;
sys->free(lzx->inbuf);
sys->free(lzx->window);
sys->free(lzx);
}
}
| void lzxd_free(struct lzxd_stream *lzx) {
struct mspack_system *sys;
if (lzx) {
sys = lzx->sys;
if(lzx->inbuf) {
sys->free(lzx->inbuf);
}
if(lzx->window) {
sys->free(lzx->window);
}
sys->free(lzx);
}
} | void lzxd_free(struct lzxd_stream *lzx) {
struct mspack_system *sys;
if (lzx) {
sys = lzx->sys;
- sys->free(lzx->inbuf);
- sys->free(lzx->window);
+ if(lzx->inbuf) {
+ sys->free(lzx->inbuf);
+ }
+ if(lzx->window) {
+ sys->free(lzx->window);
+ ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.