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-2023-1161 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-iso10681.c | dissect_iso10681 | static int dissect_iso10681(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 frame_id, guint32 frame_length ) {
proto_tree *iso10681_tree;
proto_item *ti;
proto_item *ti_type;
guint32 type;
guint32 offset;
iso10681_identifier_t* iso10681_info;
gboolean fragmented = FALSE;
gui... | static int dissect_iso10681(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 frame_id, guint32 frame_length ) {
proto_tree *iso10681_tree;
proto_item *ti;
proto_item *ti_type;
guint32 type;
guint32 offset;
iso10681_identifier_t* iso10681_info;
gboolean fragmented = FALSE;
gui... | static int dissect_iso10681(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 frame_id, guint32 frame_length ) {
proto_tree *iso10681_tree;
proto_item *ti;
proto_item *ti_type;
guint32 type;
guint32 offset;
iso10681_identifier_t* iso10681_info;
gboolean fragmented = FALSE;
gui... | static int dissect_iso10681(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 frame_id, guint32 frame_length ) {
proto_tree *iso10681_tree;
proto_item *ti;
proto_item *ti_type;
guint32 type;
guint32 offset;
iso10681_identifier_t* iso10681_info;
gboolean fragmented = FALSE;
gui... | static int dissect_iso10681(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 frame_id, guint32 frame_length ) {
guint32 seqnum = 0;
guint32 data_length = 0;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "ISO10681");
col_clear(pinfo->cinfo, COL_FO);
iso10681_info = (iso10681_identifier_t *)p_ge... | static int dissect_iso10681(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 frame_id, guint32 frame_length ) {
guint32 seqnum = 0;
guint32 data_length = 0;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "ISO10681");
col_clear(pinfo->cinfo, COL_FO);
iso10681_info = (iso10681_identifier_t *)p_ge... | static int dissect_iso10681(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 frame_id, guint32 frame_length ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint32 seqnum = 0;
guint32 data_length = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
col_set_str(pinfo->cinfo, COL_PROTOCOL,... | static int dissect_iso10681(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 frame_id, guint32 frame_length ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint32 seqnum = 0;
guint32 data_length = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
col_set_str(pinfo->cinfo, COL_PROTOCOL,... | static int dissect_iso10681(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 frame_id, guint32 frame_length ) {
guint32 seqnum = 0;
guint32 data_length = 0;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "ISO10681");
col_clear(pinfo->cinfo, COL_FO);
iso10681_info = (iso10681_identifier_t ... |
CVE-2023-1161 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-iso15765.c | dissect_iso15765 | static int dissect_iso15765(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 bus_type, guint32 frame_id, guint32 frame_length) {
static guint32 msg_seqid = 0;
proto_tree *iso15765_tree;
proto_item *ti;
proto_item *message_type_item;
tvbuff_t* next_tvb = NULL;
guint16 pci, message_typ... | static int dissect_iso15765(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 bus_type, guint32 frame_id, guint32 frame_length) {
static guint32 msg_seqid = 0;
proto_tree *iso15765_tree;
proto_item *ti;
proto_item *message_type_item;
tvbuff_t* next_tvb = NULL;
guint16 pci, message_typ... | static int dissect_iso15765(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 bus_type, guint32 frame_id, guint32 frame_length) {
static guint32 msg_seqid = 0;
proto_tree *iso15765_tree;
proto_item *ti;
proto_item *message_type_item;
tvbuff_t* next_tvb = NULL;
guint16 pci, message_typ... | static int dissect_iso15765(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 bus_type, guint32 frame_id, guint32 frame_length) {
static guint32 msg_seqid = 0;
proto_tree *iso15765_tree;
proto_item *ti;
proto_item *message_type_item;
tvbuff_t* next_tvb = NULL;
guint16 pci, message_typ... | static int dissect_iso15765(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 bus_type, guint32 frame_id, guint32 frame_length) {
guint8 ae = (addressing == NORMAL_ADDRESSG && bus_type != ISO15765_TYPE_L) ? 0 : 1;
guint16 frag_id_low = 0;
iso15765_info = (iso15765_identifier_t *)p_get_proto_data(... | static int dissect_iso15765(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 bus_type, guint32 frame_id, guint32 frame_length) {
guint8 ae = (addressing == NORMAL_ADDRESSG && bus_type != ISO15765_TYPE_L) ? 0 : 1;
guint16 frag_id_low = 0;
iso15765_info = (iso15765_identifier_t *)p_get_proto_data(... | static int dissect_iso15765(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 bus_type, guint32 frame_id, guint32 frame_length) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint8 ae = (addressing == NORMAL_ADDRESSG && bus_type != ISO15765_TYPE_L) ? 0 : 1;
guint16 frag_id_low = 0;
/* PLACE... | static int dissect_iso15765(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 bus_type, guint32 frame_id, guint32 frame_length) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint8 ae = (addressing == NORMAL_ADDRESSG && bus_type != ISO15765_TYPE_L) ? 0 : 1;
guint16 frag_id_low = 0;
/* PLACE... | static int dissect_iso15765(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint32 bus_type, guint32 frame_id, guint32 frame_length) {
guint8 ae = (addressing == NORMAL_ADDRESSG && bus_type != ISO15765_TYPE_L) ? 0 : 1;
guint16 frag_id_low = 0;
iso15765_info = (iso15765_identifier_t *)p_get_proto_d... |
CVE-2023-1544 | QEMU | https://github.com/qemu/qemu | hw/rdma/vmw/pvrdma_main.c | init_dev_ring | static int init_dev_ring(PvrdmaRing *ring, PvrdmaRingState **ring_state, const char *name, PCIDevice *pci_dev, dma_addr_t dir_addr, uint32_t num_pages) {
uint64_t *dir, *tbl;
int rc = 0;
if (!num_pages) {
rdma_error_report("Ring pages count must be strictly positive");
return -EVAL;
}
... | static int init_dev_ring(PvrdmaRing *ring, PvrdmaRingState **ring_state, const char *name, PCIDevice *pci_dev, dma_addr_t dir_addr, uint32_t num_pages) {
uint64_t *dir, *tbl;
int max_pages, rc = 0;
if (!num_pages) {
rdma_error_report("Ring pages count must be strictly positive");
return -EVA... | static int init_dev_ring(PvrdmaRing *ring, PvrdmaRingState **ring_state, const char *name, PCIDevice *pci_dev, dma_addr_t dir_addr, uint32_t num_pages) {
uint64_t *dir, *tbl;
int rc = 0;
if (!num_pages) {
rdma_error_report("Ring pages count must be strictly positive");
return -EVAL;
}
... | static int init_dev_ring(PvrdmaRing *ring, PvrdmaRingState **ring_state, const char *name, PCIDevice *pci_dev, dma_addr_t dir_addr, uint32_t num_pages) {
uint64_t *dir, *tbl;
int max_pages, rc = 0;
if (!num_pages) {
rdma_error_report("Ring pages count must be strictly positive");
return -EVA... | static int init_dev_ring(PvrdmaRing *ring, PvrdmaRingState **ring_state, const char *name, PCIDevice *pci_dev, dma_addr_t dir_addr, uint32_t num_pages) {
uint64_t *dir, *tbl;
int rc = 0;
if (!num_pages) {
return -EVAL;
}
dir = rdma_pci_dma_map(pci_dev, dir_addr, TARGET_PAGE_SIZE);
if (!d... | static int init_dev_ring(PvrdmaRing *ring, PvrdmaRingState **ring_state, const char *name, PCIDevice *pci_dev, dma_addr_t dir_addr, uint32_t num_pages) {
uint64_t *dir, *tbl;
int max_pages, rc = 0;
if (!num_pages) {
return -EVAL;
}
max_pages = TARGET_PAGE_SIZE / sizeof(dma_addr_t) - 1;
i... | static int init_dev_ring(PvrdmaRing *ring, PvrdmaRingState **ring_state, const char *name, PCIDevice *pci_dev, dma_addr_t dir_addr, uint32_t num_pages) {
uint64_t *dir, *tbl;
int rc = 0;
if (!num_pages) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
return -EVAL;
}
dir = rdma_pci_dma_ma... | static int init_dev_ring(PvrdmaRing *ring, PvrdmaRingState **ring_state, const char *name, PCIDevice *pci_dev, dma_addr_t dir_addr, uint32_t num_pages) {
uint64_t *dir, *tbl;
int max_pages, rc = 0;
if (!num_pages) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
return -EVAL;
}
max_pages ... | static int init_dev_ring(PvrdmaRing *ring, PvrdmaRingState **ring_state, const char *name, PCIDevice *pci_dev, dma_addr_t dir_addr, uint32_t num_pages) {
uint64_t *dir, *tbl;
- int rc = 0;
+ int max_pages, rc = 0;
if (!num_pages) {
+ return -EVAL;
+ }
+ max_pages = TARGET_PAGE_SIZE / sizeo... |
CVE-2023-1993 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-lisp.c | dissect_lcaf | int dissect_lcaf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, proto_item *tip) {
guint8 lcaf_type;
guint16 len;
proto_item *tir, *ti_header, *ti_flags, *ti;
proto_tree *lcaf_tree, *lcaf_header_tree, *flags_tree;
len = tvb_get_ntohs(tvb, offset + 4);
tir = proto_tree_add_item... | int dissect_lcaf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, proto_item *tip) {
guint8 lcaf_type;
guint16 len;
proto_item *tir, *ti_header, *ti_flags, *ti;
proto_tree *lcaf_tree, *lcaf_header_tree, *flags_tree;
tvbuff_t *payload_tvb;
len = tvb_get_ntohs(tvb, offset + 4);
... | int dissect_lcaf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, proto_item *tip) {
guint8 lcaf_type;
guint16 len;
proto_item *tir, *ti_header, *ti_flags, *ti;
proto_tree *lcaf_tree, *lcaf_header_tree, *flags_tree;
len = tvb_get_ntohs(tvb, offset + 4);
tir = proto_tree_add_item... | int dissect_lcaf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, proto_item *tip) {
guint8 lcaf_type;
guint16 len;
proto_item *tir, *ti_header, *ti_flags, *ti;
proto_tree *lcaf_tree, *lcaf_header_tree, *flags_tree;
tvbuff_t *payload_tvb;
len = tvb_get_ntohs(tvb, offset + 4);
... | int dissect_lcaf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, proto_item *tip) {
proto_tree *lcaf_tree, *lcaf_header_tree, *flags_tree;
len = tvb_get_ntohs(tvb, offset + 4);
tir = proto_tree_add_item(tree, hf_lisp_lcaf, tvb, offset, LCAF_HEADER_LEN + len, ENC_NA);
lcaf_tree = proto_... | int dissect_lcaf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, proto_item *tip) {
proto_tree *lcaf_tree, *lcaf_header_tree, *flags_tree;
tvbuff_t *payload_tvb;
len = tvb_get_ntohs(tvb, offset + 4);
tir = proto_tree_add_item(tree, hf_lisp_lcaf, tvb, offset, LCAF_HEADER_LEN + len, ENC_... | int dissect_lcaf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, proto_item *tip) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
proto_tree *lcaf_tree, *lcaf_header_tree, *flags_tree;
len = tvb_get_ntohs(tvb, offset + 4);
tir = proto_tree_add_item(tree, hf_lisp_lcaf, tvb, offset, LCAF... | int dissect_lcaf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, proto_item *tip) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
proto_tree *lcaf_tree, *lcaf_header_tree, *flags_tree;
tvbuff_t *payload_tvb;
len = tvb_get_ntohs(tvb, offset + 4);
tir = proto_tree_add_item(tree, hf_l... | int dissect_lcaf(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gint offset, proto_item *tip) {
proto_tree *lcaf_tree, *lcaf_header_tree, *flags_tree;
+ tvbuff_t *payload_tvb;
len = tvb_get_ntohs(tvb, offset + 4);
tir = proto_tree_add_item(tree, hf_lisp_lcaf, tvb, offset, LCAF_HEADER_LEN + len,... |
CVE-2023-1994 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-gquic.c | dissect_gquic_frame_type | int dissect_gquic_frame_type(tvbuff_t *tvb, packet_info *pinfo, proto_tree *gquic_tree, guint offset, guint8 len_pkn, gquic_info_data_t *gquic_info) {
proto_item *ti, *ti_ft, *ti_ftflags ;
proto_tree *ft_tree, *ftflags_tree;
guint8 frame_type;
guint8 num_ranges, num_revived, num_blocks = 0, num_timestam... | int dissect_gquic_frame_type(tvbuff_t *tvb, packet_info *pinfo, proto_tree *gquic_tree, guint offset, guint8 len_pkn, gquic_info_data_t *gquic_info) {
if (!gquic_info) {
expert_add_info(pinfo, gquic_tree, &ei_gquic_data_invalid);
return offset + tvb_reported_length_remaining(tvb, offset);
}
... | int dissect_gquic_frame_type(tvbuff_t *tvb, packet_info *pinfo, proto_tree *gquic_tree, guint offset, guint8 len_pkn, gquic_info_data_t *gquic_info) {
proto_item *ti, *ti_ft, *ti_ftflags ;
proto_tree *ft_tree, *ftflags_tree;
guint8 frame_type;
guint8 num_ranges, num_revived, num_blocks = 0, num_timestam... | int dissect_gquic_frame_type(tvbuff_t *tvb, packet_info *pinfo, proto_tree *gquic_tree, guint offset, guint8 len_pkn, gquic_info_data_t *gquic_info) {
if (!gquic_info) {
expert_add_info(pinfo, gquic_tree, &ei_gquic_data_invalid);
return offset + tvb_reported_length_remaining(tvb, offset);
}
... | int dissect_gquic_frame_type(tvbuff_t *tvb, packet_info *pinfo, proto_tree *gquic_tree, guint offset, guint8 len_pkn, gquic_info_data_t *gquic_info) {
guint8 num_ranges, num_revived, num_blocks = 0, num_timestamp;
if((frame_type & FTFLAGS_SPECIAL) == 0 && frame_type != FT_CRYPTO) {
switch(frame_type) {
... | int dissect_gquic_frame_type(tvbuff_t *tvb, packet_info *pinfo, proto_tree *gquic_tree, guint offset, guint8 len_pkn, gquic_info_data_t *gquic_info) {
if (!gquic_info) {
expert_add_info(pinfo, gquic_tree, &ei_gquic_data_invalid);
return offset + tvb_reported_length_remaining(tvb, offset);
}
... | int dissect_gquic_frame_type(tvbuff_t *tvb, packet_info *pinfo, proto_tree *gquic_tree, guint offset, guint8 len_pkn, gquic_info_data_t *gquic_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint8 num_ranges, num_revived, num_blocks = 0, num_timestamp;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | int dissect_gquic_frame_type(tvbuff_t *tvb, packet_info *pinfo, proto_tree *gquic_tree, guint offset, guint8 len_pkn, gquic_info_data_t *gquic_info) {
if (!gquic_info) {
expert_add_info(pinfo, gquic_tree, &ei_gquic_data_invalid);
return offset + tvb_reported_length_remaining(tvb, offset);
}
... | int dissect_gquic_frame_type(tvbuff_t *tvb, packet_info *pinfo, proto_tree *gquic_tree, guint offset, guint8 len_pkn, gquic_info_data_t *gquic_info) {
+ if (!gquic_info) {
+ expert_add_info(pinfo, gquic_tree, &ei_gquic_data_invalid);
+ return offset + tvb_reported_length_remaining(tvb, offset);
+ }... |
CVE-2023-1994 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-gquic.c | proto_register_gquic | void proto_register_gquic(void) {
module_t *gquic_module;
static hf_register_info hf[] = {
{
&hf_gquic_header_form, {
"Header Form", "gquic.header_form", FT_UT8, BASE_DEC, VALS(gquic_short_long_header_vals), 0x80, "The most significant bit (0x80) of the first octet is set to ... | void proto_register_gquic(void) {
module_t *gquic_module;
static hf_register_info hf[] = {
{
&hf_gquic_header_form, {
"Header Form", "gquic.header_form", FT_UT8, BASE_DEC, VALS(gquic_short_long_header_vals), 0x80, "The most significant bit (0x80) of the first octet is set to ... | void proto_register_gquic(void) {
module_t *gquic_module;
static hf_register_info hf[] = {
{
&hf_gquic_header_form, {
"Header Form", "gquic.header_form", FT_UT8, BASE_DEC, VALS(gquic_short_long_header_vals), 0x80, "The most significant bit (0x80) of the first octet is set to ... | void proto_register_gquic(void) {
module_t *gquic_module;
static hf_register_info hf[] = {
{
&hf_gquic_header_form, {
"Header Form", "gquic.header_form", FT_UT8, BASE_DEC, VALS(gquic_short_long_header_vals), 0x80, "The most significant bit (0x80) of the first octet is set to ... | void proto_register_gquic(void) {
static gint *ett[] = {
&ett_gquic, &ett_gquic_puflags, &ett_gquic_prflags, &ett_gquic_ft, &ett_gquic_ftflags, &ett_gquic_tag_value
};
static ei_register_info ei[] = {
{ &ei_gquic_tag_undecoded, { "gquic.tag.undecoded", PI_UNDECODED, PI_NOTE, "Dissector for (... | void proto_register_gquic(void) {
static gint *ett[] = {
&ett_gquic, &ett_gquic_puflags, &ett_gquic_prflags, &ett_gquic_ft, &ett_gquic_ftflags, &ett_gquic_tag_value
};
static ei_register_info ei[] = {
{ &ei_gquic_tag_undecoded, { "gquic.tag.undecoded", PI_UNDECODED, PI_NOTE, "Dissector for (... | void proto_register_gquic(void) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
static gint *ett[] = {
&ett_gquic, &ett_gquic_puflags, &ett_gquic_prflags, &ett_gquic_ft, &ett_gquic_ftflags, &ett_gquic_tag_value
};
static ei_register_info ei[] = {
{ &ei_gquic_tag_undecoded, { "gquic.tag.u... | void proto_register_gquic(void) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
static gint *ett[] = {
&ett_gquic, &ett_gquic_puflags, &ett_gquic_prflags, &ett_gquic_ft, &ett_gquic_ftflags, &ett_gquic_tag_value
};
static ei_register_info ei[] = {
{ &ei_gquic_tag_undecoded, { "gquic.tag.u... | void proto_register_gquic(void) {
static gint *ett[] = {
&ett_gquic, &ett_gquic_puflags, &ett_gquic_prflags, &ett_gquic_ft, &ett_gquic_ftflags, &ett_gquic_tag_value
};
static ei_register_info ei[] = {
- { &ei_gquic_tag_undecoded, { "gquic.tag.undecoded", PI_UNDECODED, PI_NOTE, "Dissector... |
CVE-2023-2650 | OpenSSL | https://github.com/openssl/openssl | crypto/objects/obj_dat.c | OBJ_obj2txt | int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name) {
int i, n = 0, len, nid, first, use_bn;
BIGNUM *bl;
unsigned long l;
const unsigned char *p;
char tbuf[DECIMAL_SIZE(i) + DECIMAL_SIZE(l) + 2];
const char *s;
if (buf != NULL && buf_len > 0) {
buf[0] = '\0';
... | int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name) {
int i, n = 0, len, nid, first, use_bn;
BIGNUM *bl;
unsigned long l;
const unsigned char *p;
char tbuf[DECIMAL_SIZE(i) + DECIMAL_SIZE(l) + 2];
const char *s;
if (buf != NULL && buf_len > 0) {
buf[0] = '\0';
... | int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name) {
int i, n = 0, len, nid, first, use_bn;
BIGNUM *bl;
unsigned long l;
const unsigned char *p;
char tbuf[DECIMAL_SIZE(i) + DECIMAL_SIZE(l) + 2];
if (buf && buf_len > 0) {
buf[0] = '\0';
}
if ((a == NULL) ||... | int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name) {
int i, n = 0, len, nid, first, use_bn;
BIGNUM *bl;
unsigned long l;
const unsigned char *p;
char tbuf[DECIMAL_SIZE(i) + DECIMAL_SIZE(l) + 2];
if (buf && buf_len > 0) {
buf[0] = '\0';
}
if ((a == NULL) ||... | int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name) {
if (a == NULL || a->data == NULL) {
return 0;
}
len = a->length;
bl = NULL;
while (len > 0) {
l = 0;
use_bn = 0;
for (;;) {
unsigned char c = *p++;
len--;
... | int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name) {
if (a == NULL || a->data == NULL) {
return 0;
}
len = a->length;
bl = NULL;
if (len > 586) {
goto err;
}
while (len > 0) {
l = 0;
use_bn = 0;
for (;;) {
unsigned c... | int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if ((a == NULL) || (a->data == NULL)) {
return 0;
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
len = a->length;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if ((a == NULL) || (a->data == NULL)) {
return 0;
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
len = a->length;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | int OBJ_obj2txt(char *buf, int buf_len, const ASN1_OBJECT *a, int no_name) {
if (a == NULL || a->data == NULL) {
return 0;
}
len = a->length;
bl = NULL;
+ if (len > 586) {
+ goto err;
+ }
while (len > 0) {
l = 0;
use_bn = 0;
for (;;) {
... |
CVE-2023-2854 | Wireshark | https://github.com/wireshark/wireshark | wiretap/blf.c | blf_read_apptextmessage | static gboolean blf_read_apptextmessage(blf_params_t *params, int *err, gchar **err_info, gint64 block_start, gint64 data_start, gint64 object_length, guint64 timestamp ) {
blf_apptext_t apptextheader;
if (object_length < (data_start - block_start) + (int)sizeof(apptextheader)) {
*err = WTAP_ERR_BAD_FIL... | static gboolean blf_read_apptextmessage(blf_params_t *params, int *err, gchar **err_info, gint64 block_start, gint64 data_start, gint64 object_length, guint64 timestamp ) {
blf_apptext_t apptextheader;
if (object_length < (data_start - block_start) + (int)sizeof(apptextheader)) {
*err = WTAP_ERR_BAD_FIL... | static gboolean blf_read_apptextmessage(blf_params_t *params, int *err, gchar **err_info, gint64 block_start, gint64 data_start, gint64 object_length, guint64 timestamp ) {
blf_apptext_t apptextheader;
if (object_length < (data_start - block_start) + (int)sizeof(apptextheader)) {
*err = WTAP_ERR_BAD_FIL... | static gboolean blf_read_apptextmessage(blf_params_t *params, int *err, gchar **err_info, gint64 block_start, gint64 data_start, gint64 object_length, guint64 timestamp ) {
blf_apptext_t apptextheader;
if (object_length < (data_start - block_start) + (int)sizeof(apptextheader)) {
*err = WTAP_ERR_BAD_FIL... | static gboolean blf_read_apptextmessage(blf_params_t *params, int *err, gchar **err_info, gint64 block_start, gint64 data_start, gint64 object_length, guint64 timestamp ) {
if (apptextheader.source != BLF_APPTEXT_CHANNEL) {
return TRUE;
}
gchar *text = g_try_malloc0((gsize)apptextheader.textLength);... | static gboolean blf_read_apptextmessage(blf_params_t *params, int *err, gchar **err_info, gint64 block_start, gint64 data_start, gint64 object_length, guint64 timestamp ) {
if (apptextheader.source != BLF_APPTEXT_CHANNEL) {
return TRUE;
}
gchar *text = g_try_malloc((gsize)apptextheader.textLength + ... | static gboolean blf_read_apptextmessage(blf_params_t *params, int *err, gchar **err_info, gint64 block_start, gint64 data_start, gint64 object_length, guint64 timestamp ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (apptextheader.source != BLF_APPTEXT_CHANNEL) {
return TRUE;
}
gchar *text... | static gboolean blf_read_apptextmessage(blf_params_t *params, int *err, gchar **err_info, gint64 block_start, gint64 data_start, gint64 object_length, guint64 timestamp ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (apptextheader.source != BLF_APPTEXT_CHANNEL) {
return TRUE;
}
gchar *text... | static gboolean blf_read_apptextmessage(blf_params_t *params, int *err, gchar **err_info, gint64 block_start, gint64 data_start, gint64 object_length, guint64 timestamp ) {
if (apptextheader.source != BLF_APPTEXT_CHANNEL) {
return TRUE;
}
- gchar *text = g_try_malloc0((gsize)apptextheader.textLen... |
CVE-2023-2855 | Wireshark | https://github.com/wireshark/wireshark | wiretap/candump.c | candump_read | static gboolean candump_read(wtap *wth, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info, gint64 *data_offset) {
msg_t msg;
candump_debug_printf("%s: Try reading at offset %" PRIi64 "\n", G_STRFUNC, file_tell(wth->fh));
if (!candump_parse(wth->fh, &msg, data_offset, err, err_info)) {
return FA... | static gboolean candump_read(wtap *wth, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info, gint64 *data_offset) {
msg_t msg;
candump_debug_printf("%s: Try reading at offset %" PRIi64 "\n", G_STRFUNC, file_tell(wth->fh));
if (!candump_parse(wth->fh, &msg, data_offset, err, err_info)) {
return FA... | static gboolean candump_read(wtap *wth, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info, gint64 *data_offset) {
msg_t msg;
candump_debug_printf("%s: Try reading at offset %" PRIi64 "\n", G_STRFUNC, file_tell(wth->fh));
if (!candump_parse(wth->fh, &msg, data_offset, err, err_info)) {
return FA... | static gboolean candump_read(wtap *wth, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info, gint64 *data_offset) {
msg_t msg;
candump_debug_printf("%s: Try reading at offset %" PRIi64 "\n", G_STRFUNC, file_tell(wth->fh));
if (!candump_parse(wth->fh, &msg, data_offset, err, err_info)) {
return FA... | static gboolean candump_read(wtap *wth, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info, gint64 *data_offset) {
msg_t msg;
candump_debug_printf("%s: Try reading at offset %" PRIi64 "\n", G_STRFUNC, file_tell(wth->fh));
if (!candump_parse(wth->fh, &msg, data_offset, err, err_info)) {
return FA... | static gboolean candump_read(wtap *wth, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info, gint64 *data_offset) {
msg_t msg;
candump_debug_printf("%s: Try reading at offset %" PRIi64 "\n", G_STRFUNC, file_tell(wth->fh));
if (!candump_parse(wth->fh, &msg, data_offset, err, err_info)) {
return FA... | static gboolean candump_read(wtap *wth, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info, gint64 *data_offset) {
msg_t msg;
candump_debug_printf("%s: Try reading at offset %" PRIi64 "\n", G_STRFUNC, file_tell(wth->fh));
if (!candump_parse(wth->fh, &msg, data_offset, err, err_info)) {
return FA... | static gboolean candump_read(wtap *wth, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info, gint64 *data_offset) {
msg_t msg;
candump_debug_printf("%s: Try reading at offset %" PRIi64 "\n", G_STRFUNC, file_tell(wth->fh));
if (!candump_parse(wth->fh, &msg, data_offset, err, err_info)) {
return FA... | static gboolean candump_read(wtap *wth, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info, gint64 *data_offset) {
msg_t msg;
candump_debug_printf("%s: Try reading at offset %" PRIi64 "\n", G_STRFUNC, file_tell(wth->fh));
if (!candump_parse(wth->fh, &msg, data_offset, err, err_info)) {
retu... |
CVE-2023-2855 | Wireshark | https://github.com/wireshark/wireshark | wiretap/candump.c | candump_seek_read | static gboolean candump_seek_read(wtap *wth, gint64 seek_off, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info) {
msg_t msg;
candump_debug_printf("%s: Read at offset %" PRIi64 "\n", G_STRFUNC, seek_off);
if (file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1) {
*err = errno;
*err... | static gboolean candump_seek_read(wtap *wth, gint64 seek_off, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info) {
msg_t msg;
candump_debug_printf("%s: Read at offset %" PRIi64 "\n", G_STRFUNC, seek_off);
if (file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1) {
*err = errno;
*err... | static gboolean candump_seek_read(wtap *wth, gint64 seek_off, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info) {
msg_t msg;
candump_debug_printf("%s: Read at offset %" PRIi64 "\n", G_STRFUNC, seek_off);
if (file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1) {
*err = errno;
*err... | static gboolean candump_seek_read(wtap *wth, gint64 seek_off, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info) {
msg_t msg;
candump_debug_printf("%s: Read at offset %" PRIi64 "\n", G_STRFUNC, seek_off);
if (file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1) {
*err = errno;
*err... | static gboolean candump_seek_read(wtap *wth, gint64 seek_off, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info) {
if (file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1) {
return FALSE;
}
if (!candump_parse(wth->random_fh, &msg, NULL, err, err_info)) {
return FALSE;
}
can... | static gboolean candump_seek_read(wtap *wth, gint64 seek_off, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info) {
if (file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1) {
return FALSE;
}
if (!candump_parse(wth->random_fh, &msg, NULL, err, err_info)) {
return FALSE;
}
ret... | static gboolean candump_seek_read(wtap *wth, gint64 seek_off, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
return FALSE;
}
... | static gboolean candump_seek_read(wtap *wth, gint64 seek_off, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
return FALSE;
}
... | static gboolean candump_seek_read(wtap *wth, gint64 seek_off, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info) {
if (file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1) {
return FALSE;
}
if (!candump_parse(wth->random_fh, &msg, NULL, err, err_info)) {
return FALSE;
}
... |
CVE-2023-2855 | Wireshark | https://github.com/wireshark/wireshark | wiretap/candump.c | candump_write_packet | static void candump_write_packet(wtap_rec *rec, Buffer *buf, const msg_t *msg) {
static const char can_proto_name[] = "can-hostendian";
static const char canfd_proto_name[] = "canfd";
ws_buffer_clean(buf);
if (msg->is_fd) {
wtap_buffer_append_epdu_tag(buf, EXP_PDU_TAG_DISSECTOR_NAME, (const guin... | static gboolean candump_write_packet(wtap_rec *rec, Buffer *buf, const msg_t *msg, int *err, gchar **err_info) {
static const char can_proto_name[] = "can-hostendian";
static const char canfd_proto_name[] = "canfd";
ws_buffer_clean(buf);
if (msg->is_fd) {
wtap_buffer_append_epdu_tag(buf, EXP_PDU... | static void candump_write_packet(wtap_rec *rec, Buffer *buf, const msg_t *msg) {
static const char *can_proto_name = "can-hostendian";
static const char *canfd_proto_name = "canfd";
const char *proto_name = msg->is_fd ? canfd_proto_name : can_proto_name;
guint proto_name_length = (guint)strlen(proto_nam... | static gboolean candump_write_packet(wtap_rec *rec, Buffer *buf, const msg_t *msg, int *err, gchar **err_info) {
static const char *can_proto_name = "can-hostendian";
static const char *canfd_proto_name = "canfd";
const char *proto_name = msg->is_fd ? canfd_proto_name : can_proto_name;
guint proto_name_... | static void candump_write_packet(wtap_rec *rec, Buffer *buf, const msg_t *msg) {
if (msg->is_fd) {
canfd_frame_t canfd_frame = {0};
canfd_frame.can_id = msg->id;
canfd_frame.len = msg->data.length;
memcpy(canfd_frame.data, msg->data.data, msg->data.length);
ws_buffer_append(b... | static gboolean candump_write_packet(wtap_rec *rec, Buffer *buf, const msg_t *msg, int *err, gchar **err_info) {
if (msg->is_fd) {
canfd_frame_t canfd_frame = {0};
if (msg->data.length > CANFD_MAX_DLEN) {
*err = WTAP_ERR_BAD_FILE;
if (err_info != NULL) {
*err_... | static void candump_write_packet(wtap_rec *rec, Buffer *buf, const msg_t *msg) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (msg->is_fd) {
canfd_frame_t canfd_frame = {0};
canfd_frame.can_id = msg->id;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
canfd_frame.len = msg->data.le... | static gboolean candump_write_packet(wtap_rec *rec, Buffer *buf, const msg_t *msg, int *err, gchar **err_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (msg->is_fd) {
canfd_frame_t canfd_frame = {0};
if (msg->data.length > CANFD_MAX_DLEN) {
*err = WTAP_ERR_BAD_FILE;
... | -static void candump_write_packet(wtap_rec *rec, Buffer *buf, const msg_t *msg) {
+static gboolean candump_write_packet(wtap_rec *rec, Buffer *buf, const msg_t *msg, int *err, gchar **err_info) {
if (msg->is_fd) {
canfd_frame_t canfd_frame = {0};
+ if (msg->data.length > CANFD_MAX_DLEN) {
+ ... |
CVE-2023-2856 | Wireshark | https://github.com/wireshark/wireshark | wiretap/vms.c | parse_vms_packet | static gboolean parse_vms_packet(FILE_T fh, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info) {
char line[VMS_LE_LENGTH + 1];
int num_items_scanned;
guint32 pkt_len = 0;
int pktnum;
int csec = 101;
struct tm tm;
char mon[4] = {'J', 'A', 'N', 0};
gchar *p;
const gchar *endp;
... | static gboolean parse_vms_packet(FILE_T fh, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info) {
char line[VMS_LE_LENGTH + 1];
int num_items_scanned;
gboolean have_pkt_len = FALSE;
guint32 pkt_len = 0;
int pktnum;
int csec = 101;
struct tm tm;
char mon[4] = {'J', 'A', 'N', 0};
g... | static gboolean parse_vms_packet(FILE_T fh, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info) {
char line[VMS_LE_LENGTH + 1];
int num_items_scanned;
guint32 pkt_len = 0;
int pktnum;
int csec = 101;
struct tm tm;
char mon[4] = {'J', 'A', 'N', 0};
gchar *p;
const gchar *endp;
... | static gboolean parse_vms_packet(FILE_T fh, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info) {
char line[VMS_LE_LENGTH + 1];
int num_items_scanned;
gboolean have_pkt_len = FALSE;
guint32 pkt_len = 0;
int pktnum;
int csec = 101;
struct tm tm;
char mon[4] = {'J', 'A', 'N', 0};
g... | static gboolean parse_vms_packet(FILE_T fh, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info) {
int num_items_scanned;
guint32 pkt_len = 0;
int csec = 101;
do {
if (file_gets(line, VMS_LE_LENGTH, fh) == NULL) {
*err = file_error(fh, err_info);
if ((*err == 0) && (cs... | static gboolean parse_vms_packet(FILE_T fh, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info) {
int num_items_scanned;
gboolean have_pkt_len = FALSE;
guint32 pkt_len = 0;
int csec = 101;
do {
if (file_gets(line, VMS_LE_LENGTH, fh) == NULL) {
*err = file_error(fh, err_info);... | static gboolean parse_vms_packet(FILE_T fh, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int num_items_scanned;
guint32 pkt_len = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int csec = 101;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT... | static gboolean parse_vms_packet(FILE_T fh, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int num_items_scanned;
gboolean have_pkt_len = FALSE;
guint32 pkt_len = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int csec = 101;
/* PLAC... | static gboolean parse_vms_packet(FILE_T fh, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info) {
int num_items_scanned;
+ gboolean have_pkt_len = FALSE;
guint32 pkt_len = 0;
int csec = 101;
do {
if (file_gets(line, VMS_LE_LENGTH, fh) == NULL) {
*err = file_error(fh, er... |
CVE-2023-2857 | Wireshark | https://github.com/wireshark/wireshark | wiretap/blf.c | blf_pull_logcontainer_into_memory | static gboolean blf_pull_logcontainer_into_memory(blf_params_t *params, guint index_log_container) {
blf_t *blf_data = params->blf_data;
blf_log_container_t tmp;
if (index_log_container >= blf_data->log_containers->len) {
ws_debug("cannot pull an unknown log container into memory");
return F... | static gboolean blf_pull_logcontainer_into_memory(blf_params_t *params, guint index_log_container, int *err, gchar **err_info) {
blf_t *blf_data = params->blf_data;
blf_log_container_t tmp;
if (index_log_container >= blf_data->log_containers->len) {
*err = WTAP_ERR_TERNAL;
*err_info = ws_str... | static gboolean blf_pull_logcontainer_into_memory(blf_params_t *params, guint index_log_container) {
blf_t *blf_data = params->blf_data;
blf_log_container_t tmp;
if (index_log_container >= blf_data->log_containers->len) {
ws_debug("cannot pull an unknown log container into memory");
return F... | static gboolean blf_pull_logcontainer_into_memory(blf_params_t *params, guint index_log_container, int *err, gchar **err_info) {
blf_t *blf_data = params->blf_data;
blf_log_container_t tmp;
if (index_log_container >= blf_data->log_containers->len) {
*err = WTAP_ERR_TERNAL;
*err_info = g_strd... | static gboolean blf_pull_logcontainer_into_memory(blf_params_t *params, guint index_log_container) {
blf_t *blf_data = params->blf_data;
if (index_log_container >= blf_data->log_containers->len) {
ws_debug("cannot pull an unknown log container into memory");
return FALSE;
}
tmp = g_array... | static gboolean blf_pull_logcontainer_into_memory(blf_params_t *params, guint index_log_container, int *err, gchar **err_info) {
blf_t *blf_data = params->blf_data;
if (index_log_container >= blf_data->log_containers->len) {
*err = WTAP_ERR_TERNAL;
*err_info = ws_strdup_printf("blf_pull_logconta... | static gboolean blf_pull_logcontainer_into_memory(blf_params_t *params, guint index_log_container) {
blf_t *blf_data = params->blf_data;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (index_log_container >= blf_data->log_containers->len) {
ws_debug("cannot pull an unknown log container into memor... | static gboolean blf_pull_logcontainer_into_memory(blf_params_t *params, guint index_log_container, int *err, gchar **err_info) {
blf_t *blf_data = params->blf_data;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (index_log_container >= blf_data->log_containers->len) {
*err = WTAP_ERR_TERNAL;
... | -static gboolean blf_pull_logcontainer_into_memory(blf_params_t *params, guint index_log_container) {
+static gboolean blf_pull_logcontainer_into_memory(blf_params_t *params, guint index_log_container, int *err, gchar **err_info) {
blf_t *blf_data = params->blf_data;
if (index_log_container >= blf_data->log_c... |
CVE-2023-2857 | Wireshark | https://github.com/wireshark/wireshark | wiretap/blf.c | blf_read_bytes_or_eof | static gboolean blf_read_bytes_or_eof(blf_params_t *params, guint64 real_pos, void *target_buffer, unsigned int count, int *err, gchar **err_info) {
blf_log_container_t *start_container;
blf_log_container_t *end_container;
blf_log_container_t *current_container;
gint start_container_index = -1;
gint... | static gboolean blf_read_bytes_or_eof(blf_params_t *params, guint64 real_pos, void *target_buffer, unsigned int count, int *err, gchar **err_info) {
blf_log_container_t *start_container;
blf_log_container_t *end_container;
blf_log_container_t *current_container;
gint start_container_index = -1;
gint... | static gboolean blf_read_bytes_or_eof(blf_params_t *params, guint64 real_pos, void *target_buffer, unsigned int count, int *err, gchar **err_info) {
blf_log_container_t *start_container;
blf_log_container_t *end_container;
blf_log_container_t *current_container;
gint start_container_index = -1;
gint... | static gboolean blf_read_bytes_or_eof(blf_params_t *params, guint64 real_pos, void *target_buffer, unsigned int count, int *err, gchar **err_info) {
blf_log_container_t *start_container;
blf_log_container_t *end_container;
blf_log_container_t *current_container;
gint start_container_index = -1;
gint... | static gboolean blf_read_bytes_or_eof(blf_params_t *params, guint64 real_pos, void *target_buffer, unsigned int count, int *err, gchar **err_info) {
gint start_container_index = -1;
gint end_container_index = -1;
current_container_index = start_container_index;
switch (start_container->compression_metho... | static gboolean blf_read_bytes_or_eof(blf_params_t *params, guint64 real_pos, void *target_buffer, unsigned int count, int *err, gchar **err_info) {
gint start_container_index = -1;
gint end_container_index = -1;
current_container_index = start_container_index;
switch (start_container->compression_metho... | static gboolean blf_read_bytes_or_eof(blf_params_t *params, guint64 real_pos, void *target_buffer, unsigned int count, int *err, gchar **err_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
gint start_container_index = -1;
gint end_container_index = -1;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */... | static gboolean blf_read_bytes_or_eof(blf_params_t *params, guint64 real_pos, void *target_buffer, unsigned int count, int *err, gchar **err_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
gint start_container_index = -1;
gint end_container_index = -1;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */... | static gboolean blf_read_bytes_or_eof(blf_params_t *params, guint64 real_pos, void *target_buffer, unsigned int count, int *err, gchar **err_info) {
gint start_container_index = -1;
gint end_container_index = -1;
current_container_index = start_container_index;
switch (start_container->compression_... |
CVE-2023-2858 | Wireshark | https://github.com/wireshark/wireshark | wiretap/netscaler.c | nstrace_read_v10 | static gboolean nstrace_read_v10(wtap *wth, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info, gint64 *data_offset) {
nstrace_t *nstrace = (nstrace_t *)wth->priv;
guint64 nsg_creltime = nstrace->nsg_creltime;
gchar *nstrace_buf = nstrace->pnstrace_buf;
guint32 nstrace_buf_offset = nstrace->nstrace_... | static gboolean nstrace_read_v10(wtap *wth, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info, gint64 *data_offset) {
nstrace_t *nstrace = (nstrace_t *)wth->priv;
guint64 nsg_creltime = nstrace->nsg_creltime;
gchar *nstrace_buf = nstrace->pnstrace_buf;
guint32 nstrace_buf_offset = nstrace->nstrace_... | static gboolean nstrace_read_v10(wtap *wth, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info, gint64 *data_offset) {
nstrace_t *nstrace = (nstrace_t *)wth->priv;
guint64 nsg_creltime = nstrace->nsg_creltime;
gchar *nstrace_buf = nstrace->pnstrace_buf;
guint32 nstrace_buf_offset = nstrace->nstrace_... | static gboolean nstrace_read_v10(wtap *wth, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info, gint64 *data_offset) {
nstrace_t *nstrace = (nstrace_t *)wth->priv;
guint64 nsg_creltime = nstrace->nsg_creltime;
gchar *nstrace_buf = nstrace->pnstrace_buf;
guint32 nstrace_buf_offset = nstrace->nstrace_... | static gboolean nstrace_read_v10(wtap *wth, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info, gint64 *data_offset) {
nstrace_t *nstrace = (nstrace_t *)wth->priv;
gchar *nstrace_buf = nstrace->pnstrace_buf;
guint32 nstrace_buf_offset = nstrace->nstrace_buf_offset;
guint32 nstrace_buflen = nstrace->... | static gboolean nstrace_read_v10(wtap *wth, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info, gint64 *data_offset) {
nstrace_t *nstrace = (nstrace_t *)wth->priv;
gchar *nstrace_buf = nstrace->pnstrace_buf;
guint32 nstrace_buf_offset = nstrace->nstrace_buf_offset;
guint32 nstrace_buflen = nstrace->... | static gboolean nstrace_read_v10(wtap *wth, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info, gint64 *data_offset) {
nstrace_t *nstrace = (nstrace_t *)wth->priv;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
gchar *nstrace_buf = nstrace->pnstrace_buf;
guint32 nstrace_buf_offset = nstrace->nstrace_... | static gboolean nstrace_read_v10(wtap *wth, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info, gint64 *data_offset) {
nstrace_t *nstrace = (nstrace_t *)wth->priv;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
gchar *nstrace_buf = nstrace->pnstrace_buf;
guint32 nstrace_buf_offset = nstrace->nstrace_... | static gboolean nstrace_read_v10(wtap *wth, wtap_rec *rec, Buffer *buf, int *err, gchar **err_info, gint64 *data_offset) {
nstrace_t *nstrace = (nstrace_t *)wth->priv;
gchar *nstrace_buf = nstrace->pnstrace_buf;
guint32 nstrace_buf_offset = nstrace->nstrace_buf_offset;
guint32 nstrace_buflen = nstr... |
CVE-2023-2879 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-gdsdb.c | add_uint_string | static int add_uint_string(proto_tree *tree, int hf_string, tvbuff_t *tvb, int offset) {
proto_item* ti;
int length;
ti = proto_tree_add_item(tree, hf_string, tvb, offset, 4, ENC_ASCII|ENC_BIG_ENDIAN);
length = dword_align(tvb_get_ntohl(tvb, offset))+4;
proto_item_set_len(ti, length);
int ret_of... | static int add_uint_string(proto_tree *tree, int hf_string, tvbuff_t *tvb, int offset) {
proto_item* ti;
int length;
ti = proto_tree_add_item(tree, hf_string, tvb, offset, 4, ENC_ASCII|ENC_BIG_ENDIAN);
length = dword_align(tvb_get_ntohl(tvb, offset))+4;
proto_item_set_len(ti, length);
int ret_of... | static int add_uint_string(proto_tree *tree, int hf_string, tvbuff_t *tvb, int offset) {
proto_item* ti;
int length;
ti = proto_tree_add_item(tree, hf_string, tvb, offset, 4, ENC_ASCII|ENC_BIG_ENDIAN);
length = dword_align(tvb_get_ntohl(tvb, offset))+4;
proto_item_set_len(ti, length);
int ret_of... | static int add_uint_string(proto_tree *tree, int hf_string, tvbuff_t *tvb, int offset) {
proto_item* ti;
int length;
ti = proto_tree_add_item(tree, hf_string, tvb, offset, 4, ENC_ASCII|ENC_BIG_ENDIAN);
length = dword_align(tvb_get_ntohl(tvb, offset))+4;
proto_item_set_len(ti, length);
int ret_of... | static int add_uint_string(proto_tree *tree, int hf_string, tvbuff_t *tvb, int offset) {
ti = proto_tree_add_item(tree, hf_string, tvb, offset, 4, ENC_ASCII|ENC_BIG_ENDIAN);
length = dword_align(tvb_get_ntohl(tvb, offset))+4;
proto_item_set_len(ti, length);
int ret_offset = offset + length;
if (leng... | static int add_uint_string(proto_tree *tree, int hf_string, tvbuff_t *tvb, int offset) {
ti = proto_tree_add_item(tree, hf_string, tvb, offset, 4, ENC_ASCII|ENC_BIG_ENDIAN);
length = dword_align(tvb_get_ntohl(tvb, offset))+4;
proto_item_set_len(ti, length);
int ret_offset = offset + length;
if (leng... | static int add_uint_string(proto_tree *tree, int hf_string, tvbuff_t *tvb, int offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ti = proto_tree_add_item(tree, hf_string, tvb, offset, 4, ENC_ASCII|ENC_BIG_ENDIAN);
length = dword_align(tvb_get_ntohl(tvb, offset))+4;
proto_item_set_len(ti, length);
... | static int add_uint_string(proto_tree *tree, int hf_string, tvbuff_t *tvb, int offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ti = proto_tree_add_item(tree, hf_string, tvb, offset, 4, ENC_ASCII|ENC_BIG_ENDIAN);
length = dword_align(tvb_get_ntohl(tvb, offset))+4;
proto_item_set_len(ti, length);
... | static int add_uint_string(proto_tree *tree, int hf_string, tvbuff_t *tvb, int offset) {
ti = proto_tree_add_item(tree, hf_string, tvb, offset, 4, ENC_ASCII|ENC_BIG_ENDIAN);
length = dword_align(tvb_get_ntohl(tvb, offset))+4;
proto_item_set_len(ti, length);
int ret_offset = offset + length;
if... |
CVE-2023-2952 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-xra.c | dissect_message_channel_mb | static void dissect_message_channel_mb(tvbuff_t * tvb, packet_info * pinfo, proto_tree* tree, guint16 remaining_length) {
proto_tree_add_item (tree, hf_plc_mb_mc_reserved, tvb, 0, 1, ENC_BIG_ENDIAN);
gboolean packet_start_pointer_field_present;
guint packet_start_pointer;
proto_tree_add_item_ret_boolean... | static void dissect_message_channel_mb(tvbuff_t * tvb, packet_info * pinfo, proto_tree* tree, guint16 remaining_length) {
proto_tree_add_item (tree, hf_plc_mb_mc_reserved, tvb, 0, 1, ENC_BIG_ENDIAN);
gboolean packet_start_pointer_field_present;
unsigned packet_start_pointer;
proto_tree_add_item_ret_bool... | static void dissect_message_channel_mb(tvbuff_t * tvb, packet_info * pinfo, proto_tree* tree, guint16 remaining_length) {
proto_tree_add_item (tree, hf_plc_mb_mc_reserved, tvb, 0, 1, ENC_BIG_ENDIAN);
guint packet_start_pointer_field_present, packet_start_pointer;
proto_tree_add_item_ret_uint (tree, hf_plc_m... | static void dissect_message_channel_mb(tvbuff_t * tvb, packet_info * pinfo, proto_tree* tree, guint16 remaining_length) {
proto_tree_add_item (tree, hf_plc_mb_mc_reserved, tvb, 0, 1, ENC_BIG_ENDIAN);
guint packet_start_pointer_field_present, packet_start_pointer;
proto_tree_add_item_ret_uint (tree, hf_plc_m... | static void dissect_message_channel_mb(tvbuff_t * tvb, packet_info * pinfo, proto_tree* tree, guint16 remaining_length) {
proto_tree_add_item (tree, hf_plc_mb_mc_reserved, tvb, 0, 1, ENC_BIG_ENDIAN);
gboolean packet_start_pointer_field_present;
guint packet_start_pointer;
proto_tree_add_item_ret_boolean... | static void dissect_message_channel_mb(tvbuff_t * tvb, packet_info * pinfo, proto_tree* tree, guint16 remaining_length) {
proto_tree_add_item (tree, hf_plc_mb_mc_reserved, tvb, 0, 1, ENC_BIG_ENDIAN);
gboolean packet_start_pointer_field_present;
unsigned packet_start_pointer;
proto_tree_add_item_ret_bool... | static void dissect_message_channel_mb(tvbuff_t * tvb, packet_info * pinfo, proto_tree* tree, guint16 remaining_length) {
proto_tree_add_item (tree, hf_plc_mb_mc_reserved, tvb, 0, 1, ENC_BIG_ENDIAN);
guint packet_start_pointer_field_present, packet_start_pointer;
proto_tree_add_item_ret_uint (tree, hf_plc_m... | static void dissect_message_channel_mb(tvbuff_t * tvb, packet_info * pinfo, proto_tree* tree, guint16 remaining_length) {
proto_tree_add_item (tree, hf_plc_mb_mc_reserved, tvb, 0, 1, ENC_BIG_ENDIAN);
guint packet_start_pointer_field_present, packet_start_pointer;
proto_tree_add_item_ret_uint (tree, hf_plc_m... | static void dissect_message_channel_mb(tvbuff_t * tvb, packet_info * pinfo, proto_tree* tree, guint16 remaining_length) {
proto_tree_add_item (tree, hf_plc_mb_mc_reserved, tvb, 0, 1, ENC_BIG_ENDIAN);
gboolean packet_start_pointer_field_present;
- guint packet_start_pointer;
+ unsigned packet_start_poin... |
CVE-2023-2952 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-xra.c | dissect_ncp | static int dissect_ncp(tvbuff_t * tvb, proto_tree * tree, void* data ) {
guint16 offset = 0;
proto_tree *ncp_tree;
proto_item *ncp_item;
tvbuff_t *ncp_mb_tvb;
ncp_item = proto_tree_add_protocol_format (tree, proto_ncp, tvb, 0, -1, "DOCSIS NCP");
ncp_tree = proto_item_add_subtree (ncp_item, ett_n... | static int dissect_ncp(tvbuff_t * tvb, proto_tree * tree, void* data ) {
int offset = 0;
proto_tree *ncp_tree;
proto_item *ncp_item;
tvbuff_t *ncp_mb_tvb;
ncp_item = proto_tree_add_protocol_format (tree, proto_ncp, tvb, 0, -1, "DOCSIS NCP");
ncp_tree = proto_item_add_subtree (ncp_item, ett_ncp);... | static int dissect_ncp(tvbuff_t * tvb, proto_tree * tree, void* data ) {
guint16 offset = 0;
proto_tree *ncp_tree;
proto_item *ncp_item;
tvbuff_t *ncp_mb_tvb;
ncp_item = proto_tree_add_protocol_format (tree, proto_ncp, tvb, 0, -1, "DOCSIS NCP");
ncp_tree = proto_item_add_subtree (ncp_item, ett_n... | static int dissect_ncp(tvbuff_t * tvb, proto_tree * tree, void* data ) {
int offset = 0;
proto_tree *ncp_tree;
proto_item *ncp_item;
tvbuff_t *ncp_mb_tvb;
ncp_item = proto_tree_add_protocol_format (tree, proto_ncp, tvb, 0, -1, "DOCSIS NCP");
ncp_tree = proto_item_add_subtree (ncp_item, ett_ncp);... | static int dissect_ncp(tvbuff_t * tvb, proto_tree * tree, void* data ) {
guint16 offset = 0;
proto_tree *ncp_tree;
ncp_item = proto_tree_add_protocol_format (tree, proto_ncp, tvb, 0, -1, "DOCSIS NCP");
while (tvb_captured_length_remaining(tvb, offset) > 3) {
ncp_mb_tvb = tvb_new_subset_length(tv... | static int dissect_ncp(tvbuff_t * tvb, proto_tree * tree, void* data ) {
int offset = 0;
proto_tree *ncp_tree;
ncp_item = proto_tree_add_protocol_format (tree, proto_ncp, tvb, 0, -1, "DOCSIS NCP");
while (tvb_captured_length_remaining(tvb, offset) > 3) {
ncp_mb_tvb = tvb_new_subset_length(tvb, o... | static int dissect_ncp(tvbuff_t * tvb, proto_tree * tree, void* data ) {
guint16 offset = 0;
proto_tree *ncp_tree;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ncp_item = proto_tree_add_protocol_format (tree, proto_ncp, tvb, 0, -1, "DOCSIS NCP");
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
wh... | static int dissect_ncp(tvbuff_t * tvb, proto_tree * tree, void* data ) {
int offset = 0;
proto_tree *ncp_tree;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ncp_item = proto_tree_add_protocol_format (tree, proto_ncp, tvb, 0, -1, "DOCSIS NCP");
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
while ... | static int dissect_ncp(tvbuff_t * tvb, proto_tree * tree, void* data ) {
- guint16 offset = 0;
+ int offset = 0;
proto_tree *ncp_tree;
ncp_item = proto_tree_add_protocol_format (tree, proto_ncp, tvb, 0, -1, "DOCSIS NCP");
while (tvb_captured_length_remaining(tvb, offset) > 3) {
ncp_mb_tvb... |
CVE-2023-2952 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-xra.c | dissect_plc | static int dissect_plc(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data ) {
guint16 offset = 0;
proto_tree *plc_tree;
proto_item *plc_item;
tvbuff_t *mb_tvb;
plc_item = proto_tree_add_protocol_format (tree, proto_plc, tvb, 0, -1, "DOCSIS PLC");
plc_tree = proto_item_add_subtree... | static int dissect_plc(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data ) {
int offset = 0;
proto_tree *plc_tree;
proto_item *plc_item;
tvbuff_t *mb_tvb;
plc_item = proto_tree_add_protocol_format (tree, proto_plc, tvb, 0, -1, "DOCSIS PLC");
plc_tree = proto_item_add_subtree (pl... | static int dissect_plc(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data ) {
guint16 offset = 0;
proto_tree *plc_tree;
proto_item *plc_item;
tvbuff_t *mb_tvb;
plc_item = proto_tree_add_protocol_format (tree, proto_plc, tvb, 0, -1, "DOCSIS PLC");
plc_tree = proto_item_add_subtree... | static int dissect_plc(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data ) {
int offset = 0;
proto_tree *plc_tree;
proto_item *plc_item;
tvbuff_t *mb_tvb;
plc_item = proto_tree_add_protocol_format (tree, proto_plc, tvb, 0, -1, "DOCSIS PLC");
plc_tree = proto_item_add_subtree (pl... | static int dissect_plc(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data ) {
guint16 offset = 0;
proto_tree *plc_tree;
plc_item = proto_tree_add_protocol_format (tree, proto_plc, tvb, 0, -1, "DOCSIS PLC");
while (tvb_reported_length_remaining(tvb, offset) > 0) {
guint8 mb_type =... | static int dissect_plc(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data ) {
int offset = 0;
proto_tree *plc_tree;
plc_item = proto_tree_add_protocol_format (tree, proto_plc, tvb, 0, -1, "DOCSIS PLC");
while (tvb_reported_length_remaining(tvb, offset) > 0) {
guint8 mb_type = tvb... | static int dissect_plc(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data ) {
guint16 offset = 0;
proto_tree *plc_tree;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
plc_item = proto_tree_add_protocol_format (tree, proto_plc, tvb, 0, -1, "DOCSIS PLC");
/* PLACEHOLDER: DO NOT DELETE T... | static int dissect_plc(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data ) {
int offset = 0;
proto_tree *plc_tree;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
plc_item = proto_tree_add_protocol_format (tree, proto_plc, tvb, 0, -1, "DOCSIS PLC");
/* PLACEHOLDER: DO NOT DELETE THIS ... | static int dissect_plc(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data ) {
- guint16 offset = 0;
+ int offset = 0;
proto_tree *plc_tree;
plc_item = proto_tree_add_protocol_format (tree, proto_plc, tvb, 0, -1, "DOCSIS PLC");
while (tvb_reported_length_remaining(tvb, offset) > 0) ... |
CVE-2023-2952 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-xra.c | dissect_xra_tlv | static int dissect_xra_tlv(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data, guint16 tlv_length, guint* segment_header_present) {
proto_item *it;
proto_tree *xra_tlv_tree;
guint symbol_id;
double mer, power_level;
it = proto_tree_add_item (tree, hf_xra_tlv, tvb, 0, tlv_length, ENC_... | static int dissect_xra_tlv(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data, guint16 tlv_length, guint* segment_header_present) {
proto_item *it;
proto_tree *xra_tlv_tree;
guint symbol_id;
double mer, power_level;
it = proto_tree_add_item (tree, hf_xra_tlv, tvb, 0, tlv_length, ENC_... | static int dissect_xra_tlv(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data, guint16 tlv_length, guint* segment_header_present) {
proto_item *it;
proto_tree *xra_tlv_tree;
guint symbol_id;
double mer, power_level;
it = proto_tree_add_item (tree, hf_xra_tlv, tvb, 0, tlv_length, ENC_... | static int dissect_xra_tlv(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data, guint16 tlv_length, guint* segment_header_present) {
proto_item *it;
proto_tree *xra_tlv_tree;
guint symbol_id;
double mer, power_level;
it = proto_tree_add_item (tree, hf_xra_tlv, tvb, 0, tlv_length, ENC_... | static int dissect_xra_tlv(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data, guint16 tlv_length, guint* segment_header_present) {
xra_tlv_tree = proto_item_add_subtree (it, ett_xra_tlv);
guint32 tlv_index =0;
tvbuff_t *xra_tlv_cw_info_tvb, *xra_tlv_ms_info_tvb, *xra_tlv_burst_info_tvb;
... | static int dissect_xra_tlv(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data, guint16 tlv_length, guint* segment_header_present) {
xra_tlv_tree = proto_item_add_subtree (it, ett_xra_tlv);
unsigned tlv_index = 0;
tvbuff_t *xra_tlv_cw_info_tvb, *xra_tlv_ms_info_tvb, *xra_tlv_burst_info_tvb;
... | static int dissect_xra_tlv(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data, guint16 tlv_length, guint* segment_header_present) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
xra_tlv_tree = proto_item_add_subtree (it, ett_xra_tlv);
guint32 tlv_index =0;
tvbuff_t *xra_tlv_cw_info_tvb, ... | static int dissect_xra_tlv(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data, guint16 tlv_length, guint* segment_header_present) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
xra_tlv_tree = proto_item_add_subtree (it, ett_xra_tlv);
unsigned tlv_index = 0;
tvbuff_t *xra_tlv_cw_info_tvb... | static int dissect_xra_tlv(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, void* data, guint16 tlv_length, guint* segment_header_present) {
xra_tlv_tree = proto_item_add_subtree (it, ett_xra_tlv);
- guint32 tlv_index =0;
+ unsigned tlv_index = 0;
tvbuff_t *xra_tlv_cw_info_tvb, *xra_tlv_ms_info_... |
CVE-2023-2952 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-xra.c | dissect_xra_tlv_burst_info | static int dissect_xra_tlv_burst_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
proto_item *it;
proto_tree *xra_tlv_burst_info_tree;
it = proto_tree_add_item (tree, hf_xra_tlv_burst_info, tvb, 0, tlv_length, ENC_NA);
xra_tlv_burst_info_tree = proto_item_add_subtree (it, ett_xr... | static int dissect_xra_tlv_burst_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
proto_item *it;
proto_tree *xra_tlv_burst_info_tree;
it = proto_tree_add_item (tree, hf_xra_tlv_burst_info, tvb, 0, tlv_length, ENC_NA);
xra_tlv_burst_info_tree = proto_item_add_subtree (it, ett_xr... | static int dissect_xra_tlv_burst_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
proto_item *it;
proto_tree *xra_tlv_burst_info_tree;
it = proto_tree_add_item (tree, hf_xra_tlv_burst_info, tvb, 0, tlv_length, ENC_NA);
xra_tlv_burst_info_tree = proto_item_add_subtree (it, ett_xr... | static int dissect_xra_tlv_burst_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
proto_item *it;
proto_tree *xra_tlv_burst_info_tree;
it = proto_tree_add_item (tree, hf_xra_tlv_burst_info, tvb, 0, tlv_length, ENC_NA);
xra_tlv_burst_info_tree = proto_item_add_subtree (it, ett_xr... | static int dissect_xra_tlv_burst_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
xra_tlv_burst_info_tree = proto_item_add_subtree (it, ett_xra_tlv_burst_info);
guint32 tlv_index =0;
while (tlv_index < tlv_length) {
guint8 type = tvb_get_guint8 (tvb, tlv_index);
++tl... | static int dissect_xra_tlv_burst_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
xra_tlv_burst_info_tree = proto_item_add_subtree (it, ett_xra_tlv_burst_info);
unsigned tlv_index = 0;
while (tlv_index < tlv_length) {
guint8 type = tvb_get_guint8 (tvb, tlv_index);
++... | static int dissect_xra_tlv_burst_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
xra_tlv_burst_info_tree = proto_item_add_subtree (it, ett_xra_tlv_burst_info);
guint32 tlv_index =0;
while (tlv_index < tlv_length) {
guint8 ty... | static int dissect_xra_tlv_burst_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
xra_tlv_burst_info_tree = proto_item_add_subtree (it, ett_xra_tlv_burst_info);
unsigned tlv_index = 0;
while (tlv_index < tlv_length) {
guint8 ... | static int dissect_xra_tlv_burst_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
xra_tlv_burst_info_tree = proto_item_add_subtree (it, ett_xra_tlv_burst_info);
- guint32 tlv_index =0;
+ unsigned tlv_index = 0;
while (tlv_index < tlv_length) {
guint8 type = tvb_get_gui... |
CVE-2023-2952 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-xra.c | dissect_xra_tlv_cw_info | static int dissect_xra_tlv_cw_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
proto_item *it;
proto_tree *xra_tlv_cw_info_tree;
it = proto_tree_add_item (tree, hf_xra_tlv_cw_info, tvb, 0, tlv_length, ENC_NA);
xra_tlv_cw_info_tree = proto_item_add_subtree (it, ett_xra_tlv_cw_inf... | static int dissect_xra_tlv_cw_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
proto_item *it;
proto_tree *xra_tlv_cw_info_tree;
it = proto_tree_add_item (tree, hf_xra_tlv_cw_info, tvb, 0, tlv_length, ENC_NA);
xra_tlv_cw_info_tree = proto_item_add_subtree (it, ett_xra_tlv_cw_inf... | static int dissect_xra_tlv_cw_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
proto_item *it;
proto_tree *xra_tlv_cw_info_tree;
it = proto_tree_add_item (tree, hf_xra_tlv_cw_info, tvb, 0, tlv_length, ENC_NA);
xra_tlv_cw_info_tree = proto_item_add_subtree (it, ett_xra_tlv_cw_inf... | static int dissect_xra_tlv_cw_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
proto_item *it;
proto_tree *xra_tlv_cw_info_tree;
it = proto_tree_add_item (tree, hf_xra_tlv_cw_info, tvb, 0, tlv_length, ENC_NA);
xra_tlv_cw_info_tree = proto_item_add_subtree (it, ett_xra_tlv_cw_inf... | static int dissect_xra_tlv_cw_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
xra_tlv_cw_info_tree = proto_item_add_subtree (it, ett_xra_tlv_cw_info);
guint32 tlv_index =0;
while (tlv_index < tlv_length) {
guint8 type = tvb_get_guint8 (tvb, tlv_index);
++tlv_index;
... | static int dissect_xra_tlv_cw_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
xra_tlv_cw_info_tree = proto_item_add_subtree (it, ett_xra_tlv_cw_info);
unsigned tlv_index = 0;
while (tlv_index < tlv_length) {
guint8 type = tvb_get_guint8 (tvb, tlv_index);
++tlv_index... | static int dissect_xra_tlv_cw_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
xra_tlv_cw_info_tree = proto_item_add_subtree (it, ett_xra_tlv_cw_info);
guint32 tlv_index =0;
while (tlv_index < tlv_length) {
guint8 type = tvb_... | static int dissect_xra_tlv_cw_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
xra_tlv_cw_info_tree = proto_item_add_subtree (it, ett_xra_tlv_cw_info);
unsigned tlv_index = 0;
while (tlv_index < tlv_length) {
guint8 type = tv... | static int dissect_xra_tlv_cw_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
xra_tlv_cw_info_tree = proto_item_add_subtree (it, ett_xra_tlv_cw_info);
- guint32 tlv_index =0;
+ unsigned tlv_index = 0;
while (tlv_index < tlv_length) {
guint8 type = tvb_get_guint8 (tvb,... |
CVE-2023-2952 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-xra.c | dissect_xra_tlv_ms_info | static int dissect_xra_tlv_ms_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
proto_item *it;
proto_tree *xra_tlv_ms_info_tree;
it = proto_tree_add_item (tree, hf_xra_tlv_ms_info, tvb, 0, tlv_length, ENC_NA);
xra_tlv_ms_info_tree = proto_item_add_subtree (it, ett_xra_tlv_ms_inf... | static int dissect_xra_tlv_ms_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
proto_item *it;
proto_tree *xra_tlv_ms_info_tree;
it = proto_tree_add_item (tree, hf_xra_tlv_ms_info, tvb, 0, tlv_length, ENC_NA);
xra_tlv_ms_info_tree = proto_item_add_subtree (it, ett_xra_tlv_ms_inf... | static int dissect_xra_tlv_ms_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
proto_item *it;
proto_tree *xra_tlv_ms_info_tree;
it = proto_tree_add_item (tree, hf_xra_tlv_ms_info, tvb, 0, tlv_length, ENC_NA);
xra_tlv_ms_info_tree = proto_item_add_subtree (it, ett_xra_tlv_ms_inf... | static int dissect_xra_tlv_ms_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
proto_item *it;
proto_tree *xra_tlv_ms_info_tree;
it = proto_tree_add_item (tree, hf_xra_tlv_ms_info, tvb, 0, tlv_length, ENC_NA);
xra_tlv_ms_info_tree = proto_item_add_subtree (it, ett_xra_tlv_ms_inf... | static int dissect_xra_tlv_ms_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
xra_tlv_ms_info_tree = proto_item_add_subtree (it, ett_xra_tlv_ms_info);
guint32 tlv_index =0;
while (tlv_index < tlv_length) {
guint8 type = tvb_get_guint8 (tvb, tlv_index);
++tlv_index;
... | static int dissect_xra_tlv_ms_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
xra_tlv_ms_info_tree = proto_item_add_subtree (it, ett_xra_tlv_ms_info);
unsigned tlv_index = 0;
while (tlv_index < tlv_length) {
guint8 type = tvb_get_guint8 (tvb, tlv_index);
++tlv_index... | static int dissect_xra_tlv_ms_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
xra_tlv_ms_info_tree = proto_item_add_subtree (it, ett_xra_tlv_ms_info);
guint32 tlv_index =0;
while (tlv_index < tlv_length) {
guint8 type = tvb_... | static int dissect_xra_tlv_ms_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
xra_tlv_ms_info_tree = proto_item_add_subtree (it, ett_xra_tlv_ms_info);
unsigned tlv_index = 0;
while (tlv_index < tlv_length) {
guint8 type = tv... | static int dissect_xra_tlv_ms_info(tvbuff_t * tvb, proto_tree * tree, void* data, guint16 tlv_length) {
xra_tlv_ms_info_tree = proto_item_add_subtree (it, ett_xra_tlv_ms_info);
- guint32 tlv_index =0;
+ unsigned tlv_index = 0;
while (tlv_index < tlv_length) {
guint8 type = tvb_get_guint8 (tvb,... |
CVE-2023-35852 | Suricata | https://github.com/OISF/suricata | src/detect-dataset.c | SetupSavePath | static int SetupSavePath(const DetectEngineCtx *de_ctx, char *save, size_t save_size) {
SCLogDebug("save %s", save);
int allow_absolute = 0;
(void)ConfGetBool("datasets.rules.allow-absolute-filenames", &allow_absolute);
if (allow_absolute) {
SCLogNotice("Allowing absolute filename for dataset ru... | static int SetupSavePath(const DetectEngineCtx *de_ctx, char *save, size_t save_size) {
SCLogDebug("save %s", save);
int allow_save = 1;
if (ConfGetBool("datasets.rules.allow-write", &allow_save)) {
if (!allow_save) {
SCLogError(SC_ERR_VALID_SIGNATURE, "Rules containing save/state datase... | static int SetupSavePath(const DetectEngineCtx *de_ctx, char *save, size_t save_size) {
SCLogDebug("save %s", save);
int allow_absolute = 0;
(void)ConfGetBool("datasets.rules.allow-absolute-filenames", &allow_absolute);
if (allow_absolute) {
SCLogNotice("Allowing absolute filename for dataset ru... | static int SetupSavePath(const DetectEngineCtx *de_ctx, char *save, size_t save_size) {
SCLogDebug("save %s", save);
int allow_save = 1;
if (ConfGetBool("datasets.rules.allow-write", &allow_save)) {
if (!allow_save) {
SCLogError("Rules containing save/state datasets have been disabled");... | static int SetupSavePath(const DetectEngineCtx *de_ctx, char *save, size_t save_size) {
SCLogDebug("save %s", save);
int allow_absolute = 0;
}
| static int SetupSavePath(const DetectEngineCtx *de_ctx, char *save, size_t save_size) {
SCLogDebug("save %s", save);
int allow_save = 1;
if (ConfGetBool("datasets.rules.allow-write", &allow_save)) {
if (!allow_save) {
SCLogError(SC_ERR_VALID_SIGNATURE, "Rules containing save/state datase... | static int SetupSavePath(const DetectEngineCtx *de_ctx, char *save, size_t save_size) {
SCLogDebug("save %s", save);
int allow_absolute = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}
| static int SetupSavePath(const DetectEngineCtx *de_ctx, char *save, size_t save_size) {
SCLogDebug("save %s", save);
int allow_save = 1;
if (ConfGetBool("datasets.rules.allow-write", &allow_save)) {
if (!allow_save) {
SCLogError("Rules containing save/state datasets have been disabled");... | static int SetupSavePath(const DetectEngineCtx *de_ctx, char *save, size_t save_size) {
SCLogDebug("save %s", save);
+ int allow_save = 1;
+ if (ConfGetBool("datasets.rules.allow-write", &allow_save)) {
+ if (!allow_save) {
+ SCLogError(SC_ERR_VALID_SIGNATURE, "Rules containing save/state ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.