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-2017-6419
ClamAV
https://github.com/Cisco-Talos/clamav
libclamav/libmspack.c
mspack_fmap_free
static void mspack_fmap_free(void *mem) { free(mem); }
static void mspack_fmap_free(void *mem) { if(mem) { free(mem); mem = NULL; } return; }
static void mspack_fmap_free(void *mem) { free(mem); }
static void mspack_fmap_free(void *mem) { if(mem) { free(mem); mem = NULL; } return; }
static void mspack_fmap_free(void *mem) { free(mem); }
static void mspack_fmap_free(void *mem) { if(mem) { free(mem); mem = NULL; } return; }
static void mspack_fmap_free(void *mem) { free(mem); }
static void mspack_fmap_free(void *mem) { if(mem) { free(mem); mem = NULL; } return; }
static void mspack_fmap_free(void *mem) { - free(mem); + if(mem) { + free(mem); + mem = NULL; + } + return; }
CVE-2017-6420
ClamAV
https://github.com/Cisco-Talos/clamav
libclamav/wwunpack.c
wwunpack
int wwunpack(uint8_t *exe, uint32_t exesz, uint8_t *wwsect, struct cli_exe_section *sects, uint16_t scount, uint32_t pe, int desc) { uint8_t *structs = wwsect + 0x2a1, *compd, *ccur, *unpd, *ucur, bc; uint32_t src, srcend, szd, bt, bits; int error=0, i; cli_dbgmsg("in wwunpack\n"); while (1) { ...
int wwunpack(uint8_t *exe, uint32_t exesz, uint8_t *wwsect, struct cli_exe_section *sects, uint16_t scount, uint32_t pe, int desc) { uint8_t *structs = wwsect + 0x2a1, *compd, *ccur, *unpd, *ucur, bc; uint32_t src, srcend, szd, bt, bits; int error=0, i; cli_dbgmsg("in wwunpack\n"); while (1) { ...
int wwunpack(uint8_t *exe, uint32_t exesz, uint8_t *wwsect, struct cli_exe_section *sects, uint16_t scount, uint32_t pe, int desc) { uint8_t *structs = wwsect + 0x2a1, *compd, *ccur, *unpd, *ucur, bc; uint32_t src, srcend, szd, bt, bits; int error=0, i; cli_dbgmsg("in wwunpack\n"); while (1) { ...
int wwunpack(uint8_t *exe, uint32_t exesz, uint8_t *wwsect, struct cli_exe_section *sects, uint16_t scount, uint32_t pe, int desc) { uint8_t *structs = wwsect + 0x2a1, *compd, *ccur, *unpd, *ucur, bc; uint32_t src, srcend, szd, bt, bits; int error=0, i; cli_dbgmsg("in wwunpack\n"); while (1) { ...
int wwunpack(uint8_t *exe, uint32_t exesz, uint8_t *wwsect, struct cli_exe_section *sects, uint16_t scount, uint32_t pe, int desc) { uint8_t *structs = wwsect + 0x2a1, *compd, *ccur, *unpd, *ucur, bc; if(!error) { exe[pe+7]=(uint8_t)(scount>>8); cli_writeint32(&exe[pe+0x28], cli_readint32(wwsect...
int wwunpack(uint8_t *exe, uint32_t exesz, uint8_t *wwsect, struct cli_exe_section *sects, uint16_t scount, uint32_t pe, int desc) { uint8_t *structs = wwsect + 0x2a1, *compd, *ccur, *unpd, *ucur, bc; if(!error) { exe[pe+7]=(uint8_t)(scount>>8); if (!CLI_ISCONTAED(wwsect, sects[scount].rsz, wwse...
int wwunpack(uint8_t *exe, uint32_t exesz, uint8_t *wwsect, struct cli_exe_section *sects, uint16_t scount, uint32_t pe, int desc) { uint8_t *structs = wwsect + 0x2a1, *compd, *ccur, *unpd, *ucur, bc; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if(!error) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT *...
int wwunpack(uint8_t *exe, uint32_t exesz, uint8_t *wwsect, struct cli_exe_section *sects, uint16_t scount, uint32_t pe, int desc) { uint8_t *structs = wwsect + 0x2a1, *compd, *ccur, *unpd, *ucur, bc; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if(!error) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT *...
int wwunpack(uint8_t *exe, uint32_t exesz, uint8_t *wwsect, struct cli_exe_section *sects, uint16_t scount, uint32_t pe, int desc) { uint8_t *structs = wwsect + 0x2a1, *compd, *ccur, *unpd, *ucur, bc; if(!error) { exe[pe+7]=(uint8_t)(scount>>8); + if (!CLI_ISCONTAED(wwsect, sects[scount].rsz,...
CVE-2017-6467
Wireshark
https://github.com/wireshark/wireshark
wiretap/netscaler.c
nstrace_read_v30
static gboolean nstrace_read_v30(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; guint64 nsg_creltime; gchar *nstrace_buf = nstrace->pnstrace_buf; gint32 nstrace_buf_offset = nstrace->nstrace_buf_offset; gint32 nstrace_buflen = nstrace->nstr...
static gboolean nstrace_read_v30(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; guint64 nsg_creltime; gchar *nstrace_buf = nstrace->pnstrace_buf; gint32 nstrace_buf_offset = nstrace->nstrace_buf_offset; gint32 nstrace_buflen = nstrace->nstr...
static gboolean nstrace_read_v30(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; guint64 nsg_creltime; gchar *nstrace_buf = nstrace->pnstrace_buf; gint32 nstrace_buf_offset = nstrace->nstrace_buf_offset; gint32 nstrace_buflen = nstrace->nstr...
static gboolean nstrace_read_v30(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; guint64 nsg_creltime; gchar *nstrace_buf = nstrace->pnstrace_buf; gint32 nstrace_buf_offset = nstrace->nstrace_buf_offset; gint32 nstrace_buflen = nstrace->nstr...
static gboolean nstrace_read_v30(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; gint32 nstrace_buflen = nstrace->nstrace_buflen; *err_info = NULL; do { if (!nstrace_buf[nstrace_buf_offset] && nstrace_buf_offset <= NSPR_PAGESIZE_TRACE) {...
static gboolean nstrace_read_v30(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; gint32 nstrace_buflen = nstrace->nstrace_buflen; *err_info = NULL; if(nstrace_buflen == 0) { return FALSE; } do { if (!nstrace_buf[nstrace_b...
static gboolean nstrace_read_v30(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ gint32 nstrace_buflen = nstrace->nstrace_buflen; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ *err_info = NULL; ...
static gboolean nstrace_read_v30(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ gint32 nstrace_buflen = nstrace->nstrace_buflen; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ *err_info = NULL; ...
static gboolean nstrace_read_v30(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; gint32 nstrace_buflen = nstrace->nstrace_buflen; *err_info = NULL; + if(nstrace_buflen == 0) { + return FALSE; + } do { if (!nstrace_buf[...
CVE-2017-6468
Wireshark
https://github.com/wireshark/wireshark
wiretap/netscaler.c
nstrace_read_v10
static gboolean nstrace_read_v10(wtap *wth, 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; gint32 nstrace_buf_offset = nstrace->nstrace_buf_offset; gint32 nstrac...
static gboolean nstrace_read_v10(wtap *wth, 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_buf_offset; guint32 nstr...
static gboolean nstrace_read_v10(wtap *wth, 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; gint32 nstrace_buf_offset = nstrace->nstrace_buf_offset; gint32 nstrac...
static gboolean nstrace_read_v10(wtap *wth, 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_buf_offset; guint32 nstr...
static gboolean nstrace_read_v10(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; gchar *nstrace_buf = nstrace->pnstrace_buf; gint32 nstrace_buf_offset = nstrace->nstrace_buf_offset; gint32 nstrace_buflen = nstrace->nstrace_buflen; int bytes_...
static gboolean nstrace_read_v10(wtap *wth, 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->nstrace_buflen; int byte...
static gboolean nstrace_read_v10(wtap *wth, 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; gint32 nstrace_buf_offset = nstrace->nstrace_buf_offset; gint32 nstrac...
static gboolean nstrace_read_v10(wtap *wth, 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_buf_offset; guint32 nstr...
static gboolean nstrace_read_v10(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; gchar *nstrace_buf = nstrace->pnstrace_buf; - gint32 nstrace_buf_offset = nstrace->nstrace_buf_offset; - gint32 nstrace_buflen = nstrace->nstrace_buflen; + guin...
CVE-2017-6468
Wireshark
https://github.com/wireshark/wireshark
wiretap/netscaler.c
nstrace_read_v20
static gboolean nstrace_read_v20(wtap *wth, 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; gint32 nstrace_buf_offset = nstrace->nstrace_buf_offset; gint32 nstrac...
static gboolean nstrace_read_v20(wtap *wth, 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_buf_offset; guint32 nstr...
static gboolean nstrace_read_v20(wtap *wth, 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; gint32 nstrace_buf_offset = nstrace->nstrace_buf_offset; gint32 nstrac...
static gboolean nstrace_read_v20(wtap *wth, 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_buf_offset; guint32 nstr...
static gboolean nstrace_read_v20(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; gchar *nstrace_buf = nstrace->pnstrace_buf; gint32 nstrace_buf_offset = nstrace->nstrace_buf_offset; gint32 nstrace_buflen = nstrace->nstrace_buflen; int bytes_...
static gboolean nstrace_read_v20(wtap *wth, 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->nstrace_buflen; int byte...
static gboolean nstrace_read_v20(wtap *wth, 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; gint32 nstrace_buf_offset = nstrace->nstrace_buf_offset; gint32 nstrac...
static gboolean nstrace_read_v20(wtap *wth, 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_buf_offset; guint32 nstr...
static gboolean nstrace_read_v20(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; gchar *nstrace_buf = nstrace->pnstrace_buf; - gint32 nstrace_buf_offset = nstrace->nstrace_buf_offset; - gint32 nstrace_buflen = nstrace->nstrace_buflen; + guin...
CVE-2017-6468
Wireshark
https://github.com/wireshark/wireshark
wiretap/netscaler.c
nstrace_read_v30
static gboolean nstrace_read_v30(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; guint64 nsg_creltime; gchar *nstrace_buf = nstrace->pnstrace_buf; gint32 nstrace_buf_offset = nstrace->nstrace_buf_offset; gint32 nstrace_buflen = nstrace->nstr...
static gboolean nstrace_read_v30(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; guint64 nsg_creltime; gchar *nstrace_buf = nstrace->pnstrace_buf; guint32 nstrace_buf_offset = nstrace->nstrace_buf_offset; guint32 nstrace_buflen = nstrace->ns...
static gboolean nstrace_read_v30(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; guint64 nsg_creltime; gchar *nstrace_buf = nstrace->pnstrace_buf; gint32 nstrace_buf_offset = nstrace->nstrace_buf_offset; gint32 nstrace_buflen = nstrace->nstr...
static gboolean nstrace_read_v30(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; guint64 nsg_creltime; gchar *nstrace_buf = nstrace->pnstrace_buf; guint32 nstrace_buf_offset = nstrace->nstrace_buf_offset; guint32 nstrace_buflen = nstrace->ns...
static gboolean nstrace_read_v30(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; gchar *nstrace_buf = nstrace->pnstrace_buf; gint32 nstrace_buf_offset = nstrace->nstrace_buf_offset; gint32 nstrace_buflen = nstrace->nstrace_buflen; guint8 nst...
static gboolean nstrace_read_v30(wtap *wth, 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->nstrace_buflen; guint8 n...
static gboolean nstrace_read_v30(wtap *wth, 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; gint32 nstrace_buf_offset = nstrace->nstrace_buf_offset; gint32 nstrac...
static gboolean nstrace_read_v30(wtap *wth, 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_buf_offset; guint32 nstr...
static gboolean nstrace_read_v30(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; gchar *nstrace_buf = nstrace->pnstrace_buf; - gint32 nstrace_buf_offset = nstrace->nstrace_buf_offset; - gint32 nstrace_buflen = nstrace->nstrace_buflen; + guin...
CVE-2017-6469
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-ldss.c
dissect_ldss_broadcast
static int dissect_ldss_broadcast(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { guint16 messageID; guint8 digest_type; guint8 compression; guint32 cookie; guint8 *digest; guint64 size; guint64 offset; guint32 targetTime; guint16 port; guint16 rate; guint16 messageDet...
static int dissect_ldss_broadcast(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { guint16 messageID; guint8 digest_type; guint8 compression; guint32 cookie; guint8 *digest; guint64 size; guint64 offset; guint32 targetTime; guint16 port; guint16 rate; guint16 messageDet...
static int dissect_ldss_broadcast(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { guint16 messageID; guint8 digest_type; guint8 compression; guint32 cookie; guint8 *digest; guint64 size; guint64 offset; guint32 targetTime; guint16 port; guint16 rate; guint16 messageDet...
static int dissect_ldss_broadcast(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { guint16 messageID; guint8 digest_type; guint8 compression; guint32 cookie; guint8 *digest; guint64 size; guint64 offset; guint32 targetTime; guint16 port; guint16 rate; guint16 messageDet...
static int dissect_ldss_broadcast(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { guint16 messageDetail = FERRED_NONE; messageID = tvb_get_ntohs (tvb, 0); digest_type = tvb_get_guint8 (tvb, 2); compression = tvb_get_guint8 (tvb, 3); cookie = tvb_get_ntohl (tvb, 4); digest = (guint8 *)tvb_...
static int dissect_ldss_broadcast(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { guint16 messageDetail = FERRED_NONE; messageID = tvb_get_ntohs (tvb, 0); digest_type = tvb_get_guint8 (tvb, 2); compression = tvb_get_guint8 (tvb, 3); cookie = tvb_get_ntohl (tvb, 4); digest = (guint8 *)tvb_...
static int dissect_ldss_broadcast(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint16 messageDetail = FERRED_NONE; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ messageID = tvb_get_ntohs (tvb, 0); digest_type = tvb_get_guint8 (tvb, 2); com...
static int dissect_ldss_broadcast(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint16 messageDetail = FERRED_NONE; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ messageID = tvb_get_ntohs (tvb, 0); digest_type = tvb_get_guint8 (tvb, 2); com...
static int dissect_ldss_broadcast(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { guint16 messageDetail = FERRED_NONE; messageID = tvb_get_ntohs (tvb, 0); digest_type = tvb_get_guint8 (tvb, 2); compression = tvb_get_guint8 (tvb, 3); cookie = tvb_get_ntohl (tvb, 4); digest = (guint8...
CVE-2017-6469
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-ldss.c
dissect_ldss_transfer
static int dissect_ldss_transfer (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { conversation_t *transfer_conv; ldss_transfer_info_t *transfer_info; struct tcpinfo *transfer_tcpinfo; proto_tree *ti, *line_tree = NULL, *ldss_tree = NULL; nstime_t broadcast_response_time; if (d...
static int dissect_ldss_transfer (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { conversation_t *transfer_conv; ldss_transfer_info_t *transfer_info; struct tcpinfo *transfer_tcpinfo; proto_tree *ti, *line_tree = NULL, *ldss_tree = NULL; nstime_t broadcast_response_time; if (d...
static int dissect_ldss_transfer (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { conversation_t *transfer_conv; ldss_transfer_info_t *transfer_info; struct tcpinfo *transfer_tcpinfo; proto_tree *ti, *line_tree = NULL, *ldss_tree = NULL; nstime_t broadcast_response_time; if (d...
static int dissect_ldss_transfer (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { conversation_t *transfer_conv; ldss_transfer_info_t *transfer_info; struct tcpinfo *transfer_tcpinfo; proto_tree *ti, *line_tree = NULL, *ldss_tree = NULL; nstime_t broadcast_response_time; if (d...
static int dissect_ldss_transfer (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { if (data == NULL) { return 0; } transfer_conv = find_conversation (pinfo->num, &pinfo->src, &pinfo->dst, PT_TCP, pinfo->srcport, pinfo->destport, 0); DISSECTOR_ASSERT(transfer_conv); transfer...
static int dissect_ldss_transfer (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { if (data == NULL) { return 0; } transfer_conv = find_conversation (pinfo->num, &pinfo->src, &pinfo->dst, PT_TCP, pinfo->srcport, pinfo->destport, 0); DISSECTOR_ASSERT(transfer_conv); transfer...
static int dissect_ldss_transfer (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (data == NULL) { return 0; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ transfer_conv = find_conversation (pinfo->fd->num, &pinfo->src, &pi...
static int dissect_ldss_transfer (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (data == NULL) { return 0; } /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ transfer_conv = find_conversation (pinfo->fd->num, &pinfo->src, &pi...
static int dissect_ldss_transfer (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { if (data == NULL) { return 0; } transfer_conv = find_conversation (pinfo->num, &pinfo->src, &pinfo->dst, PT_TCP, pinfo->srcport, pinfo->destport, 0); DISSECTOR_ASSERT(transfer_conv); t...
CVE-2017-6469
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-ldss.c
proto_register_ldss
void proto_register_ldss (void) { static hf_register_info hf[] = { { &hf_ldss_message_id, { "LDSS Message ID", "ldss.message_id", FT_UT16, BASE_DEC, VALS(ldss_message_id_value), 0x0, NULL, HFILL } }, { &hf_ldss_message_detail, { "In...
void proto_register_ldss (void) { static hf_register_info hf[] = { { &hf_ldss_message_id, { "LDSS Message ID", "ldss.message_id", FT_UT16, BASE_DEC, VALS(ldss_message_id_value), 0x0, NULL, HFILL } }, { &hf_ldss_message_detail, { "In...
void proto_register_ldss (void) { static hf_register_info hf[] = { { &hf_ldss_message_id, { "LDSS Message ID", "ldss.message_id", FT_UT16, BASE_DEC, ldss_message_id_value, 0x0, NULL, HFILL } }, { &hf_ldss_message_detail, { "Inferred...
void proto_register_ldss (void) { static hf_register_info hf[] = { { &hf_ldss_message_id, { "LDSS Message ID", "ldss.message_id", FT_UT16, BASE_DEC, ldss_message_id_value, 0x0, NULL, HFILL } }, { &hf_ldss_message_detail, { "Inferred...
void proto_register_ldss (void) { expert_register_field_array(expert_ldss, ei, array_length(ei)); register_init_routine(&ldss_init_protocol); }
void proto_register_ldss (void) { expert_register_field_array(expert_ldss, ei, array_length(ei)); }
void proto_register_ldss (void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ldss_module = prefs_register_protocol( proto_ldss, proto_reg_handoff_ldss); prefs_register_uint_preference( ldss_module, "udp_port", "LDSS UDP Port", "The UDP port on which " "Local Download Sharing Service " "broadcasts will be...
void proto_register_ldss (void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ldss_module = prefs_register_protocol( proto_ldss, proto_reg_handoff_ldss); prefs_register_uint_preference( ldss_module, "udp_port", "LDSS UDP Port", "The UDP port on which " "Local Download Sharing Service " "broadcasts will be...
void proto_register_ldss (void) { expert_register_field_array(expert_ldss, ei, array_length(ei)); - register_init_routine(&ldss_init_protocol); }
CVE-2017-6470
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-iax2.c
dissect_fullpacket
static guint32 dissect_fullpacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { guint16 dcallno; guint32 ts; guint8 type; guint8 csub; guint32 codec; proto_tree *packet_type_tree = NULL; iax_call_data *iax_call; iax_pa...
static guint32 dissect_fullpacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { guint16 dcallno; guint32 ts; guint8 type; guint8 csub; guint32 codec; proto_tree *packet_type_tree = NULL; iax_call_data *iax_call; iax_pa...
static guint32 dissect_fullpacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { guint16 dcallno; guint32 ts; guint8 type; guint8 csub; guint32 codec; proto_tree *packet_type_tree = NULL; iax_call_data *iax_call; iax_pa...
static guint32 dissect_fullpacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { guint16 dcallno; guint32 ts; guint8 type; guint8 csub; guint32 codec; proto_tree *packet_type_tree = NULL; iax_call_data *iax_call; iax_pa...
static guint32 dissect_fullpacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { dcallno = tvb_get_ntohs(tvb, offset) & 0x7FFF; ts = tvb_get_ntohl(tvb, offset + 2); type = tvb_get_guint8(tvb, offset + 8); csub = tvb_get_guint8(tvb, off...
static guint32 dissect_fullpacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { dcallno = tvb_get_ntohs(tvb, offset) & 0x7FFF; ts = tvb_get_ntohl(tvb, offset + 2); type = tvb_get_guint8(tvb, offset + 8); csub = tvb_get_guint8(tvb, off...
static guint32 dissect_fullpacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ dcallno = tvb_get_ntohs(tvb, offset) & 0x7FFF; ts = tvb_get_ntohl(tvb, offset + 2); type = tvb_get_guint8(tv...
static guint32 dissect_fullpacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ dcallno = tvb_get_ntohs(tvb, offset) & 0x7FFF; ts = tvb_get_ntohl(tvb, offset + 2); type = tvb_get_guint8(tv...
static guint32 dissect_fullpacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { dcallno = tvb_get_ntohs(tvb, offset) & 0x7FFF; ts = tvb_get_ntohl(tvb, offset + 2); type = tvb_get_guint8(tvb, offset + 8); csub = tvb_get_guint8(tvb...
CVE-2017-6470
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-iax2.c
dissect_minipacket
static guint32 dissect_minipacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { guint32 ts; iax_packet_data *iax_packet; proto_item *item; ts = tvb_get_ntohs(tvb, offset); iax_packet = iax2_get_packet_data_for_minipacket(pinfo, sc...
static guint32 dissect_minipacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { guint32 ts; iax_packet_data *iax_packet; proto_item *item; ts = tvb_get_ntohs(tvb, offset); iax_packet = iax2_get_packet_data_for_minipacket(pinfo, sc...
static guint32 dissect_minipacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { guint32 ts; iax_packet_data *iax_packet; proto_item *item; ts = tvb_get_ntohs(tvb, offset); iax_packet = iax2_get_packet_data_for_minipacket(pinfo, sc...
static guint32 dissect_minipacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { guint32 ts; iax_packet_data *iax_packet; proto_item *item; ts = tvb_get_ntohs(tvb, offset); iax_packet = iax2_get_packet_data_for_minipacket(pinfo, sc...
static guint32 dissect_minipacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { ts = tvb_get_ntohs(tvb, offset); iax_packet = iax2_get_packet_data_for_minipacket(pinfo, scallno, FALSE); if (iax2_tree) { if (iax_packet->call_data) ...
static guint32 dissect_minipacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { ts = tvb_get_ntohs(tvb, offset); iax_packet = iax2_get_packet_data_for_minipacket(pinfo, scallno, FALSE); if (iax2_tree) { if (iax_packet->call_data) ...
static guint32 dissect_minipacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ts = tvb_get_ntohs(tvb, offset); iax_packet = iax2_get_packet_data_for_minipacket(pinfo, scallno, FALSE); if...
static guint32 dissect_minipacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ts = tvb_get_ntohs(tvb, offset); iax_packet = iax2_get_packet_data_for_minipacket(pinfo, scallno, FALSE); if...
static guint32 dissect_minipacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { ts = tvb_get_ntohs(tvb, offset); iax_packet = iax2_get_packet_data_for_minipacket(pinfo, scallno, FALSE); if (iax2_tree) { if (iax_packet->call_d...
CVE-2017-6470
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-iax2.c
dissect_minivideopacket
static guint32 dissect_minivideopacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { guint32 ts; iax_packet_data *iax_packet; gboolean rtp_marker; proto_item *item; ts = tvb_get_ntohs(tvb, offset); rtp_marker = ts & 0x8000 ? T...
static guint32 dissect_minivideopacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { guint32 ts; iax_packet_data *iax_packet; gboolean rtp_marker; proto_item *item; ts = tvb_get_ntohs(tvb, offset); rtp_marker = ts & 0x8000 ? T...
static guint32 dissect_minivideopacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { guint32 ts; iax_packet_data *iax_packet; gboolean rtp_marker; proto_item *item; ts = tvb_get_ntohs(tvb, offset); rtp_marker = ts & 0x8000 ? T...
static guint32 dissect_minivideopacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { guint32 ts; iax_packet_data *iax_packet; gboolean rtp_marker; proto_item *item; ts = tvb_get_ntohs(tvb, offset); rtp_marker = ts & 0x8000 ? T...
static guint32 dissect_minivideopacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { ts = tvb_get_ntohs(tvb, offset); rtp_marker = ts & 0x8000 ? TRUE:FALSE; ts &= ~0x8000; iax_packet = iax2_get_packet_data_for_minipacket(pinfo, scalln...
static guint32 dissect_minivideopacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { ts = tvb_get_ntohs(tvb, offset); rtp_marker = ts & 0x8000 ? TRUE:FALSE; ts &= ~0x8000; iax_packet = iax2_get_packet_data_for_minipacket(pinfo, scalln...
static guint32 dissect_minivideopacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ts = tvb_get_ntohs(tvb, offset); rtp_marker = ts & 0x8000 ? TRUE:FALSE; ts &= ~0x8000; iax_packet =...
static guint32 dissect_minivideopacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ts = tvb_get_ntohs(tvb, offset); rtp_marker = ts & 0x8000 ? TRUE:FALSE; ts &= ~0x8000; iax_packet =...
static guint32 dissect_minivideopacket(tvbuff_t *tvb, guint32 offset, guint16 scallno, packet_info *pinfo, proto_tree *iax2_tree, proto_tree *main_tree) { ts = tvb_get_ntohs(tvb, offset); rtp_marker = ts & 0x8000 ? TRUE:FALSE; ts &= ~0x8000; iax_packet = iax2_get_packet_data_for_minipacket(pinfo, s...
CVE-2017-6470
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-iax2.c
iax2_add_ts_fields
static void iax2_add_ts_fields(packet_info *pinfo, proto_tree *iax2_tree, iax_packet_data *iax_packet, guint16 shortts) { guint32 longts =shortts; nstime_t ts; proto_item *item; if (iax_packet->call_data == NULL) { return; } if (iax_packet->abstime.secs == -1) { time_t start_secs...
static void iax2_add_ts_fields(packet_info *pinfo, proto_tree *iax2_tree, tvbuff_t *tvb, iax_packet_data *iax_packet, guint16 shortts) { guint longts =shortts; nstime_t ts; proto_item *item; if (iax_packet->call_data == NULL) { return; } if (iax_packet->abstime.secs == -1) { time...
static void iax2_add_ts_fields(packet_info *pinfo, proto_tree *iax2_tree, iax_packet_data *iax_packet, guint16 shortts) { guint32 longts =shortts; nstime_t ts; proto_item *item; if (iax_packet->call_data == NULL) { return; } if (iax_packet->abstime.secs == -1) { time_t start_secs...
static void iax2_add_ts_fields(packet_info *pinfo, proto_tree *iax2_tree, tvbuff_t *tvb, iax_packet_data *iax_packet, guint16 shortts) { guint longts =shortts; nstime_t ts; proto_item *item; if (iax_packet->call_data == NULL) { return; } if (iax_packet->abstime.secs == -1) { time...
static void iax2_add_ts_fields(packet_info *pinfo, proto_tree *iax2_tree, iax_packet_data *iax_packet, guint16 shortts) { guint32 longts =shortts; nstime_t ts; if (iax_packet->call_data == NULL) { return; } if (iax_packet->abstime.secs == -1) { time_t start_secs = iax_packet->call_da...
static void iax2_add_ts_fields(packet_info *pinfo, proto_tree *iax2_tree, tvbuff_t *tvb, iax_packet_data *iax_packet, guint16 shortts) { guint longts =shortts; nstime_t ts; if (iax_packet->call_data == NULL) { return; } if (iax_packet->abstime.secs == -1) { time_t start_secs = iax_pa...
static void iax2_add_ts_fields(packet_info *pinfo, proto_tree *iax2_tree, iax_packet_data *iax_packet, guint16 shortts) { guint32 longts =shortts; nstime_t ts; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (iax_packet->call_data == NULL) { return; } if (iax_packet->abstime.secs == -1)...
static void iax2_add_ts_fields(packet_info *pinfo, proto_tree *iax2_tree, tvbuff_t *tvb, iax_packet_data *iax_packet, guint16 shortts) { guint longts =shortts; nstime_t ts; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (iax_packet->call_data == NULL) { return; } if (iax_packet->abstim...
-static void iax2_add_ts_fields(packet_info *pinfo, proto_tree *iax2_tree, iax_packet_data *iax_packet, guint16 shortts) { - guint32 longts =shortts; +static void iax2_add_ts_fields(packet_info *pinfo, proto_tree *iax2_tree, tvbuff_t *tvb, iax_packet_data *iax_packet, guint16 shortts) { + guint longts =shortts; ...
CVE-2017-6470
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-iax2.c
proto_register_iax2
void proto_register_iax2(void) { static hf_register_info hf[] = { { &hf_iax2_packet_type, { "Packet type", "iax2.packet_type", FT_UT8, BASE_DEC, VALS(iax_packet_types), 0, "Full/minivoice/minivideo/trunk packet", HFILL } }, { &hf_iax2_callno, { ...
void proto_register_iax2(void) { static hf_register_info hf[] = { { &hf_iax2_packet_type, { "Packet type", "iax2.packet_type", FT_UT8, BASE_DEC, VALS(iax_packet_types), 0, "Full/minivoice/minivideo/trunk packet", HFILL } }, { &hf_iax2_callno, { ...
void proto_register_iax2(void) { static hf_register_info hf[] = { { &hf_iax2_packet_type, { "Packet type", "iax2.packet_type", FT_UT8, BASE_DEC, VALS(iax_packet_types), 0, "Full/minivoice/minivideo/trunk packet", HFILL } }, { &hf_iax2_callno, { ...
void proto_register_iax2(void) { static hf_register_info hf[] = { { &hf_iax2_packet_type, { "Packet type", "iax2.packet_type", FT_UT8, BASE_DEC, VALS(iax_packet_types), 0, "Full/minivoice/minivideo/trunk packet", HFILL } }, { &hf_iax2_callno, { ...
void proto_register_iax2(void) { static gint *ett[] = { &ett_iax2, &ett_iax2_full_mini_subtree, &ett_iax2_type, &ett_iax2_ie, &ett_iax2_codecs, &ett_iax2_ies_apparent_addr, &ett_iax2_fragment, &ett_iax2_fragments, &ett_iax2_trunk_cmddata, &ett_iax2_trunk_call }; static ei_register_info ei[] = { ...
void proto_register_iax2(void) { static gint *ett[] = { &ett_iax2, &ett_iax2_full_mini_subtree, &ett_iax2_type, &ett_iax2_ie, &ett_iax2_codecs, &ett_iax2_ies_apparent_addr, &ett_iax2_fragment, &ett_iax2_fragments, &ett_iax2_trunk_cmddata, &ett_iax2_trunk_call }; static ei_register_info ei[] = { ...
void proto_register_iax2(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static gint *ett[] = { &ett_iax2, &ett_iax2_full_mini_subtree, &ett_iax2_type, &ett_iax2_ie, &ett_iax2_codecs, &ett_iax2_ies_apparent_addr, &ett_iax2_fragment, &ett_iax2_fragments, &ett_iax2_trunk_cmddata, &ett_iax2_trunk_cal...
void proto_register_iax2(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static gint *ett[] = { &ett_iax2, &ett_iax2_full_mini_subtree, &ett_iax2_type, &ett_iax2_ie, &ett_iax2_codecs, &ett_iax2_ies_apparent_addr, &ett_iax2_fragment, &ett_iax2_fragments, &ett_iax2_trunk_cmddata, &ett_iax2_trunk_cal...
void proto_register_iax2(void) { static gint *ett[] = { &ett_iax2, &ett_iax2_full_mini_subtree, &ett_iax2_type, &ett_iax2_ie, &ett_iax2_codecs, &ett_iax2_ies_apparent_addr, &ett_iax2_fragment, &ett_iax2_fragments, &ett_iax2_trunk_cmddata, &ett_iax2_trunk_call }; static ei_register_info ei[] = {...
CVE-2017-6471
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-wsp.c
dissect_wsp_common
static void dissect_wsp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, dissector_handle_t dissector_handle, gboolean is_connectionless) { int offset = 0; guint8 pdut; guint count = 0; guint value = 0; guint uriLength = 0; guint uriStart = 0; guint capabilityLength = 0; guint...
static void dissect_wsp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, dissector_handle_t dissector_handle, gboolean is_connectionless) { int offset = 0; guint8 pdut; guint count = 0; guint value = 0; guint uriLength = 0; guint uriStart = 0; guint capabilityLength = 0; guint...
static void dissect_wsp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, dissector_handle_t dissector_handle, gboolean is_connectionless) { int offset = 0; guint8 pdut; guint count = 0; guint value = 0; guint uriLength = 0; guint uriStart = 0; guint capabilityLength = 0; guint...
static void dissect_wsp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, dissector_handle_t dissector_handle, gboolean is_connectionless) { int offset = 0; guint8 pdut; guint count = 0; guint value = 0; guint uriLength = 0; guint uriStart = 0; guint capabilityLength = 0; guint...
static void dissect_wsp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, dissector_handle_t dissector_handle, gboolean is_connectionless) { int offset = 0; heur_dtbl_entry_t *hdtbl_entry; proto_item *proto_ti = NULL; proto_tree *wsp_tree = NULL; if (is_connectionless) { offset++; ...
static void dissect_wsp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, dissector_handle_t dissector_handle, gboolean is_connectionless) { int offset = 0; heur_dtbl_entry_t *hdtbl_entry; proto_item* ti; proto_item *proto_ti = NULL; proto_tree *wsp_tree = NULL; if (is_connectionless) ...
static void dissect_wsp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, dissector_handle_t dissector_handle, gboolean is_connectionless) { int offset = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ heur_dtbl_entry_t *hdtbl_entry; proto_item *proto_ti = NULL; proto_tree *wsp_tree = NUL...
static void dissect_wsp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, dissector_handle_t dissector_handle, gboolean is_connectionless) { int offset = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ heur_dtbl_entry_t *hdtbl_entry; proto_item* ti; proto_item *proto_ti = NULL; proto_...
static void dissect_wsp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, dissector_handle_t dissector_handle, gboolean is_connectionless) { int offset = 0; heur_dtbl_entry_t *hdtbl_entry; + proto_item* ti; proto_item *proto_ti = NULL; proto_tree *wsp_tree = NULL; if (is_connectio...
CVE-2017-6472
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-rtmpt.c
dissect_rtmpt_common
static void dissect_rtmpt_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, guint32 seq, guint32 lastackseq) { int offset = 0; int remain; int want; guint8 header_type; int basic_hlen; int message_hlen; guint32 id; guint32 ts = 0; guint32 tsd ...
static void dissect_rtmpt_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, guint32 seq, guint32 lastackseq) { int offset = 0; int remain; int want; guint8 header_type; int basic_hlen; int message_hlen; guint32 id; guint32 ts = 0; guint32 tsd ...
static void dissect_rtmpt_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, guint32 seq, guint32 lastackseq) { int offset = 0; int remain; int want; guint8 header_type; int basic_hlen; int message_hlen; guint32 id; guint32 ts = 0; guint32 tsd ...
static void dissect_rtmpt_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, guint32 seq, guint32 lastackseq) { int offset = 0; int remain; int want; guint8 header_type; int basic_hlen; int message_hlen; guint32 id; guint32 ts = 0; guint32 tsd ...
static void dissect_rtmpt_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, guint32 seq, guint32 lastackseq) { guint32 tsd = 0; int chunk_size; rtmpt_frag_t *tf; remain = tvb_reported_length(tvb); if (!remain) { return; } RTMPT_DEBUG("Segment:...
static void dissect_rtmpt_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, guint32 seq, guint32 lastackseq) { guint32 tsd = 0; int chunk_size; guint32 save_seq = 0; rtmpt_frag_t *tf; remain = tvb_reported_length(tvb); if (!remain) { return; }...
static void dissect_rtmpt_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, guint32 seq, guint32 lastackseq) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint32 tsd = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int chunk_size; rtmpt_frag_t *tf; /...
static void dissect_rtmpt_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, guint32 seq, guint32 lastackseq) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint32 tsd = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int chunk_size; guint32 save_seq = 0; ...
static void dissect_rtmpt_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, rtmpt_conv_t *rconv, int cdir, guint32 seq, guint32 lastackseq) { guint32 tsd = 0; int chunk_size; + guint32 save_seq = 0; rtmpt_frag_t *tf; remain = tvb_reported_length(tvb); if (!remain) { retur...
CVE-2017-6473
Wireshark
https://github.com/wireshark/wireshark
wiretap/k12.c
k12_read
static gboolean k12_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { k12_t *k12 = (k12_t *)wth->priv; k12_src_desc_t* src_desc; guint8* buffer; gint64 offset; gint len; guint32 type; guint32 src_id; offset = file_tell(wth->fh); do { if ( k12->num_of_records ...
static gboolean k12_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { k12_t *k12 = (k12_t *)wth->priv; k12_src_desc_t* src_desc; guint8* buffer; gint64 offset; gint len; guint32 type; guint32 src_id; offset = file_tell(wth->fh); do { if ( k12->num_of_records ...
static gboolean k12_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { k12_t *k12 = (k12_t *)wth->priv; k12_src_desc_t* src_desc; guint8* buffer; gint64 offset; gint len; guint32 type; guint32 src_id; offset = file_tell(wth->fh); do { K12_DBG(5,("k12_read: off...
static gboolean k12_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { k12_t *k12 = (k12_t *)wth->priv; k12_src_desc_t* src_desc; guint8* buffer; gint64 offset; gint len; guint32 type; guint32 src_id; offset = file_tell(wth->fh); do { K12_DBG(5,("k12_read: off...
static gboolean k12_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { k12_t *k12 = (k12_t *)wth->priv; offset = file_tell(wth->fh); do { if ( k12->num_of_records == 0 ) { *err = 0; return FALSE; } K12_DBG(5,("k12_read: offset=%i",offset)); ...
static gboolean k12_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { k12_t *k12 = (k12_t *)wth->priv; offset = file_tell(wth->fh); do { if ( k12->num_of_records == 0 ) { *err = 0; return FALSE; } K12_DBG(5,("k12_read: offset=%i",offset)); ...
static gboolean k12_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { k12_t *k12 = (k12_t *)wth->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ offset = file_tell(wth->fh); do { K12_DBG(5,("k12_read: offset=%i",offset)); *data_offset = offset; len = get_reco...
static gboolean k12_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { k12_t *k12 = (k12_t *)wth->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ offset = file_tell(wth->fh); do { K12_DBG(5,("k12_read: offset=%i",offset)); *data_offset = offset; len = get_reco...
static gboolean k12_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { k12_t *k12 = (k12_t *)wth->priv; offset = file_tell(wth->fh); do { if ( k12->num_of_records == 0 ) { *err = 0; return FALSE; } K12_DBG(5,("k12_read: offset=%i",offs...
CVE-2017-6473
Wireshark
https://github.com/wireshark/wireshark
wiretap/k12.c
k12_seek_read
static gboolean k12_seek_read(wtap *wth, gint64 seek_off, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) { k12_t *k12 = (k12_t *)wth->priv; guint8* buffer; gint len; K12_DBG(5,("k12_seek_read: ENTER")); if ( file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1) { K12_...
static gboolean k12_seek_read(wtap *wth, gint64 seek_off, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) { k12_t *k12 = (k12_t *)wth->priv; guint8* buffer; gint len; gboolean status; K12_DBG(5,("k12_seek_read: ENTER")); if ( file_seek(wth->random_fh, seek_off, SEEK_SET, err) ...
static gboolean k12_seek_read(wtap *wth, gint64 seek_off, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) { k12_t *k12 = (k12_t *)wth->priv; guint8* buffer; gint len; K12_DBG(5,("k12_seek_read: ENTER")); if ( file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1) { K12_...
static gboolean k12_seek_read(wtap *wth, gint64 seek_off, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) { k12_t *k12 = (k12_t *)wth->priv; guint8* buffer; gint len; gboolean status; K12_DBG(5,("k12_seek_read: ENTER")); if ( file_seek(wth->random_fh, seek_off, SEEK_SET, err) ...
static gboolean k12_seek_read(wtap *wth, gint64 seek_off, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) { k12_t *k12 = (k12_t *)wth->priv; gint len; K12_DBG(5,("k12_seek_read: ENTER")); if ( file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1) { return FALSE; } ...
static gboolean k12_seek_read(wtap *wth, gint64 seek_off, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) { k12_t *k12 = (k12_t *)wth->priv; gint len; gboolean status; K12_DBG(5,("k12_seek_read: ENTER")); if ( file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1) { ret...
static gboolean k12_seek_read(wtap *wth, gint64 seek_off, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) { k12_t *k12 = (k12_t *)wth->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ gint len; K12_DBG(5,("k12_seek_read: ENTER")); if ( file_seek(wth->random_fh, seek_off, SEEK_S...
static gboolean k12_seek_read(wtap *wth, gint64 seek_off, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) { k12_t *k12 = (k12_t *)wth->priv; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ gint len; gboolean status; K12_DBG(5,("k12_seek_read: ENTER")); if ( file_seek(wth->random...
static gboolean k12_seek_read(wtap *wth, gint64 seek_off, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) { k12_t *k12 = (k12_t *)wth->priv; gint len; + gboolean status; K12_DBG(5,("k12_seek_read: ENTER")); if ( file_seek(wth->random_fh, seek_off, SEEK_SET, err) == -1) { ...
CVE-2017-6473
Wireshark
https://github.com/wireshark/wireshark
wiretap/k12.c
process_packet_data
static void process_packet_data(struct wtap_pkthdr *phdr, Buffer *target, guint8 *buffer, gint len, k12_t *k12) { guint32 type; guint buffer_offset; guint64 ts; guint32 length; guint32 extra_len; guint32 src_id; k12_src_desc_t* src_desc; phdr->rec_type = REC_TYPE_PACKET; phdr->presen...
static gboolean process_packet_data(struct wtap_pkthdr *phdr, Buffer *target, guint8 *buffer, guint record_len, k12_t *k12, int *err, gchar **err_info) { guint32 type; guint buffer_offset; guint64 ts; guint32 length; guint32 extra_len; guint32 src_id; k12_src_desc_t* src_desc; type = pnt...
static void process_packet_data(struct wtap_pkthdr *phdr, Buffer *target, guint8 *buffer, gint len, k12_t *k12) { guint32 type; guint buffer_offset; guint64 ts; guint32 length; guint32 extra_len; guint32 src_id; k12_src_desc_t* src_desc; phdr->rec_type = REC_TYPE_PACKET; phdr->presen...
static gboolean process_packet_data(struct wtap_pkthdr *phdr, Buffer *target, guint8 *buffer, guint record_len, k12_t *k12, int *err, gchar **err_info) { guint32 type; guint buffer_offset; guint64 ts; guint32 length; guint32 extra_len; guint32 src_id; k12_src_desc_t* src_desc; type = pnt...
static void process_packet_data(struct wtap_pkthdr *phdr, Buffer *target, guint8 *buffer, gint len, k12_t *k12) { k12_src_desc_t* src_desc; phdr->rec_type = REC_TYPE_PACKET; phdr->ts.nsecs = (guint32) ( (ts % 2000000) * 500 ); length = pntoh32(buffer + K12_RECORD_FRAME_LEN) & 0x00001FFF; phdr->len =...
static gboolean process_packet_data(struct wtap_pkthdr *phdr, Buffer *target, guint8 *buffer, guint record_len, k12_t *k12, int *err, gchar **err_info) { k12_src_desc_t* src_desc; type = pntoh32(buffer + K12_RECORD_TYPE); buffer_offset = (type == K12_REC_D0020) ? K12_PACKET_FRAME_D0020 : K12_PACKET_FRAME; ...
static void process_packet_data(struct wtap_pkthdr *phdr, Buffer *target, guint8 *buffer, gint len, k12_t *k12) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ k12_src_desc_t* src_desc; phdr->rec_type = REC_TYPE_PACKET; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ phdr->ts.nsecs = (guint32) ( (ts %...
static gboolean process_packet_data(struct wtap_pkthdr *phdr, Buffer *target, guint8 *buffer, guint record_len, k12_t *k12, int *err, gchar **err_info) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ k12_src_desc_t* src_desc; type = pntoh32(buffer + K12_RECORD_TYPE); buffer_offset = (type == K12_REC_D00...
-static void process_packet_data(struct wtap_pkthdr *phdr, Buffer *target, guint8 *buffer, gint len, k12_t *k12) { +static gboolean process_packet_data(struct wtap_pkthdr *phdr, Buffer *target, guint8 *buffer, guint record_len, k12_t *k12, int *err, gchar **err_info) { k12_src_desc_t* src_desc; + type = pntoh32...
CVE-2017-6474
Wireshark
https://github.com/wireshark/wireshark
wiretap/netscaler.c
nstrace_read_v10
static gboolean nstrace_read_v10(wtap *wth, 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_buf_offset; guint32 nstr...
static gboolean nstrace_read_v10(wtap *wth, 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_buf_offset; guint32 nstr...
static gboolean nstrace_read_v10(wtap *wth, 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_buf_offset; guint32 nstr...
static gboolean nstrace_read_v10(wtap *wth, 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_buf_offset; guint32 nstr...
static gboolean nstrace_read_v10(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; gchar *nstrace_buf = nstrace->pnstrace_buf; do { while ((nstrace_buf_offset < nstrace_buflen) && ((nstrace_buflen - nstrace_buf_offset) >= ((gint32)sizeof((( ns...
static gboolean nstrace_read_v10(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; gchar *nstrace_buf = nstrace->pnstrace_buf; do { while ((nstrace_buf_offset < nstrace_buflen) && ((nstrace_buflen - nstrace_buf_offset) >= ((gint32)sizeof((( ns...
static gboolean nstrace_read_v10(wtap *wth, 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; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ do { while ((nst...
static gboolean nstrace_read_v10(wtap *wth, 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; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ do { while ((nst...
static gboolean nstrace_read_v10(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; gchar *nstrace_buf = nstrace->pnstrace_buf; do { while ((nstrace_buf_offset < nstrace_buflen) && ((nstrace_buflen - nstrace_buf_offset) >= ((gint32)sizeof(...
CVE-2017-6474
Wireshark
https://github.com/wireshark/wireshark
wiretap/netscaler.c
nstrace_read_v20
static gboolean nstrace_read_v20(wtap *wth, 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_buf_offset; guint32 nstr...
static gboolean nstrace_read_v20(wtap *wth, 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_buf_offset; guint32 nstr...
static gboolean nstrace_read_v20(wtap *wth, 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_buf_offset; guint32 nstr...
static gboolean nstrace_read_v20(wtap *wth, 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_buf_offset; guint32 nstr...
static gboolean nstrace_read_v20(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; gchar *nstrace_buf = nstrace->pnstrace_buf; do { while ((nstrace_buf_offset < nstrace_buflen) && ((nstrace_buflen - nstrace_buf_offset) >= ((gint32)sizeof((( ns...
static gboolean nstrace_read_v20(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; gchar *nstrace_buf = nstrace->pnstrace_buf; do { while ((nstrace_buf_offset < nstrace_buflen) && ((nstrace_buflen - nstrace_buf_offset) >= ((gint32)sizeof((( ns...
static gboolean nstrace_read_v20(wtap *wth, 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; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ do { while ((nst...
static gboolean nstrace_read_v20(wtap *wth, 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; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ do { while ((nst...
static gboolean nstrace_read_v20(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) { nstrace_t *nstrace = (nstrace_t *)wth->priv; gchar *nstrace_buf = nstrace->pnstrace_buf; do { while ((nstrace_buf_offset < nstrace_buflen) && ((nstrace_buflen - nstrace_buf_offset) >= ((gint32)sizeof(...
CVE-2017-7471
QEMU
https://github.com/qemu/qemu
hw/9pfs/9p-local.c
local_name_to_path
static int local_name_to_path(FsContext *ctx, V9fsPath *dir_path, const char *name, V9fsPath *target) { if (dir_path) { v9fs_path_sprintf(target, "%s/%s", dir_path->data, name); } else { v9fs_path_sprintf(target, "%s", name); } return 0; }
static int local_name_to_path(FsContext *ctx, V9fsPath *dir_path, const char *name, V9fsPath *target) { if (dir_path) { v9fs_path_sprintf(target, "%s/%s", dir_path->data, name); } else if (strcmp(name, "/")) { v9fs_path_sprintf(target, "%s", name); } else { v9fs_path_sprintf(target, ...
static int local_name_to_path(FsContext *ctx, V9fsPath *dir_path, const char *name, V9fsPath *target) { if (dir_path) { v9fs_path_sprintf(target, "%s/%s", dir_path->data, name); } else { v9fs_path_sprintf(target, "%s", name); } return 0; }
static int local_name_to_path(FsContext *ctx, V9fsPath *dir_path, const char *name, V9fsPath *target) { if (dir_path) { v9fs_path_sprintf(target, "%s/%s", dir_path->data, name); } else if (strcmp(name, "/")) { v9fs_path_sprintf(target, "%s", name); } else { v9fs_path_sprintf(target, ...
static int local_name_to_path(FsContext *ctx, V9fsPath *dir_path, const char *name, V9fsPath *target) { if (dir_path) { v9fs_path_sprintf(target, "%s/%s", dir_path->data, name); } else { v9fs_path_sprintf(target, "%s", name); } return 0; }
static int local_name_to_path(FsContext *ctx, V9fsPath *dir_path, const char *name, V9fsPath *target) { if (dir_path) { v9fs_path_sprintf(target, "%s/%s", dir_path->data, name); } else if (strcmp(name, "/")) { v9fs_path_sprintf(target, "%s", name); } else { v9fs_path_sprintf(target, ...
static int local_name_to_path(FsContext *ctx, V9fsPath *dir_path, const char *name, V9fsPath *target) { if (dir_path) { v9fs_path_sprintf(target, "%s/%s", dir_path->data, name); } else { v9fs_path_sprintf(target, "%s", name); } return 0; }
static int local_name_to_path(FsContext *ctx, V9fsPath *dir_path, const char *name, V9fsPath *target) { if (dir_path) { v9fs_path_sprintf(target, "%s/%s", dir_path->data, name); } else if (strcmp(name, "/")) { v9fs_path_sprintf(target, "%s", name); } else { v9fs_path_sprintf(target, ...
static int local_name_to_path(FsContext *ctx, V9fsPath *dir_path, const char *name, V9fsPath *target) { if (dir_path) { v9fs_path_sprintf(target, "%s/%s", dir_path->data, name); + } else if (strcmp(name, "/")) { + v9fs_path_sprintf(target, "%s", name); } else { - v9fs_path_sprintf(t...
CVE-2017-7701
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-bgp.c
dissect_bgp_path_attr
static void dissect_bgp_path_attr(proto_tree *subtree, tvbuff_t *tvb, guint16 path_attr_len, guint tvb_off, packet_info *pinfo) { guint8 bgpa_flags; guint8 bgpa_type; gint o; gint q=0; gint end=0; int advance; proto_item *ti; proto_item *ti_communities; proto_item *ti_community; ...
static void dissect_bgp_path_attr(proto_tree *subtree, tvbuff_t *tvb, guint16 path_attr_len, guint tvb_off, packet_info *pinfo) { guint8 bgpa_flags; guint8 bgpa_type; gint o; gint q=0; gint end=0; int advance; proto_item *ti; proto_item *ti_communities; proto_item *ti_community; ...
static void dissect_bgp_path_attr(proto_tree *subtree, tvbuff_t *tvb, guint16 path_attr_len, guint tvb_off, packet_info *pinfo) { guint8 bgpa_flags; guint8 bgpa_type; gint o; gint q=0; gint end=0; int advance; proto_item *ti; proto_item *ti_communities; proto_item *ti_community; ...
static void dissect_bgp_path_attr(proto_tree *subtree, tvbuff_t *tvb, guint16 path_attr_len, guint tvb_off, packet_info *pinfo) { guint8 bgpa_flags; guint8 bgpa_type; gint o; gint q=0; gint end=0; int advance; proto_item *ti; proto_item *ti_communities; proto_item *ti_community; ...
static void dissect_bgp_path_attr(proto_tree *subtree, tvbuff_t *tvb, guint16 path_attr_len, guint tvb_off, packet_info *pinfo) { while (i < path_attr_len) { proto_item *ti_pa, *ti_flags; int off; guint16 alen, aoff, tlen, aoff_save; guint16 af; guint8 saf, snpa; guin...
static void dissect_bgp_path_attr(proto_tree *subtree, tvbuff_t *tvb, guint16 path_attr_len, guint tvb_off, packet_info *pinfo) { while (i < path_attr_len) { proto_item *ti_pa, *ti_flags; int off; gint alen, aoff, tlen, aoff_save; guint16 af; guint8 saf, snpa; guint8 ...
static void dissect_bgp_path_attr(proto_tree *subtree, tvbuff_t *tvb, guint16 path_attr_len, guint tvb_off, packet_info *pinfo) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while (i < path_attr_len) { proto_item *ti_pa, *ti_flags; int off; guint16 alen, aoff, tlen, aoff_save; ...
static void dissect_bgp_path_attr(proto_tree *subtree, tvbuff_t *tvb, guint16 path_attr_len, guint tvb_off, packet_info *pinfo) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while (i < path_attr_len) { proto_item *ti_pa, *ti_flags; int off; gint alen, aoff, tlen, aoff_save; gui...
static void dissect_bgp_path_attr(proto_tree *subtree, tvbuff_t *tvb, guint16 path_attr_len, guint tvb_off, packet_info *pinfo) { while (i < path_attr_len) { proto_item *ti_pa, *ti_flags; int off; - guint16 alen, aoff, tlen, aoff_save; + gint alen, aoff, tlen, aoff_save; g...
CVE-2017-7702
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; DebugLog(("parse_wbxml_attr_de...
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; DebugLog(("parse_wbxml_attr_de...
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; DebugLog(("parse_wbxml_at...
CVE-2017-7703
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-imap.c
dissect_imap
static int dissect_imap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { gboolean is_request; proto_tree *imap_tree, *reqresp_tree; proto_item *ti, *hidden_item; gint offset = 0; gint uid_offset = 0; gint folder_offset = 0; const guchar *line; const guchar *uid_line; ...
static int dissect_imap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { gboolean is_request; proto_tree *imap_tree, *reqresp_tree; proto_item *ti, *hidden_item; gint offset = 0; gint uid_offset = 0; gint folder_offset = 0; const guchar *line; const guchar *lineend; ...
static void dissect_imap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { gboolean is_request; proto_tree *imap_tree, *reqresp_tree; proto_item *ti, *hidden_item; gint offset = 0; gint uid_offset = 0; gint folder_offset = 0; const guchar *line; const guchar *uid_line; const guc...
static void dissect_imap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { gboolean is_request; proto_tree *imap_tree, *reqresp_tree; proto_item *ti, *hidden_item; gint offset = 0; gint uid_offset = 0; gint folder_offset = 0; const guchar *line; const guchar *lineend; const guch...
static int dissect_imap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { gint offset = 0; const guchar *line; const guchar *uid_line; conversation = find_or_create_conversation(pinfo); session_state = (imap_state_t *)conversation_get_proto_data(conversation, proto_imap); if (!...
static int dissect_imap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { gint offset = 0; const guchar *line; const guchar *lineend; const guchar *uid_line; conversation = find_or_create_conversation(pinfo); session_state = (imap_state_t *)conversation_get_proto_data(conversat...
static void dissect_imap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ gint offset = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ const guchar *line; const guchar *uid_line; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ conversation ...
static void dissect_imap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ gint offset = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ const guchar *line; const guchar *lineend; const guchar *uid_line; /* PLACEHOLDER: DO NOT DELETE THIS C...
static int dissect_imap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { gint offset = 0; const guchar *line; + const guchar *lineend; const guchar *uid_line; conversation = find_or_create_conversation(pinfo); session_state = (imap_state_t *)conversation_get_proto_data(co...
CVE-2017-7704
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-dof.c
sid_buffer_hash_fn
static guint sid_buffer_hash_fn(gconstpointer key) { guint hash = 5381; const guint8 *str = (const guint8 *)key; guint8 i; for (i = 0; i <= str[0]; i++) hash = ((hash << 5) + hash) + str[i]; return hash; }
static guint sid_buffer_hash_fn(gconstpointer key) { guint hash = 5381; const guint8 *str = (const guint8 *)key; guint16 i; for (i = 0; i <= str[0]; i++) hash = ((hash << 5) + hash) + str[i]; return hash; }
static guint sid_buffer_hash_fn(gconstpointer key) { guint hash = 5381; const guint8 *str = (const guint8 *)key; guint8 i; for (i = 0; i <= str[0]; i++) hash = ((hash << 5) + hash) + str[i]; return hash; }
static guint sid_buffer_hash_fn(gconstpointer key) { guint hash = 5381; const guint8 *str = (const guint8 *)key; guint16 i; for (i = 0; i <= str[0]; i++) hash = ((hash << 5) + hash) + str[i]; return hash; }
static guint sid_buffer_hash_fn(gconstpointer key) { guint hash = 5381; const guint8 *str = (const guint8 *)key; guint8 i; for (i = 0; i <= str[0]; i++) hash = ((hash << 5) + hash) + str[i]; return hash; }
static guint sid_buffer_hash_fn(gconstpointer key) { guint hash = 5381; const guint8 *str = (const guint8 *)key; guint16 i; for (i = 0; i <= str[0]; i++) hash = ((hash << 5) + hash) + str[i]; return hash; }
static guint sid_buffer_hash_fn(gconstpointer key) { guint hash = 5381; const guint8 *str = (const guint8 *)key; guint8 i; for (i = 0; i <= str[0]; i++) hash = ((hash << 5) + hash) + str[i]; return hash; }
static guint sid_buffer_hash_fn(gconstpointer key) { guint hash = 5381; const guint8 *str = (const guint8 *)key; guint16 i; for (i = 0; i <= str[0]; i++) hash = ((hash << 5) + hash) + str[i]; return hash; }
static guint sid_buffer_hash_fn(gconstpointer key) { guint hash = 5381; const guint8 *str = (const guint8 *)key; - guint8 i; + guint16 i; for (i = 0; i <= str[0]; i++) hash = ((hash << 5) + hash) + str[i]; return hash; }
CVE-2017-7705
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-rpcrdma.c
get_write_list_size
static guint get_write_list_size(tvbuff_t *tvb, guint max_offset, guint offset) { guint32 value_follows; guint start = offset; while (1) { value_follows = tvb_get_ntohl(tvb, offset); offset += 4; if (offset > max_offset) { return 0; } if (!value_follows) {...
static guint get_write_list_size(tvbuff_t *tvb, guint max_offset, guint offset) { guint32 value_follows; guint chunk_size, start = offset; while (1) { value_follows = tvb_get_ntohl(tvb, offset); offset += 4; if (offset > max_offset) { return 0; } if (!valu...
static guint get_write_list_size(tvbuff_t *tvb, guint max_offset, guint offset) { guint32 value_follows, segment_count; guint start = offset; while (1) { value_follows = tvb_get_ntohl(tvb, offset); offset += 4; if (offset > max_offset) { return 0; } if (!v...
static guint get_write_list_size(tvbuff_t *tvb, guint max_offset, guint offset) { guint32 value_follows, segment_count; guint start = offset; while (1) { value_follows = tvb_get_ntohl(tvb, offset); offset += 4; if (offset > max_offset) { return 0; } if (!v...
static guint get_write_list_size(tvbuff_t *tvb, guint max_offset, guint offset) { guint32 value_follows; guint start = offset; while (1) { value_follows = tvb_get_ntohl(tvb, offset); offset += 4; if (offset > max_offset) { return 0; } if (!value_follows) {...
static guint get_write_list_size(tvbuff_t *tvb, guint max_offset, guint offset) { guint32 value_follows; guint chunk_size, start = offset; while (1) { value_follows = tvb_get_ntohl(tvb, offset); offset += 4; if (offset > max_offset) { return 0; } if (!valu...
static guint get_write_list_size(tvbuff_t *tvb, guint max_offset, guint offset) { guint32 value_follows, segment_count; guint start = offset; while (1) { value_follows = tvb_get_ntohl(tvb, offset); offset += 4; if (offset > max_offset) { return 0; } if (!v...
static guint get_write_list_size(tvbuff_t *tvb, guint max_offset, guint offset) { guint32 value_follows, segment_count; guint start = offset; while (1) { value_follows = tvb_get_ntohl(tvb, offset); offset += 4; if (offset > max_offset) { return 0; } if (!v...
static guint get_write_list_size(tvbuff_t *tvb, guint max_offset, guint offset) { guint32 value_follows; - guint start = offset; + guint chunk_size, start = offset; while (1) { value_follows = tvb_get_ntohl(tvb, offset); offset += 4; if (offset > max_offset) { re...
CVE-2017-7745
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-sigcomp.c
decompress_sigcomp_message
static tvbuff_t* decompress_sigcomp_message(tvbuff_t *bytecode_tvb, tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *udvm_tree, gint udvm_mem_dest, gint print_flags, gint hf_id, gint header_len, gint byte_code_state_len, gint byte_code_id_len, gint udvm_start_ip) { tvbuff_t *decomp_tvb; guint8 *bu...
static tvbuff_t* decompress_sigcomp_message(tvbuff_t *bytecode_tvb, tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *udvm_tree, gint udvm_mem_dest, gint print_flags, gint hf_id, gint header_len, gint byte_code_state_len, gint byte_code_id_len, gint udvm_start_ip) { tvbuff_t *decomp_tvb; guint8 *bu...
static tvbuff_t* decompress_sigcomp_message(tvbuff_t *bytecode_tvb, tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *udvm_tree, gint udvm_mem_dest, gint print_flags, gint hf_id, gint header_len, gint byte_code_state_len, gint byte_code_id_len, gint udvm_start_ip) { tvbuff_t *decomp_tvb; guint8 *bu...
static tvbuff_t* decompress_sigcomp_message(tvbuff_t *bytecode_tvb, tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *udvm_tree, gint udvm_mem_dest, gint print_flags, gint hf_id, gint header_len, gint byte_code_state_len, gint byte_code_id_len, gint udvm_start_ip) { tvbuff_t *decomp_tvb; guint8 *bu...
static tvbuff_t* decompress_sigcomp_message(tvbuff_t *bytecode_tvb, tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *udvm_tree, gint udvm_mem_dest, gint print_flags, gint hf_id, gint header_len, gint byte_code_state_len, gint byte_code_id_len, gint udvm_start_ip) { execute_next_instruction: if ( used_...
static tvbuff_t* decompress_sigcomp_message(tvbuff_t *bytecode_tvb, tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *udvm_tree, gint udvm_mem_dest, gint print_flags, gint hf_id, gint header_len, gint byte_code_state_len, gint byte_code_id_len, gint udvm_start_ip) { execute_next_instruction: if ( used_...
static tvbuff_t* decompress_sigcomp_message(tvbuff_t *bytecode_tvb, tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *udvm_tree, gint udvm_mem_dest, gint print_flags, gint hf_id, gint header_len, gint byte_code_state_len, gint byte_code_id_len, gint udvm_start_ip) { /* PLACEHOLDER: DO NOT DELETE THIS C...
static tvbuff_t* decompress_sigcomp_message(tvbuff_t *bytecode_tvb, tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *udvm_tree, gint udvm_mem_dest, gint print_flags, gint hf_id, gint header_len, gint byte_code_state_len, gint byte_code_id_len, gint udvm_start_ip) { /* PLACEHOLDER: DO NOT DELETE THIS C...
static tvbuff_t* decompress_sigcomp_message(tvbuff_t *bytecode_tvb, tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *udvm_tree, gint udvm_mem_dest, gint print_flags, gint hf_id, gint header_len, gint byte_code_state_len, gint byte_code_id_len, gint udvm_start_ip) { execute_next_instruction: if ( u...
CVE-2017-7746
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-slsk.c
dissect_slsk_pdu
static int dissect_slsk_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { proto_item *ti, *ti_len=NULL; proto_tree *slsk_tree; int offset, i, j; guint32 msg_len, msg_code; const gchar *message_type; guint8 *str; int comprlen = 0; int uncomprlen = 0; int uncompr_...
static int dissect_slsk_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { proto_item *ti, *ti_len=NULL; proto_tree *slsk_tree; int offset, i, j; guint32 msg_len, msg_code; const gchar *message_type; guint8 *str; int comprlen = 0; int uncomprlen = 0; int uncompr_...
static int dissect_slsk_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { proto_item *ti, *ti_len=NULL; proto_tree *slsk_tree; int offset, i, j; guint32 msg_len, msg_code; const gchar *message_type; guint8 *str; int comprlen = 0; int uncomprlen = 0; int uncompr_...
static int dissect_slsk_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { proto_item *ti, *ti_len=NULL; proto_tree *slsk_tree; int offset, i, j; guint32 msg_len, msg_code; const gchar *message_type; guint8 *str; int comprlen = 0; int uncomprlen = 0; int uncompr_...
static int dissect_slsk_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { if (tree) { switch (msg_code) { case 14: if (check_slsk_format(tvb, offset, "is")) { } else if (check_slsk_format(tvb, offset, "isi*")) { offset += 4; ...
static int dissect_slsk_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { if (tree) { switch (msg_code) { case 14: if (check_slsk_format(tvb, offset, "is")) { } else if (check_slsk_format(tvb, offset, "isi*")) { offset += 4; ...
static int dissect_slsk_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (tree) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (msg_code) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ case 14: i...
static int dissect_slsk_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (tree) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (msg_code) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ case 14: i...
static int dissect_slsk_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { if (tree) { switch (msg_code) { case 14: if (check_slsk_format(tvb, offset, "is")) { } else if (check_slsk_format(tvb, offset, "isi*")) { offset += 4; - ...
CVE-2017-7747
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-packetbb.c
dissect_pbb_addressblock
static int dissect_pbb_addressblock(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, guint maxoffset, guint8 addressType, guint8 addressSize) { guint8 addr[MAX_ADDR_SIZE]; guint8 numAddr; guint8 address_flags; guint8 head_length = 0, tail_length = 0; guint block_length = 0, midSize...
static int dissect_pbb_addressblock(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, guint maxoffset, guint8 addressType, guint8 addressSize) { guint8 addr[MAX_ADDR_SIZE]; guint8 numAddr; guint8 address_flags; guint8 head_length = 0, tail_length = 0; guint block_length = 0, midSize...
static int dissect_pbb_addressblock(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, guint maxoffset, guint8 addressType, guint8 addressSize) { guint8 addr[MAX_ADDR_SIZE]; guint8 numAddr; guint8 address_flags; guint8 head_length = 0, tail_length = 0; guint block_length = 0, midSize...
static int dissect_pbb_addressblock(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, guint maxoffset, guint8 addressType, guint8 addressSize) { guint8 addr[MAX_ADDR_SIZE]; guint8 numAddr; guint8 address_flags; guint8 head_length = 0, tail_length = 0; guint block_length = 0, midSize...
static int dissect_pbb_addressblock(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, guint maxoffset, guint8 addressType, guint8 addressSize) { guint8 head_length = 0, tail_length = 0; guint block_index = 0, head_index = 0, tail_index = 0, mid_index = 0, prefix_index = 0; static const int ...
static int dissect_pbb_addressblock(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, guint maxoffset, guint8 addressType, guint8 addressSize) { guint8 head_length = 0, tail_length = 0; guint block_index = 0, head_index = 0, tail_index = 0, mid_index = 0, prefix_index = 0; static const int ...
static int dissect_pbb_addressblock(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, guint maxoffset, guint8 addressType, guint8 addressSize) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint8 head_length = 0, tail_length = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint blo...
static int dissect_pbb_addressblock(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, guint maxoffset, guint8 addressType, guint8 addressSize) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint8 head_length = 0, tail_length = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint blo...
static int dissect_pbb_addressblock(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint offset, guint maxoffset, guint8 addressType, guint8 addressSize) { guint8 head_length = 0, tail_length = 0; guint block_index = 0, head_index = 0, tail_index = 0, mid_index = 0, prefix_index = 0; static const ...
CVE-2017-7862
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/pictordec.c
decode_frame
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { PicContext *s = avctx->priv_data; AVFrame *frame = data; uint32_t *palette; int bits_per_plane, bpp, etype, esize, npal, pos_after_pal; int i, x, y, plane, tmp, ret, val; bytestream2_init(&s->g, avpkt->...
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { PicContext *s = avctx->priv_data; AVFrame *frame = data; uint32_t *palette; int bits_per_plane, bpp, etype, esize, npal, pos_after_pal; int i, x, y, plane, tmp, ret, val; bytestream2_init(&s->g, avpkt->...
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { PicContext *s = avctx->priv_data; AVFrame *frame = data; uint32_t *palette; int bits_per_plane, bpp, etype, esize, npal, pos_after_pal; int i, x, y, plane, tmp, ret, val; bytestream2_init(&s->g, avpkt->...
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { PicContext *s = avctx->priv_data; AVFrame *frame = data; uint32_t *palette; int bits_per_plane, bpp, etype, esize, npal, pos_after_pal; int i, x, y, plane, tmp, ret, val; bytestream2_init(&s->g, avpkt->...
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { PicContext *s = avctx->priv_data; s->width = bytestream2_get_le16u(&s->g); s->height = bytestream2_get_le16u(&s->g); if (av_image_check_size(s->width, s->height, 0, avctx) < 0) { return -1; } if...
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { PicContext *s = avctx->priv_data; s->width = bytestream2_get_le16u(&s->g); s->height = bytestream2_get_le16u(&s->g); if (av_image_check_size(s->width, s->height, 0, avctx) < 0) { return -1; } if...
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { PicContext *s = avctx->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ s->width = bytestream2_get_le16u(&s->g); s->height = bytestream2_get_le16u(&s->g); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT ...
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { PicContext *s = avctx->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ s->width = bytestream2_get_le16u(&s->g); s->height = bytestream2_get_le16u(&s->g); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT ...
static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { PicContext *s = avctx->priv_data; s->width = bytestream2_get_le16u(&s->g); s->height = bytestream2_get_le16u(&s->g); if (av_image_check_size(s->width, s->height, 0, avctx) < 0) { return -1; }...
CVE-2017-7863
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/pngdec.c
decode_frame_common
static int decode_frame_common(AVCodecContext *avctx, PNGDecContext *s, AVFrame *p, AVPacket *avpkt) { AVDictionary *metadata = NULL; uint32_t tag, length; int decode_next_dat = 0; int ret; for (;;) { length = bytestream2_get_bytes_left(&s->gb); if (length <= 0) { if (avc...
static int decode_frame_common(AVCodecContext *avctx, PNGDecContext *s, AVFrame *p, AVPacket *avpkt) { AVDictionary *metadata = NULL; uint32_t tag, length; int decode_next_dat = 0; int ret; for (;;) { length = bytestream2_get_bytes_left(&s->gb); if (length <= 0) { if (avc...
static int decode_frame_common(AVCodecContext *avctx, PNGDecContext *s, AVFrame *p, AVPacket *avpkt) { AVDictionary *metadata = NULL; uint32_t tag, length; int decode_next_dat = 0; int ret; for (;;) { length = bytestream2_get_bytes_left(&s->gb); if (length <= 0) { if (CON...
static int decode_frame_common(AVCodecContext *avctx, PNGDecContext *s, AVFrame *p, AVPacket *avpkt) { AVDictionary *metadata = NULL; uint32_t tag, length; int decode_next_dat = 0; int ret; for (;;) { length = bytestream2_get_bytes_left(&s->gb); if (length <= 0) { if (CON...
static int decode_frame_common(AVCodecContext *avctx, PNGDecContext *s, AVFrame *p, AVPacket *avpkt) { AVDictionary *metadata = NULL; for (;;) { length = bytestream2_get_be32(&s->gb); if (length > 0x7fffffff || length > bytestream2_get_bytes_left(&s->gb)) { goto fail; } ...
static int decode_frame_common(AVCodecContext *avctx, PNGDecContext *s, AVFrame *p, AVPacket *avpkt) { AVDictionary *metadata = NULL; for (;;) { length = bytestream2_get_be32(&s->gb); if (length > 0x7fffffff || length > bytestream2_get_bytes_left(&s->gb)) { goto fail; } ...
static int decode_frame_common(AVCodecContext *avctx, PNGDecContext *s, AVFrame *p, AVPacket *avpkt) { AVDictionary *metadata = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (;;) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ length = bytestream2_get_be32(&s->gb); if (length >...
static int decode_frame_common(AVCodecContext *avctx, PNGDecContext *s, AVFrame *p, AVPacket *avpkt) { AVDictionary *metadata = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (;;) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ length = bytestream2_get_be32(&s->gb); if (length >...
static int decode_frame_common(AVCodecContext *avctx, PNGDecContext *s, AVFrame *p, AVPacket *avpkt) { AVDictionary *metadata = NULL; for (;;) { length = bytestream2_get_be32(&s->gb); if (length > 0x7fffffff || length > bytestream2_get_bytes_left(&s->gb)) { goto fail; ...
CVE-2017-7863
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/pngdec.c
decode_trns_chunk
static int decode_trns_chunk(AVCodecContext *avctx, PNGDecContext *s, uint32_t length) { int v, i; if (s->color_type == PNG_COLOR_TYPE_PALETTE) { if (length > 256 || !(s->state & PNG_PLTE)) { return AVERROR_VALIDDATA; } for (i = 0; i < length; i++) { v = bytestrea...
static int decode_trns_chunk(AVCodecContext *avctx, PNGDecContext *s, uint32_t length) { int v, i; if (!(s->state & PNG_IHDR)) { av_log(avctx, AV_LOG_ERROR, "trns before IHDR\n"); return AVERROR_VALIDDATA; } if (s->state & PNG_IDAT) { av_log(avctx, AV_LOG_ERROR, "trns after IDAT\...
static int decode_trns_chunk(AVCodecContext *avctx, PNGDecContext *s, uint32_t length) { int v, i; if (s->color_type == PNG_COLOR_TYPE_PALETTE) { if (length > 256 || !(s->state & PNG_PLTE)) { return AVERROR_VALIDDATA; } for (i = 0; i < length; i++) { v = bytestrea...
static int decode_trns_chunk(AVCodecContext *avctx, PNGDecContext *s, uint32_t length) { int v, i; if (!(s->state & PNG_IHDR)) { av_log(avctx, AV_LOG_ERROR, "trns before IHDR\n"); return AVERROR_VALIDDATA; } if (s->state & PNG_IDAT) { av_log(avctx, AV_LOG_ERROR, "trns after IDAT\...
static int decode_trns_chunk(AVCodecContext *avctx, PNGDecContext *s, uint32_t length) { int v, i; if (s->color_type == PNG_COLOR_TYPE_PALETTE) { if (length > 256 || !(s->state & PNG_PLTE)) { return AVERROR_VALIDDATA; } for (i = 0; i < length; i++) { } } else if (...
static int decode_trns_chunk(AVCodecContext *avctx, PNGDecContext *s, uint32_t length) { int v, i; if (!(s->state & PNG_IHDR)) { av_log(avctx, AV_LOG_ERROR, "trns before IHDR\n"); return AVERROR_VALIDDATA; } if (s->state & PNG_IDAT) { av_log(avctx, AV_LOG_ERROR, "trns after IDAT\...
static int decode_trns_chunk(AVCodecContext *avctx, PNGDecContext *s, uint32_t length) { int v, i; if (s->color_type == PNG_COLOR_TYPE_PALETTE) { if (length > 256 || !(s->state & PNG_PLTE)) { return AVERROR_VALIDDATA; } for (i = 0; i < length; i++) { /* PLACEHOLDER: DO NO...
static int decode_trns_chunk(AVCodecContext *avctx, PNGDecContext *s, uint32_t length) { int v, i; if (!(s->state & PNG_IHDR)) { av_log(avctx, AV_LOG_ERROR, "trns before IHDR\n"); return AVERROR_VALIDDATA; } if (s->state & PNG_IDAT) { av_log(avctx, AV_LOG_ERROR, "trns after IDAT\...
static int decode_trns_chunk(AVCodecContext *avctx, PNGDecContext *s, uint32_t length) { int v, i; + if (!(s->state & PNG_IHDR)) { + av_log(avctx, AV_LOG_ERROR, "trns before IHDR\n"); + return AVERROR_VALIDDATA; + } + if (s->state & PNG_IDAT) { + av_log(avctx, AV_LOG_ERROR, "trns aft...
CVE-2017-7865
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/utils.c
avcodec_align_dimensions2
void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, int linesize_align[AV_NUM_DATA_POTERS]) { int i; int w_align = 1; int h_align = 1; AVPixFmtDescriptor const *desc = av_pix_fmt_desc_get(s->pix_fmt); if (desc) { w_align = 1 << desc->log2_chroma_w; h_align = 1 ...
void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, int linesize_align[AV_NUM_DATA_POTERS]) { int i; int w_align = 1; int h_align = 1; AVPixFmtDescriptor const *desc = av_pix_fmt_desc_get(s->pix_fmt); if (desc) { w_align = 1 << desc->log2_chroma_w; h_align = 1 ...
void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, int linesize_align[AV_NUM_DATA_POTERS]) { int i; int w_align = 1; int h_align = 1; AVPixFmtDescriptor const *desc = av_pix_fmt_desc_get(s->pix_fmt); if (desc) { w_align = 1 << desc->log2_chroma_w; h_align = 1 ...
void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, int linesize_align[AV_NUM_DATA_POTERS]) { int i; int w_align = 1; int h_align = 1; AVPixFmtDescriptor const *desc = av_pix_fmt_desc_get(s->pix_fmt); if (desc) { w_align = 1 << desc->log2_chroma_w; h_align = 1 ...
void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, int linesize_align[AV_NUM_DATA_POTERS]) { switch (s->pix_fmt) { case AV_PIX_FMT_RGB555: if (s->codec_id == AV_CODEC_ID_RPZA) { h_align = 4; } break; case AV_PIX_FMT_RGB8: if (s->codec_id ==...
void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, int linesize_align[AV_NUM_DATA_POTERS]) { switch (s->pix_fmt) { case AV_PIX_FMT_RGB555: if (s->codec_id == AV_CODEC_ID_RPZA) { h_align = 4; } if (s->codec_id == AV_CODEC_ID_TERPLAY_VIDEO) { ...
void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, int linesize_align[AV_NUM_DATA_POTERS]) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (s->pix_fmt) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ case AV_PIX_FMT_RGB555: if (s->codec_id == AV_CODEC_ID_RPZA) { ...
void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, int linesize_align[AV_NUM_DATA_POTERS]) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (s->pix_fmt) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ case AV_PIX_FMT_RGB555: if (s->codec_id == AV_CODEC_ID_RPZA) { ...
void avcodec_align_dimensions2(AVCodecContext *s, int *width, int *height, int linesize_align[AV_NUM_DATA_POTERS]) { switch (s->pix_fmt) { case AV_PIX_FMT_RGB555: if (s->codec_id == AV_CODEC_ID_RPZA) { h_align = 4; } + if (s->codec_id == AV_CODEC_ID_TERPLAY_VIDEO) { + ...
CVE-2017-7866
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/pngdec.c
decode_zbuf
static int decode_zbuf(AVBPrint *bp, const uint8_t *data, const uint8_t *data_end) { z_stream zstream; unsigned char *buf; unsigned buf_size; int ret; zstream.zalloc = ff_png_zalloc; zstream.zfree = ff_png_zfree; zstream.opaque = NULL; if (inflateInit(&zstream) != Z_OK) { return ...
static int decode_zbuf(AVBPrint *bp, const uint8_t *data, const uint8_t *data_end) { z_stream zstream; unsigned char *buf; unsigned buf_size; int ret; zstream.zalloc = ff_png_zalloc; zstream.zfree = ff_png_zfree; zstream.opaque = NULL; if (inflateInit(&zstream) != Z_OK) { return ...
static int decode_zbuf(AVBPrint *bp, const uint8_t *data, const uint8_t *data_end) { z_stream zstream; unsigned char *buf; unsigned buf_size; int ret; zstream.zalloc = ff_png_zalloc; zstream.zfree = ff_png_zfree; zstream.opaque = NULL; if (inflateInit(&zstream) != Z_OK) { return ...
static int decode_zbuf(AVBPrint *bp, const uint8_t *data, const uint8_t *data_end) { z_stream zstream; unsigned char *buf; unsigned buf_size; int ret; zstream.zalloc = ff_png_zalloc; zstream.zfree = ff_png_zfree; zstream.opaque = NULL; if (inflateInit(&zstream) != Z_OK) { return ...
static int decode_zbuf(AVBPrint *bp, const uint8_t *data, const uint8_t *data_end) { av_bprint_init(bp, 0, -1); while (zstream.avail_in > 0) { av_bprint_get_buffer(bp, 1, &buf, &buf_size); if (!buf_size) { ret = AVERROR(ENOMEM); goto fail; } zstream.next_o...
static int decode_zbuf(AVBPrint *bp, const uint8_t *data, const uint8_t *data_end) { av_bprint_init(bp, 0, -1); while (zstream.avail_in > 0) { av_bprint_get_buffer(bp, 2, &buf, &buf_size); if (buf_size < 2) { ret = AVERROR(ENOMEM); goto fail; } zstream.nex...
static int decode_zbuf(AVBPrint *bp, const uint8_t *data, const uint8_t *data_end) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ av_bprint_init(bp, 0, -1); while (zstream.avail_in > 0) { av_bprint_get_buffer(bp, 1, &buf, &buf_size); if (!buf_size) { ret = AVERROR(ENOMEM); ...
static int decode_zbuf(AVBPrint *bp, const uint8_t *data, const uint8_t *data_end) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ av_bprint_init(bp, 0, -1); while (zstream.avail_in > 0) { av_bprint_get_buffer(bp, 2, &buf, &buf_size); if (buf_size < 2) { ret = AVERROR(ENOMEM); ...
static int decode_zbuf(AVBPrint *bp, const uint8_t *data, const uint8_t *data_end) { av_bprint_init(bp, 0, -1); while (zstream.avail_in > 0) { - av_bprint_get_buffer(bp, 1, &buf, &buf_size); - if (!buf_size) { + av_bprint_get_buffer(bp, 2, &buf, &buf_size); + if (buf_size < 2) { ...
CVE-2017-8309
QEMU
https://github.com/qemu/qemu
audio/audio.c
AUD_del_capture
void AUD_del_capture (CaptureVoiceOut *cap, void *cb_opaque) { struct capture_callback *cb; for (cb = cap->cb_head.lh_first; cb; cb = cb->entries.le_next) { if (cb->opaque == cb_opaque) { cb->ops.destroy (cb_opaque); QLIST_REMOVE (cb, entries); g_free (cb); ...
void AUD_del_capture (CaptureVoiceOut *cap, void *cb_opaque) { struct capture_callback *cb; for (cb = cap->cb_head.lh_first; cb; cb = cb->entries.le_next) { if (cb->opaque == cb_opaque) { cb->ops.destroy (cb_opaque); QLIST_REMOVE (cb, entries); g_free (cb); ...
void AUD_del_capture (CaptureVoiceOut *cap, void *cb_opaque) { struct capture_callback *cb; for (cb = cap->cb_head.lh_first; cb; cb = cb->entries.le_next) { if (cb->opaque == cb_opaque) { cb->ops.destroy (cb_opaque); QLIST_REMOVE (cb, entries); g_free (cb); ...
void AUD_del_capture (CaptureVoiceOut *cap, void *cb_opaque) { struct capture_callback *cb; for (cb = cap->cb_head.lh_first; cb; cb = cb->entries.le_next) { if (cb->opaque == cb_opaque) { cb->ops.destroy (cb_opaque); QLIST_REMOVE (cb, entries); g_free (cb); ...
void AUD_del_capture (CaptureVoiceOut *cap, void *cb_opaque) { for (cb = cap->cb_head.lh_first; cb; cb = cb->entries.le_next) { if (cb->opaque == cb_opaque) { QLIST_REMOVE (cb, entries); if (!cap->cb_head.lh_first) { SWVoiceOut *sw = cap->hw.sw_head.lh_first, *sw1; ...
void AUD_del_capture (CaptureVoiceOut *cap, void *cb_opaque) { for (cb = cap->cb_head.lh_first; cb; cb = cb->entries.le_next) { if (cb->opaque == cb_opaque) { QLIST_REMOVE (cb, entries); if (!cap->cb_head.lh_first) { SWVoiceOut *sw = cap->hw.sw_head.lh_first, *sw1; ...
void AUD_del_capture (CaptureVoiceOut *cap, void *cb_opaque) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (cb = cap->cb_head.lh_first; cb; cb = cb->entries.le_next) { if (cb->opaque == cb_opaque) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ QLIST_REMOVE (cb, entries); /* PL...
void AUD_del_capture (CaptureVoiceOut *cap, void *cb_opaque) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (cb = cap->cb_head.lh_first; cb; cb = cb->entries.le_next) { if (cb->opaque == cb_opaque) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ QLIST_REMOVE (cb, entries); /* PL...
void AUD_del_capture (CaptureVoiceOut *cap, void *cb_opaque) { for (cb = cap->cb_head.lh_first; cb; cb = cb->entries.le_next) { if (cb->opaque == cb_opaque) { QLIST_REMOVE (cb, entries); if (!cap->cb_head.lh_first) { SWVoiceOut *sw = cap->hw.sw_head.lh_first, *s...
CVE-2017-8379
QEMU
https://github.com/qemu/qemu
ui/input.c
qemu_input_event_send_key
void qemu_input_event_send_key(QemuConsole *src, KeyValue *key, bool down) { InputEvent *evt; evt = qemu_input_event_new_key(key, down); if (QTAILQ_EMPTY(&kbd_queue)) { qemu_input_event_send(src, evt); qemu_input_event_sync(); qapi_free_InputEvent(evt); } else { qemu_inpu...
void qemu_input_event_send_key(QemuConsole *src, KeyValue *key, bool down) { InputEvent *evt; evt = qemu_input_event_new_key(key, down); if (QTAILQ_EMPTY(&kbd_queue)) { qemu_input_event_send(src, evt); qemu_input_event_sync(); qapi_free_InputEvent(evt); } else if (queue_count < q...
void qemu_input_event_send_key(QemuConsole *src, KeyValue *key, bool down) { InputEvent *evt; evt = qemu_input_event_new_key(key, down); if (QTAILQ_EMPTY(&kbd_queue)) { qemu_input_event_send(src, evt); qemu_input_event_sync(); qapi_free_InputEvent(evt); } else { qemu_inpu...
void qemu_input_event_send_key(QemuConsole *src, KeyValue *key, bool down) { InputEvent *evt; evt = qemu_input_event_new_key(key, down); if (QTAILQ_EMPTY(&kbd_queue)) { qemu_input_event_send(src, evt); qemu_input_event_sync(); qapi_free_InputEvent(evt); } else if (queue_count < q...
void qemu_input_event_send_key(QemuConsole *src, KeyValue *key, bool down) { if (QTAILQ_EMPTY(&kbd_queue)) { qapi_free_InputEvent(evt); } else { qemu_input_queue_event(&kbd_queue, src, evt); } }
void qemu_input_event_send_key(QemuConsole *src, KeyValue *key, bool down) { if (QTAILQ_EMPTY(&kbd_queue)) { qapi_free_InputEvent(evt); } else if (queue_count < queue_limit) { qemu_input_queue_event(&kbd_queue, src, evt); } }
void qemu_input_event_send_key(QemuConsole *src, KeyValue *key, bool down) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (QTAILQ_EMPTY(&kbd_queue)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ qapi_free_InputEvent(evt); } else { qemu_input_queue_event(&kbd_queue, src, evt); /...
void qemu_input_event_send_key(QemuConsole *src, KeyValue *key, bool down) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (QTAILQ_EMPTY(&kbd_queue)) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ qapi_free_InputEvent(evt); } else if (queue_count < queue_limit) { qemu_input_queue_eve...
void qemu_input_event_send_key(QemuConsole *src, KeyValue *key, bool down) { if (QTAILQ_EMPTY(&kbd_queue)) { qapi_free_InputEvent(evt); - } else { + } else if (queue_count < queue_limit) { qemu_input_queue_event(&kbd_queue, src, evt); } }
CVE-2017-8379
QEMU
https://github.com/qemu/qemu
ui/input.c
qemu_input_event_send_key_delay
void qemu_input_event_send_key_delay(uint32_t delay_ms) { if (!kbd_timer) { kbd_timer = timer_new_ms(QEMU_CLOCK_VIRTUAL, qemu_input_queue_process, &kbd_queue); } qemu_input_queue_delay(&kbd_queue, kbd_timer, delay_ms ? delay_ms : kbd_default_delay_ms); }
void qemu_input_event_send_key_delay(uint32_t delay_ms) { if (!kbd_timer) { kbd_timer = timer_new_ms(QEMU_CLOCK_VIRTUAL, qemu_input_queue_process, &kbd_queue); } if (queue_count < queue_limit) { qemu_input_queue_delay(&kbd_queue, kbd_timer, delay_ms ? delay_ms : kbd_default_delay_ms); } ...
void qemu_input_event_send_key_delay(uint32_t delay_ms) { if (!kbd_timer) { kbd_timer = timer_new_ms(QEMU_CLOCK_VIRTUAL, qemu_input_queue_process, &kbd_queue); } qemu_input_queue_delay(&kbd_queue, kbd_timer, delay_ms ? delay_ms : kbd_default_delay_ms); }
void qemu_input_event_send_key_delay(uint32_t delay_ms) { if (!kbd_timer) { kbd_timer = timer_new_ms(QEMU_CLOCK_VIRTUAL, qemu_input_queue_process, &kbd_queue); } if (queue_count < queue_limit) { qemu_input_queue_delay(&kbd_queue, kbd_timer, delay_ms ? delay_ms : kbd_default_delay_ms); } ...
void qemu_input_event_send_key_delay(uint32_t delay_ms) { if (!kbd_timer) { kbd_timer = timer_new_ms(QEMU_CLOCK_VIRTUAL, qemu_input_queue_process, &kbd_queue); } qemu_input_queue_delay(&kbd_queue, kbd_timer, delay_ms ? delay_ms : kbd_default_delay_ms); }
void qemu_input_event_send_key_delay(uint32_t delay_ms) { if (!kbd_timer) { kbd_timer = timer_new_ms(QEMU_CLOCK_VIRTUAL, qemu_input_queue_process, &kbd_queue); } if (queue_count < queue_limit) { qemu_input_queue_delay(&kbd_queue, kbd_timer, delay_ms ? delay_ms : kbd_default_delay_ms); } ...
void qemu_input_event_send_key_delay(uint32_t delay_ms) { if (!kbd_timer) { kbd_timer = timer_new_ms(QEMU_CLOCK_VIRTUAL, qemu_input_queue_process, &kbd_queue); } qemu_input_queue_delay(&kbd_queue, kbd_timer, delay_ms ? delay_ms : kbd_default_delay_ms); }
void qemu_input_event_send_key_delay(uint32_t delay_ms) { if (!kbd_timer) { kbd_timer = timer_new_ms(QEMU_CLOCK_VIRTUAL, qemu_input_queue_process, &kbd_queue); } if (queue_count < queue_limit) { qemu_input_queue_delay(&kbd_queue, kbd_timer, delay_ms ? delay_ms : kbd_default_delay_ms); } ...
void qemu_input_event_send_key_delay(uint32_t delay_ms) { if (!kbd_timer) { kbd_timer = timer_new_ms(QEMU_CLOCK_VIRTUAL, qemu_input_queue_process, &kbd_queue); } - qemu_input_queue_delay(&kbd_queue, kbd_timer, delay_ms ? delay_ms : kbd_default_delay_ms); + if (queue_count < queue_limit) { + ...
CVE-2017-8379
QEMU
https://github.com/qemu/qemu
ui/input.c
qemu_input_queue_delay
static void qemu_input_queue_delay(struct QemuInputEventQueueHead *queue, QEMUTimer *timer, uint32_t delay_ms) { QemuInputEventQueue *item = g_new0(QemuInputEventQueue, 1); bool start_timer = QTAILQ_EMPTY(queue); item->type = QEMU_PUT_QUEUE_DELAY; item->delay_ms = delay_ms; item->timer = timer; ...
static void qemu_input_queue_delay(struct QemuInputEventQueueHead *queue, QEMUTimer *timer, uint32_t delay_ms) { QemuInputEventQueue *item = g_new0(QemuInputEventQueue, 1); bool start_timer = QTAILQ_EMPTY(queue); item->type = QEMU_PUT_QUEUE_DELAY; item->delay_ms = delay_ms; item->timer = timer; ...
static void qemu_input_queue_delay(struct QemuInputEventQueueHead *queue, QEMUTimer *timer, uint32_t delay_ms) { QemuInputEventQueue *item = g_new0(QemuInputEventQueue, 1); bool start_timer = QTAILQ_EMPTY(queue); item->type = QEMU_PUT_QUEUE_DELAY; item->delay_ms = delay_ms; item->timer = timer; ...
static void qemu_input_queue_delay(struct QemuInputEventQueueHead *queue, QEMUTimer *timer, uint32_t delay_ms) { QemuInputEventQueue *item = g_new0(QemuInputEventQueue, 1); bool start_timer = QTAILQ_EMPTY(queue); item->type = QEMU_PUT_QUEUE_DELAY; item->delay_ms = delay_ms; item->timer = timer; ...
static void qemu_input_queue_delay(struct QemuInputEventQueueHead *queue, QEMUTimer *timer, uint32_t delay_ms) { QTAILQ_SERT_TAIL(queue, item, node); }
static void qemu_input_queue_delay(struct QemuInputEventQueueHead *queue, QEMUTimer *timer, uint32_t delay_ms) { QTAILQ_SERT_TAIL(queue, item, node); queue_count++; }
static void qemu_input_queue_delay(struct QemuInputEventQueueHead *queue, QEMUTimer *timer, uint32_t delay_ms) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ QTAILQ_SERT_TAIL(queue, item, node); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static void qemu_input_queue_delay(struct QemuInputEventQueueHead *queue, QEMUTimer *timer, uint32_t delay_ms) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ QTAILQ_SERT_TAIL(queue, item, node); queue_count++; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static void qemu_input_queue_delay(struct QemuInputEventQueueHead *queue, QEMUTimer *timer, uint32_t delay_ms) { QTAILQ_SERT_TAIL(queue, item, node); + queue_count++; }
CVE-2017-8379
QEMU
https://github.com/qemu/qemu
ui/input.c
qemu_input_queue_event
static void qemu_input_queue_event(struct QemuInputEventQueueHead *queue, QemuConsole *src, InputEvent *evt) { QemuInputEventQueue *item = g_new0(QemuInputEventQueue, 1); item->type = QEMU_PUT_QUEUE_EVENT; item->src = src; item->evt = evt; QTAILQ_SERT_TAIL(queue, item, node); }
static void qemu_input_queue_event(struct QemuInputEventQueueHead *queue, QemuConsole *src, InputEvent *evt) { QemuInputEventQueue *item = g_new0(QemuInputEventQueue, 1); item->type = QEMU_PUT_QUEUE_EVENT; item->src = src; item->evt = evt; QTAILQ_SERT_TAIL(queue, item, node); queue_count++; }
static void qemu_input_queue_event(struct QemuInputEventQueueHead *queue, QemuConsole *src, InputEvent *evt) { QemuInputEventQueue *item = g_new0(QemuInputEventQueue, 1); item->type = QEMU_PUT_QUEUE_EVENT; item->src = src; item->evt = evt; QTAILQ_SERT_TAIL(queue, item, node); }
static void qemu_input_queue_event(struct QemuInputEventQueueHead *queue, QemuConsole *src, InputEvent *evt) { QemuInputEventQueue *item = g_new0(QemuInputEventQueue, 1); item->type = QEMU_PUT_QUEUE_EVENT; item->src = src; item->evt = evt; QTAILQ_SERT_TAIL(queue, item, node); queue_count++; }
static void qemu_input_queue_event(struct QemuInputEventQueueHead *queue, QemuConsole *src, InputEvent *evt) { QemuInputEventQueue *item = g_new0(QemuInputEventQueue, 1); item->type = QEMU_PUT_QUEUE_EVENT; item->src = src; item->evt = evt; QTAILQ_SERT_TAIL(queue, item, node); }
static void qemu_input_queue_event(struct QemuInputEventQueueHead *queue, QemuConsole *src, InputEvent *evt) { QemuInputEventQueue *item = g_new0(QemuInputEventQueue, 1); item->type = QEMU_PUT_QUEUE_EVENT; item->src = src; item->evt = evt; QTAILQ_SERT_TAIL(queue, item, node); queue_count++; }
static void qemu_input_queue_event(struct QemuInputEventQueueHead *queue, QemuConsole *src, InputEvent *evt) { QemuInputEventQueue *item = g_new0(QemuInputEventQueue, 1); item->type = QEMU_PUT_QUEUE_EVENT; item->src = src; item->evt = evt; QTAILQ_SERT_TAIL(queue, item, node); }
static void qemu_input_queue_event(struct QemuInputEventQueueHead *queue, QemuConsole *src, InputEvent *evt) { QemuInputEventQueue *item = g_new0(QemuInputEventQueue, 1); item->type = QEMU_PUT_QUEUE_EVENT; item->src = src; item->evt = evt; QTAILQ_SERT_TAIL(queue, item, node); queue_count++; }
static void qemu_input_queue_event(struct QemuInputEventQueueHead *queue, QemuConsole *src, InputEvent *evt) { QemuInputEventQueue *item = g_new0(QemuInputEventQueue, 1); item->type = QEMU_PUT_QUEUE_EVENT; item->src = src; item->evt = evt; QTAILQ_SERT_TAIL(queue, item, node); + queue_count+...
CVE-2017-8379
QEMU
https://github.com/qemu/qemu
ui/input.c
qemu_input_queue_process
static void qemu_input_queue_process(void *opaque) { struct QemuInputEventQueueHead *queue = opaque; QemuInputEventQueue *item; g_assert(!QTAILQ_EMPTY(queue)); item = QTAILQ_FIRST(queue); g_assert(item->type == QEMU_PUT_QUEUE_DELAY); QTAILQ_REMOVE(queue, item, node); g_free(item); while ...
static void qemu_input_queue_process(void *opaque) { struct QemuInputEventQueueHead *queue = opaque; QemuInputEventQueue *item; g_assert(!QTAILQ_EMPTY(queue)); item = QTAILQ_FIRST(queue); g_assert(item->type == QEMU_PUT_QUEUE_DELAY); QTAILQ_REMOVE(queue, item, node); g_free(item); while ...
static void qemu_input_queue_process(void *opaque) { struct QemuInputEventQueueHead *queue = opaque; QemuInputEventQueue *item; g_assert(!QTAILQ_EMPTY(queue)); item = QTAILQ_FIRST(queue); g_assert(item->type == QEMU_PUT_QUEUE_DELAY); QTAILQ_REMOVE(queue, item, node); g_free(item); while ...
static void qemu_input_queue_process(void *opaque) { struct QemuInputEventQueueHead *queue = opaque; QemuInputEventQueue *item; g_assert(!QTAILQ_EMPTY(queue)); item = QTAILQ_FIRST(queue); g_assert(item->type == QEMU_PUT_QUEUE_DELAY); QTAILQ_REMOVE(queue, item, node); g_free(item); while ...
static void qemu_input_queue_process(void *opaque) { while (!QTAILQ_EMPTY(queue)) { item = QTAILQ_FIRST(queue); switch (item->type) { case QEMU_PUT_QUEUE_DELAY: timer_mod(item->timer, qemu_clock_get_ms(QEMU_CLOCK_VIRTUAL) + item->delay_ms); retur...
static void qemu_input_queue_process(void *opaque) { while (!QTAILQ_EMPTY(queue)) { item = QTAILQ_FIRST(queue); switch (item->type) { case QEMU_PUT_QUEUE_DELAY: timer_mod(item->timer, qemu_clock_get_ms(QEMU_CLOCK_VIRTUAL) + item->delay_ms); retur...
static void qemu_input_queue_process(void *opaque) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while (!QTAILQ_EMPTY(queue)) { item = QTAILQ_FIRST(queue); switch (item->type) { case QEMU_PUT_QUEUE_DELAY: timer_mod(item->timer, qemu_clock_get_ms(QEMU_CLOCK_VIRTUAL) ...
static void qemu_input_queue_process(void *opaque) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while (!QTAILQ_EMPTY(queue)) { item = QTAILQ_FIRST(queue); switch (item->type) { case QEMU_PUT_QUEUE_DELAY: timer_mod(item->timer, qemu_clock_get_ms(QEMU_CLOCK_VIRTUAL) ...
static void qemu_input_queue_process(void *opaque) { while (!QTAILQ_EMPTY(queue)) { item = QTAILQ_FIRST(queue); switch (item->type) { case QEMU_PUT_QUEUE_DELAY: timer_mod(item->timer, qemu_clock_get_ms(QEMU_CLOCK_VIRTUAL) + item->delay_ms); ...
CVE-2017-8379
QEMU
https://github.com/qemu/qemu
ui/input.c
qemu_input_queue_sync
static void qemu_input_queue_sync(struct QemuInputEventQueueHead *queue) { QemuInputEventQueue *item = g_new0(QemuInputEventQueue, 1); item->type = QEMU_PUT_QUEUE_SYNC; QTAILQ_SERT_TAIL(queue, item, node); }
static void qemu_input_queue_sync(struct QemuInputEventQueueHead *queue) { QemuInputEventQueue *item = g_new0(QemuInputEventQueue, 1); item->type = QEMU_PUT_QUEUE_SYNC; QTAILQ_SERT_TAIL(queue, item, node); queue_count++; }
static void qemu_input_queue_sync(struct QemuInputEventQueueHead *queue) { QemuInputEventQueue *item = g_new0(QemuInputEventQueue, 1); item->type = QEMU_PUT_QUEUE_SYNC; QTAILQ_SERT_TAIL(queue, item, node); }
static void qemu_input_queue_sync(struct QemuInputEventQueueHead *queue) { QemuInputEventQueue *item = g_new0(QemuInputEventQueue, 1); item->type = QEMU_PUT_QUEUE_SYNC; QTAILQ_SERT_TAIL(queue, item, node); queue_count++; }
static void qemu_input_queue_sync(struct QemuInputEventQueueHead *queue) { QemuInputEventQueue *item = g_new0(QemuInputEventQueue, 1); item->type = QEMU_PUT_QUEUE_SYNC; QTAILQ_SERT_TAIL(queue, item, node); }
static void qemu_input_queue_sync(struct QemuInputEventQueueHead *queue) { QemuInputEventQueue *item = g_new0(QemuInputEventQueue, 1); item->type = QEMU_PUT_QUEUE_SYNC; QTAILQ_SERT_TAIL(queue, item, node); queue_count++; }
static void qemu_input_queue_sync(struct QemuInputEventQueueHead *queue) { QemuInputEventQueue *item = g_new0(QemuInputEventQueue, 1); item->type = QEMU_PUT_QUEUE_SYNC; QTAILQ_SERT_TAIL(queue, item, node); }
static void qemu_input_queue_sync(struct QemuInputEventQueueHead *queue) { QemuInputEventQueue *item = g_new0(QemuInputEventQueue, 1); item->type = QEMU_PUT_QUEUE_SYNC; QTAILQ_SERT_TAIL(queue, item, node); queue_count++; }
static void qemu_input_queue_sync(struct QemuInputEventQueueHead *queue) { QemuInputEventQueue *item = g_new0(QemuInputEventQueue, 1); item->type = QEMU_PUT_QUEUE_SYNC; QTAILQ_SERT_TAIL(queue, item, node); + queue_count++; }
CVE-2017-9343
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-msnip.c
dissect_msnip
static int dissect_msnip(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_IGMPV3_RERS); if (memcmp(pinfo->dst.data, &dst, 4)) { return 0; } col_set_str(pinfo->c...
static int dissect_msnip(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_IGMPV3_RERS); if ((pinfo->dst.type != AT_IPv4) || memcmp(pinfo->dst.data, &dst, 4)) { return 0...
static int dissect_msnip(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_IGMPV3_RERS); if (memcmp(pinfo->dst.data, &dst, 4)) { return 0; } col_set_str(pinfo->c...
static int dissect_msnip(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_IGMPV3_RERS); if ((pinfo->dst.type != AT_IPv4) || memcmp(pinfo->dst.data, &dst, 4)) { return 0...
static int dissect_msnip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data ) { guint32 dst = g_htonl(MC_ALL_IGMPV3_RERS); if (memcmp(pinfo->dst.data, &dst, 4)) { return 0; } col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSNIP"); }
static int dissect_msnip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data ) { guint32 dst = g_htonl(MC_ALL_IGMPV3_RERS); if ((pinfo->dst.type != AT_IPv4) || memcmp(pinfo->dst.data, &dst, 4)) { return 0; } col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSNIP"); }
static int dissect_msnip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint32 dst = g_htonl(MC_ALL_IGMPV3_RERS); if (memcmp(pinfo->dst.data, &dst, 4)) { return 0; } col_set_str(pinfo->cinfo, COL_PROTOCOL, "MSNIP"); ...
static int dissect_msnip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint32 dst = g_htonl(MC_ALL_IGMPV3_RERS); if ((pinfo->dst.type != AT_IPv4) || memcmp(pinfo->dst.data, &dst, 4)) { return 0; } col_set_str(pinfo->...
static int dissect_msnip(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data ) { guint32 dst = g_htonl(MC_ALL_IGMPV3_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-...
CVE-2017-9344
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-btl2cap.c
dissect_connparamrequest
static int dissect_connparamrequest(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree) { proto_item *item; guint16 max_interval, slave_latency; item = proto_tree_add_item(tree, hf_btl2cap_min_interval, tvb, offset, 2, ENC_LITTLE_ENDIAN); proto_item_append_text(item, " (%g msec)", tvb_get_l...
static int dissect_connparamrequest(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree) { proto_item *item; guint16 max_interval, slave_latency; item = proto_tree_add_item(tree, hf_btl2cap_min_interval, tvb, offset, 2, ENC_LITTLE_ENDIAN); proto_item_append_text(item, " (%g msec)", tvb_get_l...
static int dissect_connparamrequest(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree) { proto_item *item; guint16 max_interval, slave_latency; item = proto_tree_add_item(tree, hf_btl2cap_min_interval, tvb, offset, 2, ENC_LITTLE_ENDIAN); proto_item_append_text(item, " (%g msec)", tvb_get_l...
static int dissect_connparamrequest(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree) { proto_item *item; guint16 max_interval, slave_latency; item = proto_tree_add_item(tree, hf_btl2cap_min_interval, tvb, offset, 2, ENC_LITTLE_ENDIAN); proto_item_append_text(item, " (%g msec)", tvb_get_l...
static int dissect_connparamrequest(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree) { item = proto_tree_add_item(tree, hf_btl2cap_min_interval, tvb, offset, 2, ENC_LITTLE_ENDIAN); proto_item_append_text(item, " (%g msec)", tvb_get_letohs(tvb, offset) * 1.25); offset += 2; item = proto_t...
static int dissect_connparamrequest(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree) { item = proto_tree_add_item(tree, hf_btl2cap_min_interval, tvb, offset, 2, ENC_LITTLE_ENDIAN); proto_item_append_text(item, " (%g msec)", tvb_get_letohs(tvb, offset) * 1.25); offset += 2; item = proto_t...
static int dissect_connparamrequest(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ item = proto_tree_add_item(tree, hf_btl2cap_min_interval, tvb, offset, 2, ENC_LITTLE_ENDIAN); proto_item_append_text(item, " (%g msec)", tvb_get_letohs(tvb, of...
static int dissect_connparamrequest(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ item = proto_tree_add_item(tree, hf_btl2cap_min_interval, tvb, offset, 2, ENC_LITTLE_ENDIAN); proto_item_append_text(item, " (%g msec)", tvb_get_letohs(tvb, of...
static int dissect_connparamrequest(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree) { item = proto_tree_add_item(tree, hf_btl2cap_min_interval, tvb, offset, 2, ENC_LITTLE_ENDIAN); proto_item_append_text(item, " (%g msec)", tvb_get_letohs(tvb, offset) * 1.25); offset += 2; item = pr...
CVE-2017-9344
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-btl2cap.c
proto_register_btl2cap
void proto_register_btl2cap(void) { expert_module_t *expert_btl2cap; static hf_register_info hf[] = { { &hf_btl2cap_length, { "Length", "btl2cap.length", FT_UT16, BASE_DEC, NULL, 0x0, "L2CAP Payload Length", HFILL } }, { &hf_btl2cap_cid, { ...
void proto_register_btl2cap(void) { expert_module_t *expert_btl2cap; static hf_register_info hf[] = { { &hf_btl2cap_length, { "Length", "btl2cap.length", FT_UT16, BASE_DEC, NULL, 0x0, "L2CAP Payload Length", HFILL } }, { &hf_btl2cap_cid, { ...
void proto_register_btl2cap(void) { expert_module_t *expert_btl2cap; static hf_register_info hf[] = { { &hf_btl2cap_length, { "Length", "btl2cap.length", FT_UT16, BASE_DEC, NULL, 0x0, "L2CAP Payload Length", HFILL } }, { &hf_btl2cap_cid, { ...
void proto_register_btl2cap(void) { expert_module_t *expert_btl2cap; static hf_register_info hf[] = { { &hf_btl2cap_length, { "Length", "btl2cap.length", FT_UT16, BASE_DEC, NULL, 0x0, "L2CAP Payload Length", HFILL } }, { &hf_btl2cap_cid, { ...
void proto_register_btl2cap(void) { static gint *ett[] = { &ett_btl2cap, &ett_btl2cap_cmd, &ett_btl2cap_option, &ett_btl2cap_extfeatures, &ett_btl2cap_fixedchans, &ett_btl2cap_control, &ett_btl2cap_le_sdu_fragment, &ett_btl2cap_le_sdu_fragments }; static ei_register_info ei[] = { { &ei_btl2c...
void proto_register_btl2cap(void) { static gint *ett[] = { &ett_btl2cap, &ett_btl2cap_cmd, &ett_btl2cap_option, &ett_btl2cap_extfeatures, &ett_btl2cap_fixedchans, &ett_btl2cap_control, &ett_btl2cap_le_sdu_fragment, &ett_btl2cap_le_sdu_fragments }; static ei_register_info ei[] = { { &ei_btl2c...
void proto_register_btl2cap(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static gint *ett[] = { &ett_btl2cap, &ett_btl2cap_cmd, &ett_btl2cap_option, &ett_btl2cap_extfeatures, &ett_btl2cap_fixedchans, &ett_btl2cap_control }; static ei_register_info ei[] = { { &ei_btl2cap_paramete...
void proto_register_btl2cap(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static gint *ett[] = { &ett_btl2cap, &ett_btl2cap_cmd, &ett_btl2cap_option, &ett_btl2cap_extfeatures, &ett_btl2cap_fixedchans, &ett_btl2cap_control }; static ei_register_info ei[] = { { &ei_btl2cap_paramete...
void proto_register_btl2cap(void) { static gint *ett[] = { &ett_btl2cap, &ett_btl2cap_cmd, &ett_btl2cap_option, &ett_btl2cap_extfeatures, &ett_btl2cap_fixedchans, &ett_btl2cap_control, &ett_btl2cap_le_sdu_fragment, &ett_btl2cap_le_sdu_fragments }; static ei_register_info ei[] = { - { &ei...
CVE-2017-9345
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-dns.c
expand_dns_name
int expand_dns_name(tvbuff_t *tvb, int offset, int max_len, int dns_data_offset, const guchar **name, guint* name_len) { int start_offset = offset; guchar *np; int len = -1; int chars_processed = 0; int data_size = tvb_reported_length_remaining(tvb, dns_data_offset); int component_len; int i...
int expand_dns_name(tvbuff_t *tvb, int offset, int max_len, int dns_data_offset, const guchar **name, guint* name_len) { int start_offset = offset; guchar *np; int len = -1; int pointers_count = 0; int component_len; int indir_offset; int maxname; const int min_len = 1; maxname=MAXDN...
int expand_dns_name(tvbuff_t *tvb, int offset, int max_len, int dns_data_offset, const guchar **name) { int start_offset = offset; guchar *np; int len = -1; int chars_processed = 0; int data_size = tvb_reported_length_remaining(tvb, dns_data_offset); int component_len; int indir_offset; ...
int expand_dns_name(tvbuff_t *tvb, int offset, int max_len, int dns_data_offset, const guchar **name) { int start_offset = offset; guchar *np; int len = -1; int pointers_count = 0; int component_len; int indir_offset; int maxname; const int min_len = 1; maxname=MAXDNAME; np=(guch...
int expand_dns_name(tvbuff_t *tvb, int offset, int max_len, int dns_data_offset, const guchar **name, guint* name_len) { int start_offset = offset; int len = -1; int chars_processed = 0; int data_size = tvb_reported_length_remaining(tvb, dns_data_offset); int component_len; const int min_len = 1...
int expand_dns_name(tvbuff_t *tvb, int offset, int max_len, int dns_data_offset, const guchar **name, guint* name_len) { int start_offset = offset; int len = -1; int pointers_count = 0; int component_len; const int min_len = 1; for (;;) { component_len = tvb_get_guint8(tvb, offset); ...
int expand_dns_name(tvbuff_t *tvb, int offset, int max_len, int dns_data_offset, const guchar **name) { int start_offset = offset; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int len = -1; int chars_processed = 0; int data_size = tvb_reported_length_remaining(tvb, dns_data_offset); int compone...
int expand_dns_name(tvbuff_t *tvb, int offset, int max_len, int dns_data_offset, const guchar **name) { int start_offset = offset; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int len = -1; int pointers_count = 0; int component_len; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ const int mi...
int expand_dns_name(tvbuff_t *tvb, int offset, int max_len, int dns_data_offset, const guchar **name, guint* name_len) { int start_offset = offset; int len = -1; - int chars_processed = 0; - int data_size = tvb_reported_length_remaining(tvb, dns_data_offset); + int pointers_count = 0; int compo...
CVE-2017-9346
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-slsk.c
dissect_slsk_pdu
static int dissect_slsk_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { proto_item *ti, *ti_len, *ti_subtree, *ti_subtree2; proto_tree *slsk_tree, *subtree, *subtree2, *subtree3; int offset = 0, i, j; guint32 msg_len, msg_code; guint8 *str; int str_len, start_offset, star...
static int dissect_slsk_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { proto_item *ti, *ti_len, *ti_subtree, *ti_subtree2; proto_tree *slsk_tree, *subtree, *subtree2, *subtree3; int offset = 0, i, j; guint32 msg_len, msg_code; guint8 *str; int str_len, start_offset, star...
static int dissect_slsk_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { proto_item *ti, *ti_len=NULL; proto_tree *slsk_tree; int offset, i, j; guint32 msg_len, msg_code; const gchar *message_type; guint8 *str; int comprlen = 0; int uncomprlen = 0; int uncompr_...
static int dissect_slsk_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { proto_item *ti, *ti_len=NULL; proto_tree *slsk_tree; int offset, i, j; guint32 msg_len, msg_code; const gchar *message_type; guint8 *str; int comprlen = 0; int uncomprlen = 0; int uncompr_...
static int dissect_slsk_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { switch (msg_code) { case 5: if (check_slsk_format(tvb, offset, "isb")) { } else if (check_slsk_format(tvb, offset, "is")) { } else if (check_slsk_format(tvb, offset, "i*")) { if (s...
static int dissect_slsk_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { switch (msg_code) { case 5: if (check_slsk_format(tvb, offset, "isb")) { } else if (check_slsk_format(tvb, offset, "is")) { } else if (check_slsk_format(tvb, offset, "i*")) { if (s...
static int dissect_slsk_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (tree) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (msg_code) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ case 5: if...
static int dissect_slsk_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (tree) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (msg_code) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ case 5: if...
static int dissect_slsk_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { switch (msg_code) { case 5: if (check_slsk_format(tvb, offset, "isb")) { } else if (check_slsk_format(tvb, offset, "is")) { } else if (check_slsk_format(tvb, offset, "i*")) { ...
CVE-2017-9347
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/asn1/ros/packet-ros-template.c
ros_try_string
static int ros_try_string(const char *oid, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, struct SESSION_DATA_STRUCTURE* session) { ros_info_t *rinfo; gint32 opcode_lcl = 0; const gchar *opname = NULL; const gchar *suffix = NULL; dissector_t opdissector = NULL; const value_string *lookup; ...
static int ros_try_string(const char *oid, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, struct SESSION_DATA_STRUCTURE* session) { ros_info_t *rinfo; gint32 opcode_lcl = 0; const gchar *opname = NULL; const gchar *suffix = NULL; dissector_t opdissector = NULL; const value_string *lookup; ...
static int ros_try_string(const char *oid, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, struct SESSION_DATA_STRUCTURE* session) { ros_info_t *rinfo; gint32 opcode_lcl = 0; const gchar *opname = NULL; const gchar *suffix = NULL; dissector_t opdissector = NULL; const value_string *lookup; ...
static int ros_try_string(const char *oid, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, struct SESSION_DATA_STRUCTURE* session) { ros_info_t *rinfo; gint32 opcode_lcl = 0; const gchar *opname = NULL; const gchar *suffix = NULL; dissector_t opdissector = NULL; const value_string *lookup; ...
static int ros_try_string(const char *oid, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, struct SESSION_DATA_STRUCTURE* session) { proto_tree *ros_tree=NULL; if((session != NULL) && ((rinfo = (ros_info_t*)wmem_map_lookup(protocol_table, oid)) != NULL)) { col_set_str(pinfo->cinfo, COL_PROTOCOL, ri...
static int ros_try_string(const char *oid, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, struct SESSION_DATA_STRUCTURE* session) { proto_tree *ros_tree=NULL; if((session != NULL) && (oid != NULL) && ((rinfo = (ros_info_t*)wmem_map_lookup(protocol_table, oid)) != NULL)) { col_set_str(pinfo->cinfo,...
static int ros_try_string(const char *oid, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, struct SESSION_DATA_STRUCTURE* session) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ proto_tree *ros_tree=NULL; if((session != NULL) && ((rinfo = (ros_info_t*)g_hash_table_lookup(protocol_table, oid)) != NULL)...
static int ros_try_string(const char *oid, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, struct SESSION_DATA_STRUCTURE* session) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ proto_tree *ros_tree=NULL; if((session != NULL) && (oid != NULL) && ((rinfo = (ros_info_t*)g_hash_table_lookup(protocol_tabl...
static int ros_try_string(const char *oid, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, struct SESSION_DATA_STRUCTURE* session) { proto_tree *ros_tree=NULL; - if((session != NULL) && ((rinfo = (ros_info_t*)wmem_map_lookup(protocol_table, oid)) != NULL)) { + if((session != NULL) && (oid != NULL) && (...
CVE-2017-9347
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-ros.c
ros_try_string
static int ros_try_string(const char *oid, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, struct SESSION_DATA_STRUCTURE* session) { ros_info_t *rinfo; gint32 opcode_lcl = 0; const gchar *opname = NULL; const gchar *suffix = NULL; dissector_t opdissector = NULL; const value_string *lookup; ...
static int ros_try_string(const char *oid, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, struct SESSION_DATA_STRUCTURE* session) { ros_info_t *rinfo; gint32 opcode_lcl = 0; const gchar *opname = NULL; const gchar *suffix = NULL; dissector_t opdissector = NULL; const value_string *lookup; ...
static int ros_try_string(const char *oid, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, struct SESSION_DATA_STRUCTURE* session) { ros_info_t *rinfo; gint32 opcode_lcl = 0; const gchar *opname = NULL; const gchar *suffix = NULL; dissector_t opdissector = NULL; const value_string *lookup; ...
static int ros_try_string(const char *oid, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, struct SESSION_DATA_STRUCTURE* session) { ros_info_t *rinfo; gint32 opcode_lcl = 0; const gchar *opname = NULL; const gchar *suffix = NULL; dissector_t opdissector = NULL; const value_string *lookup; ...
static int ros_try_string(const char *oid, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, struct SESSION_DATA_STRUCTURE* session) { proto_tree *ros_tree=NULL; if((session != NULL) && ((rinfo = (ros_info_t*)wmem_map_lookup(protocol_table, oid)) != NULL)) { col_set_str(pinfo->cinfo, COL_PROTOCOL, ri...
static int ros_try_string(const char *oid, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, struct SESSION_DATA_STRUCTURE* session) { proto_tree *ros_tree=NULL; if((session != NULL) && (oid != NULL) && ((rinfo = (ros_info_t*)wmem_map_lookup(protocol_table, oid)) != NULL)) { col_set_str(pinfo->cinfo,...
static int ros_try_string(const char *oid, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, struct SESSION_DATA_STRUCTURE* session) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ proto_tree *ros_tree=NULL; if((session != NULL) && ((rinfo = (ros_info_t*)g_hash_table_lookup(protocol_table, oid)) != NULL)...
static int ros_try_string(const char *oid, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, struct SESSION_DATA_STRUCTURE* session) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ proto_tree *ros_tree=NULL; if((session != NULL) && (oid != NULL) && ((rinfo = (ros_info_t*)g_hash_table_lookup(protocol_tabl...
static int ros_try_string(const char *oid, tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, struct SESSION_DATA_STRUCTURE* session) { proto_tree *ros_tree=NULL; - if((session != NULL) && ((rinfo = (ros_info_t*)wmem_map_lookup(protocol_table, oid)) != NULL)) { + if((session != NULL) && (oid != NULL) && (...
CVE-2017-9348
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-dof.c
DOFObjectID_GetClassSize
static guint32 DOFObjectID_GetClassSize(DOFObjectID self) { return DOFObjectID_GetClassSize_Bytes(self->oid); }
static guint32 DOFObjectID_GetClassSize(DOFObjectID self) { guint32 size = self->len; (void)OALMarshal_UncompressValue(DOFOBJECTID_MAX_CLASS_SIZE, &size, self->oid); return size; }
static guint32 DOFObjectID_GetClassSize(DOFObjectID self) { return DOFObjectID_GetClassSize_Bytes(self->oid); }
static guint32 DOFObjectID_GetClassSize(DOFObjectID self) { guint32 size = self->len; (void)OALMarshal_UncompressValue(DOFOBJECTID_MAX_CLASS_SIZE, &size, self->oid); return size; }
static guint32 DOFObjectID_GetClassSize(DOFObjectID self) { return DOFObjectID_GetClassSize_Bytes(self->oid); }
static guint32 DOFObjectID_GetClassSize(DOFObjectID self) { guint32 size = self->len; (void)OALMarshal_UncompressValue(DOFOBJECTID_MAX_CLASS_SIZE, &size, self->oid); return size; }
static guint32 DOFObjectID_GetClassSize(DOFObjectID self) { return DOFObjectID_GetClassSize_Bytes(self->oid); }
static guint32 DOFObjectID_GetClassSize(DOFObjectID self) { guint32 size = self->len; (void)OALMarshal_UncompressValue(DOFOBJECTID_MAX_CLASS_SIZE, &size, self->oid); return size; }
static guint32 DOFObjectID_GetClassSize(DOFObjectID self) { - return DOFObjectID_GetClassSize_Bytes(self->oid); + guint32 size = self->len; + (void)OALMarshal_UncompressValue(DOFOBJECTID_MAX_CLASS_SIZE, &size, self->oid); + return size; }
CVE-2017-9348
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-dof.c
OALMarshal_UncompressValue
static guint32 OALMarshal_UncompressValue(guint8 maxSize, guint32 *bufLength, const guint8 *buffer) { guint32 value = 0; guint8 used = 0; guint8 size = maxSize; guint8 mask; switch (buffer[0] >> 6) { case 0x02: if (maxSize > 2) { mask = 0x3F; } else { mask...
static guint32 OALMarshal_UncompressValue(guint8 maxSize, guint32 *bufLength, const guint8 *buffer) { guint32 value = 0; guint8 used = 0; guint8 size = maxSize; guint8 mask; switch (buffer[0] >> 6) { case 0x02: if (maxSize > 2) { mask = 0x3F; } else { mask...
static guint32 OALMarshal_UncompressValue(guint8 maxSize, guint32 *bufLength, const guint8 *buffer) { guint32 value = 0; guint8 used = 0; guint8 size = maxSize; guint8 mask; switch (buffer[0] >> 6) { case 0x02: if (maxSize > 2) { mask = 0x3F; } else { mask...
static guint32 OALMarshal_UncompressValue(guint8 maxSize, guint32 *bufLength, const guint8 *buffer) { guint32 value = 0; guint8 used = 0; guint8 size = maxSize; guint8 mask; switch (buffer[0] >> 6) { case 0x02: if (maxSize > 2) { mask = 0x3F; } else { mask...
static guint32 OALMarshal_UncompressValue(guint8 maxSize, guint32 *bufLength, const guint8 *buffer) { guint8 size = maxSize; switch (buffer[0] >> 6) { case 0x02: size = 2; break; case 0x03: if (maxSize > 2) { mask = 0x3F; } else { mask = 0x7F; ...
static guint32 OALMarshal_UncompressValue(guint8 maxSize, guint32 *bufLength, const guint8 *buffer) { guint8 size = maxSize; switch (buffer[0] >> 6) { case 0x02: size = 2; break; case 0x03: if (maxSize > 2) { mask = 0x3F; } else { mask = 0x7F; ...
static guint32 OALMarshal_UncompressValue(guint8 maxSize, guint32 *bufLength, const guint8 *buffer) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint8 size = maxSize; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (buffer[0] >> 6) { case 0x02: /* PLACEHOLDER: DO NOT DELETE THIS COMMENT...
static guint32 OALMarshal_UncompressValue(guint8 maxSize, guint32 *bufLength, const guint8 *buffer) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint8 size = maxSize; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (buffer[0] >> 6) { case 0x02: /* PLACEHOLDER: DO NOT DELETE THIS COMMENT...
static guint32 OALMarshal_UncompressValue(guint8 maxSize, guint32 *bufLength, const guint8 *buffer) { guint8 size = maxSize; switch (buffer[0] >> 6) { case 0x02: size = 2; break; case 0x03: if (maxSize > 2) { mask = 0x3F; } else { mask =...
CVE-2017-9349
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-dcm.c
dissect_dcm_pdu_data
static guint32 dissect_dcm_pdu_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, dcm_state_assoc_t *assoc, guint32 offset, guint32 pdu_len, gchar **pdu_data_description) { proto_tree *pdv_ptree; proto_item *pdv_pitem, *pdvlen_item; gchar *buf_desc = NULL; gchar *pdv_description = NULL; gbool...
static guint32 dissect_dcm_pdu_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, dcm_state_assoc_t *assoc, guint32 offset, guint32 pdu_len, gchar **pdu_data_description) { proto_tree *pdv_ptree; proto_item *pdv_pitem, *pdvlen_item; gchar *buf_desc = NULL; gchar *pdv_description = NULL; gbool...
static guint32 dissect_dcm_pdu_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, dcm_state_assoc_t *assoc, guint32 offset, guint32 pdu_len, gchar **pdu_data_description) { proto_tree *pdv_ptree; proto_item *pdv_pitem, *pdvlen_item; gchar *buf_desc = NULL; gchar *pdv_description = NULL; gbool...
static guint32 dissect_dcm_pdu_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, dcm_state_assoc_t *assoc, guint32 offset, guint32 pdu_len, gchar **pdu_data_description) { proto_tree *pdv_ptree; proto_item *pdv_pitem, *pdvlen_item; gchar *buf_desc = NULL; gchar *pdv_description = NULL; gbool...
static guint32 dissect_dcm_pdu_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, dcm_state_assoc_t *assoc, guint32 offset, guint32 pdu_len, gchar **pdu_data_description) { endpos = offset + pdu_len; while (offset < endpos) { pdv_len = tvb_get_ntohl(tvb, offset); pdv_ptree = proto_tree_ad...
static guint32 dissect_dcm_pdu_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, dcm_state_assoc_t *assoc, guint32 offset, guint32 pdu_len, gchar **pdu_data_description) { endpos = offset + pdu_len; while (offset < endpos) { pdv_len = tvb_get_ntohl(tvb, offset); pdv_ptree = proto_tree_ad...
static guint32 dissect_dcm_pdu_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, dcm_state_assoc_t *assoc, guint32 offset, guint32 pdu_len, gchar **pdu_data_description) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ endpos = offset + pdu_len; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while...
static guint32 dissect_dcm_pdu_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, dcm_state_assoc_t *assoc, guint32 offset, guint32 pdu_len, gchar **pdu_data_description) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ endpos = offset + pdu_len; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while...
static guint32 dissect_dcm_pdu_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, dcm_state_assoc_t *assoc, guint32 offset, guint32 pdu_len, gchar **pdu_data_description) { endpos = offset + pdu_len; while (offset < endpos) { pdv_len = tvb_get_ntohl(tvb, offset); pdv_ptree = proto_tr...
CVE-2017-9350
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; static const int * ssdo_sacmd_flags[] = { &hf_oss_ssdo_...
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; static const int * ssdo_sacmd_flags[] = { &hf_oss_ssdo_...
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; /* PLACEHOLDE...
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; /* PLACEHOLDE...
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; static const int * ssdo_sacmd_flags[] = { &hf_oss_s...
CVE-2017-9351
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-bootp.c
bootp_option
static int bootp_option(tvbuff_t *tvb, packet_info *pinfo, proto_tree *bp_tree, int voff, int eoff, gboolean first_pass, gboolean *at_end, const char **dhcp_type_p, const guint8 **vendor_class_id_p, guint8 *overload_p) { struct opt_info *opt; guchar code = tvb_get_guint8(tvb, voff); ...
static int bootp_option(tvbuff_t *tvb, packet_info *pinfo, proto_tree *bp_tree, int voff, int eoff, gboolean first_pass, gboolean *at_end, const char **dhcp_type_p, const guint8 **vendor_class_id_p, guint8 *overload_p) { struct opt_info *opt; guchar code = tvb_get_guint8(tvb, voff); ...
static int bootp_option(tvbuff_t *tvb, packet_info *pinfo, proto_tree *bp_tree, proto_item *bp_item, int voff, int eoff, gboolean first_pass, gboolean *at_end, const char **dhcp_type_p, const guint8 **vendor_class_id_p, guint8 *overload_p) { struct opt_info *opt; enum field_type ftype; ...
static int bootp_option(tvbuff_t *tvb, packet_info *pinfo, proto_tree *bp_tree, proto_item *bp_item, int voff, int eoff, gboolean first_pass, gboolean *at_end, const char **dhcp_type_p, const guint8 **vendor_class_id_p, guint8 *overload_p) { struct opt_info *opt; enum field_type ftype; ...
static int bootp_option(tvbuff_t *tvb, packet_info *pinfo, proto_tree *bp_tree, int voff, int eoff, gboolean first_pass, gboolean *at_end, const char **dhcp_type_p, const guint8 **vendor_class_id_p, guint8 *overload_p) { guchar code = tvb_get_guint8(tvb, voff); if (first_pass) { ...
static int bootp_option(tvbuff_t *tvb, packet_info *pinfo, proto_tree *bp_tree, int voff, int eoff, gboolean first_pass, gboolean *at_end, const char **dhcp_type_p, const guint8 **vendor_class_id_p, guint8 *overload_p) { guchar code = tvb_get_guint8(tvb, voff); if (first_pass) { ...
static int bootp_option(tvbuff_t *tvb, packet_info *pinfo, proto_tree *bp_tree, proto_item *bp_item, int voff, int eoff, gboolean first_pass, gboolean *at_end, const char **dhcp_type_p, const guint8 **vendor_class_id_p, guint8 *overload_p) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
static int bootp_option(tvbuff_t *tvb, packet_info *pinfo, proto_tree *bp_tree, proto_item *bp_item, int voff, int eoff, gboolean first_pass, gboolean *at_end, const char **dhcp_type_p, const guint8 **vendor_class_id_p, guint8 *overload_p) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ ...
static int bootp_option(tvbuff_t *tvb, packet_info *pinfo, proto_tree *bp_tree, int voff, int eoff, gboolean first_pass, gboolean *at_end, const char **dhcp_type_p, const guint8 **vendor_class_id_p, guint8 *overload_p) { guchar code = tvb_get_guint8(tvb, voff); if (first_pass) { ...
CVE-2017-9352
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-bzr.c
get_bzr_pdu_len
static guint get_bzr_pdu_len(packet_info *pinfo, tvbuff_t *tvb, int offset) { int next_offset; gint len = 0; gint protocol_version_len; guint8 cmd = 0; protocol_version_len = tvb_find_line_end(tvb, offset, -1, &next_offset, TRUE); if (protocol_version_len == -1) { return -1; } le...
static guint get_bzr_pdu_len(packet_info *pinfo, tvbuff_t *tvb, int offset) { int next_offset; gint len = 0, current_len; gint protocol_version_len; guint8 cmd = 0; protocol_version_len = tvb_find_line_end(tvb, offset, -1, &next_offset, TRUE); if (protocol_version_len == -1) { return -1;...
static guint get_bzr_pdu_len(packet_info *pinfo, tvbuff_t *tvb, int offset) { int next_offset; gint len = 0; gint protocol_version_len; guint8 cmd = 0; protocol_version_len = tvb_find_line_end(tvb, offset, -1, &next_offset, TRUE); if (protocol_version_len == -1) { return -1; } le...
static guint get_bzr_pdu_len(packet_info *pinfo, tvbuff_t *tvb, int offset) { int next_offset; gint len = 0, current_len; gint protocol_version_len; guint8 cmd = 0; protocol_version_len = tvb_find_line_end(tvb, offset, -1, &next_offset, TRUE); if (protocol_version_len == -1) { return -1;...
static guint get_bzr_pdu_len(packet_info *pinfo, tvbuff_t *tvb, int offset) { int next_offset; gint len = 0; gint protocol_version_len; guint8 cmd = 0; protocol_version_len = tvb_find_line_end(tvb, offset, -1, &next_offset, TRUE); if (protocol_version_len == -1) { return -1; } le...
static guint get_bzr_pdu_len(packet_info *pinfo, tvbuff_t *tvb, int offset) { int next_offset; gint len = 0, current_len; gint protocol_version_len; guint8 cmd = 0; protocol_version_len = tvb_find_line_end(tvb, offset, -1, &next_offset, TRUE); if (protocol_version_len == -1) { return -1;...
static guint get_bzr_pdu_len(packet_info *pinfo, tvbuff_t *tvb, int offset) { int next_offset; gint len = 0; gint protocol_version_len; guint8 cmd = 0; protocol_version_len = tvb_find_line_end(tvb, offset, -1, &next_offset, TRUE); if (protocol_version_len == -1) { return -1; } le...
static guint get_bzr_pdu_len(packet_info *pinfo, tvbuff_t *tvb, int offset) { int next_offset; gint len = 0, current_len; gint protocol_version_len; guint8 cmd = 0; protocol_version_len = tvb_find_line_end(tvb, offset, -1, &next_offset, TRUE); if (protocol_version_len == -1) { /* PLACEHO...
static guint get_bzr_pdu_len(packet_info *pinfo, tvbuff_t *tvb, int offset) { int next_offset; - gint len = 0; + gint len = 0, current_len; gint protocol_version_len; guint8 cmd = 0; protocol_version_len = tvb_find_line_end(tvb, offset, -1, &next_offset, TRUE); if (protocol_version_len =...
CVE-2017-9353
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-ipv6.c
dissect_routing6_rpl
static void dissect_routing6_rpl(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *rthdr_tree, struct rthdr_proto_item *rthdr_ti, struct ip6_rthdr rt) { proto_item *pi = proto_tree_get_parent(rthdr_tree); proto_item *ti; guint8 cmprI, cmprE, cmprX, pad; guint32 reserved; gint idx; gint ...
static void dissect_routing6_rpl(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *rthdr_tree, struct rthdr_proto_item *rthdr_ti, struct ip6_rthdr rt) { proto_item *pi = proto_tree_get_parent(rthdr_tree); proto_item *ti; guint8 cmprI, cmprE, cmprX, pad; guint32 reserved; gint idx; gint ...
static void dissect_routing6_rpl(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *rthdr_tree, struct rthdr_proto_item *rthdr_ti, struct ip6_rthdr rt) { proto_item *pi = proto_tree_get_parent(rthdr_tree); proto_item *ti; guint8 cmprI, cmprE, cmprX, pad; guint32 reserved; gint idx; gint ...
static void dissect_routing6_rpl(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *rthdr_tree, struct rthdr_proto_item *rthdr_ti, struct ip6_rthdr rt) { proto_item *pi = proto_tree_get_parent(rthdr_tree); proto_item *ti; guint8 cmprI, cmprE, cmprX, pad; guint32 reserved; gint idx; gint ...
static void dissect_routing6_rpl(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *rthdr_tree, struct rthdr_proto_item *rthdr_ti, struct ip6_rthdr rt) { wmem_array_t *rpl_addr_vector = NULL; guint i; ip6_dst_addr = (const struct e_in6_addr *)pinfo->dst.data; if (rpl_addr_count > 0) { fo...
static void dissect_routing6_rpl(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *rthdr_tree, struct rthdr_proto_item *rthdr_ti, struct ip6_rthdr rt) { wmem_array_t *rpl_addr_vector = NULL; guint i; if ((pinfo->dst.type != AT_IPv6) || (pinfo->src.type != AT_IPv6)) { return; } ip6_d...
static void dissect_routing6_rpl(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *rthdr_tree, struct rthdr_proto_item *rthdr_ti, struct ip6_rthdr rt) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ wmem_array_t *rpl_addr_vector = NULL; guint i; ip6_dst_addr = (const struct e_in6_addr *)pinfo->...
static void dissect_routing6_rpl(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *rthdr_tree, struct rthdr_proto_item *rthdr_ti, struct ip6_rthdr rt) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ wmem_array_t *rpl_addr_vector = NULL; guint i; if ((pinfo->dst.type != AT_IPv6) || (pinfo->src.t...
static void dissect_routing6_rpl(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *rthdr_tree, struct rthdr_proto_item *rthdr_ti, struct ip6_rthdr rt) { wmem_array_t *rpl_addr_vector = NULL; guint i; + if ((pinfo->dst.type != AT_IPv6) || (pinfo->src.type != AT_IPv6)) { + return; + } ...
CVE-2017-9354
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-rgmp.c
dissect_rgmp
static int dissect_rgmp(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_RGMP); if (memcmp(pinfo->dst.data, &dst, 4)) { return 0; } col_set_str(pinfo->cinfo, COL_PR...
static int dissect_rgmp(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_RGMP); if ((pinfo->dst.type != AT_IPv4) || memcmp(pinfo->dst.data, &dst, 4)) { return 0; } ...
static int dissect_rgmp(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_RGMP); if (memcmp(pinfo->dst.data, &dst, 4)) { return 0; } col_set_str(pinfo->cinfo, COL_PR...
static int dissect_rgmp(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_RGMP); if ((pinfo->dst.type != AT_IPv4) || memcmp(pinfo->dst.data, &dst, 4)) { return 0; } ...
static int dissect_rgmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data ) { guint32 dst = g_htonl(MC_RGMP); if (memcmp(pinfo->dst.data, &dst, 4)) { return 0; } col_set_str(pinfo->cinfo, COL_PROTOCOL, "RGMP"); }
static int dissect_rgmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data ) { guint32 dst = g_htonl(MC_RGMP); if ((pinfo->dst.type != AT_IPv4) || memcmp(pinfo->dst.data, &dst, 4)) { return 0; } col_set_str(pinfo->cinfo, COL_PROTOCOL, "RGMP"); }
static int dissect_rgmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint32 dst = g_htonl(MC_RGMP); if (memcmp(pinfo->dst.data, &dst, 4)) { return 0; } col_set_str(pinfo->cinfo, COL_PROTOCOL, "RGMP"); /* PLACEHO...
static int dissect_rgmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint32 dst = g_htonl(MC_RGMP); if ((pinfo->dst.type != AT_IPv4) || memcmp(pinfo->dst.data, &dst, 4)) { return 0; } col_set_str(pinfo->cinfo, COL_P...
static int dissect_rgmp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* data ) { guint32 dst = g_htonl(MC_RGMP); - 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, COL_...
CVE-2017-9608
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/dnxhd_parser.c
dnxhd_find_frame_end
static int dnxhd_find_frame_end(DNXHDParserContext *dctx, const uint8_t *buf, int buf_size) { ParseContext *pc = &dctx->pc; uint64_t state = pc->state64; int pic_found = pc->frame_start_found; int i = 0; if (!pic_found) { for (i = 0; i < buf_size; i++) { state = (state << 8) | bu...
static int dnxhd_find_frame_end(DNXHDParserContext *dctx, const uint8_t *buf, int buf_size) { ParseContext *pc = &dctx->pc; uint64_t state = pc->state64; int pic_found = pc->frame_start_found; int i = 0; if (!pic_found) { for (i = 0; i < buf_size; i++) { state = (state << 8) | bu...
static int dnxhd_find_frame_end(DNXHDParserContext *dctx, const uint8_t *buf, int buf_size) { ParseContext *pc = &dctx->pc; uint64_t state = pc->state64; int pic_found = pc->frame_start_found; int i = 0; if (!pic_found) { for (i = 0; i < buf_size; i++) { state = (state << 8) | bu...
static int dnxhd_find_frame_end(DNXHDParserContext *dctx, const uint8_t *buf, int buf_size) { ParseContext *pc = &dctx->pc; uint64_t state = pc->state64; int pic_found = pc->frame_start_found; int i = 0; if (!pic_found) { for (i = 0; i < buf_size; i++) { state = (state << 8) | bu...
static int dnxhd_find_frame_end(DNXHDParserContext *dctx, const uint8_t *buf, int buf_size) { ParseContext *pc = &dctx->pc; uint64_t state = pc->state64; if (!pic_found) { for (i = 0; i < buf_size; i++) { state = (state << 8) | buf[i]; } } if (pic_found && !dctx->remainin...
static int dnxhd_find_frame_end(DNXHDParserContext *dctx, const uint8_t *buf, int buf_size) { ParseContext *pc = &dctx->pc; uint64_t state = pc->state64; if (!pic_found) { for (i = 0; i < buf_size; i++) { state = (state << 8) | buf[i]; } } if (pic_found && !dctx->remainin...
static int dnxhd_find_frame_end(DNXHDParserContext *dctx, const uint8_t *buf, int buf_size) { ParseContext *pc = &dctx->pc; uint64_t state = pc->state64; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!pic_found) { for (i = 0; i < buf_size; i++) { state = (state << 8) | buf[i]; ...
static int dnxhd_find_frame_end(DNXHDParserContext *dctx, const uint8_t *buf, int buf_size) { ParseContext *pc = &dctx->pc; uint64_t state = pc->state64; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!pic_found) { for (i = 0; i < buf_size; i++) { state = (state << 8) | buf[i]; ...
static int dnxhd_find_frame_end(DNXHDParserContext *dctx, const uint8_t *buf, int buf_size) { ParseContext *pc = &dctx->pc; uint64_t state = pc->state64; if (!pic_found) { for (i = 0; i < buf_size; i++) { state = (state << 8) | buf[i]; } } if (pic_found && !dctx-...
CVE-2017-9766
Wireshark
https://github.com/wireshark/wireshark
plugins/profinet/packet-dcerpc-pn-io.c
dissect_IODWriteReq
static int dissect_IODWriteReq(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, pnio_ar_t **ar) { guint16 u16Index = 0; guint32 u32RecDataLen = 0; offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, ar); if (u16Index == 0xe040) { while ...
static int dissect_IODWriteReq(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, pnio_ar_t **ar, guint recursion_count) { guint16 u16Index = 0; guint32 u32RecDataLen = 0; if (++recursion_count >= PN_IO_MAX_RECURSION_DEPTH) { proto_tree_add_expert(tree, pinfo, &ei_pn_io_m...
static int dissect_IODWriteReq(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, pnio_ar_t **ar) { guint16 u16Index = 0; guint32 u32RecDataLen = 0; offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, ar); if (u16Index == 0xe040) { while ...
static int dissect_IODWriteReq(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, pnio_ar_t **ar, guint recursion_count) { guint16 u16Index = 0; guint32 u32RecDataLen = 0; if (++recursion_count >= PN_IO_MAX_RECURSION_DEPTH) { proto_tree_add_expert(tree, pinfo, &ei_pn_io_m...
static int dissect_IODWriteReq(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, pnio_ar_t **ar) { guint16 u16Index = 0; guint32 u32RecDataLen = 0; offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, ar); if (u16Index == 0xe040) { while ...
static int dissect_IODWriteReq(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, pnio_ar_t **ar, guint recursion_count) { guint16 u16Index = 0; guint32 u32RecDataLen = 0; if (++recursion_count >= PN_IO_MAX_RECURSION_DEPTH) { proto_tree_add_expert(tree, pinfo, &ei_pn_io_m...
static int dissect_IODWriteReq(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, pnio_ar_t **ar) { guint16 u16Index = 0; guint32 u32RecDataLen = 0; offset = dissect_block(tvb, offset, pinfo, tree, drep, &u16Index, &u32RecDataLen, ar); if (u16Index == 0xe040) { while ...
static int dissect_IODWriteReq(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, pnio_ar_t **ar, guint recursion_count) { guint16 u16Index = 0; guint32 u32RecDataLen = 0; if (++recursion_count >= PN_IO_MAX_RECURSION_DEPTH) { proto_tree_add_expert(tree, pinfo, &ei_pn_io_m...
-static int dissect_IODWriteReq(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, pnio_ar_t **ar) { +static int dissect_IODWriteReq(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, pnio_ar_t **ar, guint recursion_count) { guint16 u16Index = 0; guint32...
CVE-2017-9766
Wireshark
https://github.com/wireshark/wireshark
plugins/profinet/packet-dcerpc-pn-io.c
dissect_IPNIO_Write_rqst
static int dissect_IPNIO_Write_rqst(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) { pnio_ar_t *ar = NULL; offset = dissect_IPNIO_rqst_header(tvb, offset, pinfo, tree, di, drep); offset = dissect_IODWriteReq(tvb, offset, pinfo, tree, drep, &ar); if (ar !=...
static int dissect_IPNIO_Write_rqst(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) { pnio_ar_t *ar = NULL; guint recursion_count = 0; offset = dissect_IPNIO_rqst_header(tvb, offset, pinfo, tree, di, drep); offset = dissect_IODWriteReq(tvb, offset, pinfo, ...
static int dissect_IPNIO_Write_rqst(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) { pnio_ar_t *ar = NULL; offset = dissect_IPNIO_rqst_header(tvb, offset, pinfo, tree, di, drep); offset = dissect_IODWriteReq(tvb, offset, pinfo, tree, drep, &ar); if (ar !=...
static int dissect_IPNIO_Write_rqst(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) { pnio_ar_t *ar = NULL; guint recursion_count = 0; offset = dissect_IPNIO_rqst_header(tvb, offset, pinfo, tree, di, drep); offset = dissect_IODWriteReq(tvb, offset, pinfo, ...
static int dissect_IPNIO_Write_rqst(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) { pnio_ar_t *ar = NULL; offset = dissect_IPNIO_rqst_header(tvb, offset, pinfo, tree, di, drep); offset = dissect_IODWriteReq(tvb, offset, pinfo, tree, drep, &ar); if (ar !=...
static int dissect_IPNIO_Write_rqst(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) { pnio_ar_t *ar = NULL; guint recursion_count = 0; offset = dissect_IPNIO_rqst_header(tvb, offset, pinfo, tree, di, drep); offset = dissect_IODWriteReq(tvb, offset, pinfo, ...
static int dissect_IPNIO_Write_rqst(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) { pnio_ar_t *ar = NULL; offset = dissect_IPNIO_rqst_header(tvb, offset, pinfo, tree, di, drep); offset = dissect_IODWriteReq(tvb, offset, pinfo, tree, drep, &ar); if (ar !=...
static int dissect_IPNIO_Write_rqst(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) { pnio_ar_t *ar = NULL; guint recursion_count = 0; offset = dissect_IPNIO_rqst_header(tvb, offset, pinfo, tree, di, drep); offset = dissect_IODWriteReq(tvb, offset, pinfo, ...
static int dissect_IPNIO_Write_rqst(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep) { pnio_ar_t *ar = NULL; + guint recursion_count = 0; offset = dissect_IPNIO_rqst_header(tvb, offset, pinfo, tree, di, drep); - offset = dissect_IODWriteReq(tvb, offset, pi...
CVE-2017-9766
Wireshark
https://github.com/wireshark/wireshark
plugins/profinet/packet-dcerpc-pn-io.c
proto_register_pn_io
void proto_register_pn_io (void) { static hf_register_info hf[] = { { &hf_pn_io_opnum, { "Operation", "pn_io.opnum", FT_UT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_reserved16, { "Reserved", "pn_io.reserved16", FT_UT16, B...
void proto_register_pn_io (void) { static hf_register_info hf[] = { { &hf_pn_io_opnum, { "Operation", "pn_io.opnum", FT_UT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_reserved16, { "Reserved", "pn_io.reserved16", FT_UT16, B...
void proto_register_pn_io (void) { static hf_register_info hf[] = { { &hf_pn_io_opnum, { "Operation", "pn_io.opnum", FT_UT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_reserved16, { "Reserved", "pn_io.reserved16", FT_UT16, B...
void proto_register_pn_io (void) { static hf_register_info hf[] = { { &hf_pn_io_opnum, { "Operation", "pn_io.opnum", FT_UT16, BASE_DEC, NULL, 0x0, NULL, HFILL } }, { &hf_pn_io_reserved16, { "Reserved", "pn_io.reserved16", FT_UT16, B...
void proto_register_pn_io (void) { static gint *ett[] = { &ett_pn_io, &ett_pn_io_block, &ett_pn_io_block_header, &ett_pn_io_status, &ett_pn_io_rtc, &ett_pn_io_rta, &ett_pn_io_pdu_type, &ett_pn_io_add_flags, &ett_pn_io_control_command, &ett_pn_io_ioxs, &ett_pn_io_api, &ett_pn_io_data_description, &ett_pn_io_...
void proto_register_pn_io (void) { static gint *ett[] = { &ett_pn_io, &ett_pn_io_block, &ett_pn_io_block_header, &ett_pn_io_status, &ett_pn_io_rtc, &ett_pn_io_rta, &ett_pn_io_pdu_type, &ett_pn_io_add_flags, &ett_pn_io_control_command, &ett_pn_io_ioxs, &ett_pn_io_api, &ett_pn_io_data_description, &ett_pn_io_...
void proto_register_pn_io (void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static gint *ett[] = { &ett_pn_io, &ett_pn_io_block, &ett_pn_io_block_header, &ett_pn_io_status, &ett_pn_io_rtc, &ett_pn_io_rta, &ett_pn_io_pdu_type, &ett_pn_io_add_flags, &ett_pn_io_control_command, &ett_pn_io_ioxs, &ett_p...
void proto_register_pn_io (void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static gint *ett[] = { &ett_pn_io, &ett_pn_io_block, &ett_pn_io_block_header, &ett_pn_io_status, &ett_pn_io_rtc, &ett_pn_io_rta, &ett_pn_io_pdu_type, &ett_pn_io_add_flags, &ett_pn_io_control_command, &ett_pn_io_ioxs, &ett_p...
void proto_register_pn_io (void) { static gint *ett[] = { &ett_pn_io, &ett_pn_io_block, &ett_pn_io_block_header, &ett_pn_io_status, &ett_pn_io_rtc, &ett_pn_io_rta, &ett_pn_io_pdu_type, &ett_pn_io_add_flags, &ett_pn_io_control_command, &ett_pn_io_ioxs, &ett_pn_io_api, &ett_pn_io_data_description, &ett_pn_...
CVE-2017-9990
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/xpmdec.c
color_string_to_rgba
static uint32_t color_string_to_rgba(const char *p, int len) { uint32_t ret = 0xFF000000; const ColorEntry *entry; char color_name[100]; if (*p == '#') { p++; len--; if (len == 3) { ret |= (hex_char_to_number(p[2]) << 4) | (hex_char_to_number(p[1]) << 12) | (hex_char_...
static uint32_t color_string_to_rgba(const char *p, int len) { uint32_t ret = 0xFF000000; const ColorEntry *entry; char color_name[100]; len = FFM(FFMAX(len, 0), sizeof(color_name) - 1); if (*p == '#') { p++; len--; if (len == 3) { ret |= (hex_char_to_number(p[2])...
static uint32_t color_string_to_rgba(const char *p, int len) { uint32_t ret = 0xFF000000; const ColorEntry *entry; char color_name[100]; if (*p == '#') { p++; len--; if (len == 3) { ret |= (hex_char_to_number(p[2]) << 4) | (hex_char_to_number(p[1]) << 12) | (hex_char_...
static uint32_t color_string_to_rgba(const char *p, int len) { uint32_t ret = 0xFF000000; const ColorEntry *entry; char color_name[100]; len = FFM(FFMAX(len, 0), sizeof(color_name) - 1); if (*p == '#') { p++; len--; if (len == 3) { ret |= (hex_char_to_number(p[2])...
static uint32_t color_string_to_rgba(const char *p, int len) { uint32_t ret = 0xFF000000; char color_name[100]; if (*p == '#') { len--; if (len == 3) { } else if (len == 4) { } else if (len == 6) { } else if (len == 8) { } } else { strncpy(color_na...
static uint32_t color_string_to_rgba(const char *p, int len) { uint32_t ret = 0xFF000000; char color_name[100]; len = FFM(FFMAX(len, 0), sizeof(color_name) - 1); if (*p == '#') { len--; if (len == 3) { } else if (len == 4) { } else if (len == 6) { } else if (len =...
static uint32_t color_string_to_rgba(const char *p, int len) { uint32_t ret = 0xFF000000; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ char color_name[100]; if (*p == '#') { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ len--; if (len == 3) { /* PLACEHOLDER: DO NOT DELETE THIS C...
static uint32_t color_string_to_rgba(const char *p, int len) { uint32_t ret = 0xFF000000; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ char color_name[100]; len = FFM(FFMAX(len, 0), sizeof(color_name) - 1); if (*p == '#') { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ len--; if...
static uint32_t color_string_to_rgba(const char *p, int len) { uint32_t ret = 0xFF000000; char color_name[100]; + len = FFM(FFMAX(len, 0), sizeof(color_name) - 1); if (*p == '#') { len--; if (len == 3) { } else if (len == 4) { } else if (len == 6) { } else...
CVE-2017-9990
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/xpmdec.c
xpm_decode_frame
static int xpm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { XPMDecContext *x = avctx->priv_data; AVFrame *p=data; const uint8_t *end, *ptr = avpkt->data; int ncolors, cpp, ret, i, j; int64_t size; uint32_t *dst; avctx->pix_fmt = AV_PIX_FMT_BGRA; end ...
static int xpm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { XPMDecContext *x = avctx->priv_data; AVFrame *p=data; const uint8_t *end, *ptr; int ncolors, cpp, ret, i, j; int64_t size; uint32_t *dst; avctx->pix_fmt = AV_PIX_FMT_BGRA; av_fast_padded_mal...
static int xpm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { XPMDecContext *x = avctx->priv_data; AVFrame *p=data; const uint8_t *end, *ptr = avpkt->data; int ncolors, cpp, ret, i, j; int64_t size; uint32_t *dst; avctx->pix_fmt = AV_PIX_FMT_BGRA; end ...
static int xpm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { XPMDecContext *x = avctx->priv_data; AVFrame *p=data; const uint8_t *end, *ptr; int ncolors, cpp, ret, i, j; int64_t size; uint32_t *dst; avctx->pix_fmt = AV_PIX_FMT_BGRA; av_fast_padded_mal...
static int xpm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { XPMDecContext *x = avctx->priv_data; AVFrame *p=data; const uint8_t *end, *ptr = avpkt->data; int ncolors, cpp, ret, i, j; avctx->pix_fmt = AV_PIX_FMT_BGRA; end = avpkt->data + avpkt->size; whil...
static int xpm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { XPMDecContext *x = avctx->priv_data; AVFrame *p=data; const uint8_t *end, *ptr; int ncolors, cpp, ret, i, j; avctx->pix_fmt = AV_PIX_FMT_BGRA; av_fast_padded_malloc(&x->buf, &x->buf_size, avpkt->siz...
static int xpm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { XPMDecContext *x = avctx->priv_data; AVFrame *p=data; const uint8_t *end, *ptr = avpkt->data; int ncolors, cpp, ret, i, j; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ avctx->pix_fmt = AV_PIX_FMT_B...
static int xpm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { XPMDecContext *x = avctx->priv_data; AVFrame *p=data; const uint8_t *end, *ptr; int ncolors, cpp, ret, i, j; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ avctx->pix_fmt = AV_PIX_FMT_BGRA; av_fa...
static int xpm_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { XPMDecContext *x = avctx->priv_data; AVFrame *p=data; - const uint8_t *end, *ptr = avpkt->data; + const uint8_t *end, *ptr; int ncolors, cpp, ret, i, j; avctx->pix_fmt = AV_PIX_FMT_BGRA; - end...
CVE-2017-9991
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/xwddec.c
xwd_decode_frame
static int xwd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { AVFrame *p = data; const uint8_t *buf = avpkt->data; int i, ret, buf_size = avpkt->size; uint32_t version, header_size, vclass, ncolors; uint32_t xoffset, be, bpp, lsize, rsize; uint32_t pixformat, ...
static int xwd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { AVFrame *p = data; const uint8_t *buf = avpkt->data; int i, ret, buf_size = avpkt->size; uint32_t version, header_size, vclass, ncolors; uint32_t xoffset, be, bpp, lsize, rsize; uint32_t pixformat, ...
static int xwd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { AVFrame *p = data; const uint8_t *buf = avpkt->data; int i, ret, buf_size = avpkt->size; uint32_t version, header_size, vclass, ncolors; uint32_t xoffset, be, bpp, lsize, rsize; uint32_t pixformat, ...
static int xwd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { AVFrame *p = data; const uint8_t *buf = avpkt->data; int i, ret, buf_size = avpkt->size; uint32_t version, header_size, vclass, ncolors; uint32_t xoffset, be, bpp, lsize, rsize; uint32_t pixformat, ...
static int xwd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { }
static int xwd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { }
static int xwd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static int xwd_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
CVE-2017-9992
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/dfa.c
decode_dds1
static int decode_dds1(GetByteContext *gb, uint8_t *frame, int width, int height) { const uint8_t *frame_start = frame; const uint8_t *frame_end = frame + width * height; int mask = 0x10000, bitbuf = 0; int i, v, offset, count, segments; segments = bytestream2_get_le16(gb); while (segments--) { ...
static int decode_dds1(GetByteContext *gb, uint8_t *frame, int width, int height) { const uint8_t *frame_start = frame; const uint8_t *frame_end = frame + width * height; int mask = 0x10000, bitbuf = 0; int i, v, offset, count, segments; segments = bytestream2_get_le16(gb); while (segments--) { ...
static int decode_dds1(GetByteContext *gb, uint8_t *frame, int width, int height) { const uint8_t *frame_start = frame; const uint8_t *frame_end = frame + width * height; int mask = 0x10000, bitbuf = 0; int i, v, offset, count, segments; segments = bytestream2_get_le16(gb); while (segments--) { ...
static int decode_dds1(GetByteContext *gb, uint8_t *frame, int width, int height) { const uint8_t *frame_start = frame; const uint8_t *frame_end = frame + width * height; int mask = 0x10000, bitbuf = 0; int i, v, offset, count, segments; segments = bytestream2_get_le16(gb); while (segments--) { ...
static int decode_dds1(GetByteContext *gb, uint8_t *frame, int width, int height) { const uint8_t *frame_start = frame; const uint8_t *frame_end = frame + width * height; segments = bytestream2_get_le16(gb); while (segments--) { if (bytestream2_get_bytes_left(gb) < 2) { return AVERRO...
static int decode_dds1(GetByteContext *gb, uint8_t *frame, int width, int height) { const uint8_t *frame_start = frame; const uint8_t *frame_end = frame + width * height; segments = bytestream2_get_le16(gb); while (segments--) { if (bytestream2_get_bytes_left(gb) < 2) { return AVERRO...
static int decode_dds1(GetByteContext *gb, uint8_t *frame, int width, int height) { const uint8_t *frame_start = frame; const uint8_t *frame_end = frame + width * height; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ segments = bytestream2_get_le16(gb); while (segments--) { if (bytestream2_g...
static int decode_dds1(GetByteContext *gb, uint8_t *frame, int width, int height) { const uint8_t *frame_start = frame; const uint8_t *frame_end = frame + width * height; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ segments = bytestream2_get_le16(gb); while (segments--) { if (bytestream2_g...
static int decode_dds1(GetByteContext *gb, uint8_t *frame, int width, int height) { const uint8_t *frame_start = frame; const uint8_t *frame_end = frame + width * height; segments = bytestream2_get_le16(gb); while (segments--) { if (bytestream2_get_bytes_left(gb) < 2) { return...
CVE-2017-9993
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavformat/avidec.c
read_gab2_sub
static int read_gab2_sub(AVFormatContext *s, AVStream *st, AVPacket *pkt) { if (pkt->size >= 7 && pkt->size < T_MAX - AVPROBE_PADDG_SIZE && !strcmp(pkt->data, "GAB2") && AV_RL16(pkt->data + 5) == 2) { uint8_t desc[256]; int score = AVPROBE_SCORE_EXTENSION, ret; AVIStream *ast = st->priv_data...
static int read_gab2_sub(AVFormatContext *s, AVStream *st, AVPacket *pkt) { if (pkt->size >= 7 && pkt->size < T_MAX - AVPROBE_PADDG_SIZE && !strcmp(pkt->data, "GAB2") && AV_RL16(pkt->data + 5) == 2) { uint8_t desc[256]; int score = AVPROBE_SCORE_EXTENSION, ret; AVIStream *ast = st->priv_data...
static int read_gab2_sub(AVStream *st, AVPacket *pkt) { if (pkt->size >= 7 && pkt->size < T_MAX - AVPROBE_PADDG_SIZE && !strcmp(pkt->data, "GAB2") && AV_RL16(pkt->data + 5) == 2) { uint8_t desc[256]; int score = AVPROBE_SCORE_EXTENSION, ret; AVIStream *ast = st->priv_data; AVInputFor...
static int read_gab2_sub(AVStream *st, AVPacket *pkt) { if (pkt->size >= 7 && pkt->size < T_MAX - AVPROBE_PADDG_SIZE && !strcmp(pkt->data, "GAB2") && AV_RL16(pkt->data + 5) == 2) { uint8_t desc[256]; int score = AVPROBE_SCORE_EXTENSION, ret; AVIStream *ast = st->priv_data; AVInputFor...
static int read_gab2_sub(AVFormatContext *s, AVStream *st, AVPacket *pkt) { if (pkt->size >= 7 && pkt->size < T_MAX - AVPROBE_PADDG_SIZE && !strcmp(pkt->data, "GAB2") && AV_RL16(pkt->data + 5) == 2) { int score = AVPROBE_SCORE_EXTENSION, ret; if (desc_len > pb->buf_end - pb->buf_ptr) { g...
static int read_gab2_sub(AVFormatContext *s, AVStream *st, AVPacket *pkt) { if (pkt->size >= 7 && pkt->size < T_MAX - AVPROBE_PADDG_SIZE && !strcmp(pkt->data, "GAB2") && AV_RL16(pkt->data + 5) == 2) { int score = AVPROBE_SCORE_EXTENSION, ret; if (desc_len > pb->buf_end - pb->buf_ptr) { g...
static int read_gab2_sub(AVStream *st, AVPacket *pkt) { if (pkt->size >= 7 && pkt->size < T_MAX - AVPROBE_PADDG_SIZE && !strcmp(pkt->data, "GAB2") && AV_RL16(pkt->data + 5) == 2) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int score = AVPROBE_SCORE_EXTENSION, ret; /* PLACEHOLDER: DO NOT DELETE T...
static int read_gab2_sub(AVStream *st, AVPacket *pkt) { if (pkt->size >= 7 && pkt->size < T_MAX - AVPROBE_PADDG_SIZE && !strcmp(pkt->data, "GAB2") && AV_RL16(pkt->data + 5) == 2) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int score = AVPROBE_SCORE_EXTENSION, ret; /* PLACEHOLDER: DO NOT DELETE T...
static int read_gab2_sub(AVFormatContext *s, AVStream *st, AVPacket *pkt) { if (pkt->size >= 7 && pkt->size < T_MAX - AVPROBE_PADDG_SIZE && !strcmp(pkt->data, "GAB2") && AV_RL16(pkt->data + 5) == 2) { int score = AVPROBE_SCORE_EXTENSION, ret; if (desc_len > pb->buf_end - pb->buf_ptr) { ...
CVE-2017-9994
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/webp.c
vp8_lossy_decode_frame
static int vp8_lossy_decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, uint8_t *data_start, unsigned int data_size) { WebPContext *s = avctx->priv_data; AVPacket pkt; int ret; if (!s->initialized) { ff_vp8_decode_init(avctx); s->initialized = 1; if (s->has_alpha) { ...
static int vp8_lossy_decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, uint8_t *data_start, unsigned int data_size) { WebPContext *s = avctx->priv_data; AVPacket pkt; int ret; if (!s->initialized) { ff_vp8_decode_init(avctx); s->initialized = 1; } avctx->pix_fmt = s...
static int vp8_lossy_decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, uint8_t *data_start, unsigned int data_size) { WebPContext *s = avctx->priv_data; AVPacket pkt; int ret; if (!s->initialized) { ff_vp8_decode_init(avctx); s->initialized = 1; if (s->has_alpha) { ...
static int vp8_lossy_decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, uint8_t *data_start, unsigned int data_size) { WebPContext *s = avctx->priv_data; AVPacket pkt; int ret; if (!s->initialized) { ff_vp8_decode_init(avctx); s->initialized = 1; } avctx->pix_fmt = s...
static int vp8_lossy_decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, uint8_t *data_start, unsigned int data_size) { if (!s->initialized) { s->initialized = 1; if (s->has_alpha) { avctx->pix_fmt = AV_PIX_FMT_YUVA420P; } } s->lossless = 0; if (data_size ...
static int vp8_lossy_decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, uint8_t *data_start, unsigned int data_size) { if (!s->initialized) { s->initialized = 1; } avctx->pix_fmt = s->has_alpha ? AV_PIX_FMT_YUVA420P : AV_PIX_FMT_YUV420P; s->lossless = 0; if (data_size > T_MAX) {...
static int vp8_lossy_decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, uint8_t *data_start, unsigned int data_size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!s->initialized) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ s->initialized = 1; if (s->has_alpha) { ...
static int vp8_lossy_decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, uint8_t *data_start, unsigned int data_size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (!s->initialized) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ s->initialized = 1; } avctx->pix_fmt = s->has...
static int vp8_lossy_decode_frame(AVCodecContext *avctx, AVFrame *p, int *got_frame, uint8_t *data_start, unsigned int data_size) { if (!s->initialized) { s->initialized = 1; - if (s->has_alpha) { - avctx->pix_fmt = AV_PIX_FMT_YUVA420P; - } } + avctx->pix_fmt = s->has_alp...
CVE-2017-9995
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/scpr.c
decompress_i
static int decompress_i(AVCodecContext *avctx, uint32_t *dst, int linesize) { SCPRContext *s = avctx->priv_data; GetByteContext *gb = &s->gb; int cx = 0, cx1 = 0, k = 0, clr = 0; int run, r, g, b, off, y = 0, x = 0, z, ret; unsigned backstep = linesize - avctx->width; const int cxshift = s->cxsh...
static int decompress_i(AVCodecContext *avctx, uint32_t *dst, int linesize) { SCPRContext *s = avctx->priv_data; GetByteContext *gb = &s->gb; int cx = 0, cx1 = 0, k = 0, clr = 0; int run, r, g, b, off, y = 0, x = 0, z, ret; unsigned backstep = linesize - avctx->width; const int cxshift = s->cxsh...
static int decompress_i(AVCodecContext *avctx, uint32_t *dst, int linesize) { SCPRContext *s = avctx->priv_data; GetByteContext *gb = &s->gb; int cx = 0, cx1 = 0, k = 0, clr = 0; int run, r, g, b, off, y = 0, x = 0, z, ret; unsigned backstep = linesize - avctx->width; const int cxshift = s->cxsh...
static int decompress_i(AVCodecContext *avctx, uint32_t *dst, int linesize) { SCPRContext *s = avctx->priv_data; GetByteContext *gb = &s->gb; int cx = 0, cx1 = 0, k = 0, clr = 0; int run, r, g, b, off, y = 0, x = 0, z, ret; unsigned backstep = linesize - avctx->width; const int cxshift = s->cxsh...
static int decompress_i(AVCodecContext *avctx, uint32_t *dst, int linesize) { int run, r, g, b, off, y = 0, x = 0, z, ret; while (k < avctx->width + 1) { ret = decode_unit(s, &s->pixel_model[0][cx + cx1], 400, &r); if (ret < 0) { return ret; } cx1 = (cx << 6) & 0xFC0;...
static int decompress_i(AVCodecContext *avctx, uint32_t *dst, int linesize) { int run, r, g, b, off, y = 0, x = 0, z, ret; while (k < avctx->width + 1) { ret = decode_unit(s, &s->pixel_model[0][cx + cx1], 400, &r); if (ret < 0) { return ret; } cx1 = (cx << 6) & 0xFC0;...
static int decompress_i(AVCodecContext *avctx, uint32_t *dst, int linesize) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int run, r, g, b, off, y = 0, x = 0, z, ret; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while (k < avctx->width + 1) { ret = decode_unit(s, &s->pixel_model[0][cx + cx1],...
static int decompress_i(AVCodecContext *avctx, uint32_t *dst, int linesize) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int run, r, g, b, off, y = 0, x = 0, z, ret; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while (k < avctx->width + 1) { ret = decode_unit(s, &s->pixel_model[0][cx + cx1],...
static int decompress_i(AVCodecContext *avctx, uint32_t *dst, int linesize) { int run, r, g, b, off, y = 0, x = 0, z, ret; while (k < avctx->width + 1) { ret = decode_unit(s, &s->pixel_model[0][cx + cx1], 400, &r); if (ret < 0) { return ret; } cx1 = (cx << 6) ...
CVE-2017-9996
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/cdxl.c
cdxl_decode_frame
static int cdxl_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt) { CDXLVideoContext *c = avctx->priv_data; AVFrame * const p = data; int ret, w, h, encoding, aligned_width, buf_size = pkt->size; const uint8_t *buf = pkt->data; if (buf_size < 32) { return AVERROR...
static int cdxl_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt) { CDXLVideoContext *c = avctx->priv_data; AVFrame * const p = data; int ret, w, h, encoding, aligned_width, buf_size = pkt->size; const uint8_t *buf = pkt->data; if (buf_size < 32) { return AVERROR...
static int cdxl_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt) { CDXLVideoContext *c = avctx->priv_data; AVFrame * const p = data; int ret, w, h, encoding, aligned_width, buf_size = pkt->size; const uint8_t *buf = pkt->data; if (buf_size < 32) { return AVERROR...
static int cdxl_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt) { CDXLVideoContext *c = avctx->priv_data; AVFrame * const p = data; int ret, w, h, encoding, aligned_width, buf_size = pkt->size; const uint8_t *buf = pkt->data; if (buf_size < 32) { return AVERROR...
static int cdxl_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt) { CDXLVideoContext *c = avctx->priv_data; int ret, w, h, encoding, aligned_width, buf_size = pkt->size; const uint8_t *buf = pkt->data; if (buf_size < 32) { return AVERROR_VALIDDATA; } encoding...
static int cdxl_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt) { CDXLVideoContext *c = avctx->priv_data; int ret, w, h, encoding, aligned_width, buf_size = pkt->size; const uint8_t *buf = pkt->data; if (buf_size < 32) { return AVERROR_VALIDDATA; } encoding...
static int cdxl_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt) { CDXLVideoContext *c = avctx->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int ret, w, h, encoding, aligned_width, buf_size = pkt->size; const uint8_t *buf = pkt->data; if (buf_size < 32) { ...
static int cdxl_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt) { CDXLVideoContext *c = avctx->priv_data; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int ret, w, h, encoding, aligned_width, buf_size = pkt->size; const uint8_t *buf = pkt->data; if (buf_size < 32) { ...
static int cdxl_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *pkt) { CDXLVideoContext *c = avctx->priv_data; int ret, w, h, encoding, aligned_width, buf_size = pkt->size; const uint8_t *buf = pkt->data; if (buf_size < 32) { return AVERROR_VALIDDATA; } ...
CVE-2018-0732
OpenSSL
https://github.com/openssl/openssl
crypto/dh/dh_key.c
generate_key
static int generate_key(DH *dh) { int ok = 0; int generate_new_key = 0; unsigned l; BN_CTX *ctx; BN_MONT_CTX *mont = NULL; BIGNUM *pub_key = NULL, *priv_key = NULL; ctx = BN_CTX_new(); if (ctx == NULL) { goto err; } if (dh->priv_key == NULL) { priv_key = BN_secure...
static int generate_key(DH *dh) { int ok = 0; int generate_new_key = 0; unsigned l; BN_CTX *ctx = NULL; BN_MONT_CTX *mont = NULL; BIGNUM *pub_key = NULL, *priv_key = NULL; if (BN_num_bits(dh->p) > OPENSSL_DH_MAX_MODULUS_BITS) { DHerr(DH_F_GENERATE_KEY, DH_R_MODULUS_TOO_LARGE); ...
static int generate_key(DH *dh) { int ok = 0; int generate_new_key = 0; unsigned l; BN_CTX *ctx; BN_MONT_CTX *mont = NULL; BIGNUM *pub_key = NULL, *priv_key = NULL; ctx = BN_CTX_new(); if (ctx == NULL) { goto err; } if (dh->priv_key == NULL) { priv_key = BN_new();...
static int generate_key(DH *dh) { int ok = 0; int generate_new_key = 0; unsigned l; BN_CTX *ctx = NULL; BN_MONT_CTX *mont = NULL; BIGNUM *pub_key = NULL, *priv_key = NULL; if (BN_num_bits(dh->p) > OPENSSL_DH_MAX_MODULUS_BITS) { DHerr(DH_F_GENERATE_KEY, DH_R_MODULUS_TOO_LARGE); ...
static int generate_key(DH *dh) { int generate_new_key = 0; unsigned l; BN_CTX *ctx; BN_MONT_CTX *mont = NULL; BIGNUM *pub_key = NULL, *priv_key = NULL; ctx = BN_CTX_new(); if (dh->flags & DH_FLAG_CACHE_MONT_P) { mont = BN_MONT_CTX_set_locked(&dh->method_mont_p, dh->lock, dh->p, ctx)...
static int generate_key(DH *dh) { int generate_new_key = 0; unsigned l; BN_CTX *ctx = NULL; BN_MONT_CTX *mont = NULL; BIGNUM *pub_key = NULL, *priv_key = NULL; if (BN_num_bits(dh->p) > OPENSSL_DH_MAX_MODULUS_BITS) { DHerr(DH_F_GENERATE_KEY, DH_R_MODULUS_TOO_LARGE); return 0; ...
static int generate_key(DH *dh) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int generate_new_key = 0; unsigned l; BN_CTX *ctx; BN_MONT_CTX *mont = NULL; BIGNUM *pub_key = NULL, *priv_key = NULL; ctx = BN_CTX_new(); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (dh->flags & DH_...
static int generate_key(DH *dh) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int generate_new_key = 0; unsigned l; BN_CTX *ctx = NULL; BN_MONT_CTX *mont = NULL; BIGNUM *pub_key = NULL, *priv_key = NULL; if (BN_num_bits(dh->p) > OPENSSL_DH_MAX_MODULUS_BITS) { DHerr(DH_F_GENERATE_KE...
static int generate_key(DH *dh) { int generate_new_key = 0; unsigned l; - BN_CTX *ctx; + BN_CTX *ctx = NULL; BN_MONT_CTX *mont = NULL; BIGNUM *pub_key = NULL, *priv_key = NULL; + if (BN_num_bits(dh->p) > OPENSSL_DH_MAX_MODULUS_BITS) { + DHerr(DH_F_GENERATE_KEY, DH_R_MODULUS_TOO_LARG...
CVE-2018-0734
OpenSSL
https://github.com/openssl/openssl
crypto/dsa/dsa_ossl.c
dsa_sign_setup
static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp, const unsigned char *dgst, int dlen) { BN_CTX *ctx = NULL; BIGNUM *k, *kinv = NULL, *r = *rp; BIGNUM *l, *m; int ret = 0; int q_bits; if (!dsa->p || !dsa->q || !dsa->g) { DSAerr(DSA_F_DSA_SIGN_SETUP, DSA_R_M...
static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp, const unsigned char *dgst, int dlen) { BN_CTX *ctx = NULL; BIGNUM *k, *kinv = NULL, *r = *rp; BIGNUM *l; int ret = 0; int q_bits, q_words; if (!dsa->p || !dsa->q || !dsa->g) { DSAerr(DSA_F_DSA_SIGN_SETUP, DS...
static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp, const unsigned char *dgst, int dlen) { BN_CTX *ctx = NULL; BIGNUM *k, *kinv = NULL, *r = *rp; BIGNUM *l, *m; int ret = 0; int q_bits; if (!dsa->p || !dsa->q || !dsa->g) { DSAerr(DSA_F_DSA_SIGN_SETUP, DSA_R_M...
static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp, const unsigned char *dgst, int dlen) { BN_CTX *ctx = NULL; BIGNUM *k, *kinv = NULL, *r = *rp; BIGNUM *l; int ret = 0; int q_bits, q_words; if (!dsa->p || !dsa->q || !dsa->g) { DSAerr(DSA_F_DSA_SIGN_SETUP, DS...
static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp, const unsigned char *dgst, int dlen) { BIGNUM *k, *kinv = NULL, *r = *rp; BIGNUM *l, *m; int ret = 0; int q_bits; if (!dsa->p || !dsa->q || !dsa->g) { return 0; } k = BN_new(); l = BN_new(); m = ...
static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp, const unsigned char *dgst, int dlen) { BIGNUM *k, *kinv = NULL, *r = *rp; BIGNUM *l; int ret = 0; int q_bits, q_words; if (!dsa->p || !dsa->q || !dsa->g) { return 0; } k = BN_new(); l = BN_new(); ...
static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp, const unsigned char *dgst, int dlen) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ BIGNUM *k, *kinv = NULL, *r = *rp; BIGNUM *l, *m; int ret = 0; int q_bits; if (!dsa->p || !dsa->q || !dsa->g) { /* PLACEHOLDER...
static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp, const unsigned char *dgst, int dlen) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ BIGNUM *k, *kinv = NULL, *r = *rp; BIGNUM *l; int ret = 0; int q_bits, q_words; if (!dsa->p || !dsa->q || !dsa->g) { /* PLACEH...
static int dsa_sign_setup(DSA *dsa, BN_CTX *ctx_in, BIGNUM **kinvp, BIGNUM **rp, const unsigned char *dgst, int dlen) { BIGNUM *k, *kinv = NULL, *r = *rp; - BIGNUM *l, *m; + BIGNUM *l; int ret = 0; - int q_bits; + int q_bits, q_words; if (!dsa->p || !dsa->q || !dsa->g) { return 0; ...
CVE-2018-0737
OpenSSL
https://github.com/openssl/openssl
crypto/rsa/rsa_gen.c
rsa_builtin_keygen
static int rsa_builtin_keygen(RSA *rsa, int bits, int primes, BIGNUM *e_value, BN_GENCB *cb) { BIGNUM *r0 = NULL, *r1 = NULL, *r2 = NULL, *tmp, *prime; int ok = -1, n = 0, bitsr[RSA_MAX_PRIME_NUM], bitse = 0; int i = 0, quo = 0, rmd = 0, adj = 0, retries = 0; RSA_PRIME_FO *pinfo = NULL; STACK_OF(RSA...
static int rsa_builtin_keygen(RSA *rsa, int bits, int primes, BIGNUM *e_value, BN_GENCB *cb) { BIGNUM *r0 = NULL, *r1 = NULL, *r2 = NULL, *tmp, *prime; int ok = -1, n = 0, bitsr[RSA_MAX_PRIME_NUM], bitse = 0; int i = 0, quo = 0, rmd = 0, adj = 0, retries = 0; RSA_PRIME_FO *pinfo = NULL; STACK_OF(RSA...
static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb) { BIGNUM *r0 = NULL, *r1 = NULL, *r2 = NULL, *r3 = NULL, *tmp; BIGNUM local_r0, local_d, local_p; BIGNUM *pr0, *d, *p; int bitsp, bitsq, ok = -1, n = 0; BN_CTX *ctx = NULL; unsigned long error = 0; if (bits < 16...
static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb) { BIGNUM *r0 = NULL, *r1 = NULL, *r2 = NULL, *r3 = NULL, *tmp; BIGNUM local_r0, local_d, local_p; BIGNUM *pr0, *d, *p; int bitsp, bitsq, ok = -1, n = 0; BN_CTX *ctx = NULL; unsigned long error = 0; if (bits < 16...
static int rsa_builtin_keygen(RSA *rsa, int bits, int primes, BIGNUM *e_value, BN_GENCB *cb) { STACK_OF(RSA_PRIME_FO) *prime_infos = NULL; if (bits < RSA_M_MODULUS_BITS) { goto err; } if (primes < RSA_DEFAULT_PRIME_NUM || primes > rsa_multip_cap(bits)) { goto err; } ctx = BN_CTX_...
static int rsa_builtin_keygen(RSA *rsa, int bits, int primes, BIGNUM *e_value, BN_GENCB *cb) { STACK_OF(RSA_PRIME_FO) *prime_infos = NULL; if (bits < RSA_M_MODULUS_BITS) { goto err; } if (primes < RSA_DEFAULT_PRIME_NUM || primes > rsa_multip_cap(bits)) { goto err; } ctx = BN_CTX_...
static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb) { BIGNUM *r0 = NULL, *r1 = NULL, *r2 = NULL, *r3 = NULL, *tmp; BIGNUM local_r0, local_d, local_p; BIGNUM *pr0, *d, *p; int bitsp, bitsq, ok = -1, n = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (bits < 16) {...
static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value, BN_GENCB *cb) { BIGNUM *r0 = NULL, *r1 = NULL, *r2 = NULL, *r3 = NULL, *tmp; BIGNUM local_r0, local_d, local_p; BIGNUM *pr0, *d, *p; int bitsp, bitsq, ok = -1, n = 0; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (bits < 16) {...
static int rsa_builtin_keygen(RSA *rsa, int bits, int primes, BIGNUM *e_value, BN_GENCB *cb) { STACK_OF(RSA_PRIME_FO) *prime_infos = NULL; if (bits < RSA_M_MODULUS_BITS) { goto err; } if (primes < RSA_DEFAULT_PRIME_NUM || primes > rsa_multip_cap(bits)) { goto err; } ctx ...
CVE-2018-1000085
ClamAV
https://github.com/Cisco-Talos/clamav
libclamav/xar.c
cli_scanxar
int cli_scanxar(cli_ctx *ctx) { int rc = CL_SUCCESS; unsigned int cksum_fails = 0; unsigned int extract_errors = 0; int fd = -1; struct xar_header hdr; fmap_t *map = *ctx->fmap; long length, offset, size, at; int encoding; z_stream strm; char *toc, *tmpname; xmlTextReaderPtr ...
int cli_scanxar(cli_ctx *ctx) { int rc = CL_SUCCESS; unsigned int cksum_fails = 0; unsigned int extract_errors = 0; int fd = -1; struct xar_header hdr; fmap_t *map = *ctx->fmap; size_t length, offset, size, at; int encoding; z_stream strm; char *toc, *tmpname; xmlTextReaderPt...
int cli_scanxar(cli_ctx *ctx) { int rc = CL_SUCCESS; unsigned int cksum_fails = 0; unsigned int extract_errors = 0; int fd = -1; struct xar_header hdr; fmap_t *map = *ctx->fmap; long length, offset, size, at; int encoding; z_stream strm; char *toc, *tmpname; xmlTextReaderPtr ...
int cli_scanxar(cli_ctx *ctx) { int rc = CL_SUCCESS; unsigned int cksum_fails = 0; unsigned int extract_errors = 0; int fd = -1; struct xar_header hdr; fmap_t *map = *ctx->fmap; size_t length, offset, size, at; int encoding; z_stream strm; char *toc, *tmpname; xmlTextReaderPt...
int cli_scanxar(cli_ctx *ctx) { unsigned int cksum_fails = 0; unsigned int extract_errors = 0; int fd = -1; fmap_t *map = *ctx->fmap; long length, offset, size, at; int encoding; if (fmap_readn(*ctx->fmap, &hdr, 0, sizeof(hdr)) != sizeof(hdr)) { return CL_EFORMAT; } hdr.size ...
int cli_scanxar(cli_ctx *ctx) { unsigned int cksum_fails = 0; unsigned int extract_errors = 0; int fd = -1; fmap_t *map = *ctx->fmap; size_t length, offset, size, at; int encoding; if (fmap_readn(*ctx->fmap, &hdr, 0, sizeof(hdr)) != sizeof(hdr)) { return CL_EFORMAT; } hdr.siz...
int cli_scanxar(cli_ctx *ctx) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned int cksum_fails = 0; unsigned int extract_errors = 0; int fd = -1; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ fmap_t *map = *ctx->fmap; long length, offset, size, at; int encoding; /* PLACEHOLDE...
int cli_scanxar(cli_ctx *ctx) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ unsigned int cksum_fails = 0; unsigned int extract_errors = 0; int fd = -1; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ fmap_t *map = *ctx->fmap; size_t length, offset, size, at; int encoding; /* PLACEHOL...
int cli_scanxar(cli_ctx *ctx) { unsigned int cksum_fails = 0; unsigned int extract_errors = 0; int fd = -1; fmap_t *map = *ctx->fmap; - long length, offset, size, at; + size_t length, offset, size, at; int encoding; if (fmap_readn(*ctx->fmap, &hdr, 0, sizeof(hdr)) != sizeof(hdr)) { ...
CVE-2018-1000085
ClamAV
https://github.com/Cisco-Talos/clamav
libclamav/xar.c
xar_get_checksum_values
static void xar_get_checksum_values(xmlTextReaderPtr reader, unsigned char ** cksum, int * hash) { xmlChar * style = xmlTextReaderGetAttribute(reader, (const xmlChar *)"style"); const xmlChar * xmlval; *hash = XAR_CKSUM_NONE; if (style == NULL) { cli_dbgmsg("cli_scaxar: xmlTextReaderGetAttribute...
static void xar_get_checksum_values(xmlTextReaderPtr reader, unsigned char ** cksum, int * hash) { xmlChar * style = xmlTextReaderGetAttribute(reader, (const xmlChar *)"style"); const xmlChar * xmlval; *hash = XAR_CKSUM_NONE; if (style == NULL) { cli_dbgmsg("cli_scaxar: xmlTextReaderGetAttribute...
static void xar_get_checksum_values(xmlTextReaderPtr reader, unsigned char ** cksum, int * hash) { xmlChar * style = xmlTextReaderGetAttribute(reader, (const xmlChar *)"style"); const xmlChar * xmlval; *hash = XAR_CKSUM_NONE; if (style == NULL) { cli_dbgmsg("cli_scaxar: xmlTextReaderGetAttribute...
static void xar_get_checksum_values(xmlTextReaderPtr reader, unsigned char ** cksum, int * hash) { xmlChar * style = xmlTextReaderGetAttribute(reader, (const xmlChar *)"style"); const xmlChar * xmlval; *hash = XAR_CKSUM_NONE; if (style == NULL) { cli_dbgmsg("cli_scaxar: xmlTextReaderGetAttribute...
static void xar_get_checksum_values(xmlTextReaderPtr reader, unsigned char ** cksum, int * hash) { xmlChar * style = xmlTextReaderGetAttribute(reader, (const xmlChar *)"style"); *hash = XAR_CKSUM_NONE; if (style == NULL) { } else { cli_dbgmsg("cli_scanxar: checksum algorithm is %s.\n", style); ...
static void xar_get_checksum_values(xmlTextReaderPtr reader, unsigned char ** cksum, int * hash) { xmlChar * style = xmlTextReaderGetAttribute(reader, (const xmlChar *)"style"); *hash = XAR_CKSUM_NONE; if (style == NULL) { } else { cli_dbgmsg("cli_scanxar: checksum algorithm is %s.\n", style); ...
static void xar_get_checksum_values(xmlTextReaderPtr reader, unsigned char ** cksum, int * hash) { xmlChar * style = xmlTextReaderGetAttribute(reader, (const xmlChar *)"style"); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ *hash = XAR_CKSUM_NONE; if (style == NULL) { /* PLACEHOLDER: DO NOT DELETE T...
static void xar_get_checksum_values(xmlTextReaderPtr reader, unsigned char ** cksum, int * hash) { xmlChar * style = xmlTextReaderGetAttribute(reader, (const xmlChar *)"style"); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ *hash = XAR_CKSUM_NONE; if (style == NULL) { /* PLACEHOLDER: DO NOT DELETE T...
static void xar_get_checksum_values(xmlTextReaderPtr reader, unsigned char ** cksum, int * hash) { xmlChar * style = xmlTextReaderGetAttribute(reader, (const xmlChar *)"style"); *hash = XAR_CKSUM_NONE; if (style == NULL) { } else { cli_dbgmsg("cli_scanxar: checksum algorithm is %s.\n", sty...
CVE-2018-1000085
ClamAV
https://github.com/Cisco-Talos/clamav
libclamav/xar.c
xar_get_numeric_from_xml_element
static int xar_get_numeric_from_xml_element(xmlTextReaderPtr reader, long * value) { const xmlChar * numstr; if (xmlTextReaderRead(reader) == 1 && xmlTextReaderNodeType(reader) == XML_READER_TYPE_TEXT) { numstr = xmlTextReaderConstValue(reader); if (numstr) { *value = atol((const cha...
static int xar_get_numeric_from_xml_element(xmlTextReaderPtr reader, size_t * value) { const xmlChar * numstr; ssize_t numval; if (xmlTextReaderRead(reader) == 1 && xmlTextReaderNodeType(reader) == XML_READER_TYPE_TEXT) { numstr = xmlTextReaderConstValue(reader); if (numstr) { nu...
static int xar_get_numeric_from_xml_element(xmlTextReaderPtr reader, long * value) { const xmlChar * numstr; if (xmlTextReaderRead(reader) == 1 && xmlTextReaderNodeType(reader) == XML_READER_TYPE_TEXT) { numstr = xmlTextReaderConstValue(reader); if (numstr) { *value = atol((const cha...
static int xar_get_numeric_from_xml_element(xmlTextReaderPtr reader, size_t * value) { const xmlChar * numstr; ssize_t numval; if (xmlTextReaderRead(reader) == 1 && xmlTextReaderNodeType(reader) == XML_READER_TYPE_TEXT) { numstr = xmlTextReaderConstValue(reader); if (numstr) { nu...
static int xar_get_numeric_from_xml_element(xmlTextReaderPtr reader, long * value) { const xmlChar * numstr; if (xmlTextReaderRead(reader) == 1 && xmlTextReaderNodeType(reader) == XML_READER_TYPE_TEXT) { numstr = xmlTextReaderConstValue(reader); if (numstr) { *value = atol((const cha...
static int xar_get_numeric_from_xml_element(xmlTextReaderPtr reader, size_t * value) { const xmlChar * numstr; ssize_t numval; if (xmlTextReaderRead(reader) == 1 && xmlTextReaderNodeType(reader) == XML_READER_TYPE_TEXT) { numstr = xmlTextReaderConstValue(reader); if (numstr) { nu...
static int xar_get_numeric_from_xml_element(xmlTextReaderPtr reader, long * value) { const xmlChar * numstr; if (xmlTextReaderRead(reader) == 1 && xmlTextReaderNodeType(reader) == XML_READER_TYPE_TEXT) { numstr = xmlTextReaderConstValue(reader); if (numstr) { *value = atol((const cha...
static int xar_get_numeric_from_xml_element(xmlTextReaderPtr reader, size_t * value) { const xmlChar * numstr; ssize_t numval; if (xmlTextReaderRead(reader) == 1 && xmlTextReaderNodeType(reader) == XML_READER_TYPE_TEXT) { numstr = xmlTextReaderConstValue(reader); if (numstr) { nu...
-static int xar_get_numeric_from_xml_element(xmlTextReaderPtr reader, long * value) { +static int xar_get_numeric_from_xml_element(xmlTextReaderPtr reader, size_t * value) { const xmlChar * numstr; + ssize_t numval; if (xmlTextReaderRead(reader) == 1 && xmlTextReaderNodeType(reader) == XML_READER_TYPE_TEXT...
CVE-2018-1000085
ClamAV
https://github.com/Cisco-Talos/clamav
libclamav/xar.c
xar_get_toc_data_values
static int xar_get_toc_data_values(xmlTextReaderPtr reader, long *length, long *offset, long *size, int *encoding, unsigned char ** a_cksum, int * a_hash, unsigned char ** e_cksum, int * e_hash) { const xmlChar *name; int indata = 0, inea = 0; int rc, gotoffset=0, gotlength=0, gotsize=0; *a_cksum = NULL...
static int xar_get_toc_data_values(xmlTextReaderPtr reader, size_t *length, size_t *offset, size_t *size, int *encoding, unsigned char ** a_cksum, int * a_hash, unsigned char ** e_cksum, int * e_hash) { const xmlChar *name; int indata = 0, inea = 0; int rc, gotoffset=0, go...
static int xar_get_toc_data_values(xmlTextReaderPtr reader, long *length, long *offset, long *size, int *encoding, unsigned char ** a_cksum, int * a_hash, unsigned char ** e_cksum, int * e_hash) { const xmlChar *name; int indata = 0, inea = 0; int rc, gotoffset=0, gotlength=0, gotsize=0; *a_cksum = NULL...
static int xar_get_toc_data_values(xmlTextReaderPtr reader, size_t *length, size_t *offset, size_t *size, int *encoding, unsigned char ** a_cksum, int * a_hash, unsigned char ** e_cksum, int * e_hash) { const xmlChar *name; int indata = 0, inea = 0; int rc, gotoffset=0, go...
static int xar_get_toc_data_values(xmlTextReaderPtr reader, long *length, long *offset, long *size, int *encoding, unsigned char ** a_cksum, int * a_hash, unsigned char ** e_cksum, int * e_hash) { const xmlChar *name; while (rc == 1) { name = xmlTextReaderConstLocalName(reader); if (indata || in...
static int xar_get_toc_data_values(xmlTextReaderPtr reader, size_t *length, size_t *offset, size_t *size, int *encoding, unsigned char ** a_cksum, int * a_hash, unsigned char ** e_cksum, int * e_hash) { const xmlChar *name; while (rc == 1) { name = xmlTextReaderConstLo...
static int xar_get_toc_data_values(xmlTextReaderPtr reader, long *length, long *offset, long *size, int *encoding, unsigned char ** a_cksum, int * a_hash, unsigned char ** e_cksum, int * e_hash) { const xmlChar *name; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ while (rc == 1) { name = xmlTextRead...
static int xar_get_toc_data_values(xmlTextReaderPtr reader, size_t *length, size_t *offset, size_t *size, int *encoding, unsigned char ** a_cksum, int * a_hash, unsigned char ** e_cksum, int * e_hash) { const xmlChar *name; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ whi...
-static int xar_get_toc_data_values(xmlTextReaderPtr reader, long *length, long *offset, long *size, int *encoding, unsigned char ** a_cksum, int * a_hash, unsigned char ** e_cksum, int * e_hash) { +static int xar_get_toc_data_values(xmlTextReaderPtr reader, size_t *length, size_t *offset, size_t *size, int *encoding, ...
CVE-2018-1000085
ClamAV
https://github.com/Cisco-Talos/clamav
libclamav/xar.c
xar_hash_check
static int xar_hash_check(int hash, const void * result, const void * expected) { int len; if (!result || !expected) { return 1; } switch (hash) { case XAR_CKSUM_SHA1: len = SHA1_HASH_SIZE; break; case XAR_CKSUM_MD5: len = CLI_HASH_MD5; break; case XAR...
static int xar_hash_check(int hash, const void * result, const void * expected) { int len; if (!result || !expected) { return 1; } switch (hash) { case XAR_CKSUM_SHA1: len = CLI_HASHLEN_SHA1; break; case XAR_CKSUM_MD5: len = CLI_HASHLEN_MD5; break; cas...
static int xar_hash_check(int hash, const void * result, const void * expected) { int len; if (!result || !expected) { return 1; } switch (hash) { case XAR_CKSUM_SHA1: len = SHA1_HASH_SIZE; break; case XAR_CKSUM_MD5: len = CLI_HASH_MD5; break; case XAR...
static int xar_hash_check(int hash, const void * result, const void * expected) { int len; if (!result || !expected) { return 1; } switch (hash) { case XAR_CKSUM_SHA1: len = CLI_HASHLEN_SHA1; break; case XAR_CKSUM_MD5: len = CLI_HASHLEN_MD5; break; cas...
static int xar_hash_check(int hash, const void * result, const void * expected) { switch (hash) { case XAR_CKSUM_SHA1: len = SHA1_HASH_SIZE; break; case XAR_CKSUM_MD5: len = CLI_HASH_MD5; break; } return memcmp(result, expected, len); }
static int xar_hash_check(int hash, const void * result, const void * expected) { switch (hash) { case XAR_CKSUM_SHA1: len = CLI_HASHLEN_SHA1; break; case XAR_CKSUM_MD5: len = CLI_HASHLEN_MD5; break; } return memcmp(result, expected, len); }
static int xar_hash_check(int hash, const void * result, const void * expected) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (hash) { case XAR_CKSUM_SHA1: len = SHA1_HASH_SIZE; break; case XAR_CKSUM_MD5: len = CLI_HASH_MD5; break; /* PLACEHOLDER: DO NOT DELE...
static int xar_hash_check(int hash, const void * result, const void * expected) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ switch (hash) { case XAR_CKSUM_SHA1: len = CLI_HASHLEN_SHA1; break; case XAR_CKSUM_MD5: len = CLI_HASHLEN_MD5; break; /* PLACEHOLDER: DO NOT...
static int xar_hash_check(int hash, const void * result, const void * expected) { switch (hash) { case XAR_CKSUM_SHA1: - len = SHA1_HASH_SIZE; + len = CLI_HASHLEN_SHA1; break; case XAR_CKSUM_MD5: - len = CLI_HASH_MD5; + len = CLI_HASHLEN_MD5; break; } ...
CVE-2018-11354
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-ieee1905.c
dissect_ieee1905
static int dissect_ieee1905(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { proto_item *ti; proto_tree *ieee1905_tree; guint16 message_type; guint offset = 0; static const int *flags[] = { &hf_ieee1905_last_fragment, &hf_ieee1905_relay_indicator, NULL }; gboolean ...
static int dissect_ieee1905(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { proto_item *ti; proto_tree *ieee1905_tree; guint16 message_type; guint offset = 0; static const int *flags[] = { &hf_ieee1905_last_fragment, &hf_ieee1905_relay_indicator, NULL }; gboolean ...
static int dissect_ieee1905(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { proto_item *ti; proto_tree *ieee1905_tree; guint16 message_type; guint offset = 0; static const int *flags[] = { &hf_ieee1905_last_fragment, &hf_ieee1905_relay_indicator, NULL }; gboolean ...
static int dissect_ieee1905(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { proto_item *ti; proto_tree *ieee1905_tree; guint16 message_type; guint offset = 0; static const int *flags[] = { &hf_ieee1905_last_fragment, &hf_ieee1905_relay_indicator, NULL }; gboolean ...
static int dissect_ieee1905(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { col_set_str(pinfo->cinfo, COL_PROTOCOL, "ieee1905"); col_clear(pinfo->cinfo, COL_FO); message_type = tvb_get_ntohs(tvb, 2); col_set_str(pinfo->cinfo, COL_FO, val_to_str_ext(message_type, &ieee1905_message_typ...
static int dissect_ieee1905(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { col_set_str(pinfo->cinfo, COL_PROTOCOL, "ieee1905"); col_clear(pinfo->cinfo, COL_FO); message_type = tvb_get_ntohs(tvb, 2); col_add_str(pinfo->cinfo, COL_FO, val_to_str_ext(message_type, &ieee1905_message_typ...
static int dissect_ieee1905(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ col_set_str(pinfo->cinfo, COL_PROTOCOL, "ieee1905"); col_clear(pinfo->cinfo, COL_FO); message_type = tvb_get_ntohs(tvb, 2); col_set_str(pinfo->cinfo, COL_FO, ...
static int dissect_ieee1905(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ col_set_str(pinfo->cinfo, COL_PROTOCOL, "ieee1905"); col_clear(pinfo->cinfo, COL_FO); message_type = tvb_get_ntohs(tvb, 2); col_add_str(pinfo->cinfo, COL_FO, ...
static int dissect_ieee1905(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) { col_set_str(pinfo->cinfo, COL_PROTOCOL, "ieee1905"); col_clear(pinfo->cinfo, COL_FO); message_type = tvb_get_ntohs(tvb, 2); - col_set_str(pinfo->cinfo, COL_FO, val_to_str_ext(message_type, &ieee1905_messag...
CVE-2018-11355
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-rtcp.c
dissect_rtcp_rtpfb
static int dissect_rtcp_rtpfb( tvbuff_t *tvb, int offset, proto_tree *rtcp_tree, proto_item *top_item, packet_info *pinfo ) { unsigned int counter; unsigned int rtcp_rtpfb_fmt; int packet_length; int start_offset = offset; proto_tree_add_item( rtcp_tree, hf_rtcp_rtpfb_fmt, tvb, offset, 1, ENC_BIG_EN...
static int dissect_rtcp_rtpfb( tvbuff_t *tvb, int offset, proto_tree *rtcp_tree, proto_item *top_item, packet_info *pinfo ) { unsigned int counter; unsigned int rtcp_rtpfb_fmt; int packet_length; int start_offset = offset; proto_tree_add_item( rtcp_tree, hf_rtcp_rtpfb_fmt, tvb, offset, 1, ENC_BIG_EN...
static int dissect_rtcp_rtpfb( tvbuff_t *tvb, int offset, proto_tree *rtcp_tree, proto_item *top_item, packet_info *pinfo ) { unsigned int counter; unsigned int rtcp_rtpfb_fmt; int packet_length; int start_offset = offset; proto_tree_add_item( rtcp_tree, hf_rtcp_rtpfb_fmt, tvb, offset, 1, ENC_BIG_EN...
static int dissect_rtcp_rtpfb( tvbuff_t *tvb, int offset, proto_tree *rtcp_tree, proto_item *top_item, packet_info *pinfo ) { unsigned int counter; unsigned int rtcp_rtpfb_fmt; int packet_length; int start_offset = offset; proto_tree_add_item( rtcp_tree, hf_rtcp_rtpfb_fmt, tvb, offset, 1, ENC_BIG_EN...
static int dissect_rtcp_rtpfb( tvbuff_t *tvb, int offset, proto_tree *rtcp_tree, proto_item *top_item, packet_info *pinfo ) { int start_offset = offset; proto_tree_add_item( rtcp_tree, hf_rtcp_rtpfb_fmt, tvb, offset, 1, ENC_BIG_ENDIAN ); rtcp_rtpfb_fmt = (tvb_get_guint8(tvb, offset) & 0x1f); offset++; ...
static int dissect_rtcp_rtpfb( tvbuff_t *tvb, int offset, proto_tree *rtcp_tree, proto_item *top_item, packet_info *pinfo ) { int start_offset = offset; proto_tree_add_item( rtcp_tree, hf_rtcp_rtpfb_fmt, tvb, offset, 1, ENC_BIG_ENDIAN ); rtcp_rtpfb_fmt = (tvb_get_guint8(tvb, offset) & 0x1f); offset++; ...
static int dissect_rtcp_rtpfb( tvbuff_t *tvb, int offset, proto_tree *rtcp_tree, proto_item *top_item, packet_info *pinfo ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int start_offset = offset; proto_tree_add_item( rtcp_tree, hf_rtcp_rtpfb_fmt, tvb, offset, 1, ENC_BIG_ENDIAN ); rtcp_rtpfb_fmt = (tv...
static int dissect_rtcp_rtpfb( tvbuff_t *tvb, int offset, proto_tree *rtcp_tree, proto_item *top_item, packet_info *pinfo ) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ int start_offset = offset; proto_tree_add_item( rtcp_tree, hf_rtcp_rtpfb_fmt, tvb, offset, 1, ENC_BIG_ENDIAN ); rtcp_rtpfb_fmt = (tv...
static int dissect_rtcp_rtpfb( tvbuff_t *tvb, int offset, proto_tree *rtcp_tree, proto_item *top_item, packet_info *pinfo ) { int start_offset = offset; proto_tree_add_item( rtcp_tree, hf_rtcp_rtpfb_fmt, tvb, offset, 1, ENC_BIG_ENDIAN ); rtcp_rtpfb_fmt = (tvb_get_guint8(tvb, offset) & 0x1f); offset...
CVE-2018-11355
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-rtcp.c
dissect_rtcp_rtpfb_transport_cc
static int dissect_rtcp_rtpfb_transport_cc( tvbuff_t *tvb, int offset, proto_tree *rtcp_tree, int pkt_len) { proto_tree *fci_tree, *pkt_chunk_tree, *recv_delta_tree; proto_item *item = NULL; guint8 *delta_array; guint16 *pkt_seq_array; guint32 i, pkt_base_seq, pkt_seq_num, pkt_count; gint fci_le...
static int dissect_rtcp_rtpfb_transport_cc( tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *rtcp_tree, int pkt_len) { proto_tree *fci_tree, *pkt_chunk_tree, *recv_delta_tree; proto_item *item = NULL; guint8 *delta_array; guint16 *pkt_seq_array; guint32 i, pkt_base_seq, pkt_seq_num, pkt_co...
static int dissect_rtcp_rtpfb_transport_cc( tvbuff_t *tvb, int offset, proto_tree *rtcp_tree, int pkt_len) { proto_tree *fci_tree, *pkt_chunk_tree, *recv_delta_tree; proto_item *item = NULL; guint8 *delta_array; guint16 *pkt_seq_array; guint32 i, pkt_base_seq, pkt_seq_num, pkt_count; gint fci_le...
static int dissect_rtcp_rtpfb_transport_cc( tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *rtcp_tree, int pkt_len) { proto_tree *fci_tree, *pkt_chunk_tree, *recv_delta_tree; proto_item *item = NULL; guint8 *delta_array; guint16 *pkt_seq_array; guint32 i, pkt_base_seq, pkt_seq_num, pkt_co...
static int dissect_rtcp_rtpfb_transport_cc( tvbuff_t *tvb, int offset, proto_tree *rtcp_tree, int pkt_len) { proto_item *item = NULL; guint16 *pkt_seq_array; guint32 i, pkt_base_seq, pkt_seq_num, pkt_count; gint fci_length = pkt_len - RTCP_HEADER_LENGTH; int delta_index = 0; int padding_length =...
static int dissect_rtcp_rtpfb_transport_cc( tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *rtcp_tree, int pkt_len) { proto_item *item = NULL; guint16 *pkt_seq_array; guint32 i, pkt_base_seq, pkt_seq_num, pkt_count, delta_index = 0; gint fci_length = pkt_len - RTCP_HEADER_LENGTH; int padd...
static int dissect_rtcp_rtpfb_transport_cc( tvbuff_t *tvb, int offset, proto_tree *rtcp_tree, int pkt_len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ proto_item *item = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint16 *pkt_seq_array; guint32 i, pkt_base_seq, pkt_seq_num, pkt_count; ...
static int dissect_rtcp_rtpfb_transport_cc( tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *rtcp_tree, int pkt_len) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ proto_item *item = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ guint16 *pkt_seq_array; guint32 i, pkt_base_seq, pkt_s...
-static int dissect_rtcp_rtpfb_transport_cc( tvbuff_t *tvb, int offset, proto_tree *rtcp_tree, int pkt_len) { +static int dissect_rtcp_rtpfb_transport_cc( tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *rtcp_tree, int pkt_len) { proto_item *item = NULL; guint16 *pkt_seq_array; - guint32 i, pkt_b...
CVE-2018-11355
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-rtcp.c
proto_register_rtcp
void proto_register_rtcp(void) { static hf_register_info hf[] = { { &hf_rtcp_version, { "Version", "rtcp.version", FT_UT8, BASE_DEC, VALS(rtcp_version_vals), 0xC0, NULL, HFILL } }, { &hf_rtcp_padding, { "Padding", "rtcp.padding", FT...
void proto_register_rtcp(void) { static hf_register_info hf[] = { { &hf_rtcp_version, { "Version", "rtcp.version", FT_UT8, BASE_DEC, VALS(rtcp_version_vals), 0xC0, NULL, HFILL } }, { &hf_rtcp_padding, { "Padding", "rtcp.padding", FT...
void proto_register_rtcp(void) { static hf_register_info hf[] = { { &hf_rtcp_version, { "Version", "rtcp.version", FT_UT8, BASE_DEC, VALS(rtcp_version_vals), 0xC0, NULL, HFILL } }, { &hf_rtcp_padding, { "Padding", "rtcp.padding", FT...
void proto_register_rtcp(void) { static hf_register_info hf[] = { { &hf_rtcp_version, { "Version", "rtcp.version", FT_UT8, BASE_DEC, VALS(rtcp_version_vals), 0xC0, NULL, HFILL } }, { &hf_rtcp_padding, { "Padding", "rtcp.padding", FT...
void proto_register_rtcp(void) { static gint *ett[] = { &ett_rtcp, &ett_rtcp_sr, &ett_rtcp_rr, &ett_rtcp_sdes, &ett_rtcp_bye, &ett_rtcp_app, &ett_rtcp_rtpfb, &ett_rtcp_psfb, &ett_rtcp_xr, &ett_rtcp_fir, &ett_rtcp_nack, &ett_ssrc, &ett_ssrc_item, &ett_ssrc_ext_high, &ett_sdes, &ett_sdes_item, &ett_PoC1, &ett...
void proto_register_rtcp(void) { static gint *ett[] = { &ett_rtcp, &ett_rtcp_sr, &ett_rtcp_rr, &ett_rtcp_sdes, &ett_rtcp_bye, &ett_rtcp_app, &ett_rtcp_rtpfb, &ett_rtcp_psfb, &ett_rtcp_xr, &ett_rtcp_fir, &ett_rtcp_nack, &ett_ssrc, &ett_ssrc_item, &ett_ssrc_ext_high, &ett_sdes, &ett_sdes_item, &ett_PoC1, &ett...
void proto_register_rtcp(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static gint *ett[] = { &ett_rtcp, &ett_rtcp_sr, &ett_rtcp_rr, &ett_rtcp_sdes, &ett_rtcp_bye, &ett_rtcp_app, &ett_rtcp_rtpfb, &ett_rtcp_psfb, &ett_rtcp_xr, &ett_rtcp_fir, &ett_rtcp_nack, &ett_ssrc, &ett_ssrc_item, &ett_ssrc_ex...
void proto_register_rtcp(void) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ static gint *ett[] = { &ett_rtcp, &ett_rtcp_sr, &ett_rtcp_rr, &ett_rtcp_sdes, &ett_rtcp_bye, &ett_rtcp_app, &ett_rtcp_rtpfb, &ett_rtcp_psfb, &ett_rtcp_xr, &ett_rtcp_fir, &ett_rtcp_nack, &ett_ssrc, &ett_ssrc_item, &ett_ssrc_ex...
void proto_register_rtcp(void) { static gint *ett[] = { &ett_rtcp, &ett_rtcp_sr, &ett_rtcp_rr, &ett_rtcp_sdes, &ett_rtcp_bye, &ett_rtcp_app, &ett_rtcp_rtpfb, &ett_rtcp_psfb, &ett_rtcp_xr, &ett_rtcp_fir, &ett_rtcp_nack, &ett_ssrc, &ett_ssrc_item, &ett_ssrc_ext_high, &ett_sdes, &ett_sdes_item, &ett_PoC1, &...
CVE-2018-11356
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-dns.c
add_rr_to_tree
static void add_rr_to_tree(proto_tree *rr_tree, tvbuff_t *tvb, int offset, const guchar *name, int namelen, int type, packet_info *pinfo, gboolean is_mdns) { proto_item *ttl_item; gchar **srv_rr_info; if (type == T_SRV) { srv_rr_info = wmem_strsplit(wmem_packet_scope(), name, ".", 3); proto_...
static void add_rr_to_tree(proto_tree *rr_tree, tvbuff_t *tvb, int offset, const guchar *name, int namelen, int type, packet_info *pinfo, gboolean is_mdns) { proto_item *ttl_item; gchar **srv_rr_info; if (type == T_SRV && name[0]) { srv_rr_info = wmem_strsplit(wmem_packet_scope(), name, ".", 3); ...
static void add_rr_to_tree(proto_tree *rr_tree, tvbuff_t *tvb, int offset, const guchar *name, int namelen, int type, packet_info *pinfo, gboolean is_mdns) { proto_item *ttl_item; gchar **srv_rr_info; if (type == T_SRV) { srv_rr_info = wmem_strsplit(wmem_packet_scope(), name, ".", 3); proto_...
static void add_rr_to_tree(proto_tree *rr_tree, tvbuff_t *tvb, int offset, const guchar *name, int namelen, int type, packet_info *pinfo, gboolean is_mdns) { proto_item *ttl_item; gchar **srv_rr_info; if (type == T_SRV && name[0]) { srv_rr_info = wmem_strsplit(wmem_packet_scope(), name, ".", 3); ...
static void add_rr_to_tree(proto_tree *rr_tree, tvbuff_t *tvb, int offset, const guchar *name, int namelen, int type, packet_info *pinfo, gboolean is_mdns) { gchar **srv_rr_info; if (type == T_SRV) { srv_rr_info = wmem_strsplit(wmem_packet_scope(), name, ".", 3); proto_tree_add_string(rr_tree, h...
static void add_rr_to_tree(proto_tree *rr_tree, tvbuff_t *tvb, int offset, const guchar *name, int namelen, int type, packet_info *pinfo, gboolean is_mdns) { gchar **srv_rr_info; if (type == T_SRV && name[0]) { srv_rr_info = wmem_strsplit(wmem_packet_scope(), name, ".", 3); proto_tree_add_string...
static void add_rr_to_tree(proto_tree *rr_tree, tvbuff_t *tvb, int offset, const guchar *name, int namelen, int type, packet_info *pinfo, gboolean is_mdns) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ gchar **srv_rr_info; if (type == T_SRV) { srv_rr_info = wmem_strsplit(wmem_packet_scope(), name,...
static void add_rr_to_tree(proto_tree *rr_tree, tvbuff_t *tvb, int offset, const guchar *name, int namelen, int type, packet_info *pinfo, gboolean is_mdns) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ gchar **srv_rr_info; if (type == T_SRV && name[0]) { srv_rr_info = wmem_strsplit(wmem_packet_sco...
static void add_rr_to_tree(proto_tree *rr_tree, tvbuff_t *tvb, int offset, const guchar *name, int namelen, int type, packet_info *pinfo, gboolean is_mdns) { gchar **srv_rr_info; - if (type == T_SRV) { + if (type == T_SRV && name[0]) { srv_rr_info = wmem_strsplit(wmem_packet_scope(), name, ".", 3);...
CVE-2018-11357
Wireshark
https://github.com/wireshark/wireshark
epan/tvbuff.c
tvb_bytes_exist
gboolean tvb_bytes_exist(const tvbuff_t *tvb, const gint offset, const gint length) { guint abs_offset = 0, abs_length; int exception; DISSECTOR_ASSERT(tvb && tvb->initialized); exception = check_offset_length_no_exception(tvb, offset, length, &abs_offset, &abs_length); if (exception) { retu...
gboolean tvb_bytes_exist(const tvbuff_t *tvb, const gint offset, const gint length) { guint abs_offset = 0, abs_length; int exception; DISSECTOR_ASSERT(tvb && tvb->initialized); if (length < 0) { return FALSE; } exception = check_offset_length_no_exception(tvb, offset, length, &abs_offse...
gboolean tvb_bytes_exist(const tvbuff_t *tvb, const gint offset, const gint length) { guint abs_offset, abs_length; int exception; DISSECTOR_ASSERT(tvb && tvb->initialized); exception = check_offset_length_no_exception(tvb, offset, length, &abs_offset, &abs_length); if (exception) { return F...
gboolean tvb_bytes_exist(const tvbuff_t *tvb, const gint offset, const gint length) { guint abs_offset, abs_length; int exception; DISSECTOR_ASSERT(tvb && tvb->initialized); if (length < 0) { return FALSE; } exception = check_offset_length_no_exception(tvb, offset, length, &abs_offset, &...
gboolean tvb_bytes_exist(const tvbuff_t *tvb, const gint offset, const gint length) { DISSECTOR_ASSERT(tvb && tvb->initialized); exception = check_offset_length_no_exception(tvb, offset, length, &abs_offset, &abs_length); }
gboolean tvb_bytes_exist(const tvbuff_t *tvb, const gint offset, const gint length) { DISSECTOR_ASSERT(tvb && tvb->initialized); if (length < 0) { return FALSE; } exception = check_offset_length_no_exception(tvb, offset, length, &abs_offset, &abs_length); }
gboolean tvb_bytes_exist(const tvbuff_t *tvb, const gint offset, const gint length) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ DISSECTOR_ASSERT(tvb && tvb->initialized); exception = check_offset_length_no_exception(tvb, offset, length, &abs_offset, &abs_length); /* PLACEHOLDER: DO NOT DELETE THIS C...
gboolean tvb_bytes_exist(const tvbuff_t *tvb, const gint offset, const gint length) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ DISSECTOR_ASSERT(tvb && tvb->initialized); if (length < 0) { return FALSE; } exception = check_offset_length_no_exception(tvb, offset, length, &abs_offset, &abs...
gboolean tvb_bytes_exist(const tvbuff_t *tvb, const gint offset, const gint length) { DISSECTOR_ASSERT(tvb && tvb->initialized); + if (length < 0) { + return FALSE; + } exception = check_offset_length_no_exception(tvb, offset, length, &abs_offset, &abs_length); }
CVE-2018-11358
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-q931.c
dissect_q931_IEs
static void dissect_q931_IEs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *root_tree, proto_tree *q931_tree, gboolean is_over_ip, int offset, int initial_codeset) { proto_item *ti; proto_tree *ie_tree = NULL; guint8 info_element; guint8 dummy; guint16 info_element_len; int codeset, locked_codes...
static void dissect_q931_IEs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *root_tree, proto_tree *q931_tree, gboolean is_over_ip, int offset, int initial_codeset, q931_packet_info *q931_pi) { proto_item *ti; proto_tree *ie_tree = NULL; guint8 info_element; guint8 dummy; guint16 info_element_len; ...
static void dissect_q931_IEs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *root_tree, proto_tree *q931_tree, gboolean is_over_ip, int offset, int initial_codeset) { proto_item *ti; proto_tree *ie_tree = NULL; guint8 info_element; guint8 dummy; guint16 info_element_len; int codeset, locked_codes...
static void dissect_q931_IEs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *root_tree, proto_tree *q931_tree, gboolean is_over_ip, int offset, int initial_codeset, q931_packet_info *q931_pi) { proto_item *ti; proto_tree *ie_tree = NULL; guint8 info_element; guint8 dummy; guint16 info_element_len; ...
static void dissect_q931_IEs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *root_tree, proto_tree *q931_tree, gboolean is_over_ip, int offset, int initial_codeset) { codeset = locked_codeset = initial_codeset; first_segment = FALSE; while (tvb_reported_length_remaining(tvb, offset) > 0) { info_eleme...
static void dissect_q931_IEs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *root_tree, proto_tree *q931_tree, gboolean is_over_ip, int offset, int initial_codeset, q931_packet_info *q931_pi) { codeset = locked_codeset = initial_codeset; first_segment = FALSE; while (tvb_reported_length_remaining(tvb, offset...
static void dissect_q931_IEs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *root_tree, proto_tree *q931_tree, gboolean is_over_ip, int offset, int initial_codeset) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ codeset = locked_codeset = initial_codeset; first_segment = FALSE; while (tvb_reported_lengt...
static void dissect_q931_IEs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *root_tree, proto_tree *q931_tree, gboolean is_over_ip, int offset, int initial_codeset, q931_packet_info *q931_pi) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ codeset = locked_codeset = initial_codeset; first_segment = FALSE; ...
-static void dissect_q931_IEs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *root_tree, proto_tree *q931_tree, gboolean is_over_ip, int offset, int initial_codeset) { +static void dissect_q931_IEs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *root_tree, proto_tree *q931_tree, gboolean is_over_ip, int offset, int initi...
CVE-2018-11358
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-q931.c
dissect_q931_cause_ie
void dissect_q931_cause_ie(tvbuff_t *tvb, int offset, int len, proto_tree *tree, int hf_cause_value, guint8 *cause_value, const value_string *ie_vals) { gboolean have_valid_q931_pi_save = have_valid_q931_pi; have_valid_q931_pi = FALSE; dissect_q931_cause_ie_unsafe(tvb, offset, len, tree, hf_cause_value, cau...
void dissect_q931_cause_ie(tvbuff_t *tvb, int offset, int len, proto_tree *tree, int hf_cause_value, guint8 *cause_value, const value_string *ie_vals) { dissect_q931_cause_ie_with_info(tvb, offset, len, tree, hf_cause_value, cause_value, ie_vals, NULL); }
void dissect_q931_cause_ie(tvbuff_t *tvb, int offset, int len, proto_tree *tree, int hf_cause_value, guint8 *cause_value, const value_string *ie_vals) { gboolean have_valid_q931_pi_save = have_valid_q931_pi; have_valid_q931_pi = FALSE; dissect_q931_cause_ie_unsafe(tvb, offset, len, tree, hf_cause_value, cau...
void dissect_q931_cause_ie(tvbuff_t *tvb, int offset, int len, proto_tree *tree, int hf_cause_value, guint8 *cause_value, const value_string *ie_vals) { dissect_q931_cause_ie_with_info(tvb, offset, len, tree, hf_cause_value, cause_value, ie_vals, NULL); }
void dissect_q931_cause_ie(tvbuff_t *tvb, int offset, int len, proto_tree *tree, int hf_cause_value, guint8 *cause_value, const value_string *ie_vals) { gboolean have_valid_q931_pi_save = have_valid_q931_pi; have_valid_q931_pi = FALSE; dissect_q931_cause_ie_unsafe(tvb, offset, len, tree, hf_cause_value, cau...
void dissect_q931_cause_ie(tvbuff_t *tvb, int offset, int len, proto_tree *tree, int hf_cause_value, guint8 *cause_value, const value_string *ie_vals) { dissect_q931_cause_ie_with_info(tvb, offset, len, tree, hf_cause_value, cause_value, ie_vals, NULL); }
void dissect_q931_cause_ie(tvbuff_t *tvb, int offset, int len, proto_tree *tree, int hf_cause_value, guint8 *cause_value, const value_string *ie_vals) { gboolean have_valid_q931_pi_save = have_valid_q931_pi; have_valid_q931_pi = FALSE; dissect_q931_cause_ie_unsafe(tvb, offset, len, tree, hf_cause_value, cau...
void dissect_q931_cause_ie(tvbuff_t *tvb, int offset, int len, proto_tree *tree, int hf_cause_value, guint8 *cause_value, const value_string *ie_vals) { dissect_q931_cause_ie_with_info(tvb, offset, len, tree, hf_cause_value, cause_value, ie_vals, NULL); }
void dissect_q931_cause_ie(tvbuff_t *tvb, int offset, int len, proto_tree *tree, int hf_cause_value, guint8 *cause_value, const value_string *ie_vals) { - gboolean have_valid_q931_pi_save = have_valid_q931_pi; - have_valid_q931_pi = FALSE; - dissect_q931_cause_ie_unsafe(tvb, offset, len, tree, hf_cause_value,...
CVE-2018-11358
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-q931.c
dissect_q931_ie_cs0
static int dissect_q931_ie_cs0(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { dissect_q931_IEs(tvb, pinfo, NULL, tree, FALSE, 0, 0); return tvb_captured_length(tvb); }
static int dissect_q931_ie_cs0(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { dissect_q931_IEs(tvb, pinfo, NULL, tree, FALSE, 0, 0, NULL); return tvb_captured_length(tvb); }
static int dissect_q931_ie_cs0(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { dissect_q931_IEs(tvb, pinfo, NULL, tree, FALSE, 0, 0); return tvb_captured_length(tvb); }
static int dissect_q931_ie_cs0(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { dissect_q931_IEs(tvb, pinfo, NULL, tree, FALSE, 0, 0, NULL); return tvb_captured_length(tvb); }
static int dissect_q931_ie_cs0(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { dissect_q931_IEs(tvb, pinfo, NULL, tree, FALSE, 0, 0); return tvb_captured_length(tvb); }
static int dissect_q931_ie_cs0(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { dissect_q931_IEs(tvb, pinfo, NULL, tree, FALSE, 0, 0, NULL); return tvb_captured_length(tvb); }
static int dissect_q931_ie_cs0(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { dissect_q931_IEs(tvb, pinfo, NULL, tree, FALSE, 0, 0); return tvb_captured_length(tvb); }
static int dissect_q931_ie_cs0(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { dissect_q931_IEs(tvb, pinfo, NULL, tree, FALSE, 0, 0, NULL); return tvb_captured_length(tvb); }
static int dissect_q931_ie_cs0(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { - dissect_q931_IEs(tvb, pinfo, NULL, tree, FALSE, 0, 0); + dissect_q931_IEs(tvb, pinfo, NULL, tree, FALSE, 0, 0, NULL); return tvb_captured_length(tvb); }
CVE-2018-11358
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-q931.c
dissect_q931_ie_cs7
static int dissect_q931_ie_cs7(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { dissect_q931_IEs(tvb, pinfo, NULL, tree, FALSE, 0, 7); return tvb_captured_length(tvb); }
static int dissect_q931_ie_cs7(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { dissect_q931_IEs(tvb, pinfo, NULL, tree, FALSE, 0, 7, NULL); return tvb_captured_length(tvb); }
static int dissect_q931_ie_cs7(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { dissect_q931_IEs(tvb, pinfo, NULL, tree, FALSE, 0, 7); return tvb_captured_length(tvb); }
static int dissect_q931_ie_cs7(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { dissect_q931_IEs(tvb, pinfo, NULL, tree, FALSE, 0, 7, NULL); return tvb_captured_length(tvb); }
static int dissect_q931_ie_cs7(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { dissect_q931_IEs(tvb, pinfo, NULL, tree, FALSE, 0, 7); return tvb_captured_length(tvb); }
static int dissect_q931_ie_cs7(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { dissect_q931_IEs(tvb, pinfo, NULL, tree, FALSE, 0, 7, NULL); return tvb_captured_length(tvb); }
static int dissect_q931_ie_cs7(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { dissect_q931_IEs(tvb, pinfo, NULL, tree, FALSE, 0, 7); return tvb_captured_length(tvb); }
static int dissect_q931_ie_cs7(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { dissect_q931_IEs(tvb, pinfo, NULL, tree, FALSE, 0, 7, NULL); return tvb_captured_length(tvb); }
static int dissect_q931_ie_cs7(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) { - dissect_q931_IEs(tvb, pinfo, NULL, tree, FALSE, 0, 7); + dissect_q931_IEs(tvb, pinfo, NULL, tree, FALSE, 0, 7, NULL); return tvb_captured_length(tvb); }
CVE-2018-11358
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-q931.c
dissect_q931_number_ie
static void dissect_q931_number_ie(tvbuff_t *tvb, int offset, int len, proto_tree *tree, int hfindex, e164_info_t e164_info) { guint8 octet; gint number_plan; if (len == 0) { return; } octet = tvb_get_guint8(tvb, offset); number_plan = octet & 0x0f; e164_info.nature_of_address = ( oc...
static void dissect_q931_number_ie(tvbuff_t *tvb, int offset, int len, proto_tree *tree, int hfindex, e164_info_t e164_info, q931_packet_info *q931_pi) { guint8 octet; gint number_plan; if (len == 0) { return; } octet = tvb_get_guint8(tvb, offset); number_plan = octet & 0x0f; e164_in...
static void dissect_q931_number_ie(tvbuff_t *tvb, int offset, int len, proto_tree *tree, int hfindex, e164_info_t e164_info) { guint8 octet; gint number_plan; if (len == 0) { return; } octet = tvb_get_guint8(tvb, offset); number_plan = octet & 0x0f; e164_info.nature_of_address = ( oc...
static void dissect_q931_number_ie(tvbuff_t *tvb, int offset, int len, proto_tree *tree, int hfindex, e164_info_t e164_info, q931_packet_info *q931_pi) { guint8 octet; gint number_plan; if (len == 0) { return; } octet = tvb_get_guint8(tvb, offset); number_plan = octet & 0x0f; e164_in...
static void dissect_q931_number_ie(tvbuff_t *tvb, int offset, int len, proto_tree *tree, int hfindex, e164_info_t e164_info) { if (len == 0) { return; } octet = tvb_get_guint8(tvb, offset); number_plan = octet & 0x0f; e164_info.nature_of_address = ( octet & 0x70 ) >> 4; proto_tree_add_ui...
static void dissect_q931_number_ie(tvbuff_t *tvb, int offset, int len, proto_tree *tree, int hfindex, e164_info_t e164_info, q931_packet_info *q931_pi) { if (len == 0) { return; } octet = tvb_get_guint8(tvb, offset); number_plan = octet & 0x0f; e164_info.nature_of_address = ( octet & 0x70 ) ...
static void dissect_q931_number_ie(tvbuff_t *tvb, int offset, int len, proto_tree *tree, int hfindex, e164_info_t e164_info) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (len == 0) { return; } octet = tvb_get_guint8(tvb, offset); number_plan = octet & 0x0f; e164_info.nature_of_addr...
static void dissect_q931_number_ie(tvbuff_t *tvb, int offset, int len, proto_tree *tree, int hfindex, e164_info_t e164_info, q931_packet_info *q931_pi) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (len == 0) { return; } octet = tvb_get_guint8(tvb, offset); number_plan = octet & 0x0f; ...
-static void dissect_q931_number_ie(tvbuff_t *tvb, int offset, int len, proto_tree *tree, int hfindex, e164_info_t e164_info) { +static void dissect_q931_number_ie(tvbuff_t *tvb, int offset, int len, proto_tree *tree, int hfindex, e164_info_t e164_info, q931_packet_info *q931_pi) { if (len == 0) { return;...
CVE-2018-11358
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-q931.c
dissect_q931_pdu
static void dissect_q931_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean is_over_ip) { int offset = 0; proto_tree *q931_tree = NULL; proto_tree *ie_tree = NULL; proto_item *ti; guint8 prot_discr; guint8 call_ref_len; guint8 call_ref[16]; guint32 call_ref_val; guint8...
static void dissect_q931_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean is_over_ip) { int offset = 0; proto_tree *q931_tree = NULL; proto_tree *ie_tree = NULL; proto_item *ti; guint8 prot_discr; guint8 call_ref_len; guint8 call_ref[16]; guint32 call_ref_val; guint8...
static void dissect_q931_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean is_over_ip) { int offset = 0; proto_tree *q931_tree = NULL; proto_tree *ie_tree = NULL; proto_item *ti; guint8 prot_discr; guint8 call_ref_len; guint8 call_ref[16]; guint32 call_ref_val; guint8...
static void dissect_q931_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean is_over_ip) { int offset = 0; proto_tree *q931_tree = NULL; proto_tree *ie_tree = NULL; proto_item *ti; guint8 prot_discr; guint8 call_ref_len; guint8 call_ref[16]; guint32 call_ref_val; guint8...
static void dissect_q931_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean is_over_ip) { int offset = 0; proto_tree *q931_tree = NULL; tvbuff_t *next_tvb = NULL; q931_pi=wmem_new(wmem_packet_scope(), q931_packet_info); reset_q931_packet_info(q931_pi); have_valid_q931_pi=TRUE; ...
static void dissect_q931_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean is_over_ip) { int offset = 0; proto_tree *q931_tree = NULL; tvbuff_t *next_tvb = NULL; q931_packet_info *q931_pi = NULL; q931_pi=wmem_new(wmem_packet_scope(), q931_packet_info); reset_q931_packet_info(q931...
static void dissect_q931_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean is_over_ip) { int offset = 0; proto_tree *q931_tree = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ tvbuff_t *next_tvb = NULL; q931_pi=wmem_new(wmem_packet_scope(), q931_packet_info); reset_q931_pack...
static void dissect_q931_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean is_over_ip) { int offset = 0; proto_tree *q931_tree = NULL; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ tvbuff_t *next_tvb = NULL; q931_packet_info *q931_pi = NULL; q931_pi=wmem_new(wmem_packet_scope(), ...
static void dissect_q931_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, gboolean is_over_ip) { int offset = 0; proto_tree *q931_tree = NULL; tvbuff_t *next_tvb = NULL; + q931_packet_info *q931_pi = NULL; q931_pi=wmem_new(wmem_packet_scope(), q931_packet_info); reset_q931_packet_in...
CVE-2018-11359
Wireshark
https://github.com/wireshark/wireshark
epan/proto.c
proto_item_get_len
int proto_item_get_len(const proto_item *pi) { field_info *fi = PITEM_FFO(pi); return fi ? fi->length : -1; }
int proto_item_get_len(const proto_item *pi) { field_info *fi; if (!pi) { return -1; } fi = PITEM_FFO(pi); return fi ? fi->length : -1; }
int proto_item_get_len(const proto_item *pi) { field_info *fi = PITEM_FFO(pi); return fi ? fi->length : -1; }
int proto_item_get_len(const proto_item *pi) { field_info *fi; if (!pi) { return -1; } fi = PITEM_FFO(pi); return fi ? fi->length : -1; }
int proto_item_get_len(const proto_item *pi) { field_info *fi = PITEM_FFO(pi); return fi ? fi->length : -1; }
int proto_item_get_len(const proto_item *pi) { field_info *fi; if (!pi) { return -1; } fi = PITEM_FFO(pi); return fi ? fi->length : -1; }
int proto_item_get_len(const proto_item *pi) { field_info *fi = PITEM_FFO(pi); return fi ? fi->length : -1; }
int proto_item_get_len(const proto_item *pi) { field_info *fi; if (!pi) { return -1; } fi = PITEM_FFO(pi); return fi ? fi->length : -1; }
int proto_item_get_len(const proto_item *pi) { - field_info *fi = PITEM_FFO(pi); + field_info *fi; + if (!pi) { + return -1; + } + fi = PITEM_FFO(pi); return fi ? fi->length : -1; }
CVE-2018-11360
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-gsm_a_dtap.c
de_sub_addr
static guint16 de_sub_addr(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar **extracted_address) { guint32 curr_offset, ia5_string_len, i; guint8 type_of_sub_addr, afi, dig1, dig2, oct; gchar *ia5_string; gboolean invalid_ia5_char; proto_item *item; curr_offs...
static guint16 de_sub_addr(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar **extracted_address) { guint32 curr_offset, ia5_string_len, i; guint8 type_of_sub_addr, afi, dig1, dig2, oct; gchar *ia5_string; gboolean invalid_ia5_char; proto_item *item; curr_offs...
static guint16 de_sub_addr(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar **extracted_address) { guint32 curr_offset, ia5_string_len, i; guint8 type_of_sub_addr, afi, dig1, dig2, oct; gchar *ia5_string; gboolean invalid_ia5_char; proto_item *item; curr_offs...
static guint16 de_sub_addr(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar **extracted_address) { guint32 curr_offset, ia5_string_len, i; guint8 type_of_sub_addr, afi, dig1, dig2, oct; gchar *ia5_string; gboolean invalid_ia5_char; proto_item *item; curr_offs...
static guint16 de_sub_addr(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar **extracted_address) { curr_offset = offset; proto_tree_add_item(tree, hf_gsm_a_extension, tvb, curr_offset, 1, ENC_BIG_ENDIAN); proto_tree_add_item(tree, hf_gsm_a_dtap_type_of_sub_addr, tvb, cur...
static guint16 de_sub_addr(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar **extracted_address) { curr_offset = offset; proto_tree_add_item(tree, hf_gsm_a_extension, tvb, curr_offset, 1, ENC_BIG_ENDIAN); proto_tree_add_item(tree, hf_gsm_a_dtap_type_of_sub_addr, tvb, cur...
static guint16 de_sub_addr(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar **extracted_address) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ curr_offset = offset; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ proto_tree_add_item(tree, hf_gsm_a_extension, tvb, cur...
static guint16 de_sub_addr(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar **extracted_address) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ curr_offset = offset; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ proto_tree_add_item(tree, hf_gsm_a_extension, tvb, cur...
static guint16 de_sub_addr(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, gchar **extracted_address) { curr_offset = offset; proto_tree_add_item(tree, hf_gsm_a_extension, tvb, curr_offset, 1, ENC_BIG_ENDIAN); proto_tree_add_item(tree, hf_gsm_a_dtap_type_of_sub_addr, tvb,...
CVE-2018-11362
Wireshark
https://github.com/wireshark/wireshark
epan/dissectors/packet-ldss.c
dissect_ldss_transfer
static int dissect_ldss_transfer (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { conversation_t *transfer_conv; ldss_transfer_info_t *transfer_info; struct tcpinfo *transfer_tcpinfo; proto_tree *ti, *line_tree = NULL, *ldss_tree = NULL; nstime_t broadcast_response_time; if (d...
static int dissect_ldss_transfer (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { conversation_t *transfer_conv; ldss_transfer_info_t *transfer_info; struct tcpinfo *transfer_tcpinfo; proto_tree *ti, *line_tree = NULL, *ldss_tree = NULL; nstime_t broadcast_response_time; if (d...
static int dissect_ldss_transfer (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { conversation_t *transfer_conv; ldss_transfer_info_t *transfer_info; struct tcpinfo *transfer_tcpinfo; proto_tree *ti, *line_tree = NULL, *ldss_tree = NULL; nstime_t broadcast_response_time; if (d...
static int dissect_ldss_transfer (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { conversation_t *transfer_conv; ldss_transfer_info_t *transfer_info; struct tcpinfo *transfer_tcpinfo; proto_tree *ti, *line_tree = NULL, *ldss_tree = NULL; nstime_t broadcast_response_time; if (d...
static int dissect_ldss_transfer (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { transfer_conv = find_conversation (pinfo->num, &pinfo->src, &pinfo->dst, ENDPOT_TCP, pinfo->srcport, pinfo->destport, 0); DISSECTOR_ASSERT(transfer_conv); transfer_info = (ldss_transfer_info_t *)conversation...
static int dissect_ldss_transfer (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { transfer_conv = find_conversation (pinfo->num, &pinfo->src, &pinfo->dst, ENDPOT_TCP, pinfo->srcport, pinfo->destport, 0); DISSECTOR_ASSERT(transfer_conv); transfer_info = (ldss_transfer_info_t *)conversation...
static int dissect_ldss_transfer (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ transfer_conv = find_conversation (pinfo->num, &pinfo->src, &pinfo->dst, PT_TCP, pinfo->srcport, pinfo->destport, 0); DISSECTOR_ASSERT(transfer_conv); transf...
static int dissect_ldss_transfer (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ transfer_conv = find_conversation (pinfo->num, &pinfo->src, &pinfo->dst, PT_TCP, pinfo->srcport, pinfo->destport, 0); DISSECTOR_ASSERT(transfer_conv); transf...
static int dissect_ldss_transfer (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) { transfer_conv = find_conversation (pinfo->num, &pinfo->src, &pinfo->dst, ENDPOT_TCP, pinfo->srcport, pinfo->destport, 0); DISSECTOR_ASSERT(transfer_conv); transfer_info = (ldss_transfer_info_t *)conversa...
CVE-2018-12458
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/mpeg4videoenc.c
mpeg4_encode_gop_header
static void mpeg4_encode_gop_header(MpegEncContext *s) { int hours, minutes, seconds; int64_t time; put_bits(&s->pb, 16, 0); put_bits(&s->pb, 16, GOP_STARTCODE); time = s->current_picture_ptr->f->pts; if (s->reordered_input_picture[1]) { time = FFM(time, s->reordered_input_picture[1]->f-...
static void mpeg4_encode_gop_header(MpegEncContext *s) { int64_t hours, minutes, seconds; int64_t time; put_bits(&s->pb, 16, 0); put_bits(&s->pb, 16, GOP_STARTCODE); time = s->current_picture_ptr->f->pts; if (s->reordered_input_picture[1]) { time = FFM(time, s->reordered_input_picture[1]...
static void mpeg4_encode_gop_header(MpegEncContext *s) { int hours, minutes, seconds; int64_t time; put_bits(&s->pb, 16, 0); put_bits(&s->pb, 16, GOP_STARTCODE); time = s->current_picture_ptr->f->pts; if (s->reordered_input_picture[1]) { time = FFM(time, s->reordered_input_picture[1]->f-...
static void mpeg4_encode_gop_header(MpegEncContext *s) { int64_t hours, minutes, seconds; int64_t time; put_bits(&s->pb, 16, 0); put_bits(&s->pb, 16, GOP_STARTCODE); time = s->current_picture_ptr->f->pts; if (s->reordered_input_picture[1]) { time = FFM(time, s->reordered_input_picture[1]...
static void mpeg4_encode_gop_header(MpegEncContext *s) { int hours, minutes, seconds; int64_t time; }
static void mpeg4_encode_gop_header(MpegEncContext *s) { int64_t hours, minutes, seconds; int64_t time; }
static void mpeg4_encode_gop_header(MpegEncContext *s) { int hours, minutes, seconds; int64_t time; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static void mpeg4_encode_gop_header(MpegEncContext *s) { int64_t hours, minutes, seconds; int64_t time; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
static void mpeg4_encode_gop_header(MpegEncContext *s) { - int hours, minutes, seconds; + int64_t hours, minutes, seconds; int64_t time; }
CVE-2018-12459
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/mpeg4videodec.c
ff_mpeg4_decode_picture_header
int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb) { MpegEncContext *s = &ctx->m; unsigned startcode, v; int ret; int vol = 0; align_get_bits(gb); if (s->codec_tag == AV_RL32("WV1F") && show_bits(gb, 24) == 0x575630) { skip_bits(gb, 24); if (get_bits(gb, ...
int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb) { MpegEncContext *s = &ctx->m; unsigned startcode, v; int ret; int vol = 0; align_get_bits(gb); if (!s->studio_profile && s->avctx->bits_per_raw_sample != 8) { s->avctx->bits_per_raw_sample = 0; } if (s->...
int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb) { MpegEncContext *s = &ctx->m; unsigned startcode, v; int ret; int vol = 0; align_get_bits(gb); if (s->codec_tag == AV_RL32("WV1F") && show_bits(gb, 24) == 0x575630) { skip_bits(gb, 24); if (get_bits(gb, ...
int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb) { MpegEncContext *s = &ctx->m; unsigned startcode, v; int ret; int vol = 0; align_get_bits(gb); if (!s->studio_profile && s->avctx->bits_per_raw_sample != 8) { s->avctx->bits_per_raw_sample = 0; } if (s->...
int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb) { MpegEncContext *s = &ctx->m; align_get_bits(gb); for (;;) { if (get_bits_count(gb) >= gb->size_in_bits) { if (gb->size_in_bits == 8 && (ctx->divx_version >= 0 || ctx->xvid_build >= 0) || s->codec_tag == AV_RL32...
int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb) { MpegEncContext *s = &ctx->m; align_get_bits(gb); if (!s->studio_profile && s->avctx->bits_per_raw_sample != 8) { s->avctx->bits_per_raw_sample = 0; } for (;;) { if (get_bits_count(gb) >= gb->size_in_bits) {...
int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb) { MpegEncContext *s = &ctx->m; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ align_get_bits(gb); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ for (;;) { if (get_bits_count(gb) >= gb->size_in_bits) { if (...
int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb) { MpegEncContext *s = &ctx->m; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ align_get_bits(gb); if (!s->studio_profile && s->avctx->bits_per_raw_sample != 8) { s->avctx->bits_per_raw_sample = 0; } /* PLACEHOLDER...
int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb) { MpegEncContext *s = &ctx->m; align_get_bits(gb); + if (!s->studio_profile && s->avctx->bits_per_raw_sample != 8) { + s->avctx->bits_per_raw_sample = 0; + } for (;;) { if (get_bits_count(gb) >= gb->size_in...
CVE-2018-12460
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/idctdsp.c
ff_idctdsp_init
av_cold void ff_idctdsp_init(IDCTDSPContext *c, AVCodecContext *avctx) { const unsigned high_bit_depth = avctx->bits_per_raw_sample > 8; if (avctx->lowres==1) { c->idct_put = ff_jref_idct4_put; c->idct_add = ff_jref_idct4_add; c->idct = ff_j_rev_dct4; c->perm_type = FF_IDCT_PERM_...
av_cold void ff_idctdsp_init(IDCTDSPContext *c, AVCodecContext *avctx) { const unsigned high_bit_depth = avctx->bits_per_raw_sample > 8; if (avctx->lowres==1) { c->idct_put = ff_jref_idct4_put; c->idct_add = ff_jref_idct4_add; c->idct = ff_j_rev_dct4; c->perm_type = FF_IDCT_PERM_...
av_cold void ff_idctdsp_init(IDCTDSPContext *c, AVCodecContext *avctx) { const unsigned high_bit_depth = avctx->bits_per_raw_sample > 8; if (avctx->lowres==1) { c->idct_put = ff_jref_idct4_put; c->idct_add = ff_jref_idct4_add; c->idct = ff_j_rev_dct4; c->perm_type = FF_IDCT_PERM_...
av_cold void ff_idctdsp_init(IDCTDSPContext *c, AVCodecContext *avctx) { const unsigned high_bit_depth = avctx->bits_per_raw_sample > 8; if (avctx->lowres==1) { c->idct_put = ff_jref_idct4_put; c->idct_add = ff_jref_idct4_add; c->idct = ff_j_rev_dct4; c->perm_type = FF_IDCT_PERM_...
av_cold void ff_idctdsp_init(IDCTDSPContext *c, AVCodecContext *avctx) { if (avctx->lowres==1) { } else if (avctx->lowres==2) { } else if (avctx->lowres==3) { } else { if (avctx->bits_per_raw_sample == 10 || avctx->bits_per_raw_sample == 9) { if (avctx->codec_id == AV_CODEC_ID_MPEG4 ...
av_cold void ff_idctdsp_init(IDCTDSPContext *c, AVCodecContext *avctx) { if (avctx->lowres==1) { } else if (avctx->lowres==2) { } else if (avctx->lowres==3) { } else { if (avctx->bits_per_raw_sample == 10 || avctx->bits_per_raw_sample == 9) { if (c->mpeg4_studio_profile) { ...
av_cold void ff_idctdsp_init(IDCTDSPContext *c, AVCodecContext *avctx) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (avctx->lowres==1) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else if (avctx->lowres==2) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else if (avctx->lowres==3) {...
av_cold void ff_idctdsp_init(IDCTDSPContext *c, AVCodecContext *avctx) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (avctx->lowres==1) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else if (avctx->lowres==2) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ } else if (avctx->lowres==3) {...
av_cold void ff_idctdsp_init(IDCTDSPContext *c, AVCodecContext *avctx) { if (avctx->lowres==1) { } else if (avctx->lowres==2) { } else if (avctx->lowres==3) { } else { if (avctx->bits_per_raw_sample == 10 || avctx->bits_per_raw_sample == 9) { - if (avctx->codec_id == AV_CODEC_ID...
CVE-2018-12460
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/mpegvideo.c
ff_mpv_idct_init
av_cold void ff_mpv_idct_init(MpegEncContext *s) { ff_idctdsp_init(&s->idsp, s->avctx); if (s->alternate_scan) { ff_init_scantable(s->idsp.idct_permutation, &s->inter_scantable, ff_alternate_vertical_scan); ff_init_scantable(s->idsp.idct_permutation, &s->intra_scantable, ff_alternate_vertical_sc...
av_cold void ff_mpv_idct_init(MpegEncContext *s) { if (s->codec_id == AV_CODEC_ID_MPEG4) { s->idsp.mpeg4_studio_profile = s->studio_profile; } ff_idctdsp_init(&s->idsp, s->avctx); if (s->alternate_scan) { ff_init_scantable(s->idsp.idct_permutation, &s->inter_scantable, ff_alternate_verti...
av_cold void ff_mpv_idct_init(MpegEncContext *s) { ff_idctdsp_init(&s->idsp, s->avctx); if (s->alternate_scan) { ff_init_scantable(s->idsp.idct_permutation, &s->inter_scantable, ff_alternate_vertical_scan); ff_init_scantable(s->idsp.idct_permutation, &s->intra_scantable, ff_alternate_vertical_sc...
av_cold void ff_mpv_idct_init(MpegEncContext *s) { if (s->codec_id == AV_CODEC_ID_MPEG4) { s->idsp.mpeg4_studio_profile = s->studio_profile; } ff_idctdsp_init(&s->idsp, s->avctx); if (s->alternate_scan) { ff_init_scantable(s->idsp.idct_permutation, &s->inter_scantable, ff_alternate_verti...
av_cold void ff_mpv_idct_init(MpegEncContext *s) { ff_idctdsp_init(&s->idsp, s->avctx); }
av_cold void ff_mpv_idct_init(MpegEncContext *s) { if (s->codec_id == AV_CODEC_ID_MPEG4) { s->idsp.mpeg4_studio_profile = s->studio_profile; } ff_idctdsp_init(&s->idsp, s->avctx); }
av_cold void ff_mpv_idct_init(MpegEncContext *s) { ff_idctdsp_init(&s->idsp, s->avctx); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
av_cold void ff_mpv_idct_init(MpegEncContext *s) { if (s->codec_id == AV_CODEC_ID_MPEG4) { s->idsp.mpeg4_studio_profile = s->studio_profile; } ff_idctdsp_init(&s->idsp, s->avctx); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
av_cold void ff_mpv_idct_init(MpegEncContext *s) { + if (s->codec_id == AV_CODEC_ID_MPEG4) { + s->idsp.mpeg4_studio_profile = s->studio_profile; + } ff_idctdsp_init(&s->idsp, s->avctx); }
CVE-2018-13301
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/mpeg4videodec.c
ff_mpeg4_decode_picture_header
int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb) { MpegEncContext *s = &ctx->m; unsigned startcode, v; int ret; int vol = 0; align_get_bits(gb); if (!s->studio_profile && s->avctx->bits_per_raw_sample != 8) { s->avctx->bits_per_raw_sample = 0; } if (s->...
int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb) { MpegEncContext *s = &ctx->m; unsigned startcode, v; int ret; int vol = 0; align_get_bits(gb); if (!s->studio_profile && s->avctx->bits_per_raw_sample != 8) { s->avctx->bits_per_raw_sample = 0; } if (s->...
int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb) { MpegEncContext *s = &ctx->m; unsigned startcode, v; int ret; int vol = 0; align_get_bits(gb); if (!s->studio_profile && s->avctx->bits_per_raw_sample != 8) { s->avctx->bits_per_raw_sample = 0; } if (s->...
int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb) { MpegEncContext *s = &ctx->m; unsigned startcode, v; int ret; int vol = 0; align_get_bits(gb); if (!s->studio_profile && s->avctx->bits_per_raw_sample != 8) { s->avctx->bits_per_raw_sample = 0; } if (s->...
int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb) { MpegEncContext *s = &ctx->m; align_get_bits(gb); if (s->codec_tag == AV_RL32("WV1F") && show_bits(gb, 24) == 0x575630) { skip_bits(gb, 24); if (get_bits(gb, 8) == 0xF0) { goto end; } } s...
int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb) { MpegEncContext *s = &ctx->m; align_get_bits(gb); if (s->codec_tag == AV_RL32("WV1F") && show_bits(gb, 24) == 0x575630) { skip_bits(gb, 24); if (get_bits(gb, 8) == 0xF0) { goto end; } } s...
int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb) { MpegEncContext *s = &ctx->m; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ align_get_bits(gb); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (s->codec_tag == AV_RL32("WV1F") && show_bits(gb, 24) == 0x575630) { s...
int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb) { MpegEncContext *s = &ctx->m; /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ align_get_bits(gb); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ if (s->codec_tag == AV_RL32("WV1F") && show_bits(gb, 24) == 0x575630) { s...
int ff_mpeg4_decode_picture_header(Mpeg4DecContext *ctx, GetBitContext *gb) { MpegEncContext *s = &ctx->m; align_get_bits(gb); if (s->codec_tag == AV_RL32("WV1F") && show_bits(gb, 24) == 0x575630) { skip_bits(gb, 24); if (get_bits(gb, 8) == 0xF0) { goto end; } ...
CVE-2018-13301
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/mpeg4videodec.c
mpeg4_decode_profile_level
static int mpeg4_decode_profile_level(MpegEncContext *s, GetBitContext *gb) { s->avctx->profile = get_bits(gb, 4); s->avctx->level = get_bits(gb, 4); if (s->avctx->profile == 0 && s->avctx->level == 8) { s->avctx->level = 0; } return 0; }
static int mpeg4_decode_profile_level(MpegEncContext *s, GetBitContext *gb, int *profile, int *level) { *profile = get_bits(gb, 4); *level = get_bits(gb, 4); if (*profile == 0 && *level == 8) { *level = 0; } return 0; }
static int mpeg4_decode_profile_level(MpegEncContext *s, GetBitContext *gb) { s->avctx->profile = get_bits(gb, 4); s->avctx->level = get_bits(gb, 4); if (s->avctx->profile == 0 && s->avctx->level == 8) { s->avctx->level = 0; } return 0; }
static int mpeg4_decode_profile_level(MpegEncContext *s, GetBitContext *gb, int *profile, int *level) { *profile = get_bits(gb, 4); *level = get_bits(gb, 4); if (*profile == 0 && *level == 8) { *level = 0; } return 0; }
static int mpeg4_decode_profile_level(MpegEncContext *s, GetBitContext *gb) { s->avctx->profile = get_bits(gb, 4); s->avctx->level = get_bits(gb, 4); if (s->avctx->profile == 0 && s->avctx->level == 8) { s->avctx->level = 0; } return 0; }
static int mpeg4_decode_profile_level(MpegEncContext *s, GetBitContext *gb, int *profile, int *level) { *profile = get_bits(gb, 4); *level = get_bits(gb, 4); if (*profile == 0 && *level == 8) { *level = 0; } return 0; }
static int mpeg4_decode_profile_level(MpegEncContext *s, GetBitContext *gb) { s->avctx->profile = get_bits(gb, 4); s->avctx->level = get_bits(gb, 4); if (s->avctx->profile == 0 && s->avctx->level == 8) { s->avctx->level = 0; } return 0; }
static int mpeg4_decode_profile_level(MpegEncContext *s, GetBitContext *gb, int *profile, int *level) { *profile = get_bits(gb, 4); *level = get_bits(gb, 4); if (*profile == 0 && *level == 8) { *level = 0; } return 0; }
-static int mpeg4_decode_profile_level(MpegEncContext *s, GetBitContext *gb) { - s->avctx->profile = get_bits(gb, 4); - s->avctx->level = get_bits(gb, 4); - if (s->avctx->profile == 0 && s->avctx->level == 8) { - s->avctx->level = 0; +static int mpeg4_decode_profile_level(MpegEncContext *s, GetBitContex...
CVE-2018-13303
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/ac3_parser.c
avpriv_ac3_parse_header
int avpriv_ac3_parse_header(AC3HeaderInfo **phdr, const uint8_t *buf, size_t size) { GetBitContext gb; AC3HeaderInfo *hdr; int err; if (!*phdr) { *phdr = av_mallocz(sizeof(AC3HeaderInfo)); } if (!*phdr) { return AVERROR(ENOMEM); } hdr = *phdr; init_get_bits8(&gb, buf,...
int avpriv_ac3_parse_header(AC3HeaderInfo **phdr, const uint8_t *buf, size_t size) { GetBitContext gb; AC3HeaderInfo *hdr; int err; if (!*phdr) { *phdr = av_mallocz(sizeof(AC3HeaderInfo)); } if (!*phdr) { return AVERROR(ENOMEM); } hdr = *phdr; err = init_get_bits8(&gb...
int avpriv_ac3_parse_header(AC3HeaderInfo **phdr, const uint8_t *buf, size_t size) { GetBitContext gb; AC3HeaderInfo *hdr; int err; if (!*phdr) { *phdr = av_mallocz(sizeof(AC3HeaderInfo)); } if (!*phdr) { return AVERROR(ENOMEM); } hdr = *phdr; init_get_bits8(&gb, buf,...
int avpriv_ac3_parse_header(AC3HeaderInfo **phdr, const uint8_t *buf, size_t size) { GetBitContext gb; AC3HeaderInfo *hdr; int err; if (!*phdr) { *phdr = av_mallocz(sizeof(AC3HeaderInfo)); } if (!*phdr) { return AVERROR(ENOMEM); } hdr = *phdr; err = init_get_bits8(&gb...
int avpriv_ac3_parse_header(AC3HeaderInfo **phdr, const uint8_t *buf, size_t size) { hdr = *phdr; init_get_bits8(&gb, buf, size); err = ff_ac3_parse_header(&gb, hdr); }
int avpriv_ac3_parse_header(AC3HeaderInfo **phdr, const uint8_t *buf, size_t size) { hdr = *phdr; err = init_get_bits8(&gb, buf, size); if (err < 0) { return AVERROR_VALIDDATA; } err = ff_ac3_parse_header(&gb, hdr); }
int avpriv_ac3_parse_header(AC3HeaderInfo **phdr, const uint8_t *buf, size_t size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ hdr = *phdr; init_get_bits8(&gb, buf, size); err = ff_ac3_parse_header(&gb, hdr); /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ }
int avpriv_ac3_parse_header(AC3HeaderInfo **phdr, const uint8_t *buf, size_t size) { /* PLACEHOLDER: DO NOT DELETE THIS COMMENT */ hdr = *phdr; err = init_get_bits8(&gb, buf, size); if (err < 0) { return AVERROR_VALIDDATA; } err = ff_ac3_parse_header(&gb, hdr); /* PLACEHOLDER: DO NOT...
int avpriv_ac3_parse_header(AC3HeaderInfo **phdr, const uint8_t *buf, size_t size) { hdr = *phdr; - init_get_bits8(&gb, buf, size); + err = init_get_bits8(&gb, buf, size); + if (err < 0) { + return AVERROR_VALIDDATA; + } err = ff_ac3_parse_header(&gb, hdr); }
CVE-2018-13304
FFmpeg
https://github.com/FFmpeg/FFmpeg
libavcodec/error_resilience.c
er_supported
static int er_supported(ERContext *s) { if(s->avctx->hwaccel && s->avctx->hwaccel->decode_slice || !s->cur_pic.f || s->cur_pic.field_picture || s->avctx->profile == FF_PROFILE_MPEG4_SIMPLE_STUDIO ) { return 0; } return 1; }
static int er_supported(ERContext *s) { if(s->avctx->hwaccel && s->avctx->hwaccel->decode_slice || !s->cur_pic.f || s->cur_pic.field_picture ) { return 0; } return 1; }
static int er_supported(ERContext *s) { if(s->avctx->hwaccel && s->avctx->hwaccel->decode_slice || !s->cur_pic.f || s->cur_pic.field_picture || s->avctx->profile == FF_PROFILE_MPEG4_SIMPLE_STUDIO ) { return 0; } return 1; }
static int er_supported(ERContext *s) { if(s->avctx->hwaccel && s->avctx->hwaccel->decode_slice || !s->cur_pic.f || s->cur_pic.field_picture ) { return 0; } return 1; }
static int er_supported(ERContext *s) { if(s->avctx->hwaccel && s->avctx->hwaccel->decode_slice || !s->cur_pic.f || s->cur_pic.field_picture || s->avctx->profile == FF_PROFILE_MPEG4_SIMPLE_STUDIO ) { return 0; } return 1; }
static int er_supported(ERContext *s) { if(s->avctx->hwaccel && s->avctx->hwaccel->decode_slice || !s->cur_pic.f || s->cur_pic.field_picture ) { return 0; } return 1; }
static int er_supported(ERContext *s) { if(s->avctx->hwaccel && s->avctx->hwaccel->decode_slice || !s->cur_pic.f || s->cur_pic.field_picture || s->avctx->profile == FF_PROFILE_MPEG4_SIMPLE_STUDIO ) { return 0; } return 1; }
static int er_supported(ERContext *s) { if(s->avctx->hwaccel && s->avctx->hwaccel->decode_slice || !s->cur_pic.f || s->cur_pic.field_picture ) { return 0; } return 1; }
static int er_supported(ERContext *s) { - if(s->avctx->hwaccel && s->avctx->hwaccel->decode_slice || !s->cur_pic.f || s->cur_pic.field_picture || s->avctx->profile == FF_PROFILE_MPEG4_SIMPLE_STUDIO ) { + if(s->avctx->hwaccel && s->avctx->hwaccel->decode_slice || !s->cur_pic.f || s->cur_pic.field_picture ) { ...