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-2014-6425 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-cups.c | get_quoted_string | static const guint8* get_quoted_string(tvbuff_t *tvb, gint offset, gint *next_offset, guint *len) {
int c;
const guint8* s = NULL;
guint l = 0;
gint o;
c = tvb_get_guint8(tvb, offset);
if (c == '"') {
o = tvb_find_guint8(tvb, offset+1, -1, '"');
if (o != -1) {
offset+... | static const guint8* get_quoted_string(tvbuff_t *tvb, gint offset, gint *next_offset, guint *len) {
int c;
const guint8* s = NULL;
guint l = 0;
gint o;
c = tvb_get_guint8(tvb, offset);
if (c == '"') {
o = tvb_find_guint8(tvb, offset+1, -1, '"');
if (o != -1) {
offset+... | static const guint8* get_quoted_string(tvbuff_t *tvb, gint offset, gint *next_offset, guint *len) {
int c;
const guint8* s = NULL;
guint l = 0;
gint o;
c = tvb_get_guint8(tvb, offset);
if (c == '"') {
o = tvb_find_guint8(tvb, offset+1, -1, '"');
if (o != -1) {
offset+... | static const guint8* get_quoted_string(tvbuff_t *tvb, gint offset, gint *next_offset, guint *len) {
int c;
const guint8* s = NULL;
guint l = 0;
gint o;
c = tvb_get_guint8(tvb, offset);
if (c == '"') {
o = tvb_find_guint8(tvb, offset+1, -1, '"');
if (o != -1) {
offset+... | static const guint8* get_quoted_string(tvbuff_t *tvb, gint offset, gint *next_offset, guint *len) {
c = tvb_get_guint8(tvb, offset);
if (c == '"') {
o = tvb_find_guint8(tvb, offset+1, -1, '"');
if (o != -1) {
offset++;
l = o - offset;
s = tvb_get_ptr(tvb, offs... | static const guint8* get_quoted_string(tvbuff_t *tvb, gint offset, gint *next_offset, guint *len) {
c = tvb_get_guint8(tvb, offset);
if (c == '"') {
o = tvb_find_guint8(tvb, offset+1, -1, '"');
if (o != -1) {
offset++;
l = o - offset;
s = tvb_get_string_enc(wm... | static const guint8* get_quoted_string(tvbuff_t *tvb, gint offset, gint *next_offset, guint *len) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
c = tvb_get_guint8(tvb, offset);
if (c == '"') {
o = tvb_find_guint8(tvb, offset+1, -1, '"');
if (o != -1) {
offset++;
l =... | static const guint8* get_quoted_string(tvbuff_t *tvb, gint offset, gint *next_offset, guint *len) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
c = tvb_get_guint8(tvb, offset);
if (c == '"') {
o = tvb_find_guint8(tvb, offset+1, -1, '"');
if (o != -1) {
offset++;
l =... | static const guint8* get_quoted_string(tvbuff_t *tvb, gint offset, gint *next_offset, guint *len) {
c = tvb_get_guint8(tvb, offset);
if (c == '"') {
o = tvb_find_guint8(tvb, offset+1, -1, '"');
if (o != -1) {
offset++;
l = o - offset;
- s = tvb_get_ptr(t... |
CVE-2014-6425 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-cups.c | get_unquoted_string | static const guint8* get_unquoted_string(tvbuff_t *tvb, gint offset, gint *next_offset, guint *len) {
const guint8* s = NULL;
guint l = 0;
gint o;
o = tvb_pbrk_guint8(tvb, offset, -1, " \t\r\n", NULL);
if (o != -1) {
l = o - offset;
s = tvb_get_ptr(tvb, offset, l);
offset = o... | static const guint8* get_unquoted_string(tvbuff_t *tvb, gint offset, gint *next_offset, guint *len) {
const guint8* s = NULL;
guint l = 0;
gint o;
o = tvb_pbrk_guint8(tvb, offset, -1, " \t\r\n", NULL);
if (o != -1) {
l = o - offset;
s = tvb_get_string_enc(wmem_packet_scope(), tvb, of... | static const guint8* get_unquoted_string(tvbuff_t *tvb, gint offset, gint *next_offset, guint *len) {
const guint8* s = NULL;
guint l = 0;
gint o;
o = tvb_pbrk_guint8(tvb, offset, -1, " \t\r\n", NULL);
if (o != -1) {
l = o - offset;
s = tvb_get_ptr(tvb, offset, l);
offset = o... | static const guint8* get_unquoted_string(tvbuff_t *tvb, gint offset, gint *next_offset, guint *len) {
const guint8* s = NULL;
guint l = 0;
gint o;
o = tvb_pbrk_guint8(tvb, offset, -1, " \t\r\n", NULL);
if (o != -1) {
l = o - offset;
s = tvb_get_string_enc(wmem_packet_scope(), tvb, of... | static const guint8* get_unquoted_string(tvbuff_t *tvb, gint offset, gint *next_offset, guint *len) {
o = tvb_pbrk_guint8(tvb, offset, -1, " \t\r\n", NULL);
if (o != -1) {
l = o - offset;
s = tvb_get_ptr(tvb, offset, l);
offset = o;
}
*len = l;
return s;
}
| static const guint8* get_unquoted_string(tvbuff_t *tvb, gint offset, gint *next_offset, guint *len) {
o = tvb_pbrk_guint8(tvb, offset, -1, " \t\r\n", NULL);
if (o != -1) {
l = o - offset;
s = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, l, ENC_ASCII);
offset = o;
}
*len =... | static const guint8* get_unquoted_string(tvbuff_t *tvb, gint offset, gint *next_offset, guint *len) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
o = tvb_pbrk_guint8(tvb, offset, -1, " \t\r\n", NULL);
if (o != -1) {
l = o - offset;
s = tvb_get_ptr(tvb, offset, l);
offset = o;
}... | static const guint8* get_unquoted_string(tvbuff_t *tvb, gint offset, gint *next_offset, guint *len) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
o = tvb_pbrk_guint8(tvb, offset, -1, " \t\r\n", NULL);
if (o != -1) {
l = o - offset;
s = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, l... | static const guint8* get_unquoted_string(tvbuff_t *tvb, gint offset, gint *next_offset, guint *len) {
o = tvb_pbrk_guint8(tvb, offset, -1, " \t\r\n", NULL);
if (o != -1) {
l = o - offset;
- s = tvb_get_ptr(tvb, offset, l);
+ s = tvb_get_string_enc(wmem_packet_scope(), tvb, offset, l, E... |
CVE-2014-6426 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-hip.c | dissect_hip_tlv | static int dissect_hip_tlv(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_item *ti, int type, int tlv_len) {
proto_tree *t=NULL;
proto_item *ti_tlv, *ti_loc, *hi_len_item, *e_len_item, *arg_item;
guint8 n, algorithm, reg_type;
guint16 trans, hi_len, di_len, di_type, e_len, pv_len;
guint32 rese... | static int dissect_hip_tlv(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_item *ti, int type, int tlv_len) {
proto_tree *t=NULL;
proto_item *ti_tlv, *ti_loc, *hi_len_item, *e_len_item, *arg_item;
guint8 n, algorithm, reg_type;
guint16 trans, hi_len, di_len, di_type, e_len, pv_len;
guint32 rese... | static int dissect_hip_tlv(tvbuff_t *tvb, int offset, proto_item *ti, int type, int tlv_len) {
proto_tree *t=NULL;
proto_item *ti_tlv, *ti_loc;
guint8 n, algorithm, reg_type;
guint16 trans, hi_len, di_len, di_type, e_len, pv_len;
guint32 reserved, hi_hdr;
guint8 transport_proto;
guint8 locat... | static int dissect_hip_tlv(tvbuff_t *tvb, int offset, proto_item *ti, int type, int tlv_len) {
proto_tree *t=NULL;
proto_item *ti_tlv, *ti_loc;
guint8 n, algorithm, reg_type;
guint16 trans, hi_len, di_len, di_type, e_len, pv_len;
guint32 reserved, hi_hdr;
guint8 transport_proto;
guint8 locat... | static int dissect_hip_tlv(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_item *ti, int type, int tlv_len) {
newoffset = offset + 4;
switch (type) {
case PARAM_LOCATOR:
while (tlv_len > 0) {
locator_type = tvb_get_guint8(tvb, newoffset + 1);
if (locator_type == 0) {
... | static int dissect_hip_tlv(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_item *ti, int type, int tlv_len) {
newoffset = offset + 4;
switch (type) {
case PARAM_LOCATOR:
while (tlv_len > 0) {
locator_type = tvb_get_guint8(tvb, newoffset + 1);
if (locator_type == 0) {
... | static int dissect_hip_tlv(tvbuff_t *tvb, int offset, proto_item *ti, int type, int tlv_len) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
newoffset = offset + 4;
switch (type) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
case PARAM_LOCATOR:
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | static int dissect_hip_tlv(tvbuff_t *tvb, int offset, proto_item *ti, int type, int tlv_len) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
newoffset = offset + 4;
switch (type) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
case PARAM_LOCATOR:
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | static int dissect_hip_tlv(tvbuff_t *tvb, packet_info *pinfo, int offset, proto_item *ti, int type, int tlv_len) {
newoffset = offset + 4;
switch (type) {
case PARAM_LOCATOR:
while (tlv_len > 0) {
locator_type = tvb_get_guint8(tvb, newoffset + 1);
if (locator_type == 0... |
CVE-2014-6427 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-rtsp.c | is_rtsp_request_or_reply | static gboolean is_rtsp_request_or_reply(const guchar *line, size_t linelen, rtsp_type_t *type) {
guint ii;
const guchar *next_token;
int tokenlen;
gchar response_chars[4];
if (linelen >= 5 && g_ascii_strncasecmp("RTSP/", line, 5) == 0) {
*type = RTSP_REPLY;
tokenlen = get_token_len(... | static gboolean is_rtsp_request_or_reply(const guchar *line, size_t linelen, rtsp_type_t *type) {
guint ii;
const guchar *token, *next_token;
int tokenlen;
gchar response_chars[4];
if (linelen >= 5 && g_ascii_strncasecmp("RTSP/", line, 5) == 0) {
*type = RTSP_REPLY;
tokenlen = get_to... | static gboolean is_rtsp_request_or_reply(const guchar *line, size_t linelen, rtsp_type_t *type) {
unsigned ii;
const guchar *next_token;
int tokenlen;
gchar response_chars[4];
if (linelen >= 5 && g_ascii_strncasecmp("RTSP/", line, 5) == 0) {
*type = RTSP_REPLY;
tokenlen = get_token_l... | static gboolean is_rtsp_request_or_reply(const guchar *line, size_t linelen, rtsp_type_t *type) {
unsigned ii;
const guchar *token, *next_token;
int tokenlen;
gchar response_chars[4];
if (linelen >= 5 && g_ascii_strncasecmp("RTSP/", line, 5) == 0) {
*type = RTSP_REPLY;
tokenlen = get... | static gboolean is_rtsp_request_or_reply(const guchar *line, size_t linelen, rtsp_type_t *type) {
guint ii;
const guchar *next_token;
int tokenlen;
if (linelen >= 5 && g_ascii_strncasecmp("RTSP/", line, 5) == 0) {
*type = RTSP_REPLY;
tokenlen = get_token_len(line, line+5, &next_token);
... | static gboolean is_rtsp_request_or_reply(const guchar *line, size_t linelen, rtsp_type_t *type) {
guint ii;
const guchar *token, *next_token;
int tokenlen;
if (linelen >= 5 && g_ascii_strncasecmp("RTSP/", line, 5) == 0) {
*type = RTSP_REPLY;
tokenlen = get_token_len(line, line+5, &token)... | static gboolean is_rtsp_request_or_reply(const guchar *line, size_t linelen, rtsp_type_t *type) {
unsigned ii;
const guchar *next_token;
int tokenlen;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (linelen >= 5 && g_ascii_strncasecmp("RTSP/", line, 5) == 0) {
*type = RTSP_REPLY;
t... | static gboolean is_rtsp_request_or_reply(const guchar *line, size_t linelen, rtsp_type_t *type) {
unsigned ii;
const guchar *token, *next_token;
int tokenlen;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (linelen >= 5 && g_ascii_strncasecmp("RTSP/", line, 5) == 0) {
*type = RTSP_REPLY;
... | static gboolean is_rtsp_request_or_reply(const guchar *line, size_t linelen, rtsp_type_t *type) {
guint ii;
- const guchar *next_token;
+ const guchar *token, *next_token;
int tokenlen;
if (linelen >= 5 && g_ascii_strncasecmp("RTSP/", line, 5) == 0) {
*type = RTSP_REPLY;
- tokenlen... |
CVE-2014-6428 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-ses.c | dissect_spdu | static int dissect_spdu(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, gboolean tokens, gboolean connectionless) {
gboolean has_user_information = FALSE;
guint8 type;
proto_item *ti = NULL;
proto_tree *ses_tree = NULL;
int len_len;
guint16 parameters_len;
tvbuff_t *next_tvb... | static int dissect_spdu(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, gboolean tokens, gboolean connectionless) {
gboolean has_user_information = FALSE;
guint8 type;
proto_item *ti = NULL;
proto_tree *ses_tree = NULL;
int len_len;
guint16 parameters_len;
tvbuff_t *next_tvb... | static int dissect_spdu(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, gboolean tokens, gboolean connectionless) {
gboolean has_user_information = FALSE;
guint8 type;
proto_item *ti = NULL;
proto_tree *ses_tree = NULL;
int len_len;
guint16 parameters_len;
tvbuff_t *next_tvb... | static int dissect_spdu(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, gboolean tokens, gboolean connectionless) {
gboolean has_user_information = FALSE;
guint8 type;
proto_item *ti = NULL;
proto_tree *ses_tree = NULL;
int len_len;
guint16 parameters_len;
tvbuff_t *next_tvb... | static int dissect_spdu(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, gboolean tokens, gboolean connectionless) {
session.abort_type = SESSION_NO_ABORT;
session.ros_op = 0;
offset += parameters_len;
proto_item_set_end(ti, tvb, offset);
if (!ses_desegment || enclosure_item_flags ==... | static int dissect_spdu(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, gboolean tokens, gboolean connectionless) {
session.abort_type = SESSION_NO_ABORT;
session.pres_ctx_id = 0;
session.ros_op = 0;
offset += parameters_len;
proto_item_set_end(ti, tvb, offset);
if (!ses_desegme... | static int dissect_spdu(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, gboolean tokens, gboolean connectionless) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
session.abort_type = SESSION_NO_ABORT;
session.ros_op = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
offset += parame... | static int dissect_spdu(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, gboolean tokens, gboolean connectionless) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
session.abort_type = SESSION_NO_ABORT;
session.pres_ctx_id = 0;
session.ros_op = 0;
/* PLACEHOLDER: DO NOT DELETE THIS CO... | static int dissect_spdu(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, gboolean tokens, gboolean connectionless) {
session.abort_type = SESSION_NO_ABORT;
+ session.pres_ctx_id = 0;
session.ros_op = 0;
offset += parameters_len;
proto_item_set_end(ti, tvb, offset);
if (!ses_... |
CVE-2014-6429 | Wireshark | https://github.com/wireshark/wireshark | wiretap/ngsniffer.c | SnifferDecompress | static int SnifferDecompress(unsigned char *inbuf, size_t inlen, unsigned char *outbuf, size_t outlen, int *err) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_mask;
unsigned int bit_... | static int SnifferDecompress(unsigned char *inbuf, size_t inlen, unsigned char *outbuf, size_t outlen, int *err) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_mask;
unsigned int bit_... | static int SnifferDecompress( unsigned char * inbuf, size_t inlen, unsigned char * outbuf, size_t outlen, int *err ) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_mask;
unsigned int ... | static int SnifferDecompress( unsigned char * inbuf, size_t inlen, unsigned char * outbuf, size_t outlen, int *err ) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_mask;
unsigned int ... | static int SnifferDecompress(unsigned char *inbuf, size_t inlen, unsigned char *outbuf, size_t outlen, int *err) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_value = 0;
bit_mask = 0... | static int SnifferDecompress(unsigned char *inbuf, size_t inlen, unsigned char *outbuf, size_t outlen, int *err) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_value = 0;
bit_mask = 0... | static int SnifferDecompress( unsigned char * inbuf, size_t inlen, unsigned char * outbuf, size_t outlen, int *err ) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
/* PLACEHOLDER: DO NOT DELETE THIS COMME... | static int SnifferDecompress( unsigned char * inbuf, size_t inlen, unsigned char * outbuf, size_t outlen, int *err ) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
/* PLACEHOLDER: DO NOT DELETE THIS COMME... | static int SnifferDecompress(unsigned char *inbuf, size_t inlen, unsigned char *outbuf, size_t outlen, int *err) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_value = 0;
bit_m... |
CVE-2014-6430 | Wireshark | https://github.com/wireshark/wireshark | wiretap/ngsniffer.c | SnifferDecompress | static int SnifferDecompress(unsigned char *inbuf, size_t inlen, unsigned char *outbuf, size_t outlen, int *err) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_mask;
unsigned int bit_... | static int SnifferDecompress(unsigned char *inbuf, size_t inlen, unsigned char *outbuf, size_t outlen, int *err) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_mask;
unsigned int bit_... | static int SnifferDecompress( unsigned char * inbuf, size_t inlen, unsigned char * outbuf, size_t outlen, int *err ) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_mask;
unsigned int ... | static int SnifferDecompress( unsigned char * inbuf, size_t inlen, unsigned char * outbuf, size_t outlen, int *err ) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_mask;
unsigned int ... | static int SnifferDecompress(unsigned char *inbuf, size_t inlen, unsigned char *outbuf, size_t outlen, int *err) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_value = 0;
bit_mask = 0... | static int SnifferDecompress(unsigned char *inbuf, size_t inlen, unsigned char *outbuf, size_t outlen, int *err) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_value = 0;
bit_mask = 0... | static int SnifferDecompress( unsigned char * inbuf, size_t inlen, unsigned char * outbuf, size_t outlen, int *err ) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
/* PLACEHOLDER: DO NOT DELETE THIS COMME... | static int SnifferDecompress( unsigned char * inbuf, size_t inlen, unsigned char * outbuf, size_t outlen, int *err ) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
/* PLACEHOLDER: DO NOT DELETE THIS COMME... | static int SnifferDecompress(unsigned char *inbuf, size_t inlen, unsigned char *outbuf, size_t outlen, int *err) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_value = 0;
bit_m... |
CVE-2014-6431 | Wireshark | https://github.com/wireshark/wireshark | wiretap/ngsniffer.c | SnifferDecompress | static int SnifferDecompress(unsigned char *inbuf, size_t inlen, unsigned char *outbuf, size_t outlen, int *err) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_mask;
unsigned int bit_... | static int SnifferDecompress(unsigned char *inbuf, size_t inlen, unsigned char *outbuf, size_t outlen, int *err) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_mask;
unsigned int bit_... | static int SnifferDecompress( unsigned char * inbuf, size_t inlen, unsigned char * outbuf, size_t outlen, int *err ) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_mask;
unsigned int ... | static int SnifferDecompress( unsigned char * inbuf, size_t inlen, unsigned char * outbuf, size_t outlen, int *err ) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_mask;
unsigned int ... | static int SnifferDecompress(unsigned char *inbuf, size_t inlen, unsigned char *outbuf, size_t outlen, int *err) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_value = 0;
bit_mask = 0... | static int SnifferDecompress(unsigned char *inbuf, size_t inlen, unsigned char *outbuf, size_t outlen, int *err) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_value = 0;
bit_mask = 0... | static int SnifferDecompress( unsigned char * inbuf, size_t inlen, unsigned char * outbuf, size_t outlen, int *err ) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
/* PLACEHOLDER: DO NOT DELETE THIS COMME... | static int SnifferDecompress( unsigned char * inbuf, size_t inlen, unsigned char * outbuf, size_t outlen, int *err ) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
/* PLACEHOLDER: DO NOT DELETE THIS COMME... | static int SnifferDecompress(unsigned char *inbuf, size_t inlen, unsigned char *outbuf, size_t outlen, int *err) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_value = 0;
bit_m... |
CVE-2014-6432 | Wireshark | https://github.com/wireshark/wireshark | wiretap/ngsniffer.c | SnifferDecompress | static int SnifferDecompress(unsigned char *inbuf, size_t inlen, unsigned char *outbuf, size_t outlen, int *err) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_mask;
unsigned int bit_... | static int SnifferDecompress(unsigned char *inbuf, size_t inlen, unsigned char *outbuf, size_t outlen, int *err) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_mask;
unsigned int bit_... | static int SnifferDecompress( unsigned char * inbuf, size_t inlen, unsigned char * outbuf, size_t outlen, int *err ) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_mask;
unsigned int ... | static int SnifferDecompress( unsigned char * inbuf, size_t inlen, unsigned char * outbuf, size_t outlen, int *err ) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_mask;
unsigned int ... | static int SnifferDecompress(unsigned char *inbuf, size_t inlen, unsigned char *outbuf, size_t outlen, int *err) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_value = 0;
bit_mask = 0... | static int SnifferDecompress(unsigned char *inbuf, size_t inlen, unsigned char *outbuf, size_t outlen, int *err) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_value = 0;
bit_mask = 0... | static int SnifferDecompress( unsigned char * inbuf, size_t inlen, unsigned char * outbuf, size_t outlen, int *err ) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
/* PLACEHOLDER: DO NOT DELETE THIS COMME... | static int SnifferDecompress( unsigned char * inbuf, size_t inlen, unsigned char * outbuf, size_t outlen, int *err ) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
/* PLACEHOLDER: DO NOT DELETE THIS COMME... | static int SnifferDecompress(unsigned char *inbuf, size_t inlen, unsigned char *outbuf, size_t outlen, int *err) {
unsigned char * pin = inbuf;
unsigned char * pout = outbuf;
unsigned char * pin_end = pin + inlen;
unsigned char * pout_end = pout + outlen;
unsigned int bit_value = 0;
bit_m... |
CVE-2014-7815 | QEMU | https://github.com/qemu/qemu | ui/vnc.c | set_pixel_format | static void set_pixel_format(VncState *vs, int bits_per_pixel, int depth, int big_endian_flag, int true_color_flag, int red_max, int green_max, int blue_max, int red_shift, int green_shift,
int blue_shift) {
if (!true_color_flag) {
vnc_client_error(vs);
return;
}
... | static void set_pixel_format(VncState *vs, int bits_per_pixel, int depth, int big_endian_flag, int true_color_flag, int red_max, int green_max, int blue_max, int red_shift, int green_shift,
int blue_shift) {
if (!true_color_flag) {
vnc_client_error(vs);
return;
}
... | static void set_pixel_format(VncState *vs, int bits_per_pixel, int depth, int big_endian_flag, int true_color_flag, int red_max, int green_max, int blue_max, int red_shift, int green_shift,
int blue_shift) {
if (!true_color_flag) {
vnc_client_error(vs);
return;
}
... | static void set_pixel_format(VncState *vs, int bits_per_pixel, int depth, int big_endian_flag, int true_color_flag, int red_max, int green_max, int blue_max, int red_shift, int green_shift,
int blue_shift) {
if (!true_color_flag) {
vnc_client_error(vs);
return;
}
... | static void set_pixel_format(VncState *vs, int bits_per_pixel, int depth, int big_endian_flag, int true_color_flag, int red_max, int green_max, int blue_max, int red_shift, int green_shift,
int blue_shift) {
if (!true_color_flag) {
return;
}
vs->client_pf.rmax = red_max;... | static void set_pixel_format(VncState *vs, int bits_per_pixel, int depth, int big_endian_flag, int true_color_flag, int red_max, int green_max, int blue_max, int red_shift, int green_shift,
int blue_shift) {
if (!true_color_flag) {
return;
}
switch (bits_per_pixel) {
... | static void set_pixel_format(VncState *vs, int bits_per_pixel, int depth, int big_endian_flag, int true_color_flag, int red_max, int green_max, int blue_max, int red_shift, int green_shift,
int blue_shift) {
if (!true_color_flag) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | static void set_pixel_format(VncState *vs, int bits_per_pixel, int depth, int big_endian_flag, int true_color_flag, int red_max, int green_max, int blue_max, int red_shift, int green_shift,
int blue_shift) {
if (!true_color_flag) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | static void set_pixel_format(VncState *vs, int bits_per_pixel, int depth, int big_endian_flag, int true_color_flag, int red_max, int green_max, int blue_max, int red_shift, int green_shift,
int blue_shift) {
if (!true_color_flag) {
return;
}
+ switch (bits_per_pixel)... |
CVE-2014-7817 | glibc | https://github.com/bminor/glibc | posix/wordexp-test.c | main | int main (int argc, char *argv[]) {
const char *globfile[] = { "one", "two", "three", NULL };
char tmpdir[32];
struct passwd *pw;
const char *cwd;
int test;
int fail = 0;
int i;
struct test_case_struct ts;
if (argc > 1) {
command_line_test (argv[1]);
return 0;
}
... | int main (int argc, char *argv[]) {
const char *globfile[] = { "one", "two", "three", NULL };
char tmpdir[32];
struct passwd *pw;
const char *cwd;
int test;
int fail = 0;
int i;
struct test_case_struct ts;
if (argc > 1) {
command_line_test (argv[1]);
return 0;
}
... | int main (int argc, char *argv[]) {
const char *globfile[] = { "one", "two", "three", NULL };
char tmpdir[32];
struct passwd *pw;
const char *cwd;
int test;
int fail = 0;
int i;
struct test_case_struct ts;
if (argc > 1) {
command_line_test (argv[1]);
return 0;
}
... | int main (int argc, char *argv[]) {
const char *globfile[] = { "one", "two", "three", NULL };
char tmpdir[32];
struct passwd *pw;
const char *cwd;
int test;
int fail = 0;
int i;
struct test_case_struct ts;
if (argc > 1) {
command_line_test (argv[1]);
return 0;
}
... | int main (int argc, char *argv[]) {
const char *globfile[] = { "one", "two", "three", NULL };
cwd = getcwd (NULL, 0);
if (mkdir (tmpdir, S_IRWXU) || chdir (tmpdir)) {
return -1;
} else {
for (i = 0; globfile[i]; ++i)
if ((fd = creat (globfile[i], S_IRUSR | S_IWUSR)) == -1 || ... | int main (int argc, char *argv[]) {
const char *globfile[] = { "one", "two", "three", NULL };
cwd = getcwd (NULL, 0);
if (mkdir (tmpdir, S_IRWXU) || chdir (tmpdir)) {
return -1;
} else {
for (i = 0; globfile[i]; ++i)
if ((fd = creat (globfile[i], S_IRUSR | S_IWUSR)) == -1 || ... | int main (int argc, char *argv[]) {
const char *globfile[] = { "one", "two", "three", NULL };
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
cwd = getcwd (NULL, 0);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (mkdir (tmpdir, S_IRWXU) || chdir (tmpdir)) {
return -1;
} else {
/* PL... | int main (int argc, char *argv[]) {
const char *globfile[] = { "one", "two", "three", NULL };
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
cwd = getcwd (NULL, 0);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (mkdir (tmpdir, S_IRWXU) || chdir (tmpdir)) {
return -1;
} else {
/* PL... | int main (int argc, char *argv[]) {
const char *globfile[] = { "one", "two", "three", NULL };
cwd = getcwd (NULL, 0);
if (mkdir (tmpdir, S_IRWXU) || chdir (tmpdir)) {
return -1;
} else {
for (i = 0; globfile[i]; ++i)
if ((fd = creat (globfile[i], S_IRUSR | S_IWUSR)) =... |
CVE-2014-7817 | glibc | https://github.com/bminor/glibc | posix/wordexp-test.c | testit | static int testit (struct test_case_struct *tc) {
int retval;
wordexp_t we, sav_we;
char *dummy;
int bzzzt = 0;
int start_offs = 0;
int i;
if (tc->env) {
setenv ("var", tc->env, 1);
} else {
unsetenv ("var");
}
if (tc->ifs) {
setenv ("IFS", tc->ifs, 1);
... | static int testit (struct test_case_struct *tc) {
int retval;
wordexp_t we, sav_we;
char *dummy;
int bzzzt = 0;
int start_offs = 0;
int i;
if (tc->env) {
setenv ("var", tc->env, 1);
} else {
unsetenv ("var");
}
if (tc->ifs) {
setenv ("IFS", tc->ifs, 1);
... | static int testit (struct test_case_struct *tc) {
int retval;
wordexp_t we, sav_we;
char *dummy;
int bzzzt = 0;
int start_offs = 0;
int i;
if (tc->env) {
setenv ("var", tc->env, 1);
} else {
unsetenv ("var");
}
if (tc->ifs) {
setenv ("IFS", tc->ifs, 1);
... | static int testit (struct test_case_struct *tc) {
int retval;
wordexp_t we, sav_we;
char *dummy;
int bzzzt = 0;
int start_offs = 0;
int i;
if (tc->env) {
setenv ("var", tc->env, 1);
} else {
unsetenv ("var");
}
if (tc->ifs) {
setenv ("IFS", tc->ifs, 1);
... | static int testit (struct test_case_struct *tc) {
we = sav_we;
printf ("Test %d (%s): ", ++tests, tc->words);
if (tc->flags & WRDE_APPEND) {
if (wordexp ("pre1 pre2", &we, tc->flags & ~WRDE_APPEND) != 0) {
return 1;
}
}
retval = wordexp (tc->words, &we, tc->flags);
if... | static int testit (struct test_case_struct *tc) {
we = sav_we;
printf ("Test %d (%s): ", ++tests, tc->words);
if (tc->flags & WRDE_NOCMD) {
registered_forks = 0;
}
if (tc->flags & WRDE_APPEND) {
if (wordexp ("pre1 pre2", &we, tc->flags & ~WRDE_APPEND) != 0) {
return 1;
... | static int testit (struct test_case_struct *tc) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
we = sav_we;
printf ("Test %d (%s): ", ++tests, tc->words);
if (tc->flags & WRDE_APPEND) {
if (wordexp ("pre1 pre2", &we, tc->flags & ~WRDE_APPEND) != 0) {
/* PLACEHOLDER: DO NOT DELETE THIS COMME... | static int testit (struct test_case_struct *tc) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
we = sav_we;
printf ("Test %d (%s): ", ++tests, tc->words);
if (tc->flags & WRDE_NOCMD) {
registered_forks = 0;
}
if (tc->flags & WRDE_APPEND) {
if (wordexp ("pre1 pre2", &we, tc->flag... | static int testit (struct test_case_struct *tc) {
we = sav_we;
printf ("Test %d (%s): ", ++tests, tc->words);
+ if (tc->flags & WRDE_NOCMD) {
+ registered_forks = 0;
+ }
if (tc->flags & WRDE_APPEND) {
if (wordexp ("pre1 pre2", &we, tc->flags & ~WRDE_APPEND) != 0) {
ret... |
CVE-2014-8176 | OpenSSL | https://github.com/openssl/openssl | ssl/d1_lib.c | dtls1_clear_queues | static void dtls1_clear_queues(SSL *s) {
pitem *item = NULL;
hm_fragment *frag = NULL;
DTLS1_RECORD_DATA *rdata;
while( (item = pqueue_pop(s->d1->unprocessed_rcds.q)) != NULL) {
rdata = (DTLS1_RECORD_DATA *) item->data;
if (rdata->rbuf.buf) {
OPENSSL_free(rdata->rbuf.buf);
... | static void dtls1_clear_queues(SSL *s) {
pitem *item = NULL;
hm_fragment *frag = NULL;
DTLS1_RECORD_DATA *rdata;
while( (item = pqueue_pop(s->d1->unprocessed_rcds.q)) != NULL) {
rdata = (DTLS1_RECORD_DATA *) item->data;
if (rdata->rbuf.buf) {
OPENSSL_free(rdata->rbuf.buf);
... | static void dtls1_clear_queues(SSL *s) {
pitem *item = NULL;
hm_fragment *frag = NULL;
DTLS1_RECORD_DATA *rdata;
while( (item = pqueue_pop(s->d1->unprocessed_rcds.q)) != NULL) {
rdata = (DTLS1_RECORD_DATA *) item->data;
if (rdata->rbuf.buf) {
OPENSSL_free(rdata->rbuf.buf);
... | static void dtls1_clear_queues(SSL *s) {
pitem *item = NULL;
hm_fragment *frag = NULL;
DTLS1_RECORD_DATA *rdata;
while( (item = pqueue_pop(s->d1->unprocessed_rcds.q)) != NULL) {
rdata = (DTLS1_RECORD_DATA *) item->data;
if (rdata->rbuf.buf) {
OPENSSL_free(rdata->rbuf.buf);
... | static void dtls1_clear_queues(SSL *s) {
while( (item = pqueue_pop(s->d1->unprocessed_rcds.q)) != NULL) {
rdata = (DTLS1_RECORD_DATA *) item->data;
if (rdata->rbuf.buf) {
OPENSSL_free(rdata->rbuf.buf);
}
OPENSSL_free(item->data);
pitem_free(item);
}
while(... | static void dtls1_clear_queues(SSL *s) {
while( (item = pqueue_pop(s->d1->unprocessed_rcds.q)) != NULL) {
rdata = (DTLS1_RECORD_DATA *) item->data;
if (rdata->rbuf.buf) {
OPENSSL_free(rdata->rbuf.buf);
}
OPENSSL_free(item->data);
pitem_free(item);
}
while(... | static void dtls1_clear_queues(SSL *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
while( (item = pqueue_pop(s->d1->unprocessed_rcds.q)) != NULL) {
rdata = (DTLS1_RECORD_DATA *) item->data;
if (rdata->rbuf.buf) {
OPENSSL_free(rdata->rbuf.buf);
}
OPENSSL_free(item-... | static void dtls1_clear_queues(SSL *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
while( (item = pqueue_pop(s->d1->unprocessed_rcds.q)) != NULL) {
rdata = (DTLS1_RECORD_DATA *) item->data;
if (rdata->rbuf.buf) {
OPENSSL_free(rdata->rbuf.buf);
}
OPENSSL_free(item-... | static void dtls1_clear_queues(SSL *s) {
while( (item = pqueue_pop(s->d1->unprocessed_rcds.q)) != NULL) {
rdata = (DTLS1_RECORD_DATA *) item->data;
if (rdata->rbuf.buf) {
OPENSSL_free(rdata->rbuf.buf);
}
OPENSSL_free(item->data);
pitem_free(item);
}
... |
CVE-2014-8275 | OpenSSL | https://github.com/openssl/openssl | crypto/asn1/a_verify.c | ASN1_item_verify | int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a, ASN1_BIT_STRG *signature, void *asn, EVP_PKEY *pkey) {
EVP_MD_CTX ctx;
unsigned char *buf_in=NULL;
int ret= -1,inl;
int mdnid, pknid;
if (!pkey) {
ASN1err(ASN1_F_ASN1_ITEM_VERIFY, ERR_R_PASSED_NULL_PARAMETER);
return -1;
}
... | int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a, ASN1_BIT_STRG *signature, void *asn, EVP_PKEY *pkey) {
EVP_MD_CTX ctx;
unsigned char *buf_in=NULL;
int ret= -1,inl;
int mdnid, pknid;
if (!pkey) {
ASN1err(ASN1_F_ASN1_ITEM_VERIFY, ERR_R_PASSED_NULL_PARAMETER);
return -1;
}
... | int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a, ASN1_BIT_STRG *signature, void *asn, EVP_PKEY *pkey) {
EVP_MD_CTX ctx;
const EVP_MD *type;
unsigned char *buf_in=NULL;
int ret= -1,i,inl;
if (!pkey) {
ASN1err(ASN1_F_ASN1_ITEM_VERIFY, ERR_R_PASSED_NULL_PARAMETER);
return -1;
... | int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a, ASN1_BIT_STRG *signature, void *asn, EVP_PKEY *pkey) {
EVP_MD_CTX ctx;
const EVP_MD *type;
unsigned char *buf_in=NULL;
int ret= -1,i,inl;
if (!pkey) {
ASN1err(ASN1_F_ASN1_ITEM_VERIFY, ERR_R_PASSED_NULL_PARAMETER);
return -1;
... | int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a, ASN1_BIT_STRG *signature, void *asn, EVP_PKEY *pkey) {
if (signature->type == V_ASN1_BIT_STRG && signature->flags & 0x7) {
ASN1err(ASN1_F_ASN1_VERIFY, ASN1_R_VALID_BIT_STRG_BITS_LEFT);
return -1;
}
}
| int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a, ASN1_BIT_STRG *signature, void *asn, EVP_PKEY *pkey) {
if (signature->type == V_ASN1_BIT_STRG && signature->flags & 0x7) {
ASN1err(ASN1_F_ASN1_ITEM_VERIFY, ASN1_R_VALID_BIT_STRG_BITS_LEFT);
return -1;
}
}
| int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a, ASN1_BIT_STRG *signature, void *asn, EVP_PKEY *pkey) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (signature->type == V_ASN1_BIT_STRG && signature->flags & 0x7) {
ASN1err(ASN1_F_ASN1_VERIFY, ASN1_R_VALID_BIT_STRG_BITS_LEFT);
return -... | int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a, ASN1_BIT_STRG *signature, void *asn, EVP_PKEY *pkey) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (signature->type == V_ASN1_BIT_STRG && signature->flags & 0x7) {
ASN1err(ASN1_F_ASN1_ITEM_VERIFY, ASN1_R_VALID_BIT_STRG_BITS_LEFT);
ret... | int ASN1_item_verify(const ASN1_ITEM *it, X509_ALGOR *a, ASN1_BIT_STRG *signature, void *asn, EVP_PKEY *pkey) {
if (signature->type == V_ASN1_BIT_STRG && signature->flags & 0x7) {
- ASN1err(ASN1_F_ASN1_VERIFY, ASN1_R_VALID_BIT_STRG_BITS_LEFT);
+ ASN1err(ASN1_F_ASN1_ITEM_VERIFY, ASN1_R_VALID_BIT_STRG... |
CVE-2014-8543 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/mmvideo.c | mm_decode_intra | static int mm_decode_intra(MmContext * s, int half_horiz, int half_vert) {
int x = 0, y = 0;
while (bytestream2_get_bytes_left(&s->gb) > 0) {
int run_length, color;
if (y >= s->avctx->height) {
return 0;
}
color = bytestream2_get_byte(&s->gb);
if (color & 0x80... | static int mm_decode_intra(MmContext * s, int half_horiz, int half_vert) {
int x = 0, y = 0;
while (bytestream2_get_bytes_left(&s->gb) > 0) {
int run_length, color;
if (y >= s->avctx->height) {
return 0;
}
color = bytestream2_get_byte(&s->gb);
if (color & 0x80... | static int mm_decode_intra(MmContext * s, int half_horiz, int half_vert) {
int i, x, y;
i=0; x=0; y=0;
while (bytestream2_get_bytes_left(&s->gb) > 0) {
int run_length, color;
if (y >= s->avctx->height) {
return 0;
}
color = bytestream2_get_byte(&s->gb);
if... | static int mm_decode_intra(MmContext * s, int half_horiz, int half_vert) {
int i, x, y;
i=0; x=0; y=0;
while (bytestream2_get_bytes_left(&s->gb) > 0) {
int run_length, color;
if (y >= s->avctx->height) {
return 0;
}
color = bytestream2_get_byte(&s->gb);
if... | static int mm_decode_intra(MmContext * s, int half_horiz, int half_vert) {
int x = 0, y = 0;
while (bytestream2_get_bytes_left(&s->gb) > 0) {
int run_length, color;
if (y >= s->avctx->height) {
return 0;
}
color = bytestream2_get_byte(&s->gb);
if (color & 0x80... | static int mm_decode_intra(MmContext * s, int half_horiz, int half_vert) {
int x = 0, y = 0;
while (bytestream2_get_bytes_left(&s->gb) > 0) {
int run_length, color;
if (y >= s->avctx->height) {
return 0;
}
color = bytestream2_get_byte(&s->gb);
if (color & 0x80... | static int mm_decode_intra(MmContext * s, int half_horiz, int half_vert) {
int i, x, y;
i=0; x=0; y=0;
while (bytestream2_get_bytes_left(&s->gb) > 0) {
int run_length, color;
if (y >= s->avctx->height) {
return 0;
}
color = bytestream2_get_byte(&s->gb);
if... | static int mm_decode_intra(MmContext * s, int half_horiz, int half_vert) {
int i, x, y;
i=0; x=0; y=0;
while (bytestream2_get_bytes_left(&s->gb) > 0) {
int run_length, color;
if (y >= s->avctx->height) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}
color = byte... | static int mm_decode_intra(MmContext * s, int half_horiz, int half_vert) {
int x = 0, y = 0;
while (bytestream2_get_bytes_left(&s->gb) > 0) {
int run_length, color;
if (y >= s->avctx->height) {
return 0;
}
color = bytestream2_get_byte(&s->gb);
if (col... |
CVE-2014-8544 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/tiff.c | tiff_decode_tag | static int tiff_decode_tag(TiffContext *s, AVFrame *frame) {
unsigned tag, type, count, off, value = 0, value2 = 0;
int i, start;
int pos;
int ret;
double *dp;
ret = ff_tread_tag(&s->gb, s->le, &tag, &type, &count, &start);
if (ret < 0) {
goto end;
}
off = bytestream2_tell(&s... | static int tiff_decode_tag(TiffContext *s, AVFrame *frame) {
unsigned tag, type, count, off, value = 0, value2 = 0;
int i, start;
int pos;
int ret;
double *dp;
ret = ff_tread_tag(&s->gb, s->le, &tag, &type, &count, &start);
if (ret < 0) {
goto end;
}
off = bytestream2_tell(&s... | static int tiff_decode_tag(TiffContext *s) {
unsigned tag, type, count, off, value = 0;
int i, start;
uint32_t *pal;
if (bytestream2_get_bytes_left(&s->gb) < 12) {
return -1;
}
tag = tget_short(&s->gb, s->le);
type = tget_short(&s->gb, s->le);
count = tget_long(&s->gb, s->le);
... | static int tiff_decode_tag(TiffContext *s) {
unsigned tag, type, count, off, value = 0;
int i, start;
uint32_t *pal;
if (bytestream2_get_bytes_left(&s->gb) < 12) {
return -1;
}
tag = tget_short(&s->gb, s->le);
type = tget_short(&s->gb, s->le);
count = tget_long(&s->gb, s->le);
... | static int tiff_decode_tag(TiffContext *s, AVFrame *frame) {
unsigned tag, type, count, off, value = 0, value2 = 0;
ret = ff_tread_tag(&s->gb, s->le, &tag, &type, &count, &start);
if (count == 1) {
switch (type) {
case TIFF_LONG:
value = ff_tget(&s->gb, type, s->le);
... | static int tiff_decode_tag(TiffContext *s, AVFrame *frame) {
unsigned tag, type, count, off, value = 0, value2 = 0;
ret = ff_tread_tag(&s->gb, s->le, &tag, &type, &count, &start);
if (count == 1) {
switch (type) {
case TIFF_LONG:
value = ff_tget(&s->gb, type, s->le);
... | static int tiff_decode_tag(TiffContext *s) {
unsigned tag, type, count, off, value = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
uint32_t *pal;
if (bytestream2_get_bytes_left(&s->gb) < 12) {
return -1;
}
tag = tget_short(&s->gb, s->le);
type = tget_short(&s->gb, s->le);
coun... | static int tiff_decode_tag(TiffContext *s) {
unsigned tag, type, count, off, value = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
uint32_t *pal;
if (bytestream2_get_bytes_left(&s->gb) < 12) {
return -1;
}
tag = tget_short(&s->gb, s->le);
type = tget_short(&s->gb, s->le);
coun... | static int tiff_decode_tag(TiffContext *s, AVFrame *frame) {
unsigned tag, type, count, off, value = 0, value2 = 0;
ret = ff_tread_tag(&s->gb, s->le, &tag, &type, &count, &start);
if (count == 1) {
switch (type) {
case TIFF_LONG:
value = ff_tget(&s->gb, type, s->le);
... |
CVE-2014-8546 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/cinepak.c | cinepak_decode_vectors | static int cinepak_decode_vectors (CinepakContext *s, cvid_strip *strip, int chunk_id, int size, const uint8_t *data) {
const uint8_t *eod = (data + size);
uint32_t flag, mask;
uint8_t *cb0, *cb1, *cb2, *cb3;
unsigned int x, y;
char *ip0, *ip1, *ip2, *ip3;
flag = 0;
mask = 0;
for (y=stri... | static int cinepak_decode_vectors (CinepakContext *s, cvid_strip *strip, int chunk_id, int size, const uint8_t *data) {
const uint8_t *eod = (data + size);
uint32_t flag, mask;
uint8_t *cb0, *cb1, *cb2, *cb3;
int x, y;
char *ip0, *ip1, *ip2, *ip3;
flag = 0;
mask = 0;
for (y=strip->y1; y ... | static int cinepak_decode_vectors (CinepakContext *s, cvid_strip *strip, int chunk_id, int size, const uint8_t *data) {
const uint8_t *eod = (data + size);
uint32_t flag, mask;
uint8_t *cb0, *cb1, *cb2, *cb3;
unsigned int x, y;
char *ip0, *ip1, *ip2, *ip3;
flag = 0;
mask = 0;
for (y=stri... | static int cinepak_decode_vectors (CinepakContext *s, cvid_strip *strip, int chunk_id, int size, const uint8_t *data) {
const uint8_t *eod = (data + size);
uint32_t flag, mask;
uint8_t *cb0, *cb1, *cb2, *cb3;
int x, y;
char *ip0, *ip1, *ip2, *ip3;
flag = 0;
mask = 0;
for (y=strip->y1; y ... | static int cinepak_decode_vectors (CinepakContext *s, cvid_strip *strip, int chunk_id, int size, const uint8_t *data) {
uint8_t *cb0, *cb1, *cb2, *cb3;
unsigned int x, y;
char *ip0, *ip1, *ip2, *ip3;
}
| static int cinepak_decode_vectors (CinepakContext *s, cvid_strip *strip, int chunk_id, int size, const uint8_t *data) {
uint8_t *cb0, *cb1, *cb2, *cb3;
int x, y;
char *ip0, *ip1, *ip2, *ip3;
}
| static int cinepak_decode_vectors (CinepakContext *s, cvid_strip *strip, int chunk_id, int size, const uint8_t *data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
uint8_t *cb0, *cb1, *cb2, *cb3;
unsigned int x, y;
char *ip0, *ip1, *ip2, *ip3;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}
| static int cinepak_decode_vectors (CinepakContext *s, cvid_strip *strip, int chunk_id, int size, const uint8_t *data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
uint8_t *cb0, *cb1, *cb2, *cb3;
int x, y;
char *ip0, *ip1, *ip2, *ip3;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} | static int cinepak_decode_vectors (CinepakContext *s, cvid_strip *strip, int chunk_id, int size, const uint8_t *data) {
uint8_t *cb0, *cb1, *cb2, *cb3;
- unsigned int x, y;
+ int x, y;
char *ip0, *ip1, *ip2, *ip3;
} |
CVE-2014-8547 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/gifdec.c | gif_read_image | static int gif_read_image(GifState *s, AVFrame *frame) {
int left, top, width, height, bits_per_pixel, code_size, flags, pw;
int is_interleaved, has_local_palette, y, pass, y1, linesize, pal_size;
uint32_t *ptr, *pal, *px, *pr, *ptr1;
int ret;
uint8_t *idx;
if (bytestream2_get_bytes_left(&s->gb)... | static int gif_read_image(GifState *s, AVFrame *frame) {
int left, top, width, height, bits_per_pixel, code_size, flags, pw;
int is_interleaved, has_local_palette, y, pass, y1, linesize, pal_size;
uint32_t *ptr, *pal, *px, *pr, *ptr1;
int ret;
uint8_t *idx;
if (bytestream2_get_bytes_left(&s->gb)... | static int gif_read_image(GifState *s) {
int left, top, width, height, bits_per_pixel, code_size, flags;
int is_interleaved, has_local_palette, y, pass, y1, linesize, n, i;
uint8_t *ptr, *spal, *palette, *ptr1;
left = bytestream_get_le16(&s->bytestream);
top = bytestream_get_le16(&s->bytestream);
... | static int gif_read_image(GifState *s) {
int left, top, width, height, bits_per_pixel, code_size, flags;
int is_interleaved, has_local_palette, y, pass, y1, linesize, n, i;
uint8_t *ptr, *spal, *palette, *ptr1;
left = bytestream_get_le16(&s->bytestream);
top = bytestream_get_le16(&s->bytestream);
... | static int gif_read_image(GifState *s, AVFrame *frame) {
left = bytestream2_get_le16u(&s->gb);
top = bytestream2_get_le16u(&s->gb);
width = bytestream2_get_le16u(&s->gb);
height = bytestream2_get_le16u(&s->gb);
flags = bytestream2_get_byteu(&s->gb);
is_interleaved = flags & 0x40;
has_local_p... | static int gif_read_image(GifState *s, AVFrame *frame) {
left = bytestream2_get_le16u(&s->gb);
top = bytestream2_get_le16u(&s->gb);
width = bytestream2_get_le16u(&s->gb);
height = bytestream2_get_le16u(&s->gb);
flags = bytestream2_get_byteu(&s->gb);
is_interleaved = flags & 0x40;
has_local_p... | static int gif_read_image(GifState *s) {
int left, top, width, height, bits_per_pixel, code_size, flags;
int is_interleaved, has_local_palette, y, pass, y1, linesize, n, i;
uint8_t *ptr, *spal, *palette, *ptr1;
left = bytestream_get_le16(&s->bytestream);
top = bytestream_get_le16(&s->bytestream);
... | static int gif_read_image(GifState *s) {
int left, top, width, height, bits_per_pixel, code_size, flags;
int is_interleaved, has_local_palette, y, pass, y1, linesize, n, i;
uint8_t *ptr, *spal, *palette, *ptr1;
left = bytestream_get_le16(&s->bytestream);
top = bytestream_get_le16(&s->bytestream);
... | static int gif_read_image(GifState *s, AVFrame *frame) {
left = bytestream2_get_le16u(&s->gb);
top = bytestream2_get_le16u(&s->gb);
width = bytestream2_get_le16u(&s->gb);
height = bytestream2_get_le16u(&s->gb);
flags = bytestream2_get_byteu(&s->gb);
is_interleaved = flags & 0x40;
has... |
CVE-2014-8710 | Wireshark | https://github.com/wireshark/wireshark | epan/sigcomp-udvm.c | decompress_sigcomp_message | 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 *deco... | 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 *deco... | 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 *deco... | 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 *deco... | 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) {
switch ( curre... | 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) {
switch ( curre... | 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... | 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... | 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) {
switch ( cu... |
CVE-2014-8714 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-tn5250.c | dissect_write_structured_field | static guint32 dissect_write_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset) {
int start = offset;
guint16 sf_length = 0;
int length, type, done = 0, used = 0;
hf_items standard_fields[] = {
{ &hf_tn5250_sf_length, 0, 2, 0, ENC_BIG_ENDIAN }, { &hf_tn5250_sf_class, 0, 1, 0, ... | static guint32 dissect_write_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset) {
int start = offset;
guint16 sf_length = 0;
int length, type, done = 0, used = 0;
hf_items standard_fields[] = {
{ &hf_tn5250_sf_length, 0, 2, 0, ENC_BIG_ENDIAN }, { &hf_tn5250_sf_class, 0, 1, 0, ... | static guint32 dissect_write_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset) {
int start = offset;
guint16 sf_length = 0;
int length, type, done = 0, used = 0;
hf_items standard_fields[] = {
{ hf_tn5250_sf_length, 0, 2, 0, ENC_BIG_ENDIAN }, { hf_tn5250_sf_class, 0, 1, 0, EN... | static guint32 dissect_write_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset) {
int start = offset;
guint16 sf_length = 0;
int length, type, done = 0, used = 0;
hf_items standard_fields[] = {
{ hf_tn5250_sf_length, 0, 2, 0, ENC_BIG_ENDIAN }, { hf_tn5250_sf_class, 0, 1, 0, EN... | static guint32 dissect_write_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset) {
int start = offset;
int length, type, done = 0, used = 0;
hf_items standard_fields[] = {
{ &hf_tn5250_sf_length, 0, 2, 0, ENC_BIG_ENDIAN }, { &hf_tn5250_sf_class, 0, 1, 0, ENC_BIG_ENDIAN }, { &hf_tn5... | static guint32 dissect_write_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset) {
int start = offset;
int length, type, done = 0, used = 0;
hf_items standard_fields[] = {
{ &hf_tn5250_sf_length, 0, 2, 0, ENC_BIG_ENDIAN }, { &hf_tn5250_sf_class, 0, 1, 0, ENC_BIG_ENDIAN }, { &hf_tn5... | static guint32 dissect_write_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset) {
int start = offset;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int length, type, done = 0, used = 0;
hf_items standard_fields[] = {
{ hf_tn5250_sf_length, 0, 2, 0, ENC_BIG_ENDIAN }, { hf_tn525... | static guint32 dissect_write_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset) {
int start = offset;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int length, type, done = 0, used = 0;
hf_items standard_fields[] = {
{ hf_tn5250_sf_length, 0, 2, 0, ENC_BIG_ENDIAN }, { hf_tn525... | static guint32 dissect_write_structured_field(proto_tree *tn5250_tree, tvbuff_t *tvb, gint offset) {
int start = offset;
int length, type, done = 0, used = 0;
hf_items standard_fields[] = {
{ &hf_tn5250_sf_length, 0, 2, 0, ENC_BIG_ENDIAN }, { &hf_tn5250_sf_class, 0, 1, 0, ENC_BIG_ENDIAN }, { &h... |
CVE-2014-9050 | ClamAV | https://github.com/Cisco-Talos/clamav | libclamav/pe.c | cli_scanpe | int cli_scanpe(cli_ctx *ctx) {
uint16_t e_magic;
uint16_t nsections;
uint32_t e_lfanew;
uint32_t ep, vep;
uint8_t polipos = 0;
time_t timestamp;
struct pe_image_file_hdr file_hdr;
union {
struct pe_image_optional_hdr64 opt64;
struct pe_image_optional_hdr32 opt32;
} pe... | int cli_scanpe(cli_ctx *ctx) {
uint16_t e_magic;
uint16_t nsections;
uint32_t e_lfanew;
uint32_t ep, vep;
uint8_t polipos = 0;
time_t timestamp;
struct pe_image_file_hdr file_hdr;
union {
struct pe_image_optional_hdr64 opt64;
struct pe_image_optional_hdr32 opt32;
} pe... | int cli_scanpe(cli_ctx *ctx) {
uint16_t e_magic;
uint16_t nsections;
uint32_t e_lfanew;
uint32_t ep, vep;
uint8_t polipos = 0;
time_t timestamp;
struct pe_image_file_hdr file_hdr;
union {
struct pe_image_optional_hdr64 opt64;
struct pe_image_optional_hdr32 opt32;
} pe... | int cli_scanpe(cli_ctx *ctx) {
uint16_t e_magic;
uint16_t nsections;
uint32_t e_lfanew;
uint32_t ep, vep;
uint8_t polipos = 0;
time_t timestamp;
struct pe_image_file_hdr file_hdr;
union {
struct pe_image_optional_hdr64 opt64;
struct pe_image_optional_hdr32 opt32;
} pe... | int cli_scanpe(cli_ctx *ctx) {
uint8_t polipos = 0;
ssize_t bytes, at;
unsigned int i, found, upx_success = 0, min = 0, max = 0, err, overlays = 0;
unsigned int ssize = 0, dsize = 0, dll = 0, pe_plus = 0, corrupted_cur;
size_t fsize;
uint32_t valign, falign, hdr_size, j;
struct cli_exe_secti... | int cli_scanpe(cli_ctx *ctx) {
uint8_t polipos = 0;
ssize_t bytes, at;
unsigned int i, j, found, upx_success = 0, min = 0, max = 0, err, overlays = 0, rescan = 1;
unsigned int ssize = 0, dsize = 0, dll = 0, pe_plus = 0, corrupted_cur;
size_t fsize;
uint32_t valign, falign, hdr_size;
struct c... | int cli_scanpe(cli_ctx *ctx) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
uint8_t polipos = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ssize_t bytes, at;
unsigned int i, found, upx_success = 0, min = 0, max = 0, err, overlays = 0;
unsigned int ssize = 0, dsize = 0, dll = 0, pe_plus = 0,... | int cli_scanpe(cli_ctx *ctx) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
uint8_t polipos = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ssize_t bytes, at;
unsigned int i, j, found, upx_success = 0, min = 0, max = 0, err, overlays = 0, rescan = 1;
unsigned int ssize = 0, dsize = 0, dll = ... | int cli_scanpe(cli_ctx *ctx) {
uint8_t polipos = 0;
ssize_t bytes, at;
- unsigned int i, found, upx_success = 0, min = 0, max = 0, err, overlays = 0;
+ unsigned int i, j, found, upx_success = 0, min = 0, max = 0, err, overlays = 0, rescan = 1;
unsigned int ssize = 0, dsize = 0, dll = 0, pe_plus = ... |
CVE-2014-9316 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/mjpegdec.c | mjpeg_decode_app | static int mjpeg_decode_app(MJpegDecodeContext *s) {
int len, id, i;
len = get_bits(&s->gb, 16);
if (len < 6) {
return AVERROR_VALIDDATA;
}
if (8 * len > get_bits_left(&s->gb)) {
return AVERROR_VALIDDATA;
}
id = get_bits_long(&s->gb, 32);
len -= 6;
if (s->avctx->debug... | static int mjpeg_decode_app(MJpegDecodeContext *s) {
int len, id, i;
len = get_bits(&s->gb, 16);
if (len < 6) {
return AVERROR_VALIDDATA;
}
if (8 * len > get_bits_left(&s->gb)) {
return AVERROR_VALIDDATA;
}
id = get_bits_long(&s->gb, 32);
len -= 6;
if (s->avctx->debug... | static int mjpeg_decode_app(MJpegDecodeContext *s) {
int len, id, i;
len = get_bits(&s->gb, 16);
if (len < 5) {
return AVERROR_VALIDDATA;
}
if (8 * len > get_bits_left(&s->gb)) {
return AVERROR_VALIDDATA;
}
id = get_bits_long(&s->gb, 32);
len -= 6;
if (s->avctx->debug... | static int mjpeg_decode_app(MJpegDecodeContext *s) {
int len, id, i;
len = get_bits(&s->gb, 16);
if (len < 5) {
return AVERROR_VALIDDATA;
}
if (8 * len > get_bits_left(&s->gb)) {
return AVERROR_VALIDDATA;
}
id = get_bits_long(&s->gb, 32);
len -= 6;
if (s->avctx->debug... | static int mjpeg_decode_app(MJpegDecodeContext *s) {
len = get_bits(&s->gb, 16);
if (len < 6) {
return AVERROR_VALIDDATA;
}
if (8 * len > get_bits_left(&s->gb)) {
return AVERROR_VALIDDATA;
}
id = get_bits_long(&s->gb, 32);
len -= 6;
if (s->avctx->debug & FF_DEBUG_STARTCOD... | static int mjpeg_decode_app(MJpegDecodeContext *s) {
len = get_bits(&s->gb, 16);
if (len < 6) {
return AVERROR_VALIDDATA;
}
if (8 * len > get_bits_left(&s->gb)) {
return AVERROR_VALIDDATA;
}
id = get_bits_long(&s->gb, 32);
len -= 6;
if (s->avctx->debug & FF_DEBUG_STARTCOD... | static int mjpeg_decode_app(MJpegDecodeContext *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
len = get_bits(&s->gb, 16);
if (len < 5) {
return AVERROR_VALIDDATA;
}
if (8 * len > get_bits_left(&s->gb)) {
return AVERROR_VALIDDATA;
}
id = get_bits_long(&s->gb, 32);
len... | static int mjpeg_decode_app(MJpegDecodeContext *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
len = get_bits(&s->gb, 16);
if (len < 5) {
return AVERROR_VALIDDATA;
}
if (8 * len > get_bits_left(&s->gb)) {
return AVERROR_VALIDDATA;
}
id = get_bits_long(&s->gb, 32);
len... | static int mjpeg_decode_app(MJpegDecodeContext *s) {
len = get_bits(&s->gb, 16);
if (len < 6) {
return AVERROR_VALIDDATA;
}
if (8 * len > get_bits_left(&s->gb)) {
return AVERROR_VALIDDATA;
}
id = get_bits_long(&s->gb, 32);
len -= 6;
if (s->avctx->debug & FF_DEB... |
CVE-2014-9319 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/hevc_ps.c | ff_hevc_decode_nal_sps | int ff_hevc_decode_nal_sps(HEVCContext *s) {
const AVPixFmtDescriptor *desc;
GetBitContext *gb = &s->HEVClc->gb;
int ret = 0;
unsigned int sps_id = 0;
int log2_diff_max_min_transform_block_size;
int bit_depth_chroma, start, vui_present, sublayer_ordering_info;
int i;
HEVCSPS *sps;
AV... | int ff_hevc_decode_nal_sps(HEVCContext *s) {
const AVPixFmtDescriptor *desc;
GetBitContext *gb = &s->HEVClc->gb;
int ret = 0;
unsigned int sps_id = 0;
int log2_diff_max_min_transform_block_size;
int bit_depth_chroma, start, vui_present, sublayer_ordering_info;
int i;
HEVCSPS *sps;
AV... | int ff_hevc_decode_nal_sps(HEVCContext *s) {
const AVPixFmtDescriptor *desc;
GetBitContext *gb = &s->HEVClc->gb;
int ret = 0;
unsigned int sps_id = 0;
int log2_diff_max_min_transform_block_size;
int bit_depth_chroma, start, vui_present, sublayer_ordering_info;
int i;
HEVCSPS *sps;
AV... | int ff_hevc_decode_nal_sps(HEVCContext *s) {
const AVPixFmtDescriptor *desc;
GetBitContext *gb = &s->HEVClc->gb;
int ret = 0;
unsigned int sps_id = 0;
int log2_diff_max_min_transform_block_size;
int bit_depth_chroma, start, vui_present, sublayer_ordering_info;
int i;
HEVCSPS *sps;
AV... | int ff_hevc_decode_nal_sps(HEVCContext *s) {
GetBitContext *gb = &s->HEVClc->gb;
AVBufferRef *sps_buf = av_buffer_allocz(sizeof(*sps));
if (!sps_buf) {
return AVERROR(ENOMEM);
}
sps = (HEVCSPS*)sps_buf->data;
sps->vps_id = get_bits(gb, 4);
sps->max_sub_layers = get_bits(gb, 3) + 1;
... | int ff_hevc_decode_nal_sps(HEVCContext *s) {
GetBitContext *gb = &s->HEVClc->gb;
AVBufferRef *sps_buf = av_buffer_allocz(sizeof(*sps));
if (!sps_buf) {
return AVERROR(ENOMEM);
}
sps = (HEVCSPS*)sps_buf->data;
sps->vps_id = get_bits(gb, 4);
sps->max_sub_layers = get_bits(gb, 3) + 1;
... | int ff_hevc_decode_nal_sps(HEVCContext *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
GetBitContext *gb = &s->HEVClc->gb;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
AVBufferRef *sps_buf = av_buffer_allocz(sizeof(*sps));
if (!sps_buf) {
return AVERROR(ENOMEM);
}
sps = (HEVCSPS... | int ff_hevc_decode_nal_sps(HEVCContext *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
GetBitContext *gb = &s->HEVClc->gb;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
AVBufferRef *sps_buf = av_buffer_allocz(sizeof(*sps));
if (!sps_buf) {
return AVERROR(ENOMEM);
}
sps = (HEVCSPS... | int ff_hevc_decode_nal_sps(HEVCContext *s) {
GetBitContext *gb = &s->HEVClc->gb;
AVBufferRef *sps_buf = av_buffer_allocz(sizeof(*sps));
if (!sps_buf) {
return AVERROR(ENOMEM);
}
sps = (HEVCSPS*)sps_buf->data;
sps->vps_id = get_bits(gb, 4);
sps->max_sub_layers = get_bits(gb, ... |
CVE-2014-9604 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/utvideodec.c | restore_median | static void restore_median(uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) {
int i, j, slice;
int A, B, C;
uint8_t *bsrc;
int slice_start, slice_height;
const int cmask = ~rmode;
for (slice = 0; slice < slices; slice++) {
slice_start = ((slice * height) ... | static void restore_median(uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) {
int i, j, slice;
int A, B, C;
uint8_t *bsrc;
int slice_start, slice_height;
const int cmask = ~rmode;
for (slice = 0; slice < slices; slice++) {
slice_start = ((slice * height) ... | static void restore_median(uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) {
int i, j, slice;
int A, B, C;
uint8_t *bsrc;
int slice_start, slice_height;
const int cmask = ~rmode;
for (slice = 0; slice < slices; slice++) {
slice_start = ((slice * height) ... | static void restore_median(uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) {
int i, j, slice;
int A, B, C;
uint8_t *bsrc;
int slice_start, slice_height;
const int cmask = ~rmode;
for (slice = 0; slice < slices; slice++) {
slice_start = ((slice * height) ... | static void restore_median(uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) {
const int cmask = ~rmode;
for (slice = 0; slice < slices; slice++) {
slice_start = ((slice * height) / slices) & cmask;
slice_height = ((((slice + 1) * height) / slices) & cmask) - slic... | static void restore_median(uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) {
const int cmask = ~rmode;
for (slice = 0; slice < slices; slice++) {
slice_start = ((slice * height) / slices) & cmask;
slice_height = ((((slice + 1) * height) / slices) & cmask) - slic... | static void restore_median(uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const int cmask = ~rmode;
for (slice = 0; slice < slices; slice++) {
slice_start = ((slice * height) / slices) & cmask;
slice_height = ... | static void restore_median(uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const int cmask = ~rmode;
for (slice = 0; slice < slices; slice++) {
slice_start = ((slice * height) / slices) & cmask;
slice_height = ... | static void restore_median(uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) {
const int cmask = ~rmode;
for (slice = 0; slice < slices; slice++) {
slice_start = ((slice * height) / slices) & cmask;
slice_height = ((((slice + 1) * height) / slices) & cmask) -... |
CVE-2014-9604 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/utvideodec.c | restore_median_il | static void restore_median_il(uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) {
int i, j, slice;
int A, B, C;
uint8_t *bsrc;
int slice_start, slice_height;
const int cmask = ~(rmode ? 3 : 1);
const int stride2 = stride << 1;
for (slice = 0; slice < slices; s... | static void restore_median_il(uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) {
int i, j, slice;
int A, B, C;
uint8_t *bsrc;
int slice_start, slice_height;
const int cmask = ~(rmode ? 3 : 1);
const int stride2 = stride << 1;
for (slice = 0; slice < slices; s... | static void restore_median_il(uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) {
int i, j, slice;
int A, B, C;
uint8_t *bsrc;
int slice_start, slice_height;
const int cmask = ~(rmode ? 3 : 1);
const int stride2 = stride << 1;
for (slice = 0; slice < slices; s... | static void restore_median_il(uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) {
int i, j, slice;
int A, B, C;
uint8_t *bsrc;
int slice_start, slice_height;
const int cmask = ~(rmode ? 3 : 1);
const int stride2 = stride << 1;
for (slice = 0; slice < slices; s... | static void restore_median_il(uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) {
const int cmask = ~(rmode ? 3 : 1);
for (slice = 0; slice < slices; slice++) {
slice_start = ((slice * height) / slices) & cmask;
slice_height = ((((slice + 1) * height) / slices) & ... | static void restore_median_il(uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) {
const int cmask = ~(rmode ? 3 : 1);
for (slice = 0; slice < slices; slice++) {
slice_start = ((slice * height) / slices) & cmask;
slice_height = ((((slice + 1) * height) / slices) & ... | static void restore_median_il(uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const int cmask = ~(rmode ? 3 : 1);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
for (slice = 0; slice < slices; slice++) {
slice_start... | static void restore_median_il(uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const int cmask = ~(rmode ? 3 : 1);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
for (slice = 0; slice < slices; slice++) {
slice_start... | static void restore_median_il(uint8_t *src, int step, int stride, int width, int height, int slices, int rmode) {
const int cmask = ~(rmode ? 3 : 1);
for (slice = 0; slice < slices; slice++) {
slice_start = ((slice * height) / slices) & cmask;
slice_height = ((((slice + 1) * height) / slice... |
CVE-2014-9984 | glibc | https://github.com/bminor/glibc | nscd/netgroupcache.c | addgetnetgrentX | static time_t addgetnetgrentX (struct database_dyn *db, int fd, request_header *req, const char *key, uid_t uid, struct hashentry *he, struct datahead *dh, struct dataset **resultp) {
if (__glibc_unlikely (debug_level > 0)) {
if (he == NULL) {
dbg_log (_("Haven't found \"%s\" in netgroup cache!"... | static time_t addgetnetgrentX (struct database_dyn *db, int fd, request_header *req, const char *key, uid_t uid, struct hashentry *he, struct datahead *dh, struct dataset **resultp) {
if (__glibc_unlikely (debug_level > 0)) {
if (he == NULL) {
dbg_log (_("Haven't found \"%s\" in netgroup cache!"... | static time_t addgetnetgrentX (struct database_dyn *db, int fd, request_header *req, const char *key, uid_t uid, struct hashentry *he, struct datahead *dh, struct dataset **resultp) {
if (__builtin_expect (debug_level > 0, 0)) {
if (he == NULL) {
dbg_log (_("Haven't found \"%s\" in netgroup cach... | static time_t addgetnetgrentX (struct database_dyn *db, int fd, request_header *req, const char *key, uid_t uid, struct hashentry *he, struct datahead *dh, struct dataset **resultp) {
if (__builtin_expect (debug_level > 0, 0)) {
if (he == NULL) {
dbg_log (_("Haven't found \"%s\" in netgroup cach... | static time_t addgetnetgrentX (struct database_dyn *db, int fd, request_header *req, const char *key, uid_t uid, struct hashentry *he, struct datahead *dh, struct dataset **resultp) {
if (__glibc_unlikely (debug_level > 0)) {
if (he == NULL) {
} else {
}
}
size_t buflen = MAX (1024, ... | static time_t addgetnetgrentX (struct database_dyn *db, int fd, request_header *req, const char *key, uid_t uid, struct hashentry *he, struct datahead *dh, struct dataset **resultp) {
if (__glibc_unlikely (debug_level > 0)) {
if (he == NULL) {
} else {
}
}
size_t buflen = MAX (1024, ... | static time_t addgetnetgrentX (struct database_dyn *db, int fd, request_header *req, const char *key, uid_t uid, struct hashentry *he, struct datahead *dh, struct dataset **resultp) {
if (__builtin_expect (debug_level > 0, 0)) {
if (he == NULL) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} e... | static time_t addgetnetgrentX (struct database_dyn *db, int fd, request_header *req, const char *key, uid_t uid, struct hashentry *he, struct datahead *dh, struct dataset **resultp) {
if (__builtin_expect (debug_level > 0, 0)) {
if (he == NULL) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} e... | static time_t addgetnetgrentX (struct database_dyn *db, int fd, request_header *req, const char *key, uid_t uid, struct hashentry *he, struct datahead *dh, struct dataset **resultp) {
if (__glibc_unlikely (debug_level > 0)) {
if (he == NULL) {
} else {
}
}
size_t buflen = MAX ... |
CVE-2015-0206 | OpenSSL | https://github.com/openssl/openssl | ssl/d1_pkt.c | dtls1_buffer_record | static int dtls1_buffer_record(SSL *s, record_pqueue *queue, unsigned char *priority) {
DTLS1_RECORD_DATA *rdata;
pitem *item;
if (pqueue_size(queue->q) >= 100) {
return 0;
}
rdata = OPENSSL_malloc(sizeof(DTLS1_RECORD_DATA));
item = pitem_new(priority, rdata);
if (rdata == NULL || it... | static int dtls1_buffer_record(SSL *s, record_pqueue *queue, unsigned char *priority) {
DTLS1_RECORD_DATA *rdata;
pitem *item;
if (pqueue_size(queue->q) >= 100) {
return 0;
}
rdata = OPENSSL_malloc(sizeof(DTLS1_RECORD_DATA));
item = pitem_new(priority, rdata);
if (rdata == NULL || it... | static int dtls1_buffer_record(SSL *s, record_pqueue *queue, unsigned char *priority) {
DTLS1_RECORD_DATA *rdata;
pitem *item;
if (pqueue_size(queue->q) >= 100) {
return 0;
}
rdata = OPENSSL_malloc(sizeof(DTLS1_RECORD_DATA));
item = pitem_new(priority, rdata);
if (rdata == NULL || it... | static int dtls1_buffer_record(SSL *s, record_pqueue *queue, unsigned char *priority) {
DTLS1_RECORD_DATA *rdata;
pitem *item;
if (pqueue_size(queue->q) >= 100) {
return 0;
}
rdata = OPENSSL_malloc(sizeof(DTLS1_RECORD_DATA));
item = pitem_new(priority, rdata);
if (rdata == NULL || it... | static int dtls1_buffer_record(SSL *s, record_pqueue *queue, unsigned char *priority) {
if (pqueue_size(queue->q) >= 100) {
return 0;
}
rdata = OPENSSL_malloc(sizeof(DTLS1_RECORD_DATA));
item = pitem_new(priority, rdata);
if (rdata == NULL || item == NULL) {
return(0);
}
if (... | static int dtls1_buffer_record(SSL *s, record_pqueue *queue, unsigned char *priority) {
if (pqueue_size(queue->q) >= 100) {
return 0;
}
rdata = OPENSSL_malloc(sizeof(DTLS1_RECORD_DATA));
item = pitem_new(priority, rdata);
if (rdata == NULL || item == NULL) {
return(0);
}
if (... | static int dtls1_buffer_record(SSL *s, record_pqueue *queue, unsigned char *priority) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (pqueue_size(queue->q) >= 100) {
return 0;
}
rdata = OPENSSL_malloc(sizeof(DTLS1_RECORD_DATA));
item = pitem_new(priority, rdata);
if (rdata == NULL ||... | static int dtls1_buffer_record(SSL *s, record_pqueue *queue, unsigned char *priority) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (pqueue_size(queue->q) >= 100) {
return 0;
}
rdata = OPENSSL_malloc(sizeof(DTLS1_RECORD_DATA));
item = pitem_new(priority, rdata);
if (rdata == NULL ||... | static int dtls1_buffer_record(SSL *s, record_pqueue *queue, unsigned char *priority) {
if (pqueue_size(queue->q) >= 100) {
return 0;
}
rdata = OPENSSL_malloc(sizeof(DTLS1_RECORD_DATA));
item = pitem_new(priority, rdata);
if (rdata == NULL || item == NULL) {
return(0);
}... |
CVE-2015-0206 | OpenSSL | https://github.com/openssl/openssl | ssl/d1_pkt.c | dtls1_get_record | int dtls1_get_record(SSL *s) {
int ssl_major,ssl_minor;
int i,n;
SSL3_RECORD *rr;
unsigned char *p = NULL;
unsigned short version;
DTLS1_BITMAP *bitmap;
unsigned int is_next_epoch;
rr= &(s->s3->rrec);
dtls1_process_buffered_records(s);
if (dtls1_get_processed_record(s)) {
... | int dtls1_get_record(SSL *s) {
int ssl_major,ssl_minor;
int i,n;
SSL3_RECORD *rr;
unsigned char *p = NULL;
unsigned short version;
DTLS1_BITMAP *bitmap;
unsigned int is_next_epoch;
rr= &(s->s3->rrec);
if(dtls1_process_buffered_records(s)<0) {
return -1;
}
if (dtls1_ge... | int dtls1_get_record(SSL *s) {
int ssl_major,ssl_minor;
int i,n;
SSL3_RECORD *rr;
unsigned char *p = NULL;
unsigned short version;
DTLS1_BITMAP *bitmap;
unsigned int is_next_epoch;
rr= &(s->s3->rrec);
dtls1_process_buffered_records(s);
if (dtls1_get_processed_record(s)) {
... | int dtls1_get_record(SSL *s) {
int ssl_major,ssl_minor;
int i,n;
SSL3_RECORD *rr;
unsigned char *p = NULL;
unsigned short version;
DTLS1_BITMAP *bitmap;
unsigned int is_next_epoch;
rr= &(s->s3->rrec);
if(dtls1_process_buffered_records(s)<0) {
return -1;
}
if (dtls1_ge... | int dtls1_get_record(SSL *s) {
rr= &(s->s3->rrec);
dtls1_process_buffered_records(s);
if (dtls1_get_processed_record(s)) {
return 1;
}
again:
if ( (s->rstate != SSL_ST_READ_BODY) || (s->packet_length < DTLS1_RT_HEADER_LENGTH)) {
n=ssl3_read_n(s, DTLS1_RT_HEADER_LENGTH, s->s3->rbuf.le... | int dtls1_get_record(SSL *s) {
rr= &(s->s3->rrec);
if(dtls1_process_buffered_records(s)<0) {
return -1;
}
if (dtls1_get_processed_record(s)) {
return 1;
}
again:
if ( (s->rstate != SSL_ST_READ_BODY) || (s->packet_length < DTLS1_RT_HEADER_LENGTH)) {
n=ssl3_read_n(s, DTLS1_... | int dtls1_get_record(SSL *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
rr= &(s->s3->rrec);
dtls1_process_buffered_records(s);
if (dtls1_get_processed_record(s)) {
return 1;
}
again:
if ( (s->rstate != SSL_ST_READ_BODY) || (s->packet_length < DTLS1_RT_HEADER_LENGTH)) {
n=ssl... | int dtls1_get_record(SSL *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
rr= &(s->s3->rrec);
if(dtls1_process_buffered_records(s)<0) {
return -1;
}
if (dtls1_get_processed_record(s)) {
return 1;
}
again:
if ( (s->rstate != SSL_ST_READ_BODY) || (s->packet_length < DTLS1_RT... | int dtls1_get_record(SSL *s) {
rr= &(s->s3->rrec);
- dtls1_process_buffered_records(s);
+ if(dtls1_process_buffered_records(s)<0) {
+ return -1;
+ }
if (dtls1_get_processed_record(s)) {
return 1;
}
again:
if ( (s->rstate != SSL_ST_READ_BODY) || (s->packet_length < DTLS1_RT... |
CVE-2015-0206 | OpenSSL | https://github.com/openssl/openssl | ssl/d1_pkt.c | dtls1_process_buffered_records | static int dtls1_process_buffered_records(SSL *s) {
pitem *item;
item = pqueue_peek(s->d1->unprocessed_rcds.q);
if (item) {
if (s->d1->unprocessed_rcds.epoch != s->d1->r_epoch) {
return(1);
}
while (pqueue_peek(s->d1->unprocessed_rcds.q)) {
dtls1_get_unprocess... | static int dtls1_process_buffered_records(SSL *s) {
pitem *item;
item = pqueue_peek(s->d1->unprocessed_rcds.q);
if (item) {
if (s->d1->unprocessed_rcds.epoch != s->d1->r_epoch) {
return(1);
}
while (pqueue_peek(s->d1->unprocessed_rcds.q)) {
dtls1_get_unprocess... | static int dtls1_process_buffered_records(SSL *s) {
pitem *item;
item = pqueue_peek(s->d1->unprocessed_rcds.q);
if (item) {
if (s->d1->unprocessed_rcds.epoch != s->d1->r_epoch) {
return(1);
}
while (pqueue_peek(s->d1->unprocessed_rcds.q)) {
dtls1_get_unprocess... | static int dtls1_process_buffered_records(SSL *s) {
pitem *item;
item = pqueue_peek(s->d1->unprocessed_rcds.q);
if (item) {
if (s->d1->unprocessed_rcds.epoch != s->d1->r_epoch) {
return(1);
}
while (pqueue_peek(s->d1->unprocessed_rcds.q)) {
dtls1_get_unprocess... | static int dtls1_process_buffered_records(SSL *s) {
if (item) {
while (pqueue_peek(s->d1->unprocessed_rcds.q)) {
dtls1_get_unprocessed_record(s);
if ( ! dtls1_process_record(s)) {
return(0);
}
dtls1_buffer_record(s, &(s->d1->processed_rcds), s-... | static int dtls1_process_buffered_records(SSL *s) {
if (item) {
while (pqueue_peek(s->d1->unprocessed_rcds.q)) {
dtls1_get_unprocessed_record(s);
if ( ! dtls1_process_record(s)) {
return(0);
}
if(dtls1_buffer_record(s, &(s->d1->processed_rcds),... | static int dtls1_process_buffered_records(SSL *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (item) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
while (pqueue_peek(s->d1->unprocessed_rcds.q)) {
dtls1_get_unprocessed_record(s);
if ( ! dtls1_process_record(s)) {
... | static int dtls1_process_buffered_records(SSL *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (item) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
while (pqueue_peek(s->d1->unprocessed_rcds.q)) {
dtls1_get_unprocessed_record(s);
if ( ! dtls1_process_record(s)) {
... | static int dtls1_process_buffered_records(SSL *s) {
if (item) {
while (pqueue_peek(s->d1->unprocessed_rcds.q)) {
dtls1_get_unprocessed_record(s);
if ( ! dtls1_process_record(s)) {
return(0);
}
- dtls1_buffer_record(s, &(s->d1->processed_r... |
CVE-2015-0206 | OpenSSL | https://github.com/openssl/openssl | ssl/d1_pkt.c | dtls1_read_bytes | int dtls1_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek) {
int al,i,j,ret;
unsigned int n;
SSL3_RECORD *rr;
void (*cb)(const SSL *ssl,int type2,int val)=NULL;
if (s->s3->rbuf.buf == NULL) {
if (!ssl3_setup_buffers(s)) {
return(-1);
}
}
if ((ty... | int dtls1_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek) {
int al,i,j,ret;
unsigned int n;
SSL3_RECORD *rr;
void (*cb)(const SSL *ssl,int type2,int val)=NULL;
if (s->s3->rbuf.buf == NULL) {
if (!ssl3_setup_buffers(s)) {
return(-1);
}
}
if ((ty... | int dtls1_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek) {
int al,i,j,ret;
unsigned int n;
SSL3_RECORD *rr;
void (*cb)(const SSL *ssl,int type2,int val)=NULL;
if (s->s3->rbuf.buf == NULL) {
if (!ssl3_setup_buffers(s)) {
return(-1);
}
}
if ((ty... | int dtls1_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek) {
int al,i,j,ret;
unsigned int n;
SSL3_RECORD *rr;
void (*cb)(const SSL *ssl,int type2,int val)=NULL;
if (s->s3->rbuf.buf == NULL) {
if (!ssl3_setup_buffers(s)) {
return(-1);
}
}
if ((ty... | int dtls1_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek) {
if (s->s3->rbuf.buf == NULL) {
if (!ssl3_setup_buffers(s)) {
return(-1);
}
}
if ((type && (type != SSL3_RT_APPLICATION_DATA) && (type != SSL3_RT_HANDSHAKE) && type) || (peek && (type != SSL3_RT_APPLIC... | int dtls1_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek) {
if (s->s3->rbuf.buf == NULL) {
if (!ssl3_setup_buffers(s)) {
return(-1);
}
}
if ((type && (type != SSL3_RT_APPLICATION_DATA) && (type != SSL3_RT_HANDSHAKE) && type) || (peek && (type != SSL3_RT_APPLIC... | int dtls1_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (s->s3->rbuf.buf == NULL) {
if (!ssl3_setup_buffers(s)) {
return(-1);
}
}
if ((type && (type != SSL3_RT_APPLICATION_DATA) && (type != SSL3_RT_HANDS... | int dtls1_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (s->s3->rbuf.buf == NULL) {
if (!ssl3_setup_buffers(s)) {
return(-1);
}
}
if ((type && (type != SSL3_RT_APPLICATION_DATA) && (type != SSL3_RT_HANDS... | int dtls1_read_bytes(SSL *s, int type, unsigned char *buf, int len, int peek) {
if (s->s3->rbuf.buf == NULL) {
if (!ssl3_setup_buffers(s)) {
return(-1);
}
}
if ((type && (type != SSL3_RT_APPLICATION_DATA) && (type != SSL3_RT_HANDSHAKE) && type) || (peek && (type != SSL3_RT... |
CVE-2015-0207 | OpenSSL | https://github.com/openssl/openssl | ssl/d1_lib.c | dtls1_listen | int dtls1_listen(SSL *s, struct sockaddr *client) {
int ret;
SSL_set_options(s, SSL_OP_COOKIE_EXCHANGE);
s->d1->listen = 1;
ret = SSL_accept(s);
if (ret <= 0) {
return ret;
}
(void)BIO_dgram_get_peer(SSL_get_rbio(s), client);
return 1;
} | int dtls1_listen(SSL *s, struct sockaddr *client) {
int ret;
SSL_clear(s);
SSL_set_options(s, SSL_OP_COOKIE_EXCHANGE);
s->d1->listen = 1;
ret = SSL_accept(s);
if (ret <= 0) {
return ret;
}
(void)BIO_dgram_get_peer(SSL_get_rbio(s), client);
return 1;
} | int dtls1_listen(SSL *s, struct sockaddr *client) {
int ret;
SSL_set_options(s, SSL_OP_COOKIE_EXCHANGE);
s->d1->listen = 1;
ret = SSL_accept(s);
if (ret <= 0) {
return ret;
}
(void)BIO_dgram_get_peer(SSL_get_rbio(s), client);
return 1;
} | int dtls1_listen(SSL *s, struct sockaddr *client) {
int ret;
SSL_clear(s);
SSL_set_options(s, SSL_OP_COOKIE_EXCHANGE);
s->d1->listen = 1;
ret = SSL_accept(s);
if (ret <= 0) {
return ret;
}
(void)BIO_dgram_get_peer(SSL_get_rbio(s), client);
return 1;
} | int dtls1_listen(SSL *s, struct sockaddr *client) {
int ret;
SSL_set_options(s, SSL_OP_COOKIE_EXCHANGE);
ret = SSL_accept(s);
if (ret <= 0) {
return ret;
}
(void)BIO_dgram_get_peer(SSL_get_rbio(s), client);
}
| int dtls1_listen(SSL *s, struct sockaddr *client) {
int ret;
SSL_clear(s);
SSL_set_options(s, SSL_OP_COOKIE_EXCHANGE);
ret = SSL_accept(s);
if (ret <= 0) {
return ret;
}
(void)BIO_dgram_get_peer(SSL_get_rbio(s), client);
}
| int dtls1_listen(SSL *s, struct sockaddr *client) {
int ret;
SSL_set_options(s, SSL_OP_COOKIE_EXCHANGE);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ret = SSL_accept(s);
if (ret <= 0) {
return ret;
}
(void)BIO_dgram_get_peer(SSL_get_rbio(s), client);
/* PLACEHOLDER: DO NOT DELE... | int dtls1_listen(SSL *s, struct sockaddr *client) {
int ret;
SSL_clear(s);
SSL_set_options(s, SSL_OP_COOKIE_EXCHANGE);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ret = SSL_accept(s);
if (ret <= 0) {
return ret;
}
(void)BIO_dgram_get_peer(SSL_get_rbio(s), client);
/* PLACEH... | int dtls1_listen(SSL *s, struct sockaddr *client) {
int ret;
+ SSL_clear(s);
SSL_set_options(s, SSL_OP_COOKIE_EXCHANGE);
ret = SSL_accept(s);
if (ret <= 0) {
return ret;
}
(void)BIO_dgram_get_peer(SSL_get_rbio(s), client);
} |
CVE-2015-0208 | OpenSSL | https://github.com/openssl/openssl | crypto/rsa/rsa_ameth.c | rsa_item_verify | static int rsa_item_verify(EVP_MD_CTX *ctx, const ASN1_ITEM *it, void *asn, X509_ALGOR *sigalg, ASN1_BIT_STRG *sig, EVP_PKEY *pkey) {
if (OBJ_obj2nid(sigalg->algorithm) != NID_rsassaPss) {
RSAerr(RSA_F_RSA_ITEM_VERIFY, RSA_R_UNSUPPORTED_SIGNATURE_TYPE);
return -1;
}
if (rsa_pss_to_ctx(ctx, N... | static int rsa_item_verify(EVP_MD_CTX *ctx, const ASN1_ITEM *it, void *asn, X509_ALGOR *sigalg, ASN1_BIT_STRG *sig, EVP_PKEY *pkey) {
if (OBJ_obj2nid(sigalg->algorithm) != NID_rsassaPss) {
RSAerr(RSA_F_RSA_ITEM_VERIFY, RSA_R_UNSUPPORTED_SIGNATURE_TYPE);
return -1;
}
if (rsa_pss_to_ctx(ctx, N... | static int rsa_item_verify(EVP_MD_CTX *ctx, const ASN1_ITEM *it, void *asn, X509_ALGOR *sigalg, ASN1_BIT_STRG *sig, EVP_PKEY *pkey) {
if (OBJ_obj2nid(sigalg->algorithm) != NID_rsassaPss) {
RSAerr(RSA_F_RSA_ITEM_VERIFY, RSA_R_UNSUPPORTED_SIGNATURE_TYPE);
return -1;
}
if (rsa_pss_to_ctx(ctx, N... | static int rsa_item_verify(EVP_MD_CTX *ctx, const ASN1_ITEM *it, void *asn, X509_ALGOR *sigalg, ASN1_BIT_STRG *sig, EVP_PKEY *pkey) {
if (OBJ_obj2nid(sigalg->algorithm) != NID_rsassaPss) {
RSAerr(RSA_F_RSA_ITEM_VERIFY, RSA_R_UNSUPPORTED_SIGNATURE_TYPE);
return -1;
}
if (rsa_pss_to_ctx(ctx, N... | static int rsa_item_verify(EVP_MD_CTX *ctx, const ASN1_ITEM *it, void *asn, X509_ALGOR *sigalg, ASN1_BIT_STRG *sig, EVP_PKEY *pkey) {
if (OBJ_obj2nid(sigalg->algorithm) != NID_rsassaPss) {
return -1;
}
if (rsa_pss_to_ctx(ctx, NULL, sigalg, pkey)) {
return 2;
}
return -1;
}
| static int rsa_item_verify(EVP_MD_CTX *ctx, const ASN1_ITEM *it, void *asn, X509_ALGOR *sigalg, ASN1_BIT_STRG *sig, EVP_PKEY *pkey) {
if (OBJ_obj2nid(sigalg->algorithm) != NID_rsassaPss) {
return -1;
}
if (rsa_pss_to_ctx(ctx, NULL, sigalg, pkey) > 0) {
return 2;
}
return -1;
}
| static int rsa_item_verify(EVP_MD_CTX *ctx, const ASN1_ITEM *it, void *asn, X509_ALGOR *sigalg, ASN1_BIT_STRG *sig, EVP_PKEY *pkey) {
if (OBJ_obj2nid(sigalg->algorithm) != NID_rsassaPss) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
return -1;
}
if (rsa_pss_to_ctx(ctx, NULL, sigalg, pkey)) {
... | static int rsa_item_verify(EVP_MD_CTX *ctx, const ASN1_ITEM *it, void *asn, X509_ALGOR *sigalg, ASN1_BIT_STRG *sig, EVP_PKEY *pkey) {
if (OBJ_obj2nid(sigalg->algorithm) != NID_rsassaPss) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
return -1;
}
if (rsa_pss_to_ctx(ctx, NULL, sigalg, pkey) > 0)... | static int rsa_item_verify(EVP_MD_CTX *ctx, const ASN1_ITEM *it, void *asn, X509_ALGOR *sigalg, ASN1_BIT_STRG *sig, EVP_PKEY *pkey) {
if (OBJ_obj2nid(sigalg->algorithm) != NID_rsassaPss) {
return -1;
}
- if (rsa_pss_to_ctx(ctx, NULL, sigalg, pkey)) {
+ if (rsa_pss_to_ctx(ctx, NULL, sigalg, pke... |
CVE-2015-0287 | OpenSSL | https://github.com/openssl/openssl | crypto/asn1/tasn_dec.c | ASN1_item_ex_d2i | int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx) {
const ASN1_TEMPLATE *tt, *errtt = NULL;
const ASN1_COMPAT_FUNCS *cf;
const ASN1_EXTERN_FUNCS *ef;
const ASN1_AUX *aux = it->funcs;
ASN1_aux_cb *asn1_cb;
... | int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx) {
const ASN1_TEMPLATE *tt, *errtt = NULL;
const ASN1_COMPAT_FUNCS *cf;
const ASN1_EXTERN_FUNCS *ef;
const ASN1_AUX *aux = it->funcs;
ASN1_aux_cb *asn1_cb;
... | int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx) {
const ASN1_TEMPLATE *tt, *errtt = NULL;
const ASN1_COMPAT_FUNCS *cf;
const ASN1_EXTERN_FUNCS *ef;
const ASN1_AUX *aux = it->funcs;
ASN1_aux_cb *asn1_cb;
... | int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx) {
const ASN1_TEMPLATE *tt, *errtt = NULL;
const ASN1_COMPAT_FUNCS *cf;
const ASN1_EXTERN_FUNCS *ef;
const ASN1_AUX *aux = it->funcs;
ASN1_aux_cb *asn1_cb;
... | int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx) {
const ASN1_AUX *aux = it->funcs;
if (!pval) {
return 0;
}
if (aux && aux->asn1_cb) {
asn1_cb = aux->asn1_cb;
} else {
asn1_cb = 0;
... | int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx) {
const ASN1_AUX *aux = it->funcs;
if (!pval) {
return 0;
}
if (aux && aux->asn1_cb) {
asn1_cb = aux->asn1_cb;
} else {
asn1_cb = 0;
... | int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const ASN1_AUX *aux = it->funcs;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!pval) {
return 0;
... | int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const ASN1_AUX *aux = it->funcs;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!pval) {
return 0;
... | int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx) {
const ASN1_AUX *aux = it->funcs;
if (!pval) {
return 0;
}
if (aux && aux->asn1_cb) {
asn1_cb = aux->asn1_cb;
} else {
asn1... |
CVE-2015-0288 | OpenSSL | https://github.com/openssl/openssl | crypto/x509/x509_req.c | X509_to_X509_REQ | X509_REQ *X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md) {
X509_REQ *ret;
X509_REQ_FO *ri;
int i;
EVP_PKEY *pktmp;
ret = X509_REQ_new();
if (ret == NULL) {
X509err(X509_F_X509_TO_X509_REQ, ERR_R_MALLOC_FAILURE);
goto err;
}
ri = ret->req_info;
ri->version... | X509_REQ *X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md) {
X509_REQ *ret;
X509_REQ_FO *ri;
int i;
EVP_PKEY *pktmp;
ret = X509_REQ_new();
if (ret == NULL) {
X509err(X509_F_X509_TO_X509_REQ, ERR_R_MALLOC_FAILURE);
goto err;
}
ri = ret->req_info;
ri->version... | X509_REQ *X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md) {
X509_REQ *ret;
X509_REQ_FO *ri;
int i;
EVP_PKEY *pktmp;
ret = X509_REQ_new();
if (ret == NULL) {
X509err(X509_F_X509_TO_X509_REQ, ERR_R_MALLOC_FAILURE);
goto err;
}
ri = ret->req_info;
ri->version... | X509_REQ *X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md) {
X509_REQ *ret;
X509_REQ_FO *ri;
int i;
EVP_PKEY *pktmp;
ret = X509_REQ_new();
if (ret == NULL) {
X509err(X509_F_X509_TO_X509_REQ, ERR_R_MALLOC_FAILURE);
goto err;
}
ri = ret->req_info;
ri->version... | X509_REQ *X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md) {
ret = X509_REQ_new();
if (ret == NULL) {
goto err;
}
ri->version->data = (unsigned char *)OPENSSL_malloc(1);
if (ri->version->data == NULL) {
goto err;
}
if (!X509_REQ_set_subject_name(ret, X509_get_subje... | X509_REQ *X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md) {
ret = X509_REQ_new();
if (ret == NULL) {
goto err;
}
ri->version->data = (unsigned char *)OPENSSL_malloc(1);
if (ri->version->data == NULL) {
goto err;
}
if (!X509_REQ_set_subject_name(ret, X509_get_subje... | X509_REQ *X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ret = X509_REQ_new();
if (ret == NULL) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
goto err;
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ri->version->data = (... | X509_REQ *X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ret = X509_REQ_new();
if (ret == NULL) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
goto err;
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ri->version->data = (... | X509_REQ *X509_to_X509_REQ(X509 *x, EVP_PKEY *pkey, const EVP_MD *md) {
ret = X509_REQ_new();
if (ret == NULL) {
goto err;
}
ri->version->data = (unsigned char *)OPENSSL_malloc(1);
if (ri->version->data == NULL) {
goto err;
}
if (!X509_REQ_set_subject_name(ret, X509... |
CVE-2015-0289 | OpenSSL | https://github.com/openssl/openssl | crypto/pkcs7/pk7_doit.c | PKCS7_dataDecode | BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) {
int i, j;
BIO *out = NULL, *btmp = NULL, *etmp = NULL, *bio = NULL;
X509_ALGOR *xa;
ASN1_OCTET_STRG *data_body = NULL;
const EVP_MD *evp_md;
const EVP_CIPHER *evp_cipher = NULL;
EVP_CIPHER_CTX *evp_ctx = NULL;
X... | BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) {
int i, j;
BIO *out = NULL, *btmp = NULL, *etmp = NULL, *bio = NULL;
X509_ALGOR *xa;
ASN1_OCTET_STRG *data_body = NULL;
const EVP_MD *evp_md;
const EVP_CIPHER *evp_cipher = NULL;
EVP_CIPHER_CTX *evp_ctx = NULL;
X... | BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) {
int i, j;
BIO *out = NULL, *btmp = NULL, *etmp = NULL, *bio = NULL;
X509_ALGOR *xa;
ASN1_OCTET_STRG *data_body = NULL;
const EVP_MD *evp_md;
const EVP_CIPHER *evp_cipher = NULL;
EVP_CIPHER_CTX *evp_ctx = NULL;
X... | BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) {
int i, j;
BIO *out = NULL, *btmp = NULL, *etmp = NULL, *bio = NULL;
X509_ALGOR *xa;
ASN1_OCTET_STRG *data_body = NULL;
const EVP_MD *evp_md;
const EVP_CIPHER *evp_cipher = NULL;
EVP_CIPHER_CTX *evp_ctx = NULL;
X... | BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) {
int eklen = 0, tkeylen = 0;
i = OBJ_obj2nid(p7->type);
switch (i) {
case NID_pkcs7_signed:
if (!PKCS7_is_detached(p7) && data_body == NULL) {
goto err;
}
break;
case NID_pkcs7_signedAndEn... | BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) {
int eklen = 0, tkeylen = 0;
if (p7 == NULL) {
PKCS7err(PKCS7_F_PKCS7_DATADECODE, PKCS7_R_VALID_NULL_POTER);
return NULL;
}
if (p7->d.ptr == NULL) {
PKCS7err(PKCS7_F_PKCS7_DATADECODE, PKCS7_R_NO_CONTENT);... | BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int eklen = 0, tkeylen = 0;
i = OBJ_obj2nid(p7->type);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
switch (i) {
case NID_pkcs7_signed:
/* PLACEHOLDER: DO NOT DELETE TH... | BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int eklen = 0, tkeylen = 0;
if (p7 == NULL) {
PKCS7err(PKCS7_F_PKCS7_DATADECODE, PKCS7_R_VALID_NULL_POTER);
return NULL;
}
if (p7->d.ptr == NULL) {
PKCS7... | BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) {
int eklen = 0, tkeylen = 0;
+ if (p7 == NULL) {
+ PKCS7err(PKCS7_F_PKCS7_DATADECODE, PKCS7_R_VALID_NULL_POTER);
+ return NULL;
+ }
+ if (p7->d.ptr == NULL) {
+ PKCS7err(PKCS7_F_PKCS7_DATADECODE, PKCS7_R_NO_C... |
CVE-2015-0289 | OpenSSL | https://github.com/openssl/openssl | crypto/pkcs7/pk7_doit.c | PKCS7_dataFinal | int PKCS7_dataFinal(PKCS7 *p7, BIO *bio) {
int ret = 0;
int i, j;
BIO *btmp;
PKCS7_SIGNER_FO *si;
EVP_MD_CTX *mdc, ctx_tmp;
STACK_OF(X509_ATTRIBUTE) *sk;
STACK_OF(PKCS7_SIGNER_FO) *si_sk = NULL;
ASN1_OCTET_STRG *os = NULL;
EVP_MD_CTX_init(&ctx_tmp);
i = OBJ_obj2nid(p7->type);
... | int PKCS7_dataFinal(PKCS7 *p7, BIO *bio) {
int ret = 0;
int i, j;
BIO *btmp;
PKCS7_SIGNER_FO *si;
EVP_MD_CTX *mdc, ctx_tmp;
STACK_OF(X509_ATTRIBUTE) *sk;
STACK_OF(PKCS7_SIGNER_FO) *si_sk = NULL;
ASN1_OCTET_STRG *os = NULL;
if (p7 == NULL) {
PKCS7err(PKCS7_F_PKCS7_DATAFAL, PKC... | int PKCS7_dataFinal(PKCS7 *p7, BIO *bio) {
int ret = 0;
int i, j;
BIO *btmp;
PKCS7_SIGNER_FO *si;
EVP_MD_CTX *mdc, ctx_tmp;
STACK_OF(X509_ATTRIBUTE) *sk;
STACK_OF(PKCS7_SIGNER_FO) *si_sk = NULL;
ASN1_OCTET_STRG *os = NULL;
EVP_MD_CTX_init(&ctx_tmp);
i = OBJ_obj2nid(p7->type);
... | int PKCS7_dataFinal(PKCS7 *p7, BIO *bio) {
int ret = 0;
int i, j;
BIO *btmp;
PKCS7_SIGNER_FO *si;
EVP_MD_CTX *mdc, ctx_tmp;
STACK_OF(X509_ATTRIBUTE) *sk;
STACK_OF(PKCS7_SIGNER_FO) *si_sk = NULL;
ASN1_OCTET_STRG *os = NULL;
if (p7 == NULL) {
PKCS7err(PKCS7_F_PKCS7_DATAFAL, PKC... | int PKCS7_dataFinal(PKCS7 *p7, BIO *bio) {
STACK_OF(PKCS7_SIGNER_FO) *si_sk = NULL;
ASN1_OCTET_STRG *os = NULL;
EVP_MD_CTX_init(&ctx_tmp);
i = OBJ_obj2nid(p7->type);
switch (i) {
case NID_pkcs7_data:
os = p7->d.data;
break;
case NID_pkcs7_signedAndEnveloped:
si_sk = p... | int PKCS7_dataFinal(PKCS7 *p7, BIO *bio) {
STACK_OF(PKCS7_SIGNER_FO) *si_sk = NULL;
ASN1_OCTET_STRG *os = NULL;
if (p7 == NULL) {
PKCS7err(PKCS7_F_PKCS7_DATAFAL, PKCS7_R_VALID_NULL_POTER);
return 0;
}
if (p7->d.ptr == NULL) {
PKCS7err(PKCS7_F_PKCS7_DATAFAL, PKCS7_R_NO_CONTENT... | int PKCS7_dataFinal(PKCS7 *p7, BIO *bio) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
STACK_OF(PKCS7_SIGNER_FO) *si_sk = NULL;
ASN1_OCTET_STRG *os = NULL;
EVP_MD_CTX_init(&ctx_tmp);
i = OBJ_obj2nid(p7->type);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
switch (i) {
case NID_pkcs7_da... | int PKCS7_dataFinal(PKCS7 *p7, BIO *bio) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
STACK_OF(PKCS7_SIGNER_FO) *si_sk = NULL;
ASN1_OCTET_STRG *os = NULL;
if (p7 == NULL) {
PKCS7err(PKCS7_F_PKCS7_DATAFAL, PKCS7_R_VALID_NULL_POTER);
return 0;
}
if (p7->d.ptr == NULL) {
... | int PKCS7_dataFinal(PKCS7 *p7, BIO *bio) {
STACK_OF(PKCS7_SIGNER_FO) *si_sk = NULL;
ASN1_OCTET_STRG *os = NULL;
+ if (p7 == NULL) {
+ PKCS7err(PKCS7_F_PKCS7_DATAFAL, PKCS7_R_VALID_NULL_POTER);
+ return 0;
+ }
+ if (p7->d.ptr == NULL) {
+ PKCS7err(PKCS7_F_PKCS7_DATAFAL, PKCS7_R_N... |
CVE-2015-0289 | OpenSSL | https://github.com/openssl/openssl | crypto/pkcs7/pk7_doit.c | PKCS7_dataInit | BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio) {
int i;
BIO *out = NULL, *btmp = NULL;
X509_ALGOR *xa = NULL;
const EVP_CIPHER *evp_cipher = NULL;
STACK_OF(X509_ALGOR) *md_sk = NULL;
STACK_OF(PKCS7_RECIP_FO) *rsk = NULL;
X509_ALGOR *xalg = NULL;
PKCS7_RECIP_FO *ri = NULL;
ASN1_OCTET_STRG *... | BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio) {
int i;
BIO *out = NULL, *btmp = NULL;
X509_ALGOR *xa = NULL;
const EVP_CIPHER *evp_cipher = NULL;
STACK_OF(X509_ALGOR) *md_sk = NULL;
STACK_OF(PKCS7_RECIP_FO) *rsk = NULL;
X509_ALGOR *xalg = NULL;
PKCS7_RECIP_FO *ri = NULL;
ASN1_OCTET_STRG *... | BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio) {
int i;
BIO *out = NULL, *btmp = NULL;
X509_ALGOR *xa = NULL;
const EVP_CIPHER *evp_cipher = NULL;
STACK_OF(X509_ALGOR) *md_sk = NULL;
STACK_OF(PKCS7_RECIP_FO) *rsk = NULL;
X509_ALGOR *xalg = NULL;
PKCS7_RECIP_FO *ri = NULL;
ASN1_OCTET_STRG *... | BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio) {
int i;
BIO *out = NULL, *btmp = NULL;
X509_ALGOR *xa = NULL;
const EVP_CIPHER *evp_cipher = NULL;
STACK_OF(X509_ALGOR) *md_sk = NULL;
STACK_OF(PKCS7_RECIP_FO) *rsk = NULL;
X509_ALGOR *xalg = NULL;
PKCS7_RECIP_FO *ri = NULL;
ASN1_OCTET_STRG *... | BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio) {
ASN1_OCTET_STRG *os = NULL;
i = OBJ_obj2nid(p7->type);
switch (i) {
case NID_pkcs7_signedAndEnveloped:
if (evp_cipher == NULL) {
goto err;
}
break;
case NID_pkcs7_enveloped:
if (evp_cipher == NULL) {
g... | BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio) {
ASN1_OCTET_STRG *os = NULL;
if (p7 == NULL) {
PKCS7err(PKCS7_F_PKCS7_DATAIT, PKCS7_R_VALID_NULL_POTER);
return NULL;
}
if (p7->d.ptr == NULL) {
PKCS7err(PKCS7_F_PKCS7_DATAIT, PKCS7_R_NO_CONTENT);
return NULL;
}
i = OBJ_ob... | BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ASN1_OCTET_STRG *os = NULL;
i = OBJ_obj2nid(p7->type);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
switch (i) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
case NID_pkcs7_signedAndEnveloped:
/* P... | BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ASN1_OCTET_STRG *os = NULL;
if (p7 == NULL) {
PKCS7err(PKCS7_F_PKCS7_DATAIT, PKCS7_R_VALID_NULL_POTER);
return NULL;
}
if (p7->d.ptr == NULL) {
PKCS7err(PKCS7_F_PKCS7_DATAIT, PKCS7_R_NO_C... | BIO *PKCS7_dataInit(PKCS7 *p7, BIO *bio) {
ASN1_OCTET_STRG *os = NULL;
+ if (p7 == NULL) {
+ PKCS7err(PKCS7_F_PKCS7_DATAIT, PKCS7_R_VALID_NULL_POTER);
+ return NULL;
+ }
+ if (p7->d.ptr == NULL) {
+ PKCS7err(PKCS7_F_PKCS7_DATAIT, PKCS7_R_NO_CONTENT);
+ return NULL;
+ }
... |
CVE-2015-0289 | OpenSSL | https://github.com/openssl/openssl | crypto/pkcs7/pk7_doit.c | PKCS7_dataVerify | int PKCS7_dataVerify(X509_STORE *cert_store, X509_STORE_CTX *ctx, BIO *bio, PKCS7 *p7, PKCS7_SIGNER_FO *si) {
PKCS7_ISSUER_AND_SERIAL *ias;
int ret = 0, i;
STACK_OF(X509) *cert;
X509 *x509;
if (PKCS7_type_is_signed(p7)) {
cert = p7->d.sign->cert;
} else if (PKCS7_type_is_signedAndEnvelop... | int PKCS7_dataVerify(X509_STORE *cert_store, X509_STORE_CTX *ctx, BIO *bio, PKCS7 *p7, PKCS7_SIGNER_FO *si) {
PKCS7_ISSUER_AND_SERIAL *ias;
int ret = 0, i;
STACK_OF(X509) *cert;
X509 *x509;
if (p7 == NULL) {
PKCS7err(PKCS7_F_PKCS7_DATAVERIFY, PKCS7_R_VALID_NULL_POTER);
return 0;
... | int PKCS7_dataVerify(X509_STORE *cert_store, X509_STORE_CTX *ctx, BIO *bio, PKCS7 *p7, PKCS7_SIGNER_FO *si) {
PKCS7_ISSUER_AND_SERIAL *ias;
int ret = 0, i;
STACK_OF(X509) *cert;
X509 *x509;
if (PKCS7_type_is_signed(p7)) {
cert = p7->d.sign->cert;
} else if (PKCS7_type_is_signedAndEnvelop... | int PKCS7_dataVerify(X509_STORE *cert_store, X509_STORE_CTX *ctx, BIO *bio, PKCS7 *p7, PKCS7_SIGNER_FO *si) {
PKCS7_ISSUER_AND_SERIAL *ias;
int ret = 0, i;
STACK_OF(X509) *cert;
X509 *x509;
if (p7 == NULL) {
PKCS7err(PKCS7_F_PKCS7_DATAVERIFY, PKCS7_R_VALID_NULL_POTER);
return 0;
... | int PKCS7_dataVerify(X509_STORE *cert_store, X509_STORE_CTX *ctx, BIO *bio, PKCS7 *p7, PKCS7_SIGNER_FO *si) {
STACK_OF(X509) *cert;
X509 *x509;
if (PKCS7_type_is_signed(p7)) {
} else if (PKCS7_type_is_signedAndEnveloped(p7)) {
} else {
}
if (x509 == NULL) {
goto err;
}
if (!X... | int PKCS7_dataVerify(X509_STORE *cert_store, X509_STORE_CTX *ctx, BIO *bio, PKCS7 *p7, PKCS7_SIGNER_FO *si) {
STACK_OF(X509) *cert;
X509 *x509;
if (p7 == NULL) {
PKCS7err(PKCS7_F_PKCS7_DATAVERIFY, PKCS7_R_VALID_NULL_POTER);
return 0;
}
if (p7->d.ptr == NULL) {
PKCS7err(PKCS7_... | int PKCS7_dataVerify(X509_STORE *cert_store, X509_STORE_CTX *ctx, BIO *bio, PKCS7 *p7, PKCS7_SIGNER_FO *si) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
STACK_OF(X509) *cert;
X509 *x509;
if (PKCS7_type_is_signed(p7)) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} else if (PKCS7_type_is_sig... | int PKCS7_dataVerify(X509_STORE *cert_store, X509_STORE_CTX *ctx, BIO *bio, PKCS7 *p7, PKCS7_SIGNER_FO *si) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
STACK_OF(X509) *cert;
X509 *x509;
if (p7 == NULL) {
PKCS7err(PKCS7_F_PKCS7_DATAVERIFY, PKCS7_R_VALID_NULL_POTER);
return 0;
}
... | int PKCS7_dataVerify(X509_STORE *cert_store, X509_STORE_CTX *ctx, BIO *bio, PKCS7 *p7, PKCS7_SIGNER_FO *si) {
STACK_OF(X509) *cert;
X509 *x509;
+ if (p7 == NULL) {
+ PKCS7err(PKCS7_F_PKCS7_DATAVERIFY, PKCS7_R_VALID_NULL_POTER);
+ return 0;
+ }
+ if (p7->d.ptr == NULL) {
+ PKCS7e... |
CVE-2015-0290 | OpenSSL | https://github.com/openssl/openssl | ssl/s3_pkt.c | ssl3_write_bytes | int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len) {
const unsigned char *buf = buf_;
int tot;
unsigned int n, nw;
unsigned int max_send_fragment;
SSL3_BUFFER *wb = &(s->s3->wbuf);
int i;
unsigned int u_len = (unsigned int)len;
if (len < 0) {
SSLerr(SSL_F_SSL3_WRIT... | int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len) {
const unsigned char *buf = buf_;
int tot;
unsigned int n, nw;
unsigned int max_send_fragment;
SSL3_BUFFER *wb = &(s->s3->wbuf);
int i;
unsigned int u_len = (unsigned int)len;
if (len < 0) {
SSLerr(SSL_F_SSL3_WRIT... | int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len) {
const unsigned char *buf = buf_;
int tot;
unsigned int n, nw;
unsigned int max_send_fragment;
SSL3_BUFFER *wb = &(s->s3->wbuf);
int i;
s->rwstate = SSL_NOTHG;
OPENSSL_assert(s->s3->wnum <= T_MAX);
tot = s->s3->wnum;
... | int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len) {
const unsigned char *buf = buf_;
int tot;
unsigned int n, nw;
unsigned int max_send_fragment;
SSL3_BUFFER *wb = &(s->s3->wbuf);
int i;
s->rwstate = SSL_NOTHG;
OPENSSL_assert(s->s3->wnum <= T_MAX);
tot = s->s3->wnum;
... | int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len) {
const unsigned char *buf = buf_;
SSL3_BUFFER *wb = &(s->s3->wbuf);
unsigned int u_len = (unsigned int)len;
if (len < 0) {
return -1;
}
OPENSSL_assert(s->s3->wnum <= T_MAX);
tot = s->s3->wnum;
if (SSL_in_init(s) &... | int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len) {
const unsigned char *buf = buf_;
SSL3_BUFFER *wb = &(s->s3->wbuf);
unsigned int u_len = (unsigned int)len;
if (len < 0) {
return -1;
}
OPENSSL_assert(s->s3->wnum <= T_MAX);
tot = s->s3->wnum;
if (SSL_in_init(s) &... | int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len) {
const unsigned char *buf = buf_;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
SSL3_BUFFER *wb = &(s->s3->wbuf);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
OPENSSL_assert(s->s3->wnum <= T_MAX);
tot = s->s3->wnum;
/* PLACE... | int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len) {
const unsigned char *buf = buf_;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
SSL3_BUFFER *wb = &(s->s3->wbuf);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
OPENSSL_assert(s->s3->wnum <= T_MAX);
tot = s->s3->wnum;
/* PLACE... | int ssl3_write_bytes(SSL *s, int type, const void *buf_, int len) {
const unsigned char *buf = buf_;
SSL3_BUFFER *wb = &(s->s3->wbuf);
unsigned int u_len = (unsigned int)len;
if (len < 0) {
return -1;
}
OPENSSL_assert(s->s3->wnum <= T_MAX);
tot = s->s3->wnum;
if (SSL_in... |
CVE-2015-0291 | OpenSSL | https://github.com/openssl/openssl | ssl/t1_lib.c | tls1_set_server_sigalgs | int tls1_set_server_sigalgs(SSL *s) {
int al;
size_t i;
if (s->cert->shared_sigalgs) {
OPENSSL_free(s->cert->shared_sigalgs);
s->cert->shared_sigalgs = NULL;
}
for (i = 0; i < SSL_PKEY_NUM; i++) {
s->cert->pkeys[i].digest = NULL;
s->cert->pkeys[i].valid_flags = 0;
... | int tls1_set_server_sigalgs(SSL *s) {
int al;
size_t i;
if (s->cert->shared_sigalgs) {
OPENSSL_free(s->cert->shared_sigalgs);
s->cert->shared_sigalgs = NULL;
s->cert->shared_sigalgslen = 0;
}
for (i = 0; i < SSL_PKEY_NUM; i++) {
s->cert->pkeys[i].digest = NULL;
... | int tls1_set_server_sigalgs(SSL *s) {
int al;
size_t i;
if (s->cert->shared_sigalgs) {
OPENSSL_free(s->cert->shared_sigalgs);
s->cert->shared_sigalgs = NULL;
}
for (i = 0; i < SSL_PKEY_NUM; i++) {
s->cert->pkeys[i].digest = NULL;
s->cert->pkeys[i].valid_flags = 0;
... | int tls1_set_server_sigalgs(SSL *s) {
int al;
size_t i;
if (s->cert->shared_sigalgs) {
OPENSSL_free(s->cert->shared_sigalgs);
s->cert->shared_sigalgs = NULL;
s->cert->shared_sigalgslen = 0;
}
for (i = 0; i < SSL_PKEY_NUM; i++) {
s->cert->pkeys[i].digest = NULL;
... | int tls1_set_server_sigalgs(SSL *s) {
if (s->cert->shared_sigalgs) {
s->cert->shared_sigalgs = NULL;
}
for (i = 0; i < SSL_PKEY_NUM; i++) {
}
if (s->cert->peer_sigalgs) {
} else {
ssl_cert_set_default_md(s->cert);
}
}
| int tls1_set_server_sigalgs(SSL *s) {
if (s->cert->shared_sigalgs) {
s->cert->shared_sigalgs = NULL;
s->cert->shared_sigalgslen = 0;
}
for (i = 0; i < SSL_PKEY_NUM; i++) {
}
if (s->cert->peer_sigalgs) {
} else {
ssl_cert_set_default_md(s->cert);
}
}
| int tls1_set_server_sigalgs(SSL *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (s->cert->shared_sigalgs) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
s->cert->shared_sigalgs = NULL;
}
for (i = 0; i < SSL_PKEY_NUM; i++) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}
... | int tls1_set_server_sigalgs(SSL *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (s->cert->shared_sigalgs) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
s->cert->shared_sigalgs = NULL;
s->cert->shared_sigalgslen = 0;
}
for (i = 0; i < SSL_PKEY_NUM; i++) {
/* PLACEHOLDER: ... | int tls1_set_server_sigalgs(SSL *s) {
if (s->cert->shared_sigalgs) {
s->cert->shared_sigalgs = NULL;
+ s->cert->shared_sigalgslen = 0;
}
for (i = 0; i < SSL_PKEY_NUM; i++) {
}
if (s->cert->peer_sigalgs) {
} else {
ssl_cert_set_default_md(s->cert);
}
} |
CVE-2015-0291 | OpenSSL | https://github.com/openssl/openssl | ssl/t1_lib.c | tls1_set_shared_sigalgs | static int tls1_set_shared_sigalgs(SSL *s) {
const unsigned char *pref, *allow, *conf;
size_t preflen, allowlen, conflen;
size_t nmatch;
TLS_SIGALGS *salgs = NULL;
CERT *c = s->cert;
unsigned int is_suiteb = tls1_suiteb(s);
if (c->shared_sigalgs) {
OPENSSL_free(c->shared_sigalgs);
... | static int tls1_set_shared_sigalgs(SSL *s) {
const unsigned char *pref, *allow, *conf;
size_t preflen, allowlen, conflen;
size_t nmatch;
TLS_SIGALGS *salgs = NULL;
CERT *c = s->cert;
unsigned int is_suiteb = tls1_suiteb(s);
if (c->shared_sigalgs) {
OPENSSL_free(c->shared_sigalgs);
... | static int tls1_set_shared_sigalgs(SSL *s) {
const unsigned char *pref, *allow, *conf;
size_t preflen, allowlen, conflen;
size_t nmatch;
TLS_SIGALGS *salgs = NULL;
CERT *c = s->cert;
unsigned int is_suiteb = tls1_suiteb(s);
if (c->shared_sigalgs) {
OPENSSL_free(c->shared_sigalgs);
... | static int tls1_set_shared_sigalgs(SSL *s) {
const unsigned char *pref, *allow, *conf;
size_t preflen, allowlen, conflen;
size_t nmatch;
TLS_SIGALGS *salgs = NULL;
CERT *c = s->cert;
unsigned int is_suiteb = tls1_suiteb(s);
if (c->shared_sigalgs) {
OPENSSL_free(c->shared_sigalgs);
... | static int tls1_set_shared_sigalgs(SSL *s) {
CERT *c = s->cert;
unsigned int is_suiteb = tls1_suiteb(s);
if (c->shared_sigalgs) {
c->shared_sigalgs = NULL;
}
if (!s->server && c->client_sigalgs && !is_suiteb) {
conf = c->client_sigalgs;
conflen = c->client_sigalgslen;
} e... | static int tls1_set_shared_sigalgs(SSL *s) {
CERT *c = s->cert;
unsigned int is_suiteb = tls1_suiteb(s);
if (c->shared_sigalgs) {
c->shared_sigalgs = NULL;
c->shared_sigalgslen = 0;
}
if (!s->server && c->client_sigalgs && !is_suiteb) {
conf = c->client_sigalgs;
confl... | static int tls1_set_shared_sigalgs(SSL *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
CERT *c = s->cert;
unsigned int is_suiteb = tls1_suiteb(s);
if (c->shared_sigalgs) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
c->shared_sigalgs = NULL;
}
if (!s->server && c->client_sigalg... | static int tls1_set_shared_sigalgs(SSL *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
CERT *c = s->cert;
unsigned int is_suiteb = tls1_suiteb(s);
if (c->shared_sigalgs) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
c->shared_sigalgs = NULL;
c->shared_sigalgslen = 0;
}
... | static int tls1_set_shared_sigalgs(SSL *s) {
CERT *c = s->cert;
unsigned int is_suiteb = tls1_suiteb(s);
if (c->shared_sigalgs) {
c->shared_sigalgs = NULL;
+ c->shared_sigalgslen = 0;
}
if (!s->server && c->client_sigalgs && !is_suiteb) {
conf = c->client_sigalgs;
... |
CVE-2015-0292 | OpenSSL | https://github.com/openssl/openssl | crypto/evp/encode.c | EVP_DecodeUpdate | int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) {
int seof= -1,eof=0,rv= -1,ret=0,i,v,tmp,n,ln,exp_nl;
unsigned char *d;
n=ctx->num;
d=ctx->enc_data;
ln=ctx->line_num;
exp_nl=ctx->expect_nl;
if ((inl == 0) || ((n == 0) && (conv_ascii... | int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) {
int seof= -1,eof=0,rv= -1,ret=0,i,v,tmp,n,ln,exp_nl;
unsigned char *d;
n=ctx->num;
d=ctx->enc_data;
ln=ctx->line_num;
exp_nl=ctx->expect_nl;
if ((inl == 0) || ((n == 0) && (conv_ascii... | int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) {
int seof= -1,eof=0,rv= -1,ret=0,i,v,tmp,n,ln,exp_nl;
unsigned char *d;
n=ctx->num;
d=ctx->enc_data;
ln=ctx->line_num;
exp_nl=ctx->expect_nl;
if ((inl == 0) || ((n == 0) && (conv_ascii... | int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) {
int seof= -1,eof=0,rv= -1,ret=0,i,v,tmp,n,ln,exp_nl;
unsigned char *d;
n=ctx->num;
d=ctx->enc_data;
ln=ctx->line_num;
exp_nl=ctx->expect_nl;
if ((inl == 0) || ((n == 0) && (conv_ascii... | int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) {
int seof= -1,eof=0,rv= -1,ret=0,i,v,tmp,n,ln,exp_nl;
n=ctx->num;
d=ctx->enc_data;
if ((inl == 0) || ((n == 0) && (conv_ascii2bin(in[0]) == B64_EOF))) {
goto end;
}
for (i=0; i<inl... | int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) {
int seof= -1,eof=0,rv= -1,ret=0,i,v,tmp,n,ln,exp_nl;
n=ctx->num;
d=ctx->enc_data;
if ((inl == 0) || ((n == 0) && (conv_ascii2bin(in[0]) == B64_EOF))) {
goto end;
}
for (i=0; i<inl... | int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) {
int seof= -1,eof=0,rv= -1,ret=0,i,v,tmp,n,ln,exp_nl;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
n=ctx->num;
d=ctx->enc_data;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if ((inl == 0... | int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) {
int seof= -1,eof=0,rv= -1,ret=0,i,v,tmp,n,ln,exp_nl;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
n=ctx->num;
d=ctx->enc_data;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if ((inl == 0... | int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, const unsigned char *in, int inl) {
int seof= -1,eof=0,rv= -1,ret=0,i,v,tmp,n,ln,exp_nl;
n=ctx->num;
d=ctx->enc_data;
if ((inl == 0) || ((n == 0) && (conv_ascii2bin(in[0]) == B64_EOF))) {
goto end;
}
for (i=... |
CVE-2015-0293 | OpenSSL | https://github.com/openssl/openssl | ssl/s2_lib.c | ssl2_generate_key_material | int ssl2_generate_key_material(SSL *s) {
unsigned int i;
EVP_MD_CTX ctx;
unsigned char *km;
unsigned char c = '0';
const EVP_MD *md5;
int md_size;
md5 = EVP_md5();
c = os_toascii['0'];
EVP_MD_CTX_init(&ctx);
km = s->s2->key_material;
if (s->session->master_key_length < 0 || s... | int ssl2_generate_key_material(SSL *s) {
unsigned int i;
EVP_MD_CTX ctx;
unsigned char *km;
unsigned char c = '0';
const EVP_MD *md5;
int md_size;
md5 = EVP_md5();
c = os_toascii['0'];
EVP_MD_CTX_init(&ctx);
km = s->s2->key_material;
if (s->session->master_key_length < 0 || s... | int ssl2_generate_key_material(SSL *s) {
unsigned int i;
EVP_MD_CTX ctx;
unsigned char *km;
unsigned char c = '0';
const EVP_MD *md5;
md5 = EVP_md5();
c = os_toascii['0'];
EVP_MD_CTX_init(&ctx);
km = s->s2->key_material;
if (s->session->master_key_length < 0 || s->session->master... | int ssl2_generate_key_material(SSL *s) {
unsigned int i;
EVP_MD_CTX ctx;
unsigned char *km;
unsigned char c = '0';
const EVP_MD *md5;
md5 = EVP_md5();
c = os_toascii['0'];
EVP_MD_CTX_init(&ctx);
km = s->s2->key_material;
if (s->session->master_key_length < 0 || s->session->master... | int ssl2_generate_key_material(SSL *s) {
if (s->session->master_key_length < 0 || s->session->master_key_length > (int)sizeof(s->session->master_key)) {
return 0;
}
for (i = 0; i < s->s2->key_material_length; i += md_size) {
EVP_DigestInit_ex(&ctx, md5, NULL);
OPENSSL_assert(s->sessi... | int ssl2_generate_key_material(SSL *s) {
if (s->session->master_key_length < 0 || s->session->master_key_length > (int)sizeof(s->session->master_key)) {
return 0;
}
for (i = 0; i < s->s2->key_material_length; i += md_size) {
EVP_DigestInit_ex(&ctx, md5, NULL);
OPENSSL_assert(s->sessi... | int ssl2_generate_key_material(SSL *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (s->session->master_key_length < 0 || s->session->master_key_length > (int)sizeof(s->session->master_key)) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
return 0;
}
for (i = 0; i < s->s2->key_material... | int ssl2_generate_key_material(SSL *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (s->session->master_key_length < 0 || s->session->master_key_length > (int)sizeof(s->session->master_key)) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
return 0;
}
for (i = 0; i < s->s2->key_material... | int ssl2_generate_key_material(SSL *s) {
if (s->session->master_key_length < 0 || s->session->master_key_length > (int)sizeof(s->session->master_key)) {
return 0;
}
for (i = 0; i < s->s2->key_material_length; i += md_size) {
EVP_DigestInit_ex(&ctx, md5, NULL);
- OPENSSL_assert(s... |
CVE-2015-0293 | OpenSSL | https://github.com/openssl/openssl | ssl/s2_srvr.c | get_client_finished | static int get_client_finished(SSL *s) {
unsigned char *p;
int i, n;
unsigned long len;
p = (unsigned char *)s->init_buf->data;
if (s->state == SSL2_ST_GET_CLIENT_FISHED_A) {
i = ssl2_read(s, (char *)&(p[s->init_num]), 1 - s->init_num);
if (i < 1 - s->init_num) {
return (... | static int get_client_finished(SSL *s) {
unsigned char *p;
int i, n;
unsigned long len;
p = (unsigned char *)s->init_buf->data;
if (s->state == SSL2_ST_GET_CLIENT_FISHED_A) {
i = ssl2_read(s, (char *)&(p[s->init_num]), 1 - s->init_num);
if (i < 1 - s->init_num) {
return (... | static int get_client_finished(SSL *s) {
unsigned char *p;
int i, n;
unsigned long len;
p = (unsigned char *)s->init_buf->data;
if (s->state == SSL2_ST_GET_CLIENT_FISHED_A) {
i = ssl2_read(s, (char *)&(p[s->init_num]), 1 - s->init_num);
if (i < 1 - s->init_num) {
return (... | static int get_client_finished(SSL *s) {
unsigned char *p;
int i, n;
unsigned long len;
p = (unsigned char *)s->init_buf->data;
if (s->state == SSL2_ST_GET_CLIENT_FISHED_A) {
i = ssl2_read(s, (char *)&(p[s->init_num]), 1 - s->init_num);
if (i < 1 - s->init_num) {
return (... | static int get_client_finished(SSL *s) {
}
| static int get_client_finished(SSL *s) {
}
| static int get_client_finished(SSL *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}
| static int get_client_finished(SSL *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} | |
CVE-2015-0293 | OpenSSL | https://github.com/openssl/openssl | ssl/s2_srvr.c | get_client_hello | static int get_client_hello(SSL *s) {
int i, n;
unsigned long len;
unsigned char *p;
STACK_OF(SSL_CIPHER) *cs;
STACK_OF(SSL_CIPHER) *cl;
STACK_OF(SSL_CIPHER) *prio, *allow;
int z;
if (s->state == SSL2_ST_GET_CLIENT_HELLO_A) {
s->first_packet = 1;
s->state = SSL2_ST_GET_CL... | static int get_client_hello(SSL *s) {
int i, n;
unsigned long len;
unsigned char *p;
STACK_OF(SSL_CIPHER) *cs;
STACK_OF(SSL_CIPHER) *cl;
STACK_OF(SSL_CIPHER) *prio, *allow;
int z;
if (s->state == SSL2_ST_GET_CLIENT_HELLO_A) {
s->first_packet = 1;
s->state = SSL2_ST_GET_CL... | static int get_client_hello(SSL *s) {
int i, n;
unsigned long len;
unsigned char *p;
STACK_OF(SSL_CIPHER) *cs;
STACK_OF(SSL_CIPHER) *cl;
STACK_OF(SSL_CIPHER) *prio, *allow;
int z;
if (s->state == SSL2_ST_GET_CLIENT_HELLO_A) {
s->first_packet = 1;
s->state = SSL2_ST_GET_CL... | static int get_client_hello(SSL *s) {
int i, n;
unsigned long len;
unsigned char *p;
STACK_OF(SSL_CIPHER) *cs;
STACK_OF(SSL_CIPHER) *cl;
STACK_OF(SSL_CIPHER) *prio, *allow;
int z;
if (s->state == SSL2_ST_GET_CLIENT_HELLO_A) {
s->first_packet = 1;
s->state = SSL2_ST_GET_CL... | static int get_client_hello(SSL *s) {
}
| static int get_client_hello(SSL *s) {
}
| static int get_client_hello(SSL *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}
| static int get_client_hello(SSL *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} | |
CVE-2015-0293 | OpenSSL | https://github.com/openssl/openssl | ssl/s2_srvr.c | request_certificate | static int request_certificate(SSL *s) {
const unsigned char *cp;
unsigned char *p, *p2, *buf2;
unsigned char *ccd;
int i, j, ctype, ret = -1;
unsigned long len;
X509 *x509 = NULL;
STACK_OF(X509) *sk = NULL;
ccd = s->s2->tmp.ccl;
if (s->state == SSL2_ST_SEND_REQUEST_CERTIFICATE_A) {
... | static int request_certificate(SSL *s) {
const unsigned char *cp;
unsigned char *p, *p2, *buf2;
unsigned char *ccd;
int i, j, ctype, ret = -1;
unsigned long len;
X509 *x509 = NULL;
STACK_OF(X509) *sk = NULL;
ccd = s->s2->tmp.ccl;
if (s->state == SSL2_ST_SEND_REQUEST_CERTIFICATE_A) {
... | static int request_certificate(SSL *s) {
const unsigned char *cp;
unsigned char *p, *p2, *buf2;
unsigned char *ccd;
int i, j, ctype, ret = -1;
unsigned long len;
X509 *x509 = NULL;
STACK_OF(X509) *sk = NULL;
ccd = s->s2->tmp.ccl;
if (s->state == SSL2_ST_SEND_REQUEST_CERTIFICATE_A) {
... | static int request_certificate(SSL *s) {
const unsigned char *cp;
unsigned char *p, *p2, *buf2;
unsigned char *ccd;
int i, j, ctype, ret = -1;
unsigned long len;
X509 *x509 = NULL;
STACK_OF(X509) *sk = NULL;
ccd = s->s2->tmp.ccl;
if (s->state == SSL2_ST_SEND_REQUEST_CERTIFICATE_A) {
... | static int request_certificate(SSL *s) {
}
| static int request_certificate(SSL *s) {
}
| static int request_certificate(SSL *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}
| static int request_certificate(SSL *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} | |
CVE-2015-0293 | OpenSSL | https://github.com/openssl/openssl | ssl/s2_srvr.c | ssl_rsa_private_decrypt | static int ssl_rsa_private_decrypt(CERT *c, int len, unsigned char *from, unsigned char *to, int padding) {
RSA *rsa;
int i;
if ((c == NULL) || (c->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL)) {
SSLerr(SSL_F_SSL_RSA_PRIVATE_DECRYPT, SSL_R_NO_PRIVATEKEY);
return (-1);
}
if (c->pkeys[S... | static int ssl_rsa_private_decrypt(CERT *c, int len, unsigned char *from, unsigned char *to, int padding) {
RSA *rsa;
int i;
if ((c == NULL) || (c->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL)) {
SSLerr(SSL_F_SSL_RSA_PRIVATE_DECRYPT, SSL_R_NO_PRIVATEKEY);
return (-1);
}
if (c->pkeys[S... | static int ssl_rsa_private_decrypt(CERT *c, int len, unsigned char *from, unsigned char *to, int padding) {
RSA *rsa;
int i;
if ((c == NULL) || (c->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL)) {
SSLerr(SSL_F_SSL_RSA_PRIVATE_DECRYPT, SSL_R_NO_PRIVATEKEY);
return (-1);
}
if (c->pkeys[S... | static int ssl_rsa_private_decrypt(CERT *c, int len, unsigned char *from, unsigned char *to, int padding) {
RSA *rsa;
int i;
if ((c == NULL) || (c->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL)) {
SSLerr(SSL_F_SSL_RSA_PRIVATE_DECRYPT, SSL_R_NO_PRIVATEKEY);
return (-1);
}
if (c->pkeys[S... | static int ssl_rsa_private_decrypt(CERT *c, int len, unsigned char *from, unsigned char *to, int padding) {
}
| static int ssl_rsa_private_decrypt(CERT *c, int len, unsigned char *from, unsigned char *to, int padding) {
}
| static int ssl_rsa_private_decrypt(CERT *c, int len, unsigned char *from, unsigned char *to, int padding) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}
| static int ssl_rsa_private_decrypt(CERT *c, int len, unsigned char *from, unsigned char *to, int padding) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} | |
CVE-2015-0559 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-wccp.c | dissect_wccp2r1_address_table_info | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
guint16 address_length;
guint32 i;
proto_tree *element_tree=NULL;
proto_item *tf=NULL;
wccp_wccp_address_table.in_use = TRUE;
if (info_tree) {
tf = proto_tre... | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
guint16 address_length;
guint32 i;
proto_tree *element_tree=NULL;
proto_item *tf=NULL;
wccp_wccp_address_table.in_use = TRUE;
if (info_tree) {
tf = proto_tre... | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
guint16 address_length;
guint32 i;
proto_tree *element_tree=NULL;
proto_item *tf=NULL;
wccp_wccp_address_table.in_use = TRUE;
if (info_tree) {
tf = proto_tre... | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
guint16 address_length;
guint32 i;
proto_tree *element_tree=NULL;
proto_item *tf=NULL;
wccp_wccp_address_table.in_use = TRUE;
if (info_tree) {
tf = proto_tre... | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
if (info_tree) {
tf = proto_tree_get_parent(info_tree);
}
wccp_wccp_address_table.family = tvb_get_ntohs(tvb,offset);
if (pinfo && info_tree) {
proto_tree_ad... | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
if (info_tree) {
tf = proto_tree_get_parent(info_tree);
}
wccp_wccp_address_table.family = tvb_get_ntohs(tvb,offset);
if (pinfo && info_tree) {
proto_tree_ad... | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (info_tree) {
tf = proto_tree_get_parent(info_tree);
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
wccp_wccp_a... | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (info_tree) {
tf = proto_tree_get_parent(info_tree);
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
wccp_wccp_a... | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
if (info_tree) {
tf = proto_tree_get_parent(info_tree);
}
wccp_wccp_address_table.family = tvb_get_ntohs(tvb,offset);
if (pinfo && info_tree) {
proto_... |
CVE-2015-0559 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-wccp.c | find_wccp_address_table | static void find_wccp_address_table(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *wccp_tree ) {
guint16 type;
guint16 item_length;
wccp_wccp_address_table.in_use = FALSE;
wccp_wccp_address_table.family = -1;
wccp_wccp_address_table.version = -1;
wccp_wccp_address_table.table_length ... | static void find_wccp_address_table(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *wccp_tree ) {
guint16 type;
guint16 item_length;
wccp_wccp_address_table.in_use = FALSE;
wccp_wccp_address_table.family = -1;
wccp_wccp_address_table.version = -1;
wccp_wccp_address_table.table_length ... | static void find_wccp_address_table(tvbuff_t *tvb, int offset, guint16 length, packet_info *pinfo, proto_tree *wccp_tree ) {
guint16 type;
guint16 item_length;
wccp_wccp_address_table.in_use = FALSE;
wccp_wccp_address_table.family = -1;
wccp_wccp_address_table.version = -1;
wccp_wccp_address_tab... | static void find_wccp_address_table(tvbuff_t *tvb, int offset, guint16 length, packet_info *pinfo, proto_tree *wccp_tree ) {
guint16 type;
guint16 item_length;
wccp_wccp_address_table.in_use = FALSE;
wccp_wccp_address_table.family = -1;
wccp_wccp_address_table.version = -1;
wccp_wccp_address_tab... | static void find_wccp_address_table(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *wccp_tree ) {
for (;;) {
if (4 > tvb_reported_length_remaining(tvb, offset)) {
return;
}
if (4 > tvb_captured_length_remaining(tvb, offset)) {
return;
}
type... | static void find_wccp_address_table(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *wccp_tree ) {
for (;;) {
if (4 > tvb_reported_length_remaining(tvb, offset)) {
return;
}
if (4 > tvb_captured_length_remaining(tvb, offset)) {
return;
}
type... | static void find_wccp_address_table(tvbuff_t *tvb, int offset, guint16 length, packet_info *pinfo, proto_tree *wccp_tree ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
while (length >= 4) {
type = tvb_get_ntohs(tvb, offset);
item_length = tvb_get_ntohs(tvb, offset+2);
if (item_length ... | static void find_wccp_address_table(tvbuff_t *tvb, int offset, guint16 length, packet_info *pinfo, proto_tree *wccp_tree ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
while (length >= 4) {
type = tvb_get_ntohs(tvb, offset);
item_length = tvb_get_ntohs(tvb, offset+2);
if (item_length ... | static void find_wccp_address_table(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *wccp_tree ) {
for (;;) {
if (4 > tvb_reported_length_remaining(tvb, offset)) {
return;
}
if (4 > tvb_captured_length_remaining(tvb, offset)) {
return;
}
... |
CVE-2015-0560 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-wccp.c | dissect_wccp2r1_address_table_info | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
guint16 address_length;
guint32 i;
proto_tree *element_tree=NULL;
proto_item *tf=NULL;
wccp_wccp_address_table.in_use = TRUE;
if (length < 2*4) {
return leng... | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
guint16 address_length;
guint32 i;
proto_tree *element_tree=NULL;
proto_item *tf=NULL;
wccp_wccp_address_table.in_use = TRUE;
if (length < 2*4) {
return leng... | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
guint16 address_length;
guint32 i;
proto_tree *element_tree=NULL;
proto_item *tf=NULL;
wccp_wccp_address_table.in_use = TRUE;
if (info_tree) {
tf = proto_tre... | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
guint16 address_length;
guint32 i;
proto_tree *element_tree=NULL;
proto_item *tf=NULL;
wccp_wccp_address_table.in_use = TRUE;
if (info_tree) {
tf = proto_tre... | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
wccp_wccp_address_table.family = tvb_get_ntohs(tvb,offset);
proto_tree_add_item(info_tree, hf_address_table_family, tvb, offset, 2, ENC_BIG_ENDIAN);
address_length = tvb_get_nto... | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
wccp_wccp_address_table.family = tvb_get_ntohs(tvb,offset);
proto_tree_add_item(info_tree, hf_address_table_family, tvb, offset, 2, ENC_BIG_ENDIAN);
address_length = tvb_get_nto... | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
wccp_wccp_address_table.family = tvb_get_ntohs(tvb,offset);
if (pinfo && info_tree) {
proto_tree_add_item(info_tree, hf_add... | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
wccp_wccp_address_table.family = tvb_get_ntohs(tvb,offset);
if (pinfo && info_tree) {
proto_tree_add_item(info_tree, hf_add... | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
wccp_wccp_address_table.family = tvb_get_ntohs(tvb,offset);
proto_tree_add_item(info_tree, hf_address_table_family, tvb, offset, 2, ENC_BIG_ENDIAN);
address_length = tvb_get... |
CVE-2015-0561 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-lpp.c | dissect_lpp_T_reportingInterval | static int dissect_lpp_T_reportingInterval(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
guint32 idx;
const gchar *interval[10] = {"", ": 1 s", ": 2 s", ": 4 s", ": 8 s", ": 10 s", ": 16 s", ": 20 s", ": 32 s", ": 64 s" };
offset = dissect_per_enumerated(tvb, offset, actx, ... | static int dissect_lpp_T_reportingInterval(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
guint32 idx;
const gchar *interval[10] = {"", ": 1 s", ": 2 s", ": 4 s", ": 8 s", ": 10 s", ": 16 s", ": 20 s", ": 32 s", ": 64 s" };
offset = dissect_per_enumerated(tvb, offset, actx, ... | static int dissect_lpp_T_reportingInterval(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
guint32 idx;
const gchar *interval[10] = {"", ": 1 s", ": 2 s", ": 4 s", ": 8 s", ": 10 s", ": 16 s", ": 20 s", ": 32 s", ": 64 s" };
offset = dissect_per_enumerated(tvb, offset, actx, ... | static int dissect_lpp_T_reportingInterval(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
guint32 idx;
const gchar *interval[10] = {"", ": 1 s", ": 2 s", ": 4 s", ": 8 s", ": 10 s", ": 16 s", ": 20 s", ": 32 s", ": 64 s" };
offset = dissect_per_enumerated(tvb, offset, actx, ... | static int dissect_lpp_T_reportingInterval(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
guint32 idx;
const gchar *interval[10] = {"", ": 1 s", ": 2 s", ": 4 s", ": 8 s", ": 10 s", ": 16 s", ": 20 s", ": 32 s", ": 64 s" };
offset = dissect_per_enumerated(tvb, offset, actx, ... | static int dissect_lpp_T_reportingInterval(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
guint32 idx;
const gchar *interval[10] = {"", ": 1 s", ": 2 s", ": 4 s", ": 8 s", ": 10 s", ": 16 s", ": 20 s", ": 32 s", ": 64 s" };
offset = dissect_per_enumerated(tvb, offset, actx, ... | static int dissect_lpp_T_reportingInterval(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
guint32 idx;
const gchar *interval[10] = {"", ": 1 s", ": 2 s", ": 4 s", ": 8 s", ": 10 s", ": 16 s", ": 20 s", ": 32 s", ": 64 s" };
offset = dissect_per_enumerated(tvb, offset, actx, ... | static int dissect_lpp_T_reportingInterval(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
guint32 idx;
const gchar *interval[10] = {"", ": 1 s", ": 2 s", ": 4 s", ": 8 s", ": 10 s", ": 16 s", ": 20 s", ": 32 s", ": 64 s" };
offset = dissect_per_enumerated(tvb, offset, actx, ... | static int dissect_lpp_T_reportingInterval(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
guint32 idx;
const gchar *interval[10] = {"", ": 1 s", ": 2 s", ": 4 s", ": 8 s", ": 10 s", ": 16 s", ": 20 s", ": 32 s", ": 64 s" };
offset = dissect_per_enumerated(tvb, offset, ac... |
CVE-2015-0562 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-dec-dnart.c | dissect_dec_rt | static void dissect_dec_rt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
guint8 padding_length;
guint8 forward;
guint8 msg_flags;
guint rt_visit_count, rt_zero = 0;
gint offset;
proto_tree *rt_tree;
proto_tree *flags_tree;
proto_item *ti;
char *addr;
offset = 0;
col_... | static void dissect_dec_rt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
guint8 padding_length;
guint8 forward;
guint8 msg_flags;
guint rt_visit_count, rt_zero = 0;
gint offset;
proto_tree *rt_tree;
proto_tree *flags_tree;
proto_item *ti;
char *addr;
offset = 0;
col_... | static void dissect_dec_rt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
guint8 padding_length;
guint8 forward;
guint8 msg_flags;
guint rt_visit_count, rt_zero = 0;
gint offset;
proto_tree *rt_tree;
proto_tree *flags_tree;
proto_item *ti;
char *addr;
offset = 0;
col_... | static void dissect_dec_rt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
guint8 padding_length;
guint8 forward;
guint8 msg_flags;
guint rt_visit_count, rt_zero = 0;
gint offset;
proto_tree *rt_tree;
proto_tree *flags_tree;
proto_item *ti;
char *addr;
offset = 0;
col_... | static void dissect_dec_rt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
col_clear(pinfo->cinfo, COL_FO);
set_dnet_address(&pinfo->dl_src, &pinfo->net_src);
set_dnet_address(&pinfo->dl_src, &pinfo->src);
set_dnet_address(&pinfo->dl_dst, &pinfo->net_dst);
set_dnet_address(&pinfo->dl_dst, &pi... | static void dissect_dec_rt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
col_clear(pinfo->cinfo, COL_FO);
set_dnet_address(pinfo, &pinfo->dl_src, &pinfo->net_src);
set_dnet_address(pinfo, &pinfo->dl_src, &pinfo->src);
set_dnet_address(pinfo, &pinfo->dl_dst, &pinfo->net_dst);
set_dnet_addres... | static void dissect_dec_rt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
col_clear(pinfo->cinfo, COL_FO);
set_dnet_address(&pinfo->dl_src, &pinfo->net_src);
set_dnet_address(&pinfo->dl_src, &pinfo->src);
set_dnet_address(&pinfo->dl_dst, &pinfo->... | static void dissect_dec_rt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
col_clear(pinfo->cinfo, COL_FO);
set_dnet_address(pinfo, &pinfo->dl_src, &pinfo->net_src);
set_dnet_address(pinfo, &pinfo->dl_src, &pinfo->src);
set_dnet_address(pinfo, &pi... | static void dissect_dec_rt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
col_clear(pinfo->cinfo, COL_FO);
- set_dnet_address(&pinfo->dl_src, &pinfo->net_src);
- set_dnet_address(&pinfo->dl_src, &pinfo->src);
- set_dnet_address(&pinfo->dl_dst, &pinfo->net_dst);
- set_dnet_address(&pinfo->dl_ds... |
CVE-2015-0562 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-dec-dnart.c | set_dnet_address | static void set_dnet_address(address *paddr_src, address *paddr_tgt) {
if (paddr_tgt->type != AT_STRGZ && paddr_src->type == AT_ETHER) {
char *addr = dnet_ntoa((const guint8 *)paddr_src->data);
if (addr != NULL) {
SET_ADDRESS(paddr_tgt, AT_STRGZ, 1, addr);
}
}
} | static void set_dnet_address(packet_info *pinfo, address *paddr_src, address *paddr_tgt) {
if (paddr_tgt->type != AT_STRGZ && paddr_src->type == AT_ETHER) {
char *addr = dnet_ntoa((const guint8 *)paddr_src->data);
if (addr != NULL) {
SET_ADDRESS(paddr_tgt, AT_STRGZ, 1, wmem_strdup(pinfo-... | static void set_dnet_address(address *paddr_src, address *paddr_tgt) {
if (paddr_tgt->type != AT_STRGZ && paddr_src->type == AT_ETHER) {
char *addr = dnet_ntoa((const guint8 *)paddr_src->data);
if (addr != NULL) {
SET_ADDRESS(paddr_tgt, AT_STRGZ, 1, addr);
}
}
} | static void set_dnet_address(packet_info *pinfo, address *paddr_src, address *paddr_tgt) {
if (paddr_tgt->type != AT_STRGZ && paddr_src->type == AT_ETHER) {
char *addr = dnet_ntoa((const guint8 *)paddr_src->data);
if (addr != NULL) {
SET_ADDRESS(paddr_tgt, AT_STRGZ, 1, wmem_strdup(pinfo-... | static void set_dnet_address(address *paddr_src, address *paddr_tgt) {
if (paddr_tgt->type != AT_STRGZ && paddr_src->type == AT_ETHER) {
char *addr = dnet_ntoa((const guint8 *)paddr_src->data);
if (addr != NULL) {
SET_ADDRESS(paddr_tgt, AT_STRGZ, 1, addr);
}
}
}
| static void set_dnet_address(packet_info *pinfo, address *paddr_src, address *paddr_tgt) {
if (paddr_tgt->type != AT_STRGZ && paddr_src->type == AT_ETHER) {
char *addr = dnet_ntoa((const guint8 *)paddr_src->data);
if (addr != NULL) {
SET_ADDRESS(paddr_tgt, AT_STRGZ, 1, wmem_strdup(pinfo-... | static void set_dnet_address(address *paddr_src, address *paddr_tgt) {
if (paddr_tgt->type != AT_STRGZ && paddr_src->type == AT_ETHER) {
char *addr = dnet_ntoa((const guint8 *)paddr_src->data);
if (addr != NULL) {
SET_ADDRESS(paddr_tgt, AT_STRGZ, 1, addr);
}
}
}
| static void set_dnet_address(packet_info *pinfo, address *paddr_src, address *paddr_tgt) {
if (paddr_tgt->type != AT_STRGZ && paddr_src->type == AT_ETHER) {
char *addr = dnet_ntoa((const guint8 *)paddr_src->data);
if (addr != NULL) {
SET_ADDRESS(paddr_tgt, AT_STRGZ, 1, wmem_strdup(pinfo-... | -static void set_dnet_address(address *paddr_src, address *paddr_tgt) {
+static void set_dnet_address(packet_info *pinfo, address *paddr_src, address *paddr_tgt) {
if (paddr_tgt->type != AT_STRGZ && paddr_src->type == AT_ETHER) {
char *addr = dnet_ntoa((const guint8 *)paddr_src->data);
if (addr !... |
CVE-2015-0563 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-smtp.c | dissect_smtp | static void dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
struct smtp_proto_data *spd_frame_data;
proto_tree *smtp_tree = NULL;
proto_tree *cmdresp_tree = NULL;
proto_item *ti, *hidden_item;
int offset = 0;
int request = 0;
conversation_t *conversation;
struct smtp_... | static void dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
struct smtp_proto_data *spd_frame_data;
proto_tree *smtp_tree = NULL;
proto_tree *cmdresp_tree = NULL;
proto_item *ti, *hidden_item;
int offset = 0;
int request = 0;
conversation_t *conversation;
struct smtp_... | static void dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
struct smtp_proto_data *spd_frame_data;
proto_tree *smtp_tree = NULL;
proto_tree *cmdresp_tree = NULL;
proto_item *ti, *hidden_item;
int offset = 0;
int request = 0;
conversation_t *conversation;
struct smtp_... | static void dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
struct smtp_proto_data *spd_frame_data;
proto_tree *smtp_tree = NULL;
proto_tree *cmdresp_tree = NULL;
proto_item *ti, *hidden_item;
int offset = 0;
int request = 0;
conversation_t *conversation;
struct smtp_... | static void dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
proto_tree *smtp_tree = NULL;
int offset = 0;
guint8 *decrypt = NULL;
guint8 *base64_string = NULL;
conversation = find_or_create_conversation(pinfo);
session_state = (struct smtp_session_state *)conversation_get_pro... | static void dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
proto_tree *smtp_tree = NULL;
int offset = 0;
guint8 *decrypt = NULL;
size_t decrypt_len;
guint8 *base64_string = NULL;
conversation = find_or_create_conversation(pinfo);
session_state = (struct smtp_session_stat... | static void dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
proto_tree *smtp_tree = NULL;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int offset = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint8 *decrypt = NULL;
guin... | static void dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
proto_tree *smtp_tree = NULL;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int offset = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint8 *decrypt = NULL;
size... | static void dissect_smtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
proto_tree *smtp_tree = NULL;
int offset = 0;
guint8 *decrypt = NULL;
+ size_t decrypt_len;
guint8 *base64_string = NULL;
conversation = find_or_create_conversation(pinfo);
session_state = (struct smtp_sess... |
CVE-2015-0564 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-ssl-utils.c | ssl_decrypt_record | int ssl_decrypt_record(SslDecryptSession*ssl,SslDecoder* decoder, gint ct, const guchar* in, guint inl, StringInfo* comp_str, StringInfo* out_str, guint* outl) {
guint pad, worklen, uncomplen;
guint8 *mac;
ssl_debug_printf("ssl_decrypt_record ciphertext len %d\n", inl);
ssl_print_data("Ciphertext",in, i... | int ssl_decrypt_record(SslDecryptSession*ssl,SslDecoder* decoder, gint ct, const guchar* in, guint inl, StringInfo* comp_str, StringInfo* out_str, guint* outl) {
guint pad, worklen, uncomplen;
guint8 *mac;
ssl_debug_printf("ssl_decrypt_record ciphertext len %d\n", inl);
ssl_print_data("Ciphertext",in, i... | int ssl_decrypt_record(SslDecryptSession*ssl,SslDecoder* decoder, gint ct, const guchar* in, guint inl, StringInfo* comp_str, StringInfo* out_str, guint* outl) {
guint pad, worklen, uncomplen;
guint8 *mac;
ssl_debug_printf("ssl_decrypt_record ciphertext len %d\n", inl);
ssl_print_data("Ciphertext",in, i... | int ssl_decrypt_record(SslDecryptSession*ssl,SslDecoder* decoder, gint ct, const guchar* in, guint inl, StringInfo* comp_str, StringInfo* out_str, guint* outl) {
guint pad, worklen, uncomplen;
guint8 *mac;
ssl_debug_printf("ssl_decrypt_record ciphertext len %d\n", inl);
ssl_print_data("Ciphertext",in, i... | int ssl_decrypt_record(SslDecryptSession*ssl,SslDecoder* decoder, gint ct, const guchar* in, guint inl, StringInfo* comp_str, StringInfo* out_str, guint* outl) {
ssl_debug_printf("ssl_decrypt_record ciphertext len %d\n", inl);
ssl_print_data("Ciphertext",in, inl);
if (inl > out_str->data_len) {
ssl_... | int ssl_decrypt_record(SslDecryptSession*ssl,SslDecoder* decoder, gint ct, const guchar* in, guint inl, StringInfo* comp_str, StringInfo* out_str, guint* outl) {
ssl_debug_printf("ssl_decrypt_record ciphertext len %d\n", inl);
ssl_print_data("Ciphertext",in, inl);
if (inl > out_str->data_len) {
ssl_... | int ssl_decrypt_record(SslDecryptSession*ssl,SslDecoder* decoder, gint ct, const guchar* in, guint inl, StringInfo* comp_str, StringInfo* out_str, guint* outl) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ssl_debug_printf("ssl_decrypt_record ciphertext len %d\n", inl);
ssl_print_data("Ciphertext",in, inl... | int ssl_decrypt_record(SslDecryptSession*ssl,SslDecoder* decoder, gint ct, const guchar* in, guint inl, StringInfo* comp_str, StringInfo* out_str, guint* outl) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ssl_debug_printf("ssl_decrypt_record ciphertext len %d\n", inl);
ssl_print_data("Ciphertext",in, inl... | int ssl_decrypt_record(SslDecryptSession*ssl,SslDecoder* decoder, gint ct, const guchar* in, guint inl, StringInfo* comp_str, StringInfo* out_str, guint* outl) {
ssl_debug_printf("ssl_decrypt_record ciphertext len %d\n", inl);
ssl_print_data("Ciphertext",in, inl);
if (inl > out_str->data_len) {
... |
CVE-2015-1208 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavformat/mov.c | mov_read_default | static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom) {
int64_t total_size = 0;
MOVAtom a;
int i;
if (c->atom_depth > 10) {
av_log(c->fc, AV_LOG_ERROR, "Atoms too deeply nested\n");
return AVERROR_VALIDDATA;
}
c->atom_depth ++;
if (atom.size < 0) {
... | static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom) {
int64_t total_size = 0;
MOVAtom a;
int i;
if (c->atom_depth > 10) {
av_log(c->fc, AV_LOG_ERROR, "Atoms too deeply nested\n");
return AVERROR_VALIDDATA;
}
c->atom_depth ++;
if (atom.size < 0) {
... | static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom) {
int64_t total_size = 0;
MOVAtom a;
int i;
if (c->atom_depth > 10) {
av_log(c->fc, AV_LOG_ERROR, "Atoms too deeply nested\n");
return AVERROR_VALIDDATA;
}
c->atom_depth ++;
if (atom.size < 0) {
... | static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom) {
int64_t total_size = 0;
MOVAtom a;
int i;
if (c->atom_depth > 10) {
av_log(c->fc, AV_LOG_ERROR, "Atoms too deeply nested\n");
return AVERROR_VALIDDATA;
}
c->atom_depth ++;
if (atom.size < 0) {
... | static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom) {
int64_t total_size = 0;
if (atom.size < 0) {
atom.size = T64_MAX;
}
while (total_size + 8 <= atom.size && !avio_feof(pb)) {
int (*parse)(MOVContext*, AVIOContext*, MOVAtom) = NULL;
a.size = atom.size;
... | static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom) {
int64_t total_size = 0;
if (atom.size < 0) {
atom.size = T64_MAX;
}
while (total_size + 8 <= atom.size && !avio_feof(pb)) {
int (*parse)(MOVContext*, AVIOContext*, MOVAtom) = NULL;
a.size = atom.size;
... | static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom) {
int64_t total_size = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (atom.size < 0) {
atom.size = T64_MAX;
}
while (total_size + 8 <= atom.size && !url_feof(pb)) {
int (*parse)(MOVContext*, AVIOContext*,... | static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom) {
int64_t total_size = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (atom.size < 0) {
atom.size = T64_MAX;
}
while (total_size + 8 <= atom.size && !url_feof(pb)) {
int (*parse)(MOVContext*, AVIOContext*,... | static int mov_read_default(MOVContext *c, AVIOContext *pb, MOVAtom atom) {
int64_t total_size = 0;
if (atom.size < 0) {
atom.size = T64_MAX;
}
while (total_size + 8 <= atom.size && !avio_feof(pb)) {
int (*parse)(MOVContext*, AVIOContext*, MOVAtom) = NULL;
a.size = atom.s... |
CVE-2015-1472 | glibc | https://github.com/bminor/glibc | stdio-common/tst-sscanf.c | main | int main (void) {
double d[6];
long l[6];
int i, j;
int tst_locale;
int result = 0;
tst_locale = 1;
if (tst_locale) {
if (setlocale (LC_ALL, "en_US.ISO-8859-1") == NULL) {
puts ("Failed to set en_US locale, skipping locale related tests");
tst_locale = 0;
... | int main (void) {
double d[6];
long l[6];
int i, j;
int tst_locale;
int result = 0;
tst_locale = 1;
if (tst_locale) {
if (setlocale (LC_ALL, "en_US.ISO-8859-1") == NULL) {
puts ("Failed to set en_US locale, skipping locale related tests");
tst_locale = 0;
... | int main (void) {
double d[6];
long l[6];
int i, j;
int tst_locale;
int result = 0;
tst_locale = 1;
if (tst_locale) {
if (setlocale (LC_ALL, "en_US.ISO-8859-1") == NULL) {
puts ("Failed to set en_US locale, skipping locale related tests");
tst_locale = 0;
... | int main (void) {
double d[6];
long l[6];
int i, j;
int tst_locale;
int result = 0;
tst_locale = 1;
if (tst_locale) {
if (setlocale (LC_ALL, "en_US.ISO-8859-1") == NULL) {
puts ("Failed to set en_US locale, skipping locale related tests");
tst_locale = 0;
... | int main (void) {
int result = 0;
for (i = 0; i < 4; ++i) {
if (SSCANF (str_double[i], L("%11lf%11lf%11lf%11lf%11lf%11lf"), &d[0], &d[1], &d[2], &d[3], &d[4], &d[5]) != 6) {
result = 1;
} else {
for (j = 0; j < 6; ++j)
if (d[j] != val_double[6 * i + j]) {
... | int main (void) {
int result = 0;
for (i = 0; i < 4; ++i) {
if (SSCANF (str_double[i], L("%11lf%11lf%11lf%11lf%11lf%11lf"), &d[0], &d[1], &d[2], &d[3], &d[4], &d[5]) != 6) {
result = 1;
} else {
for (j = 0; j < 6; ++j)
if (d[j] != val_double[6 * i + j]) {
... | int main (void) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int result = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
for (i = 0; i < 4; ++i) {
if (SSCANF (str_double[i], L("%11lf%11lf%11lf%11lf%11lf%11lf"), &d[0], &d[1], &d[2], &d[3], &d[4], &d[5]) != 6) {
/* PLACEHOLDER: DO NOT DEL... | int main (void) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int result = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
for (i = 0; i < 4; ++i) {
if (SSCANF (str_double[i], L("%11lf%11lf%11lf%11lf%11lf%11lf"), &d[0], &d[1], &d[2], &d[3], &d[4], &d[5]) != 6) {
/* PLACEHOLDER: DO NOT DEL... | int main (void) {
int result = 0;
for (i = 0; i < 4; ++i) {
if (SSCANF (str_double[i], L("%11lf%11lf%11lf%11lf%11lf%11lf"), &d[0], &d[1], &d[2], &d[3], &d[4], &d[5]) != 6) {
result = 1;
} else {
for (j = 0; j < 6; ++j)
if (d[j] != val_double[6 * i ... |
CVE-2015-1473 | glibc | https://github.com/bminor/glibc | stdio-common/tst-sscanf.c | main | int main (void) {
double d[6];
long l[6];
int i, j;
int tst_locale;
int result = 0;
tst_locale = 1;
if (tst_locale) {
if (setlocale (LC_ALL, "en_US.ISO-8859-1") == NULL) {
puts ("Failed to set en_US locale, skipping locale related tests");
tst_locale = 0;
... | int main (void) {
double d[6];
long l[6];
int i, j;
int tst_locale;
int result = 0;
tst_locale = 1;
if (tst_locale) {
if (setlocale (LC_ALL, "en_US.ISO-8859-1") == NULL) {
puts ("Failed to set en_US locale, skipping locale related tests");
tst_locale = 0;
... | int main (void) {
double d[6];
long l[6];
int i, j;
int tst_locale;
int result = 0;
tst_locale = 1;
if (tst_locale) {
if (setlocale (LC_ALL, "en_US.ISO-8859-1") == NULL) {
puts ("Failed to set en_US locale, skipping locale related tests");
tst_locale = 0;
... | int main (void) {
double d[6];
long l[6];
int i, j;
int tst_locale;
int result = 0;
tst_locale = 1;
if (tst_locale) {
if (setlocale (LC_ALL, "en_US.ISO-8859-1") == NULL) {
puts ("Failed to set en_US locale, skipping locale related tests");
tst_locale = 0;
... | int main (void) {
int result = 0;
for (i = 0; i < 4; ++i) {
if (SSCANF (str_double[i], L("%11lf%11lf%11lf%11lf%11lf%11lf"), &d[0], &d[1], &d[2], &d[3], &d[4], &d[5]) != 6) {
result = 1;
} else {
for (j = 0; j < 6; ++j)
if (d[j] != val_double[6 * i + j]) {
... | int main (void) {
int result = 0;
for (i = 0; i < 4; ++i) {
if (SSCANF (str_double[i], L("%11lf%11lf%11lf%11lf%11lf%11lf"), &d[0], &d[1], &d[2], &d[3], &d[4], &d[5]) != 6) {
result = 1;
} else {
for (j = 0; j < 6; ++j)
if (d[j] != val_double[6 * i + j]) {
... | int main (void) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int result = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
for (i = 0; i < 4; ++i) {
if (SSCANF (str_double[i], L("%11lf%11lf%11lf%11lf%11lf%11lf"), &d[0], &d[1], &d[2], &d[3], &d[4], &d[5]) != 6) {
/* PLACEHOLDER: DO NOT DEL... | int main (void) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int result = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
for (i = 0; i < 4; ++i) {
if (SSCANF (str_double[i], L("%11lf%11lf%11lf%11lf%11lf%11lf"), &d[0], &d[1], &d[2], &d[3], &d[4], &d[5]) != 6) {
/* PLACEHOLDER: DO NOT DEL... | int main (void) {
int result = 0;
for (i = 0; i < 4; ++i) {
if (SSCANF (str_double[i], L("%11lf%11lf%11lf%11lf%11lf%11lf"), &d[0], &d[1], &d[2], &d[3], &d[4], &d[5]) != 6) {
result = 1;
} else {
for (j = 0; j < 6; ++j)
if (d[j] != val_double[6 * i ... |
CVE-2015-1781 | glibc | https://github.com/bminor/glibc | resolv/nss_dns/dns-host.c | getanswer_r | static enum nss_status getanswer_r (const querybuf *answer, int anslen, const char *qname, int qtype, struct hostent *result, char *buffer, size_t buflen, int *errnop, int *h_errnop, int map,
int32_t *ttlp, char **canonp) {
struct host_data {
char *aliases[MAX_NR_ALIASES]... | static enum nss_status getanswer_r (const querybuf *answer, int anslen, const char *qname, int qtype, struct hostent *result, char *buffer, size_t buflen, int *errnop, int *h_errnop, int map,
int32_t *ttlp, char **canonp) {
struct host_data {
char *aliases[MAX_NR_ALIASES]... | static enum nss_status getanswer_r (const querybuf *answer, int anslen, const char *qname, int qtype, struct hostent *result, char *buffer, size_t buflen, int *errnop, int *h_errnop, int map,
int32_t *ttlp, char **canonp) {
struct host_data {
char *aliases[MAX_NR_ALIASES]... | static enum nss_status getanswer_r (const querybuf *answer, int anslen, const char *qname, int qtype, struct hostent *result, char *buffer, size_t buflen, int *errnop, int *h_errnop, int map,
int32_t *ttlp, char **canonp) {
struct host_data {
char *aliases[MAX_NR_ALIASES]... | static enum nss_status getanswer_r (const querybuf *answer, int anslen, const char *qname, int qtype, struct hostent *result, char *buffer, size_t buflen, int *errnop, int *h_errnop, int map,
int32_t *ttlp, char **canonp) {
uintptr_t pad = -(uintptr_t) buffer % __alignof__ (struc... | static enum nss_status getanswer_r (const querybuf *answer, int anslen, const char *qname, int qtype, struct hostent *result, char *buffer, size_t buflen, int *errnop, int *h_errnop, int map,
int32_t *ttlp, char **canonp) {
uintptr_t pad = -(uintptr_t) buffer % __alignof__ (struc... | static enum nss_status getanswer_r (const querybuf *answer, int anslen, const char *qname, int qtype, struct hostent *result, char *buffer, size_t buflen, int *errnop, int *h_errnop, int map,
int32_t *ttlp, char **canonp) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
uintpt... | static enum nss_status getanswer_r (const querybuf *answer, int anslen, const char *qname, int qtype, struct hostent *result, char *buffer, size_t buflen, int *errnop, int *h_errnop, int map,
int32_t *ttlp, char **canonp) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
uintpt... | static enum nss_status getanswer_r (const querybuf *answer, int anslen, const char *qname, int qtype, struct hostent *result, char *buffer, size_t buflen, int *errnop, int *h_errnop, int map,
int32_t *ttlp, char **canonp) {
uintptr_t pad = -(uintptr_t) buffer % __alignof__ (st... |
CVE-2015-1788 | OpenSSL | https://github.com/openssl/openssl | crypto/bn/bn_gf2m.c | BN_GF2m_mod_inv | int BN_GF2m_mod_inv(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) {
BIGNUM *b, *c = NULL, *u = NULL, *v = NULL, *tmp;
int ret = 0;
bn_check_top(a);
bn_check_top(p);
BN_CTX_start(ctx);
if ((b = BN_CTX_get(ctx)) == NULL) {
goto err;
}
if ((c = BN_CTX_get(ctx)) == NULL) ... | int BN_GF2m_mod_inv(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) {
BIGNUM *b, *c = NULL, *u = NULL, *v = NULL, *tmp;
int ret = 0;
bn_check_top(a);
bn_check_top(p);
BN_CTX_start(ctx);
if ((b = BN_CTX_get(ctx)) == NULL) {
goto err;
}
if ((c = BN_CTX_get(ctx)) == NULL) ... | int BN_GF2m_mod_inv(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) {
BIGNUM *b, *c = NULL, *u = NULL, *v = NULL, *tmp;
int ret = 0;
bn_check_top(a);
bn_check_top(p);
BN_CTX_start(ctx);
if ((b = BN_CTX_get(ctx)) == NULL) {
goto err;
}
if ((c = BN_CTX_get(ctx)) == NULL) ... | int BN_GF2m_mod_inv(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) {
BIGNUM *b, *c = NULL, *u = NULL, *v = NULL, *tmp;
int ret = 0;
bn_check_top(a);
bn_check_top(p);
BN_CTX_start(ctx);
if ((b = BN_CTX_get(ctx)) == NULL) {
goto err;
}
if ((c = BN_CTX_get(ctx)) == NULL) ... | int BN_GF2m_mod_inv(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) {
bn_check_top(a);
bn_check_top(p);
BN_CTX_start(ctx);
if ((b = BN_CTX_get(ctx)) == NULL) {
goto err;
}
if ((c = BN_CTX_get(ctx)) == NULL) {
goto err;
}
if ((u = BN_CTX_get(ctx)) == NULL) {
... | int BN_GF2m_mod_inv(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) {
bn_check_top(a);
bn_check_top(p);
BN_CTX_start(ctx);
if ((b = BN_CTX_get(ctx)) == NULL) {
goto err;
}
if ((c = BN_CTX_get(ctx)) == NULL) {
goto err;
}
if ((u = BN_CTX_get(ctx)) == NULL) {
... | int BN_GF2m_mod_inv(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
bn_check_top(a);
bn_check_top(p);
BN_CTX_start(ctx);
if ((b = BN_CTX_get(ctx)) == NULL) {
goto err;
}
if ((c = BN_CTX_get(ctx)) == NULL) {
goto err;
... | int BN_GF2m_mod_inv(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
bn_check_top(a);
bn_check_top(p);
BN_CTX_start(ctx);
if ((b = BN_CTX_get(ctx)) == NULL) {
goto err;
}
if ((c = BN_CTX_get(ctx)) == NULL) {
goto err;
... | int BN_GF2m_mod_inv(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) {
bn_check_top(a);
bn_check_top(p);
BN_CTX_start(ctx);
if ((b = BN_CTX_get(ctx)) == NULL) {
goto err;
}
if ((c = BN_CTX_get(ctx)) == NULL) {
goto err;
}
if ((u = BN_CTX_get(ctx)) == N... |
CVE-2015-1789 | OpenSSL | https://github.com/openssl/openssl | crypto/x509/x509_vfy.c | X509_cmp_time | int X509_cmp_time(const ASN1_TIME *ctm, time_t *cmp_time) {
char *str;
ASN1_TIME atm;
long offset;
char buff1[24], buff2[24], *p;
int i, j;
p = buff1;
i = ctm->length;
str = (char *)ctm->data;
if (ctm->type == V_ASN1_UTCTIME) {
if ((i < 11) || (i > 17)) {
return 0... | int X509_cmp_time(const ASN1_TIME *ctm, time_t *cmp_time) {
char *str;
ASN1_TIME atm;
long offset;
char buff1[24], buff2[24], *p;
int i, j, remaining;
p = buff1;
remaining = ctm->length;
str = (char *)ctm->data;
if (ctm->type == V_ASN1_UTCTIME) {
int min_length = sizeof("YYMM... | int X509_cmp_time(const ASN1_TIME *ctm, time_t *cmp_time) {
char *str;
ASN1_TIME atm;
long offset;
char buff1[24], buff2[24], *p;
int i, j;
p = buff1;
i = ctm->length;
str = (char *)ctm->data;
if (ctm->type == V_ASN1_UTCTIME) {
if ((i < 11) || (i > 17)) {
return 0... | int X509_cmp_time(const ASN1_TIME *ctm, time_t *cmp_time) {
char *str;
ASN1_TIME atm;
long offset;
char buff1[24], buff2[24], *p;
int i, j, remaining;
p = buff1;
remaining = ctm->length;
str = (char *)ctm->data;
if (ctm->type == V_ASN1_UTCTIME) {
int min_length = sizeof("YYMM... | int X509_cmp_time(const ASN1_TIME *ctm, time_t *cmp_time) {
char buff1[24], buff2[24], *p;
int i, j;
p = buff1;
i = ctm->length;
str = (char *)ctm->data;
if (ctm->type == V_ASN1_UTCTIME) {
if ((i < 11) || (i > 17)) {
return 0;
}
memcpy(p, str, 10);
p +... | int X509_cmp_time(const ASN1_TIME *ctm, time_t *cmp_time) {
char buff1[24], buff2[24], *p;
int i, j, remaining;
p = buff1;
remaining = ctm->length;
str = (char *)ctm->data;
if (ctm->type == V_ASN1_UTCTIME) {
int min_length = sizeof("YYMMDDHHMMZ") - 1;
int max_length = sizeof("YYM... | int X509_cmp_time(const ASN1_TIME *ctm, time_t *cmp_time) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
char buff1[24], buff2[24], *p;
int i, j;
p = buff1;
i = ctm->length;
str = (char *)ctm->data;
if (ctm->type == V_ASN1_UTCTIME) {
if ((i < 11) || (i > 17)) {
return 0;... | int X509_cmp_time(const ASN1_TIME *ctm, time_t *cmp_time) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
char buff1[24], buff2[24], *p;
int i, j, remaining;
p = buff1;
remaining = ctm->length;
str = (char *)ctm->data;
if (ctm->type == V_ASN1_UTCTIME) {
int min_length = sizeof("YYMMD... | int X509_cmp_time(const ASN1_TIME *ctm, time_t *cmp_time) {
char buff1[24], buff2[24], *p;
- int i, j;
+ int i, j, remaining;
p = buff1;
- i = ctm->length;
+ remaining = ctm->length;
str = (char *)ctm->data;
if (ctm->type == V_ASN1_UTCTIME) {
- if ((i < 11) || (i > 17)) {
+ ... |
CVE-2015-1790 | OpenSSL | https://github.com/openssl/openssl | crypto/pkcs7/pk7_doit.c | PKCS7_dataDecode | BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) {
int i, j;
BIO *out = NULL, *btmp = NULL, *etmp = NULL, *bio = NULL;
X509_ALGOR *xa;
ASN1_OCTET_STRG *data_body = NULL;
const EVP_MD *evp_md;
const EVP_CIPHER *evp_cipher = NULL;
EVP_CIPHER_CTX *evp_ctx = NULL;
X... | BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) {
int i, j;
BIO *out = NULL, *btmp = NULL, *etmp = NULL, *bio = NULL;
X509_ALGOR *xa;
ASN1_OCTET_STRG *data_body = NULL;
const EVP_MD *evp_md;
const EVP_CIPHER *evp_cipher = NULL;
EVP_CIPHER_CTX *evp_ctx = NULL;
X... | BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) {
int i, j;
BIO *out = NULL, *btmp = NULL, *etmp = NULL, *bio = NULL;
X509_ALGOR *xa;
ASN1_OCTET_STRG *data_body = NULL;
const EVP_MD *evp_md;
const EVP_CIPHER *evp_cipher = NULL;
EVP_CIPHER_CTX *evp_ctx = NULL;
X... | BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) {
int i, j;
BIO *out = NULL, *btmp = NULL, *etmp = NULL, *bio = NULL;
X509_ALGOR *xa;
ASN1_OCTET_STRG *data_body = NULL;
const EVP_MD *evp_md;
const EVP_CIPHER *evp_cipher = NULL;
EVP_CIPHER_CTX *evp_ctx = NULL;
X... | BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) {
BIO *out = NULL, *btmp = NULL, *etmp = NULL, *bio = NULL;
const EVP_CIPHER *evp_cipher = NULL;
X509_ALGOR *enc_alg = NULL;
STACK_OF(X509_ALGOR) *md_sk = NULL;
STACK_OF(PKCS7_RECIP_FO) *rsk = NULL;
PKCS7_RECIP_FO *ri = N... | BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) {
BIO *out = NULL, *btmp = NULL, *etmp = NULL, *bio = NULL;
const EVP_CIPHER *evp_cipher = NULL;
X509_ALGOR *enc_alg = NULL;
STACK_OF(X509_ALGOR) *md_sk = NULL;
STACK_OF(PKCS7_RECIP_FO) *rsk = NULL;
PKCS7_RECIP_FO *ri = N... | BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
BIO *out = NULL, *btmp = NULL, *etmp = NULL, *bio = NULL;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const EVP_CIPHER *evp_cipher = NULL;
/* PLACEHOLDER: DO NOT DELETE THIS C... | BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
BIO *out = NULL, *btmp = NULL, *etmp = NULL, *bio = NULL;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const EVP_CIPHER *evp_cipher = NULL;
/* PLACEHOLDER: DO NOT DELETE THIS C... | BIO *PKCS7_dataDecode(PKCS7 *p7, EVP_PKEY *pkey, BIO *in_bio, X509 *pcert) {
BIO *out = NULL, *btmp = NULL, *etmp = NULL, *bio = NULL;
const EVP_CIPHER *evp_cipher = NULL;
X509_ALGOR *enc_alg = NULL;
STACK_OF(X509_ALGOR) *md_sk = NULL;
STACK_OF(PKCS7_RECIP_FO) *rsk = NULL;
PKCS7_RECIP_FO ... |
CVE-2015-1793 | OpenSSL | https://github.com/openssl/openssl | crypto/x509/x509_vfy.c | X509_verify_cert | int X509_verify_cert(X509_STORE_CTX *ctx) {
X509 *x, *xtmp, *xtmp2, *chain_ss = NULL;
int bad_chain = 0;
X509_VERIFY_PARAM *param = ctx->param;
int depth, i, ok = 0;
int num, j, retry;
int (*cb) (int xok, X509_STORE_CTX *xctx);
STACK_OF(X509) *sktmp = NULL;
if (ctx->cert == NULL) {
... | int X509_verify_cert(X509_STORE_CTX *ctx) {
X509 *x, *xtmp, *xtmp2, *chain_ss = NULL;
int bad_chain = 0;
X509_VERIFY_PARAM *param = ctx->param;
int depth, i, ok = 0;
int num, j, retry;
int (*cb) (int xok, X509_STORE_CTX *xctx);
STACK_OF(X509) *sktmp = NULL;
if (ctx->cert == NULL) {
... | int X509_verify_cert(X509_STORE_CTX *ctx) {
X509 *x, *xtmp, *xtmp2, *chain_ss = NULL;
int bad_chain = 0;
X509_VERIFY_PARAM *param = ctx->param;
int depth, i, ok = 0;
int num, j, retry;
int (*cb) (int xok, X509_STORE_CTX *xctx);
STACK_OF(X509) *sktmp = NULL;
if (ctx->cert == NULL) {
... | int X509_verify_cert(X509_STORE_CTX *ctx) {
X509 *x, *xtmp, *xtmp2, *chain_ss = NULL;
int bad_chain = 0;
X509_VERIFY_PARAM *param = ctx->param;
int depth, i, ok = 0;
int num, j, retry;
int (*cb) (int xok, X509_STORE_CTX *xctx);
STACK_OF(X509) *sktmp = NULL;
if (ctx->cert == NULL) {
... | int X509_verify_cert(X509_STORE_CTX *ctx) {
X509_VERIFY_PARAM *param = ctx->param;
STACK_OF(X509) *sktmp = NULL;
if (ctx->cert == NULL) {
return -1;
}
if (ctx->chain == NULL) {
if (((ctx->chain = sk_X509_new_null()) == NULL) || (!sk_X509_push(ctx->chain, ctx->cert))) {
go... | int X509_verify_cert(X509_STORE_CTX *ctx) {
X509_VERIFY_PARAM *param = ctx->param;
STACK_OF(X509) *sktmp = NULL;
if (ctx->cert == NULL) {
return -1;
}
if (ctx->chain == NULL) {
if (((ctx->chain = sk_X509_new_null()) == NULL) || (!sk_X509_push(ctx->chain, ctx->cert))) {
go... | int X509_verify_cert(X509_STORE_CTX *ctx) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
X509_VERIFY_PARAM *param = ctx->param;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
STACK_OF(X509) *sktmp = NULL;
if (ctx->cert == NULL) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
return -1;
... | int X509_verify_cert(X509_STORE_CTX *ctx) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
X509_VERIFY_PARAM *param = ctx->param;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
STACK_OF(X509) *sktmp = NULL;
if (ctx->cert == NULL) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
return -1;
... | int X509_verify_cert(X509_STORE_CTX *ctx) {
X509_VERIFY_PARAM *param = ctx->param;
STACK_OF(X509) *sktmp = NULL;
if (ctx->cert == NULL) {
return -1;
}
if (ctx->chain == NULL) {
if (((ctx->chain = sk_X509_new_null()) == NULL) || (!sk_X509_push(ctx->chain, ctx->cert))) {
... |
CVE-2015-1872 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/mjpegdec.c | ff_mjpeg_decode_sof | int ff_mjpeg_decode_sof(MJpegDecodeContext *s) {
int len, nb_components, i, width, height, bits, ret;
unsigned pix_fmt_id;
int h_count[MAX_COMPONENTS] = { 0 };
int v_count[MAX_COMPONENTS] = { 0 };
s->cur_scan = 0;
s->upscale_h = s->upscale_v = 0;
len = get_bits(&s->gb, 16);
s->avctx->bit... | int ff_mjpeg_decode_sof(MJpegDecodeContext *s) {
int len, nb_components, i, width, height, bits, ret;
unsigned pix_fmt_id;
int h_count[MAX_COMPONENTS] = { 0 };
int v_count[MAX_COMPONENTS] = { 0 };
s->cur_scan = 0;
s->upscale_h = s->upscale_v = 0;
len = get_bits(&s->gb, 16);
s->avctx->bit... | int ff_mjpeg_decode_sof(MJpegDecodeContext *s) {
int len, nb_components, i, width, height, bits, pix_fmt_id;
int h_count[MAX_COMPONENTS];
int v_count[MAX_COMPONENTS];
s->cur_scan = 0;
s->upscale_h = s->upscale_v = 0;
len = get_bits(&s->gb, 16);
bits = get_bits(&s->gb, 8);
if (s->pegasus_... | int ff_mjpeg_decode_sof(MJpegDecodeContext *s) {
int len, nb_components, i, width, height, bits, pix_fmt_id;
int h_count[MAX_COMPONENTS];
int v_count[MAX_COMPONENTS];
s->cur_scan = 0;
s->upscale_h = s->upscale_v = 0;
len = get_bits(&s->gb, 16);
bits = get_bits(&s->gb, 8);
if (s->pegasus_... | int ff_mjpeg_decode_sof(MJpegDecodeContext *s) {
int h_count[MAX_COMPONENTS] = { 0 };
int v_count[MAX_COMPONENTS] = { 0 };
s->avctx->bits_per_raw_sample = bits = get_bits(&s->gb, 8);
if (bits > 16 || bits < 1) {
return AVERROR_VALIDDATA;
}
if (s->pegasus_rct) {
bits = 9;
}
... | int ff_mjpeg_decode_sof(MJpegDecodeContext *s) {
int h_count[MAX_COMPONENTS] = { 0 };
int v_count[MAX_COMPONENTS] = { 0 };
s->avctx->bits_per_raw_sample = bits = get_bits(&s->gb, 8);
if (bits > 16 || bits < 1) {
return AVERROR_VALIDDATA;
}
if (s->pegasus_rct) {
bits = 9;
}
... | int ff_mjpeg_decode_sof(MJpegDecodeContext *s) {
int len, nb_components, i, width, height, bits, pix_fmt_id;
int h_count[MAX_COMPONENTS];
int v_count[MAX_COMPONENTS];
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
bits = get_bits(&s->gb, 8);
if (s->pegasus_rct) {
bits = 9;
}
/* PL... | int ff_mjpeg_decode_sof(MJpegDecodeContext *s) {
int len, nb_components, i, width, height, bits, pix_fmt_id;
int h_count[MAX_COMPONENTS];
int v_count[MAX_COMPONENTS];
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
bits = get_bits(&s->gb, 8);
if (s->pegasus_rct) {
bits = 9;
}
/* PL... | int ff_mjpeg_decode_sof(MJpegDecodeContext *s) {
int h_count[MAX_COMPONENTS] = { 0 };
int v_count[MAX_COMPONENTS] = { 0 };
s->avctx->bits_per_raw_sample = bits = get_bits(&s->gb, 8);
if (bits > 16 || bits < 1) {
return AVERROR_VALIDDATA;
}
if (s->pegasus_rct) {
bits = 9;... |
CVE-2015-2152 | xen | https://github.com/xen-project/xen | tools/libxl/libxl_dm.c | libxl__build_device_model_args_new | static char ** libxl__build_device_model_args_new(libxl__gc *gc, const char *dm, int guest_domid, const libxl_domain_config *guest_config, const libxl__domain_build_state *state, int *dm_state_fd) {
libxl_ctx *ctx = libxl__gc_owner(gc);
const libxl_domain_create_info *c_info = &guest_config->c_info;
const l... | static char ** libxl__build_device_model_args_new(libxl__gc *gc, const char *dm, int guest_domid, const libxl_domain_config *guest_config, const libxl__domain_build_state *state, int *dm_state_fd) {
libxl_ctx *ctx = libxl__gc_owner(gc);
const libxl_domain_create_info *c_info = &guest_config->c_info;
const l... | static char ** libxl__build_device_model_args_new(libxl__gc *gc, const char *dm, int guest_domid, const libxl_domain_config *guest_config, const libxl__domain_build_state *state) {
libxl_ctx *ctx = libxl__gc_owner(gc);
const libxl_domain_create_info *c_info = &guest_config->c_info;
const libxl_domain_build_... | static char ** libxl__build_device_model_args_new(libxl__gc *gc, const char *dm, int guest_domid, const libxl_domain_config *guest_config, const libxl__domain_build_state *state) {
libxl_ctx *ctx = libxl__gc_owner(gc);
const libxl_domain_create_info *c_info = &guest_config->c_info;
const libxl_domain_build_... | static char ** libxl__build_device_model_args_new(libxl__gc *gc, const char *dm, int guest_domid, const libxl_domain_config *guest_config, const libxl__domain_build_state *state, int *dm_state_fd) {
libxl_ctx *ctx = libxl__gc_owner(gc);
const libxl_domain_create_info *c_info = &guest_config->c_info;
const l... | static char ** libxl__build_device_model_args_new(libxl__gc *gc, const char *dm, int guest_domid, const libxl_domain_config *guest_config, const libxl__domain_build_state *state, int *dm_state_fd) {
libxl_ctx *ctx = libxl__gc_owner(gc);
const libxl_domain_create_info *c_info = &guest_config->c_info;
const l... | static char ** libxl__build_device_model_args_new(libxl__gc *gc, const char *dm, int guest_domid, const libxl_domain_config *guest_config, const libxl__domain_build_state *state) {
libxl_ctx *ctx = libxl__gc_owner(gc);
const libxl_domain_create_info *c_info = &guest_config->c_info;
/* PLACEHOLDER: DO NOT DE... | static char ** libxl__build_device_model_args_new(libxl__gc *gc, const char *dm, int guest_domid, const libxl_domain_config *guest_config, const libxl__domain_build_state *state) {
libxl_ctx *ctx = libxl__gc_owner(gc);
const libxl_domain_create_info *c_info = &guest_config->c_info;
/* PLACEHOLDER: DO NOT DE... | static char ** libxl__build_device_model_args_new(libxl__gc *gc, const char *dm, int guest_domid, const libxl_domain_config *guest_config, const libxl__domain_build_state *state, int *dm_state_fd) {
libxl_ctx *ctx = libxl__gc_owner(gc);
const libxl_domain_create_info *c_info = &guest_config->c_info;
con... |
CVE-2015-2152 | xen | https://github.com/xen-project/xen | tools/libxl/libxl_dm.c | libxl__build_device_model_args_old | static char ** libxl__build_device_model_args_old(libxl__gc *gc, const char *dm, int domid, const libxl_domain_config *guest_config, const libxl__domain_build_state *state) {
const libxl_domain_create_info *c_info = &guest_config->c_info;
const libxl_domain_build_info *b_info = &guest_config->b_info;
const ... | static char ** libxl__build_device_model_args_old(libxl__gc *gc, const char *dm, int domid, const libxl_domain_config *guest_config, const libxl__domain_build_state *state) {
const libxl_domain_create_info *c_info = &guest_config->c_info;
const libxl_domain_build_info *b_info = &guest_config->b_info;
const ... | static char ** libxl__build_device_model_args_old(libxl__gc *gc, const char *dm, int domid, const libxl_domain_config *guest_config, const libxl__domain_build_state *state) {
const libxl_domain_create_info *c_info = &guest_config->c_info;
const libxl_domain_build_info *b_info = &guest_config->b_info;
const ... | static char ** libxl__build_device_model_args_old(libxl__gc *gc, const char *dm, int domid, const libxl_domain_config *guest_config, const libxl__domain_build_state *state) {
const libxl_domain_create_info *c_info = &guest_config->c_info;
const libxl_domain_build_info *b_info = &guest_config->b_info;
const ... | static char ** libxl__build_device_model_args_old(libxl__gc *gc, const char *dm, int domid, const libxl_domain_config *guest_config, const libxl__domain_build_state *state) {
const libxl_domain_create_info *c_info = &guest_config->c_info;
dm_args = flexarray_make(gc, 16, 1);
flexarray_vappend(dm_args, dm, "... | static char ** libxl__build_device_model_args_old(libxl__gc *gc, const char *dm, int domid, const libxl_domain_config *guest_config, const libxl__domain_build_state *state) {
const libxl_domain_create_info *c_info = &guest_config->c_info;
dm_args = flexarray_make(gc, 16, 1);
flexarray_vappend(dm_args, dm, "... | static char ** libxl__build_device_model_args_old(libxl__gc *gc, const char *dm, int domid, const libxl_domain_config *guest_config, const libxl__domain_build_state *state) {
const libxl_domain_create_info *c_info = &guest_config->c_info;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
dm_args = flexarray_mak... | static char ** libxl__build_device_model_args_old(libxl__gc *gc, const char *dm, int domid, const libxl_domain_config *guest_config, const libxl__domain_build_state *state) {
const libxl_domain_create_info *c_info = &guest_config->c_info;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
dm_args = flexarray_mak... | static char ** libxl__build_device_model_args_old(libxl__gc *gc, const char *dm, int domid, const libxl_domain_config *guest_config, const libxl__domain_build_state *state) {
const libxl_domain_create_info *c_info = &guest_config->c_info;
dm_args = flexarray_make(gc, 16, 1);
flexarray_vappend(dm_args, d... |
CVE-2015-2188 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-wcp.c | decompressed_entry | static guint8 *decompressed_entry( guint8 *src, guint8 *dst, int *len, guint8 * buf_start, guint8 *buf_end) {
guint16 data_offset, data_cnt;
guint8 tmp = *src;
data_offset = (*(src++) & 0xf) << 8;
data_offset += *(src++);
if (( tmp & 0xf0) == 0x10) {
data_cnt = *src;
data_cnt++;
... | static guint8 * decompressed_entry(guint8 *dst, guint16 data_offset, guint16 data_cnt, int *len, guint8 * buf_start, guint8 *buf_end) {
const guint8 *src;
src = (dst - 1 - data_offset);
if ( src < buf_start) {
src += MAX_W_BUF_LEN;
}
while( data_cnt--) {
*dst = *src;
if ( ++(... | static guint8 *decompressed_entry( guint8 *src, guint8 *dst, int *len, guint8 * buf_start, guint8 *buf_end) {
guint16 data_offset, data_cnt;
guint8 tmp = *src;
data_offset = (*(src++) & 0xf) << 8;
data_offset += *(src++);
if (( tmp & 0xf0) == 0x10) {
data_cnt = *src;
data_cnt++;
... | static guint8 * decompressed_entry(guint8 *dst, guint16 data_offset, guint16 data_cnt, int *len, guint8 * buf_start, guint8 *buf_end) {
const guint8 *src;
src = (dst - 1 - data_offset);
if ( src < buf_start) {
src += MAX_W_BUF_LEN;
}
while( data_cnt--) {
*dst = *src;
if ( ++(... | static guint8 *decompressed_entry( guint8 *src, guint8 *dst, int *len, guint8 * buf_start, guint8 *buf_end) {
guint16 data_offset, data_cnt;
guint8 tmp = *src;
data_offset = (*(src++) & 0xf) << 8;
data_offset += *(src++);
if (( tmp & 0xf0) == 0x10) {
data_cnt = *src;
data_cnt++;
... | static guint8 * decompressed_entry(guint8 *dst, guint16 data_offset, guint16 data_cnt, int *len, guint8 * buf_start, guint8 *buf_end) {
const guint8 *src;
src = (dst - 1 - data_offset);
if ( src < buf_start) {
src += MAX_W_BUF_LEN;
}
while( data_cnt--) {
*dst = *src;
if ( ++(... | static guint8 *decompressed_entry( guint8 *src, guint8 *dst, int *len, guint8 * buf_start, guint8 *buf_end) {
guint16 data_offset, data_cnt;
guint8 tmp = *src;
data_offset = (*(src++) & 0xf) << 8;
data_offset += *(src++);
if (( tmp & 0xf0) == 0x10) {
data_cnt = *src;
data_cnt++;
... | static guint8 * decompressed_entry(guint8 *dst, guint16 data_offset, guint16 data_cnt, int *len, guint8 * buf_start, guint8 *buf_end) {
const guint8 *src;
src = (dst - 1 - data_offset);
if ( src < buf_start) {
src += MAX_W_BUF_LEN;
}
while( data_cnt--) {
*dst = *src;
if ( ++(... | -static guint8 *decompressed_entry( guint8 *src, guint8 *dst, int *len, guint8 * buf_start, guint8 *buf_end) {
- guint16 data_offset, data_cnt;
- guint8 tmp = *src;
- data_offset = (*(src++) & 0xf) << 8;
- data_offset += *(src++);
- if (( tmp & 0xf0) == 0x10) {
- data_cnt = *src;
- data_cnt... |
CVE-2015-2188 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-wcp.c | wcp_uncompress | static tvbuff_t *wcp_uncompress( tvbuff_t *src_tvb, int offset, packet_info *pinfo, proto_tree *tree, circuit_type ctype, guint32 circuit_id) {
proto_tree *cd_tree, *sub_tree;
proto_item *cd_item, *ti;
int len, i;
int cnt = tvb_reported_length( src_tvb)-1;
guint8 *dst, *src, *buf_start, *buf_end, co... | static tvbuff_t *wcp_uncompress( tvbuff_t *src_tvb, int offset, packet_info *pinfo, proto_tree *tree, circuit_type ctype, guint32 circuit_id) {
proto_tree *cd_tree, *sub_tree;
proto_item *cd_item, *ti;
int len, i;
int cnt = tvb_reported_length( src_tvb)-1;
guint8 *dst, *src, *buf_start, *buf_end, co... | static tvbuff_t *wcp_uncompress( tvbuff_t *src_tvb, int offset, packet_info *pinfo, proto_tree *tree) {
proto_tree *cd_tree, *sub_tree;
proto_item *cd_item, *ti;
int len, i;
int cnt = tvb_reported_length( src_tvb)-1;
guint8 *dst, *src, *buf_start, *buf_end, comp_flag_bits = 0;
guint8 src_buf[ MA... | static tvbuff_t *wcp_uncompress( tvbuff_t *src_tvb, int offset, packet_info *pinfo, proto_tree *tree) {
proto_tree *cd_tree, *sub_tree;
proto_item *cd_item, *ti;
int len, i;
int cnt = tvb_reported_length( src_tvb)-1;
guint8 *dst, *src, *buf_start, *buf_end, comp_flag_bits = 0;
guint16 data_offse... | static tvbuff_t *wcp_uncompress( tvbuff_t *src_tvb, int offset, packet_info *pinfo, proto_tree *tree, circuit_type ctype, guint32 circuit_id) {
int cnt = tvb_reported_length( src_tvb)-1;
guint8 *dst, *src, *buf_start, *buf_end, comp_flag_bits = 0;
guint8 src_buf[ MAX_WCP_BUF_LEN];
buf_ptr = get_wcp_wind... | static tvbuff_t *wcp_uncompress( tvbuff_t *src_tvb, int offset, packet_info *pinfo, proto_tree *tree, circuit_type ctype, guint32 circuit_id) {
int cnt = tvb_reported_length( src_tvb)-1;
guint8 *dst, *src, *buf_start, *buf_end, comp_flag_bits = 0;
guint16 data_offset, data_cnt;
guint8 src_buf[ MAX_WCP_B... | static tvbuff_t *wcp_uncompress( tvbuff_t *src_tvb, int offset, packet_info *pinfo, proto_tree *tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int cnt = tvb_reported_length( src_tvb)-1;
guint8 *dst, *src, *buf_start, *buf_end, comp_flag_bits = 0;
guint8 src_buf[ MAX_WCP_BUF_LEN];
/* PLACEHOLD... | static tvbuff_t *wcp_uncompress( tvbuff_t *src_tvb, int offset, packet_info *pinfo, proto_tree *tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int cnt = tvb_reported_length( src_tvb)-1;
guint8 *dst, *src, *buf_start, *buf_end, comp_flag_bits = 0;
guint16 data_offset, data_cnt;
guint8 src_buf[... | static tvbuff_t *wcp_uncompress( tvbuff_t *src_tvb, int offset, packet_info *pinfo, proto_tree *tree, circuit_type ctype, guint32 circuit_id) {
int cnt = tvb_reported_length( src_tvb)-1;
guint8 *dst, *src, *buf_start, *buf_end, comp_flag_bits = 0;
+ guint16 data_offset, data_cnt;
guint8 src_buf[ MAX_... |
CVE-2015-2189 | Wireshark | https://github.com/wireshark/wireshark | wiretap/pcapng.c | pcapng_read | static gboolean pcapng_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) {
pcapng_t *pcapng = (pcapng_t *)wth->priv;
wtapng_block_t wblock;
wtapng_if_descr_t *wtapng_if_descr;
wtapng_if_stats_t if_stats;
wblock.frame_buffer = wth->frame_buffer;
wblock.packet_header = &wth->phdr;
... | static gboolean pcapng_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) {
pcapng_t *pcapng = (pcapng_t *)wth->priv;
wtapng_block_t wblock;
wtapng_if_descr_t *wtapng_if_descr;
wtapng_if_stats_t if_stats;
wblock.frame_buffer = wth->frame_buffer;
wblock.packet_header = &wth->phdr;
... | static gboolean pcapng_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) {
pcapng_t *pcapng = (pcapng_t *)wth->priv;
int bytes_read;
wtapng_block_t wblock;
wtapng_if_descr_t *wtapng_if_descr;
wtapng_if_stats_t if_stats;
*data_offset = file_tell(wth->fh);
pcapng_debug1("pcapng_... | static gboolean pcapng_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) {
pcapng_t *pcapng = (pcapng_t *)wth->priv;
int bytes_read;
wtapng_block_t wblock;
wtapng_if_descr_t *wtapng_if_descr;
wtapng_if_stats_t if_stats;
*data_offset = file_tell(wth->fh);
pcapng_debug1("pcapng_... | static gboolean pcapng_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) {
while (1) {
*data_offset = file_tell(wth->fh);
pcapng_debug1("pcapng_read: data_offset is %" G_GT64_MODIFIER "d", *data_offset);
if (pcapng_read_block(wth, wth->fh, pcapng, &wblock, err, err_info) != PC... | static gboolean pcapng_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) {
while (1) {
*data_offset = file_tell(wth->fh);
pcapng_debug1("pcapng_read: data_offset is %" G_GT64_MODIFIER "d", *data_offset);
if (pcapng_read_block(wth, wth->fh, pcapng, &wblock, err, err_info) != PC... | static gboolean pcapng_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
while (1) {
bytes_read = pcapng_read_block(wth->fh, FALSE, pcapng, &wblock, err, err_info);
if (bytes_read <= 0) {
pcapng_debug1("pcapng_read: data_... | static gboolean pcapng_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
while (1) {
bytes_read = pcapng_read_block(wth->fh, FALSE, pcapng, &wblock, err, err_info);
if (bytes_read <= 0) {
pcapng_debug1("pcapng_read: data_... | static gboolean pcapng_read(wtap *wth, int *err, gchar **err_info, gint64 *data_offset) {
while (1) {
*data_offset = file_tell(wth->fh);
pcapng_debug1("pcapng_read: data_offset is %" G_GT64_MODIFIER "d", *data_offset);
if (pcapng_read_block(wth, wth->fh, pcapng, &wblock, err, err_info) ... |
CVE-2015-2191 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-tnef.c | dissect_tnef | static void dissect_tnef(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
proto_item *attr_item, *item;
proto_tree *attr_tree, *tag_tree, *props_tree, *addr_tree, *date_tree;
guint32 tag, length, signature;
gint offset, start_offset;
tvbuff_t *next_tvb;
if(tree) {
item = proto_tree... | static void dissect_tnef(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
proto_item *attr_item, *item;
proto_tree *attr_tree, *tag_tree, *props_tree, *addr_tree, *date_tree;
guint32 tag, length, signature;
gint offset, start_offset;
tvbuff_t *next_tvb;
if(tree) {
item = proto_tree... | static void dissect_tnef(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
proto_item *attr_item, *item;
proto_tree *attr_tree, *tag_tree, *props_tree, *addr_tree, *date_tree;
guint32 tag, length, signature;
gint offset, start_offset;
tvbuff_t *next_tvb;
if(tree) {
item = proto_tree... | static void dissect_tnef(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
proto_item *attr_item, *item;
proto_tree *attr_tree, *tag_tree, *props_tree, *addr_tree, *date_tree;
guint32 tag, length, signature;
gint offset, start_offset;
tvbuff_t *next_tvb;
if(tree) {
item = proto_tree... | static void dissect_tnef(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
if(tree) {
item = proto_tree_add_item(tree, proto_tnef, tvb, 0, -1, ENC_NA);
tree = proto_item_add_subtree(item, ett_tnef);
}
offset = 0;
signature = tvb_get_letohl(tvb, offset);
item = proto_tree_add_ite... | static void dissect_tnef(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
if(tree) {
item = proto_tree_add_item(tree, proto_tnef, tvb, 0, -1, ENC_NA);
tree = proto_item_add_subtree(item, ett_tnef);
}
offset = 0;
signature = tvb_get_letohl(tvb, offset);
item = proto_tree_add_ite... | static void dissect_tnef(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if(tree) {
item = proto_tree_add_item(tree, proto_tnef, tvb, 0, -1, ENC_NA);
tree = proto_item_add_subtree(item, ett_tnef);
}
offset = 0;
signature = tvb_get_... | static void dissect_tnef(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if(tree) {
item = proto_tree_add_item(tree, proto_tnef, tvb, 0, -1, ENC_NA);
tree = proto_item_add_subtree(item, ett_tnef);
}
offset = 0;
signature = tvb_get_... | static void dissect_tnef(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
if(tree) {
item = proto_tree_add_item(tree, proto_tnef, tvb, 0, -1, ENC_NA);
tree = proto_item_add_subtree(item, ett_tnef);
}
offset = 0;
signature = tvb_get_letohl(tvb, offset);
item = proto_tree... |
CVE-2015-2192 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-scsi-osd.c | dissect_osd2_cdb_continuation | static void dissect_osd2_cdb_continuation(packet_info *pinfo, tvbuff_t *tvb, guint32 offset, proto_tree *tree, scsi_task_data_t *cdata) {
scsi_osd_extra_data_t *extra_data = NULL;
proto_item *item;
guint8 format;
guint16 sa;
if (cdata && cdata->itlq && cdata->itlq->extra_data) {
extra_data =... | static void dissect_osd2_cdb_continuation(packet_info *pinfo, tvbuff_t *tvb, guint32 offset, proto_tree *tree, scsi_task_data_t *cdata) {
scsi_osd_extra_data_t *extra_data = NULL;
proto_item *item;
guint8 format;
guint16 sa;
if (cdata && cdata->itlq && cdata->itlq->extra_data) {
extra_data =... | static void dissect_osd2_cdb_continuation(packet_info *pinfo, tvbuff_t *tvb, guint32 offset, proto_tree *tree, scsi_task_data_t *cdata) {
scsi_osd_extra_data_t *extra_data = NULL;
proto_item *item;
guint8 format;
guint16 sa;
if (cdata && cdata->itlq && cdata->itlq->extra_data) {
extra_data =... | static void dissect_osd2_cdb_continuation(packet_info *pinfo, tvbuff_t *tvb, guint32 offset, proto_tree *tree, scsi_task_data_t *cdata) {
scsi_osd_extra_data_t *extra_data = NULL;
proto_item *item;
guint8 format;
guint16 sa;
if (cdata && cdata->itlq && cdata->itlq->extra_data) {
extra_data =... | static void dissect_osd2_cdb_continuation(packet_info *pinfo, tvbuff_t *tvb, guint32 offset, proto_tree *tree, scsi_task_data_t *cdata) {
scsi_osd_extra_data_t *extra_data = NULL;
if (cdata && cdata->itlq && cdata->itlq->extra_data) {
extra_data = (scsi_osd_extra_data_t *)cdata->itlq->extra_data;
}
... | static void dissect_osd2_cdb_continuation(packet_info *pinfo, tvbuff_t *tvb, guint32 offset, proto_tree *tree, scsi_task_data_t *cdata) {
scsi_osd_extra_data_t *extra_data = NULL;
if (cdata && cdata->itlq && cdata->itlq->extra_data) {
extra_data = (scsi_osd_extra_data_t *)cdata->itlq->extra_data;
}
... | static void dissect_osd2_cdb_continuation(packet_info *pinfo, tvbuff_t *tvb, guint32 offset, proto_tree *tree, scsi_task_data_t *cdata) {
scsi_osd_extra_data_t *extra_data = NULL;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (cdata && cdata->itlq && cdata->itlq->extra_data) {
extra_data = (scsi_... | static void dissect_osd2_cdb_continuation(packet_info *pinfo, tvbuff_t *tvb, guint32 offset, proto_tree *tree, scsi_task_data_t *cdata) {
scsi_osd_extra_data_t *extra_data = NULL;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (cdata && cdata->itlq && cdata->itlq->extra_data) {
extra_data = (scsi_... | static void dissect_osd2_cdb_continuation(packet_info *pinfo, tvbuff_t *tvb, guint32 offset, proto_tree *tree, scsi_task_data_t *cdata) {
scsi_osd_extra_data_t *extra_data = NULL;
if (cdata && cdata->itlq && cdata->itlq->extra_data) {
extra_data = (scsi_osd_extra_data_t *)cdata->itlq->extra_data;
... |
CVE-2015-3193 | OpenSSL | https://github.com/openssl/openssl | crypto/bn/bntest.c | test_mod_exp | int test_mod_exp(BIO *bp, BN_CTX *ctx) {
BIGNUM *a, *b, *c, *d, *e;
int i;
a = BN_new();
b = BN_new();
c = BN_new();
d = BN_new();
e = BN_new();
BN_one(a);
BN_one(b);
BN_zero(c);
if (BN_mod_exp(d, a, b, c, ctx)) {
fprintf(stderr, "BN_mod_exp with zero modulus succeede... | int test_mod_exp(BIO *bp, BN_CTX *ctx) {
BIGNUM *a, *b, *c, *d, *e;
int i;
a = BN_new();
b = BN_new();
c = BN_new();
d = BN_new();
e = BN_new();
BN_one(a);
BN_one(b);
BN_zero(c);
if (BN_mod_exp(d, a, b, c, ctx)) {
fprintf(stderr, "BN_mod_exp with zero modulus succeede... | int test_mod_exp(BIO *bp, BN_CTX *ctx) {
BIGNUM *a, *b, *c, *d, *e;
int i;
a = BN_new();
b = BN_new();
c = BN_new();
d = BN_new();
e = BN_new();
BN_one(a);
BN_one(b);
BN_zero(c);
if (BN_mod_exp(d, a, b, c, ctx)) {
fprintf(stderr, "BN_mod_exp with zero modulus succeede... | int test_mod_exp(BIO *bp, BN_CTX *ctx) {
BIGNUM *a, *b, *c, *d, *e;
int i;
a = BN_new();
b = BN_new();
c = BN_new();
d = BN_new();
e = BN_new();
BN_one(a);
BN_one(b);
BN_zero(c);
if (BN_mod_exp(d, a, b, c, ctx)) {
fprintf(stderr, "BN_mod_exp with zero modulus succeede... | int test_mod_exp(BIO *bp, BN_CTX *ctx) {
a = BN_new();
b = BN_new();
c = BN_new();
d = BN_new();
e = BN_new();
BN_one(a);
BN_one(b);
BN_zero(c);
if (BN_mod_exp(d, a, b, c, ctx)) {
return 0;
}
BN_bntest_rand(c, 30, 0, 1);
for (i = 0; i < num2; i++) {
BN_bnt... | int test_mod_exp(BIO *bp, BN_CTX *ctx) {
a = BN_new();
b = BN_new();
c = BN_new();
d = BN_new();
e = BN_new();
BN_one(a);
BN_one(b);
BN_zero(c);
if (BN_mod_exp(d, a, b, c, ctx)) {
return 0;
}
BN_bntest_rand(c, 30, 0, 1);
for (i = 0; i < num2; i++) {
BN_bnt... | int test_mod_exp(BIO *bp, BN_CTX *ctx) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
a = BN_new();
b = BN_new();
c = BN_new();
d = BN_new();
e = BN_new();
BN_one(a);
BN_one(b);
BN_zero(c);
if (BN_mod_exp(d, a, b, c, ctx)) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | int test_mod_exp(BIO *bp, BN_CTX *ctx) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
a = BN_new();
b = BN_new();
c = BN_new();
d = BN_new();
e = BN_new();
BN_one(a);
BN_one(b);
BN_zero(c);
if (BN_mod_exp(d, a, b, c, ctx)) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | int test_mod_exp(BIO *bp, BN_CTX *ctx) {
a = BN_new();
b = BN_new();
c = BN_new();
d = BN_new();
e = BN_new();
BN_one(a);
BN_one(b);
BN_zero(c);
if (BN_mod_exp(d, a, b, c, ctx)) {
return 0;
}
BN_bntest_rand(c, 30, 0, 1);
for (i = 0; i < num2; i++) {
... |
CVE-2015-3195 | OpenSSL | https://github.com/openssl/openssl | crypto/asn1/tasn_dec.c | ASN1_item_ex_d2i | int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx) {
const ASN1_TEMPLATE *tt, *errtt = NULL;
const ASN1_COMPAT_FUNCS *cf;
const ASN1_EXTERN_FUNCS *ef;
const ASN1_AUX *aux = it->funcs;
ASN1_aux_cb *asn1_cb;
... | int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx) {
const ASN1_TEMPLATE *tt, *errtt = NULL;
const ASN1_COMPAT_FUNCS *cf;
const ASN1_EXTERN_FUNCS *ef;
const ASN1_AUX *aux = it->funcs;
ASN1_aux_cb *asn1_cb;
... | int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx) {
const ASN1_TEMPLATE *tt, *errtt = NULL;
const ASN1_COMPAT_FUNCS *cf;
const ASN1_EXTERN_FUNCS *ef;
const ASN1_AUX *aux = it->funcs;
ASN1_aux_cb *asn1_cb;
... | int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx) {
const ASN1_TEMPLATE *tt, *errtt = NULL;
const ASN1_COMPAT_FUNCS *cf;
const ASN1_EXTERN_FUNCS *ef;
const ASN1_AUX *aux = it->funcs;
ASN1_aux_cb *asn1_cb;
... | int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx) {
int ret = 0;
ASN1_VALUE **pchptr, *ptmpval;
if (!pval) {
return 0;
}
switch (it->itype) {
case ASN1_ITYPE_PRIMITIVE:
if (it->templates)... | int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx) {
int ret = 0;
ASN1_VALUE **pchptr, *ptmpval;
int combine = aclass & ASN1_TFLG_COMBE;
aclass &= ~ASN1_TFLG_COMBE;
if (!pval) {
return 0;
}
sw... | int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int ret = 0;
ASN1_VALUE **pchptr, *ptmpval;
if (!pval) {
return 0;
}
/* PLACEHOLDER: DO NOT DELET... | int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int ret = 0;
ASN1_VALUE **pchptr, *ptmpval;
int combine = aclass & ASN1_TFLG_COMBE;
aclass &= ~ASN1_TFLG_COMB... | int ASN1_item_ex_d2i(ASN1_VALUE **pval, const unsigned char **in, long len, const ASN1_ITEM *it, int tag, int aclass, char opt, ASN1_TLC *ctx) {
int ret = 0;
ASN1_VALUE **pchptr, *ptmpval;
+ int combine = aclass & ASN1_TFLG_COMBE;
+ aclass &= ~ASN1_TFLG_COMBE;
if (!pval) {
return 0;
... |
CVE-2015-3195 | OpenSSL | https://github.com/openssl/openssl | crypto/asn1/tasn_dec.c | asn1_template_noexp_d2i | static int asn1_template_noexp_d2i(ASN1_VALUE **val, const unsigned char **in, long len, const ASN1_TEMPLATE *tt, char opt, ASN1_TLC *ctx) {
int flags, aclass;
int ret;
const unsigned char *p, *q;
if (!val) {
return 0;
}
flags = tt->flags;
aclass = flags & ASN1_TFLG_TAG_CLASS;
p ... | static int asn1_template_noexp_d2i(ASN1_VALUE **val, const unsigned char **in, long len, const ASN1_TEMPLATE *tt, char opt, ASN1_TLC *ctx) {
int flags, aclass;
int ret;
const unsigned char *p, *q;
if (!val) {
return 0;
}
flags = tt->flags;
aclass = flags & ASN1_TFLG_TAG_CLASS;
p ... | static int asn1_template_noexp_d2i(ASN1_VALUE **val, const unsigned char **in, long len, const ASN1_TEMPLATE *tt, char opt, ASN1_TLC *ctx) {
int flags, aclass;
int ret;
const unsigned char *p, *q;
if (!val) {
return 0;
}
flags = tt->flags;
aclass = flags & ASN1_TFLG_TAG_CLASS;
p ... | static int asn1_template_noexp_d2i(ASN1_VALUE **val, const unsigned char **in, long len, const ASN1_TEMPLATE *tt, char opt, ASN1_TLC *ctx) {
int flags, aclass;
int ret;
const unsigned char *p, *q;
if (!val) {
return 0;
}
flags = tt->flags;
aclass = flags & ASN1_TFLG_TAG_CLASS;
p ... | static int asn1_template_noexp_d2i(ASN1_VALUE **val, const unsigned char **in, long len, const ASN1_TEMPLATE *tt, char opt, ASN1_TLC *ctx) {
if (!val) {
return 0;
}
p = *in;
if (flags & ASN1_TFLG_SK_MASK) {
} else if (flags & ASN1_TFLG_IMPTAG) {
} else {
ret = ASN1_item_ex_d2i(va... | static int asn1_template_noexp_d2i(ASN1_VALUE **val, const unsigned char **in, long len, const ASN1_TEMPLATE *tt, char opt, ASN1_TLC *ctx) {
if (!val) {
return 0;
}
p = *in;
if (flags & ASN1_TFLG_SK_MASK) {
} else if (flags & ASN1_TFLG_IMPTAG) {
} else {
ret = ASN1_item_ex_d2i(va... | static int asn1_template_noexp_d2i(ASN1_VALUE **val, const unsigned char **in, long len, const ASN1_TEMPLATE *tt, char opt, ASN1_TLC *ctx) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!val) {
return 0;
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
p = *in;
/* PLACEHOLDER: DO NOT... | static int asn1_template_noexp_d2i(ASN1_VALUE **val, const unsigned char **in, long len, const ASN1_TEMPLATE *tt, char opt, ASN1_TLC *ctx) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!val) {
return 0;
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
p = *in;
/* PLACEHOLDER: DO NOT... | static int asn1_template_noexp_d2i(ASN1_VALUE **val, const unsigned char **in, long len, const ASN1_TEMPLATE *tt, char opt, ASN1_TLC *ctx) {
if (!val) {
return 0;
}
p = *in;
if (flags & ASN1_TFLG_SK_MASK) {
} else if (flags & ASN1_TFLG_IMPTAG) {
} else {
- ret = ASN1_item_... |
CVE-2015-3197 | OpenSSL | https://github.com/openssl/openssl | ssl/s2_srvr.c | get_client_hello | static int get_client_hello(SSL *s) {
int i, n;
unsigned long len;
unsigned char *p;
STACK_OF(SSL_CIPHER) *cs;
STACK_OF(SSL_CIPHER) *cl;
STACK_OF(SSL_CIPHER) *prio, *allow;
int z;
if (s->state == SSL2_ST_GET_CLIENT_HELLO_A) {
s->first_packet = 1;
s->state = SSL2_ST_GET_CL... | static int get_client_hello(SSL *s) {
int i, n;
unsigned long len;
unsigned char *p;
STACK_OF(SSL_CIPHER) *cs;
STACK_OF(SSL_CIPHER) *cl;
STACK_OF(SSL_CIPHER) *prio, *allow;
int z;
if (s->state == SSL2_ST_GET_CLIENT_HELLO_A) {
s->first_packet = 1;
s->state = SSL2_ST_GET_CL... | static int get_client_hello(SSL *s) {
int i, n;
unsigned long len;
unsigned char *p;
STACK_OF(SSL_CIPHER) *cs;
STACK_OF(SSL_CIPHER) *cl;
STACK_OF(SSL_CIPHER) *prio, *allow;
int z;
if (s->state == SSL2_ST_GET_CLIENT_HELLO_A) {
s->first_packet = 1;
s->state = SSL2_ST_GET_CL... | static int get_client_hello(SSL *s) {
int i, n;
unsigned long len;
unsigned char *p;
STACK_OF(SSL_CIPHER) *cs;
STACK_OF(SSL_CIPHER) *cl;
STACK_OF(SSL_CIPHER) *prio, *allow;
int z;
if (s->state == SSL2_ST_GET_CLIENT_HELLO_A) {
s->first_packet = 1;
s->state = SSL2_ST_GET_CL... | static int get_client_hello(SSL *s) {
p = (unsigned char *)s->init_buf->data;
if (s->state == SSL2_ST_GET_CLIENT_HELLO_B) {
i = ssl2_read(s, (char *)&(p[s->init_num]), 9 - s->init_num);
if (i < (9 - s->init_num)) {
return (ssl2_part_read(s, SSL_F_GET_CLIENT_HELLO, i));
}
... | static int get_client_hello(SSL *s) {
p = (unsigned char *)s->init_buf->data;
if (s->state == SSL2_ST_GET_CLIENT_HELLO_B) {
i = ssl2_read(s, (char *)&(p[s->init_num]), 9 - s->init_num);
if (i < (9 - s->init_num)) {
return (ssl2_part_read(s, SSL_F_GET_CLIENT_HELLO, i));
}
... | static int get_client_hello(SSL *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
p = (unsigned char *)s->init_buf->data;
if (s->state == SSL2_ST_GET_CLIENT_HELLO_B) {
i = ssl2_read(s, (char *)&(p[s->init_num]), 9 - s->init_num);
if (i < (9 - s->init_num)) {
return (ssl2_part_r... | static int get_client_hello(SSL *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
p = (unsigned char *)s->init_buf->data;
if (s->state == SSL2_ST_GET_CLIENT_HELLO_B) {
i = ssl2_read(s, (char *)&(p[s->init_num]), 9 - s->init_num);
if (i < (9 - s->init_num)) {
return (ssl2_part_r... | static int get_client_hello(SSL *s) {
p = (unsigned char *)s->init_buf->data;
if (s->state == SSL2_ST_GET_CLIENT_HELLO_B) {
i = ssl2_read(s, (char *)&(p[s->init_num]), 9 - s->init_num);
if (i < (9 - s->init_num)) {
return (ssl2_part_read(s, SSL_F_GET_CLIENT_HELLO, i));
... |
CVE-2015-3197 | OpenSSL | https://github.com/openssl/openssl | ssl/s2_srvr.c | get_client_master_key | static int get_client_master_key(SSL *s) {
int is_export, i, n, keya;
unsigned int num_encrypted_key_bytes, key_length;
unsigned long len;
unsigned char *p;
const SSL_CIPHER *cp;
const EVP_CIPHER *c;
const EVP_MD *md;
unsigned char rand_premaster_secret[SSL_MAX_MASTER_KEY_LENGTH];
un... | static int get_client_master_key(SSL *s) {
int is_export, i, n, keya;
unsigned int num_encrypted_key_bytes, key_length;
unsigned long len;
unsigned char *p;
const SSL_CIPHER *cp;
const EVP_CIPHER *c;
const EVP_MD *md;
unsigned char rand_premaster_secret[SSL_MAX_MASTER_KEY_LENGTH];
un... | static int get_client_master_key(SSL *s) {
int is_export, i, n, keya;
unsigned int num_encrypted_key_bytes, key_length;
unsigned long len;
unsigned char *p;
const SSL_CIPHER *cp;
const EVP_CIPHER *c;
const EVP_MD *md;
unsigned char rand_premaster_secret[SSL_MAX_MASTER_KEY_LENGTH];
un... | static int get_client_master_key(SSL *s) {
int is_export, i, n, keya;
unsigned int num_encrypted_key_bytes, key_length;
unsigned long len;
unsigned char *p;
const SSL_CIPHER *cp;
const EVP_CIPHER *c;
const EVP_MD *md;
unsigned char rand_premaster_secret[SSL_MAX_MASTER_KEY_LENGTH];
un... | static int get_client_master_key(SSL *s) {
p = (unsigned char *)s->init_buf->data;
if (s->state == SSL2_ST_GET_CLIENT_MASTER_KEY_A) {
if (*(p++) != SSL2_MT_CLIENT_MASTER_KEY) {
return (-1);
}
cp = ssl2_get_cipher_by_char(p);
if (cp == NULL) {
ssl2_return_e... | static int get_client_master_key(SSL *s) {
p = (unsigned char *)s->init_buf->data;
if (s->state == SSL2_ST_GET_CLIENT_MASTER_KEY_A) {
if (*(p++) != SSL2_MT_CLIENT_MASTER_KEY) {
return (-1);
}
cp = ssl2_get_cipher_by_char(p);
if (cp == NULL || sk_SSL_CIPHER_find(s->ses... | static int get_client_master_key(SSL *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
p = (unsigned char *)s->init_buf->data;
if (s->state == SSL2_ST_GET_CLIENT_MASTER_KEY_A) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (*(p++) != SSL2_MT_CLIENT_MASTER_KEY) {
/* PLACEHOLDER: DO NOT ... | static int get_client_master_key(SSL *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
p = (unsigned char *)s->init_buf->data;
if (s->state == SSL2_ST_GET_CLIENT_MASTER_KEY_A) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (*(p++) != SSL2_MT_CLIENT_MASTER_KEY) {
/* PLACEHOLDER: DO NOT ... | static int get_client_master_key(SSL *s) {
p = (unsigned char *)s->init_buf->data;
if (s->state == SSL2_ST_GET_CLIENT_MASTER_KEY_A) {
if (*(p++) != SSL2_MT_CLIENT_MASTER_KEY) {
return (-1);
}
cp = ssl2_get_cipher_by_char(p);
- if (cp == NULL) {
+ if (cp =... |
CVE-2015-3214 | QEMU | https://github.com/qemu/qemu | hw/timer/i8254.c | pit_ioport_read | static uint64_t pit_ioport_read(void *opaque, hwaddr addr, unsigned size) {
PITCommonState *pit = opaque;
int ret, count;
PITChannelState *s;
addr &= 3;
s = &pit->channels[addr];
if (s->status_latched) {
s->status_latched = 0;
ret = s->status;
} else if (s->count_latched) {
... | static uint64_t pit_ioport_read(void *opaque, hwaddr addr, unsigned size) {
PITCommonState *pit = opaque;
int ret, count;
PITChannelState *s;
addr &= 3;
if (addr == 3) {
return 0;
}
s = &pit->channels[addr];
if (s->status_latched) {
s->status_latched = 0;
ret = s-... | static uint64_t pit_ioport_read(void *opaque, hwaddr addr, unsigned size) {
PITCommonState *pit = opaque;
int ret, count;
PITChannelState *s;
addr &= 3;
s = &pit->channels[addr];
if (s->status_latched) {
s->status_latched = 0;
ret = s->status;
} else if (s->count_latched) {
... | static uint64_t pit_ioport_read(void *opaque, hwaddr addr, unsigned size) {
PITCommonState *pit = opaque;
int ret, count;
PITChannelState *s;
addr &= 3;
if (addr == 3) {
return 0;
}
s = &pit->channels[addr];
if (s->status_latched) {
s->status_latched = 0;
ret = s-... | static uint64_t pit_ioport_read(void *opaque, hwaddr addr, unsigned size) {
addr &= 3;
s = &pit->channels[addr];
}
| static uint64_t pit_ioport_read(void *opaque, hwaddr addr, unsigned size) {
addr &= 3;
if (addr == 3) {
return 0;
}
s = &pit->channels[addr];
}
| static uint64_t pit_ioport_read(void *opaque, hwaddr addr, unsigned size) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
addr &= 3;
s = &pit->channels[addr];
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}
| static uint64_t pit_ioport_read(void *opaque, hwaddr addr, unsigned size) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
addr &= 3;
if (addr == 3) {
return 0;
}
s = &pit->channels[addr];
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} | static uint64_t pit_ioport_read(void *opaque, hwaddr addr, unsigned size) {
addr &= 3;
+ if (addr == 3) {
+ return 0;
+ }
s = &pit->channels[addr];
} |
CVE-2015-3395 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/msrledec.c | msrle_decode_pal4 | static int msrle_decode_pal4(AVCodecContext *avctx, AVPicture *pic, GetByteContext *gb) {
unsigned char rle_code;
unsigned char extra_byte, odd_pixel;
unsigned char stream_byte;
unsigned int pixel_ptr = 0;
int row_dec = pic->linesize[0];
int row_ptr = (avctx->height - 1) * row_dec;
int frame... | static int msrle_decode_pal4(AVCodecContext *avctx, AVPicture *pic, GetByteContext *gb) {
unsigned char rle_code;
unsigned char extra_byte, odd_pixel;
unsigned char stream_byte;
unsigned int pixel_ptr = 0;
int line = avctx->height - 1;
int i;
while (line >= 0 && pixel_ptr <= avctx->width) {
... | static int msrle_decode_pal4(AVCodecContext *avctx, AVPicture *pic, GetByteContext *gb) {
unsigned char rle_code;
unsigned char extra_byte, odd_pixel;
unsigned char stream_byte;
unsigned int pixel_ptr = 0;
int row_dec = pic->linesize[0];
int row_ptr = (avctx->height - 1) * row_dec;
int frame... | static int msrle_decode_pal4(AVCodecContext *avctx, AVPicture *pic, GetByteContext *gb) {
unsigned char rle_code;
unsigned char extra_byte, odd_pixel;
unsigned char stream_byte;
unsigned int pixel_ptr = 0;
int line = avctx->height - 1;
int i;
while (line >= 0 && pixel_ptr <= avctx->width) {
... | static int msrle_decode_pal4(AVCodecContext *avctx, AVPicture *pic, GetByteContext *gb) {
unsigned int pixel_ptr = 0;
int row_dec = pic->linesize[0];
int row_ptr = (avctx->height - 1) * row_dec;
int frame_size = row_dec * avctx->height;
int i;
while (row_ptr >= 0) {
if (bytestream2_get_b... | static int msrle_decode_pal4(AVCodecContext *avctx, AVPicture *pic, GetByteContext *gb) {
unsigned int pixel_ptr = 0;
int line = avctx->height - 1;
int i;
while (line >= 0 && pixel_ptr <= avctx->width) {
if (bytestream2_get_bytes_left(gb) <= 0) {
av_log(avctx, AV_LOG_ERROR, "MS RLE: ... | static int msrle_decode_pal4(AVCodecContext *avctx, AVPicture *pic, GetByteContext *gb) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
unsigned int pixel_ptr = 0;
int row_dec = pic->linesize[0];
int row_ptr = (avctx->height - 1) * row_dec;
int frame_size = row_dec * avctx->height;
int i;
wh... | static int msrle_decode_pal4(AVCodecContext *avctx, AVPicture *pic, GetByteContext *gb) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
unsigned int pixel_ptr = 0;
int line = avctx->height - 1;
int i;
while (line >= 0 && pixel_ptr <= avctx->width) {
if (bytestream2_get_bytes_left(gb) <= 0) {... | static int msrle_decode_pal4(AVCodecContext *avctx, AVPicture *pic, GetByteContext *gb) {
unsigned int pixel_ptr = 0;
- int row_dec = pic->linesize[0];
- int row_ptr = (avctx->height - 1) * row_dec;
- int frame_size = row_dec * avctx->height;
+ int line = avctx->height - 1;
int i;
- while (row... |
CVE-2015-3456 | QEMU | https://github.com/qemu/qemu | hw/block/fdc.c | fdctrl_handle_drive_specification_command | static void fdctrl_handle_drive_specification_command(FDCtrl *fdctrl, int direction) {
FDrive *cur_drv = get_cur_drv(fdctrl);
if (fdctrl->fifo[fdctrl->data_pos - 1] & 0x80) {
if (fdctrl->fifo[fdctrl->data_pos - 1] & 0x40) {
fdctrl->fifo[0] = fdctrl->fifo[1];
fdctrl->fifo[2] = 0;
... | static void fdctrl_handle_drive_specification_command(FDCtrl *fdctrl, int direction) {
FDrive *cur_drv = get_cur_drv(fdctrl);
uint32_t pos;
pos = fdctrl->data_pos - 1;
pos %= FD_SECTOR_LEN;
if (fdctrl->fifo[pos] & 0x80) {
if (fdctrl->fifo[pos] & 0x40) {
fdctrl->fifo[0] = fdctrl->... | static void fdctrl_handle_drive_specification_command(FDCtrl *fdctrl, int direction) {
FDrive *cur_drv = get_cur_drv(fdctrl);
if (fdctrl->fifo[fdctrl->data_pos - 1] & 0x80) {
if (fdctrl->fifo[fdctrl->data_pos - 1] & 0x40) {
fdctrl->fifo[0] = fdctrl->fifo[1];
fdctrl->fifo[2] = 0;
... | static void fdctrl_handle_drive_specification_command(FDCtrl *fdctrl, int direction) {
FDrive *cur_drv = get_cur_drv(fdctrl);
uint32_t pos;
pos = fdctrl->data_pos - 1;
pos %= FD_SECTOR_LEN;
if (fdctrl->fifo[pos] & 0x80) {
if (fdctrl->fifo[pos] & 0x40) {
fdctrl->fifo[0] = fdctrl->... | static void fdctrl_handle_drive_specification_command(FDCtrl *fdctrl, int direction) {
FDrive *cur_drv = get_cur_drv(fdctrl);
if (fdctrl->fifo[fdctrl->data_pos - 1] & 0x80) {
if (fdctrl->fifo[fdctrl->data_pos - 1] & 0x40) {
fdctrl->fifo[0] = fdctrl->fifo[1];
fdctrl_set_fifo(fdctr... | static void fdctrl_handle_drive_specification_command(FDCtrl *fdctrl, int direction) {
FDrive *cur_drv = get_cur_drv(fdctrl);
uint32_t pos;
pos = fdctrl->data_pos - 1;
pos %= FD_SECTOR_LEN;
if (fdctrl->fifo[pos] & 0x80) {
if (fdctrl->fifo[pos] & 0x40) {
fdctrl->fifo[0] = fdctrl->... | static void fdctrl_handle_drive_specification_command(FDCtrl *fdctrl, int direction) {
FDrive *cur_drv = get_cur_drv(fdctrl);
if (fdctrl->fifo[fdctrl->data_pos - 1] & 0x80) {
if (fdctrl->fifo[fdctrl->data_pos - 1] & 0x40) {
fdctrl->fifo[0] = fdctrl->fifo[1];
/* PLACEHOLDER: DO NOT DELETE... | static void fdctrl_handle_drive_specification_command(FDCtrl *fdctrl, int direction) {
FDrive *cur_drv = get_cur_drv(fdctrl);
uint32_t pos;
pos = fdctrl->data_pos - 1;
pos %= FD_SECTOR_LEN;
if (fdctrl->fifo[pos] & 0x80) {
if (fdctrl->fifo[pos] & 0x40) {
fdctrl->fifo[0] = fdctrl->... | static void fdctrl_handle_drive_specification_command(FDCtrl *fdctrl, int direction) {
FDrive *cur_drv = get_cur_drv(fdctrl);
- if (fdctrl->fifo[fdctrl->data_pos - 1] & 0x80) {
- if (fdctrl->fifo[fdctrl->data_pos - 1] & 0x40) {
+ uint32_t pos;
+ pos = fdctrl->data_pos - 1;
+ pos %= FD_SECTOR_LE... |
CVE-2015-3456 | QEMU | https://github.com/qemu/qemu | hw/block/fdc.c | fdctrl_read_data | static uint32_t fdctrl_read_data(FDCtrl *fdctrl) {
FDrive *cur_drv;
uint32_t retval = 0;
int pos;
cur_drv = get_cur_drv(fdctrl);
fdctrl->dsr &= ~FD_DSR_PWRDOWN;
if (!(fdctrl->msr & FD_MSR_RQM) || !(fdctrl->msr & FD_MSR_DIO)) {
FLOPPY_DPRTF("error: controller not ready for reading\n");
... | static uint32_t fdctrl_read_data(FDCtrl *fdctrl) {
FDrive *cur_drv;
uint32_t retval = 0;
uint32_t pos;
cur_drv = get_cur_drv(fdctrl);
fdctrl->dsr &= ~FD_DSR_PWRDOWN;
if (!(fdctrl->msr & FD_MSR_RQM) || !(fdctrl->msr & FD_MSR_DIO)) {
FLOPPY_DPRTF("error: controller not ready for reading\n"... | static uint32_t fdctrl_read_data(FDCtrl *fdctrl) {
FDrive *cur_drv;
uint32_t retval = 0;
int pos;
cur_drv = get_cur_drv(fdctrl);
fdctrl->dsr &= ~FD_DSR_PWRDOWN;
if (!(fdctrl->msr & FD_MSR_RQM) || !(fdctrl->msr & FD_MSR_DIO)) {
FLOPPY_DPRTF("error: controller not ready for reading\n");
... | static uint32_t fdctrl_read_data(FDCtrl *fdctrl) {
FDrive *cur_drv;
uint32_t retval = 0;
uint32_t pos;
cur_drv = get_cur_drv(fdctrl);
fdctrl->dsr &= ~FD_DSR_PWRDOWN;
if (!(fdctrl->msr & FD_MSR_RQM) || !(fdctrl->msr & FD_MSR_DIO)) {
FLOPPY_DPRTF("error: controller not ready for reading\n"... | static uint32_t fdctrl_read_data(FDCtrl *fdctrl) {
uint32_t retval = 0;
int pos;
cur_drv = get_cur_drv(fdctrl);
if (!(fdctrl->msr & FD_MSR_RQM) || !(fdctrl->msr & FD_MSR_DIO)) {
return 0;
}
pos = fdctrl->data_pos;
if (fdctrl->msr & FD_MSR_NONDMA) {
pos %= FD_SECTOR_LEN;
... | static uint32_t fdctrl_read_data(FDCtrl *fdctrl) {
uint32_t retval = 0;
uint32_t pos;
cur_drv = get_cur_drv(fdctrl);
if (!(fdctrl->msr & FD_MSR_RQM) || !(fdctrl->msr & FD_MSR_DIO)) {
return 0;
}
pos = fdctrl->data_pos;
pos %= FD_SECTOR_LEN;
if (fdctrl->msr & FD_MSR_NONDMA) {
... | static uint32_t fdctrl_read_data(FDCtrl *fdctrl) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
uint32_t retval = 0;
int pos;
cur_drv = get_cur_drv(fdctrl);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!(fdctrl->msr & FD_MSR_RQM) || !(fdctrl->msr & FD_MSR_DIO)) {
/* PLACEHOLDER: DO NOT... | static uint32_t fdctrl_read_data(FDCtrl *fdctrl) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
uint32_t retval = 0;
uint32_t pos;
cur_drv = get_cur_drv(fdctrl);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!(fdctrl->msr & FD_MSR_RQM) || !(fdctrl->msr & FD_MSR_DIO)) {
/* PLACEHOLDER: D... | static uint32_t fdctrl_read_data(FDCtrl *fdctrl) {
uint32_t retval = 0;
- int pos;
+ uint32_t pos;
cur_drv = get_cur_drv(fdctrl);
if (!(fdctrl->msr & FD_MSR_RQM) || !(fdctrl->msr & FD_MSR_DIO)) {
return 0;
}
pos = fdctrl->data_pos;
+ pos %= FD_SECTOR_LEN;
if (fdctrl->msr... |
CVE-2015-3456 | QEMU | https://github.com/qemu/qemu | hw/block/fdc.c | fdctrl_write_data | static void fdctrl_write_data(FDCtrl *fdctrl, uint32_t value) {
FDrive *cur_drv;
int pos;
if (!(fdctrl->dor & FD_DOR_nRESET)) {
FLOPPY_DPRTF("Floppy controller in RESET state !\n");
return;
}
if (!(fdctrl->msr & FD_MSR_RQM) || (fdctrl->msr & FD_MSR_DIO)) {
FLOPPY_DPRTF("error... | static void fdctrl_write_data(FDCtrl *fdctrl, uint32_t value) {
FDrive *cur_drv;
uint32_t pos;
if (!(fdctrl->dor & FD_DOR_nRESET)) {
FLOPPY_DPRTF("Floppy controller in RESET state !\n");
return;
}
if (!(fdctrl->msr & FD_MSR_RQM) || (fdctrl->msr & FD_MSR_DIO)) {
FLOPPY_DPRTF("... | static void fdctrl_write_data(FDCtrl *fdctrl, uint32_t value) {
FDrive *cur_drv;
int pos;
if (!(fdctrl->dor & FD_DOR_nRESET)) {
FLOPPY_DPRTF("Floppy controller in RESET state !\n");
return;
}
if (!(fdctrl->msr & FD_MSR_RQM) || (fdctrl->msr & FD_MSR_DIO)) {
FLOPPY_DPRTF("error... | static void fdctrl_write_data(FDCtrl *fdctrl, uint32_t value) {
FDrive *cur_drv;
uint32_t pos;
if (!(fdctrl->dor & FD_DOR_nRESET)) {
FLOPPY_DPRTF("Floppy controller in RESET state !\n");
return;
}
if (!(fdctrl->msr & FD_MSR_RQM) || (fdctrl->msr & FD_MSR_DIO)) {
FLOPPY_DPRTF("... | static void fdctrl_write_data(FDCtrl *fdctrl, uint32_t value) {
FDrive *cur_drv;
int pos;
if (!(fdctrl->dor & FD_DOR_nRESET)) {
return;
}
if (fdctrl->data_pos == 0) {
pos = command_to_handler[value & 0xff];
}
FLOPPY_DPRTF("%s: %02x\n", __func__, value);
fdctrl->fifo[fdctr... | static void fdctrl_write_data(FDCtrl *fdctrl, uint32_t value) {
FDrive *cur_drv;
uint32_t pos;
if (!(fdctrl->dor & FD_DOR_nRESET)) {
return;
}
if (fdctrl->data_pos == 0) {
pos = command_to_handler[value & 0xff];
}
FLOPPY_DPRTF("%s: %02x\n", __func__, value);
pos = fdctrl-... | static void fdctrl_write_data(FDCtrl *fdctrl, uint32_t value) {
FDrive *cur_drv;
int pos;
if (!(fdctrl->dor & FD_DOR_nRESET)) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
return;
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (fdctrl->data_pos == 0) {
pos = command_to_... | static void fdctrl_write_data(FDCtrl *fdctrl, uint32_t value) {
FDrive *cur_drv;
uint32_t pos;
if (!(fdctrl->dor & FD_DOR_nRESET)) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
return;
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (fdctrl->data_pos == 0) {
pos = comman... | static void fdctrl_write_data(FDCtrl *fdctrl, uint32_t value) {
FDrive *cur_drv;
- int pos;
+ uint32_t pos;
if (!(fdctrl->dor & FD_DOR_nRESET)) {
return;
}
if (fdctrl->data_pos == 0) {
pos = command_to_handler[value & 0xff];
}
FLOPPY_DPRTF("%s: %02x\n", __func__, v... |
CVE-2015-3808 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-lbmr.c | dissect_lbmr_pser | static int dissect_lbmr_pser(tvbuff_t * tvb, int offset, packet_info * pinfo, proto_tree * tree) {
int hdr_len = 0;
int len = 0;
int topic_len = 0;
static const int * flags[] = {
&hf_lbmr_pser_flags_option, NULL
};
int curr_offset = offset;
guint16 flags_val = 0;
hdr_len = (int)t... | static int dissect_lbmr_pser(tvbuff_t * tvb, int offset, packet_info * pinfo, proto_tree * tree) {
int hdr_len = 0;
int len = 0;
int topic_len = 0;
static const int * flags[] = {
&hf_lbmr_pser_flags_option, NULL
};
int curr_offset = offset;
guint16 flags_val = 0;
hdr_len = (int)t... | static int dissect_lbmr_pser(tvbuff_t * tvb, int offset, packet_info * pinfo, proto_tree * tree) {
int hdr_len = 0;
int len = 0;
int topic_len = 0;
proto_tree * flags_tree = NULL;
proto_item * flags_item = NULL;
int curr_offset = offset;
guint16 flags = 0;
hdr_len = (int)tvb_get_ntohs(tv... | static int dissect_lbmr_pser(tvbuff_t * tvb, int offset, packet_info * pinfo, proto_tree * tree) {
int hdr_len = 0;
int len = 0;
int topic_len = 0;
proto_tree * flags_tree = NULL;
proto_item * flags_item = NULL;
int curr_offset = offset;
guint16 flags = 0;
hdr_len = (int)tvb_get_ntohs(tv... | static int dissect_lbmr_pser(tvbuff_t * tvb, int offset, packet_info * pinfo, proto_tree * tree) {
static const int * flags[] = {
&hf_lbmr_pser_flags_option, NULL
};
int curr_offset = offset;
hdr_len = (int)tvb_get_ntohs(tvb, curr_offset + O_LBMR_PSER_T_LEN);
flags_val = tvb_get_ntohs(tvb, c... | static int dissect_lbmr_pser(tvbuff_t * tvb, int offset, packet_info * pinfo, proto_tree * tree) {
static const int * flags[] = {
&hf_lbmr_pser_flags_option, NULL
};
int curr_offset = offset;
hdr_len = (int)tvb_get_ntohs(tvb, curr_offset + O_LBMR_PSER_T_LEN);
flags_val = tvb_get_ntohs(tvb, c... | static int dissect_lbmr_pser(tvbuff_t * tvb, int offset, packet_info * pinfo, proto_tree * tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
proto_tree * flags_tree = NULL;
proto_item * flags_item = NULL;
int curr_offset = offset;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
hdr_len = (int)... | static int dissect_lbmr_pser(tvbuff_t * tvb, int offset, packet_info * pinfo, proto_tree * tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
proto_tree * flags_tree = NULL;
proto_item * flags_item = NULL;
int curr_offset = offset;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
hdr_len = (int)... | static int dissect_lbmr_pser(tvbuff_t * tvb, int offset, packet_info * pinfo, proto_tree * tree) {
static const int * flags[] = {
&hf_lbmr_pser_flags_option, NULL
};
int curr_offset = offset;
hdr_len = (int)tvb_get_ntohs(tvb, curr_offset + O_LBMR_PSER_T_LEN);
flags_val = tvb_get_ntohs... |
CVE-2015-3809 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-lbmr.c | dissect_lbmr_pser | static int dissect_lbmr_pser(tvbuff_t * tvb, int offset, packet_info * pinfo, proto_tree * tree) {
int hdr_len = 0;
int len = 0;
int topic_len = 0;
static const int * flags[] = {
&hf_lbmr_pser_flags_option, NULL
};
int curr_offset = offset;
guint16 flags_val = 0;
hdr_len = (int)t... | static int dissect_lbmr_pser(tvbuff_t * tvb, int offset, packet_info * pinfo, proto_tree * tree) {
int hdr_len = 0;
int len = 0;
int topic_len = 0;
static const int * flags[] = {
&hf_lbmr_pser_flags_option, NULL
};
int curr_offset = offset;
guint16 flags_val = 0;
hdr_len = (int)t... | static int dissect_lbmr_pser(tvbuff_t * tvb, int offset, packet_info * pinfo, proto_tree * tree) {
int hdr_len = 0;
int len = 0;
int topic_len = 0;
proto_tree * flags_tree = NULL;
proto_item * flags_item = NULL;
int curr_offset = offset;
guint16 flags = 0;
hdr_len = (int)tvb_get_ntohs(tv... | static int dissect_lbmr_pser(tvbuff_t * tvb, int offset, packet_info * pinfo, proto_tree * tree) {
int hdr_len = 0;
int len = 0;
int topic_len = 0;
proto_tree * flags_tree = NULL;
proto_item * flags_item = NULL;
int curr_offset = offset;
guint16 flags = 0;
hdr_len = (int)tvb_get_ntohs(tv... | static int dissect_lbmr_pser(tvbuff_t * tvb, int offset, packet_info * pinfo, proto_tree * tree) {
static const int * flags[] = {
&hf_lbmr_pser_flags_option, NULL
};
int curr_offset = offset;
hdr_len = (int)tvb_get_ntohs(tvb, curr_offset + O_LBMR_PSER_T_LEN);
flags_val = tvb_get_ntohs(tvb, c... | static int dissect_lbmr_pser(tvbuff_t * tvb, int offset, packet_info * pinfo, proto_tree * tree) {
static const int * flags[] = {
&hf_lbmr_pser_flags_option, NULL
};
int curr_offset = offset;
hdr_len = (int)tvb_get_ntohs(tvb, curr_offset + O_LBMR_PSER_T_LEN);
flags_val = tvb_get_ntohs(tvb, c... | static int dissect_lbmr_pser(tvbuff_t * tvb, int offset, packet_info * pinfo, proto_tree * tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
proto_tree * flags_tree = NULL;
proto_item * flags_item = NULL;
int curr_offset = offset;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
hdr_len = (int)... | static int dissect_lbmr_pser(tvbuff_t * tvb, int offset, packet_info * pinfo, proto_tree * tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
proto_tree * flags_tree = NULL;
proto_item * flags_item = NULL;
int curr_offset = offset;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
hdr_len = (int)... | static int dissect_lbmr_pser(tvbuff_t * tvb, int offset, packet_info * pinfo, proto_tree * tree) {
static const int * flags[] = {
&hf_lbmr_pser_flags_option, NULL
};
int curr_offset = offset;
hdr_len = (int)tvb_get_ntohs(tvb, curr_offset + O_LBMR_PSER_T_LEN);
flags_val = tvb_get_ntohs... |
CVE-2015-3810 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-http.c | dissect_http | static int dissect_http(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) {
http_conv_t *conv_data;
int offset = 0;
int len;
conv_data = get_http_conversation_data(pinfo);
if(pinfo->fd->num >= conv_data->startframe && conv_data->response_code == 200 && conv_data->request_method && str... | static int dissect_http(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) {
http_conv_t *conv_data;
int offset = 0;
int len;
conv_data = get_http_conversation_data(pinfo);
if(pinfo->fd->num >= conv_data->startframe && conv_data->response_code == 200 && conv_data->request_method && str... | static int dissect_http(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) {
http_conv_t *conv_data;
int offset = 0;
int len;
conv_data = get_http_conversation_data(pinfo);
if(pinfo->fd->num >= conv_data->startframe && conv_data->response_code == 200 && conv_data->request_method && str... | static int dissect_http(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) {
http_conv_t *conv_data;
int offset = 0;
int len;
conv_data = get_http_conversation_data(pinfo);
if(pinfo->fd->num >= conv_data->startframe && conv_data->response_code == 200 && conv_data->request_method && str... | static int dissect_http(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) {
conv_data = get_http_conversation_data(pinfo);
if(pinfo->fd->num >= conv_data->startframe && conv_data->response_code == 200 && conv_data->request_method && strncmp(conv_data->request_method, "CONNECT", 7) == 0 && conv_da... | static int dissect_http(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) {
conv_data = get_http_conversation_data(pinfo);
if(pinfo->fd->num >= conv_data->startframe && conv_data->response_code == 200 && conv_data->request_method && strncmp(conv_data->request_method, "CONNECT", 7) == 0 && conv_da... | static int dissect_http(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
conv_data = get_http_conversation_data(pinfo);
if(pinfo->fd->num >= conv_data->startframe && conv_data->response_code == 200 && conv_data->request_method && strncmp(conv_d... | static int dissect_http(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
conv_data = get_http_conversation_data(pinfo);
if(pinfo->fd->num >= conv_data->startframe && conv_data->response_code == 200 && conv_data->request_method && strncmp(conv_d... | static int dissect_http(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) {
conv_data = get_http_conversation_data(pinfo);
if(pinfo->fd->num >= conv_data->startframe && conv_data->response_code == 200 && conv_data->request_method && strncmp(conv_data->request_method, "CONNECT", 7) == 0 && conv... |
CVE-2015-3810 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-websocket.c | dissect_websocket | static int dissect_websocket(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) {
proto_item *ti, *ti_len;
guint8 fin, opcode, mask;
guint length, short_length, payload_length, recurse_length;
guint payload_offset, mask_offset, recurse_offset;
proto_tree *ws_tree;
const guint8 *ma... | static int dissect_websocket(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) {
tcp_dissect_pdus(tvb, pinfo, tree, TRUE, 2, get_websocket_frame_length, dissect_websocket_frame, data);
return tvb_captured_length(tvb);
} | static int dissect_websocket(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) {
proto_item *ti, *ti_len;
guint8 fin, opcode, mask;
guint length, short_length, payload_length, recurse_length;
guint payload_offset, mask_offset, recurse_offset;
proto_tree *ws_tree = NULL;
const gui... | static int dissect_websocket(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) {
tcp_dissect_pdus(tvb, pinfo, tree, TRUE, 2, get_websocket_frame_length, dissect_websocket_frame, data);
return tvb_captured_length(tvb);
} | static int dissect_websocket(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) {
proto_item *ti, *ti_len;
guint8 fin, opcode, mask;
guint length, short_length, payload_length, recurse_length;
guint payload_offset, mask_offset, recurse_offset;
proto_tree *ws_tree;
const guint8 *ma... | static int dissect_websocket(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) {
tcp_dissect_pdus(tvb, pinfo, tree, TRUE, 2, get_websocket_frame_length, dissect_websocket_frame, data);
return tvb_captured_length(tvb);
}
| static int dissect_websocket(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) {
proto_item *ti, *ti_len;
guint8 fin, opcode, mask;
guint length, short_length, payload_length, recurse_length;
guint payload_offset, mask_offset, recurse_offset;
proto_tree *ws_tree = NULL;
const gui... | static int dissect_websocket(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) {
tcp_dissect_pdus(tvb, pinfo, tree, TRUE, 2, get_websocket_frame_length, dissect_websocket_frame, data);
return tvb_captured_length(tvb);
} | -static int dissect_websocket(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) {
- proto_item *ti, *ti_len;
- guint8 fin, opcode, mask;
- guint length, short_length, payload_length, recurse_length;
- guint payload_offset, mask_offset, recurse_offset;
- proto_tree *ws_tree;
- const gui... |
CVE-2015-3810 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-websocket.c | dissect_websocket_payload | static int dissect_websocket_payload(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_tree *ws_tree, guint8 opcode, guint payload_length, guint8 mask, const guint8* masking_key) {
guint offset = 0;
proto_item *ti_unmask, *ti;
dissector_handle_t handle = NULL;
proto_tree *pl_tree, *mask_tree = ... | static int dissect_websocket_payload(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_tree *ws_tree, guint8 opcode, guint payload_length, gboolean mask, const guint8* masking_key) {
guint offset = 0;
proto_item *ti_unmask, *ti;
dissector_handle_t handle = NULL;
proto_tree *pl_tree, *mask_tree ... | static int dissect_websocket_payload(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_tree *ws_tree, guint8 opcode, guint payload_length, guint8 mask, const guint8* masking_key) {
guint offset = 0;
proto_item *ti_unmask, *ti;
dissector_handle_t handle;
proto_tree *pl_tree, *mask_tree = NULL;
... | static int dissect_websocket_payload(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_tree *ws_tree, guint8 opcode, guint payload_length, gboolean mask, const guint8* masking_key) {
guint offset = 0;
proto_item *ti_unmask, *ti;
dissector_handle_t handle;
proto_tree *pl_tree, *mask_tree = NULL;... | static int dissect_websocket_payload(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_tree *ws_tree, guint8 opcode, guint payload_length, guint8 mask, const guint8* masking_key) {
}
| static int dissect_websocket_payload(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_tree *ws_tree, guint8 opcode, guint payload_length, gboolean mask, const guint8* masking_key) {
}
| static int dissect_websocket_payload(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_tree *ws_tree, guint8 opcode, guint payload_length, guint8 mask, const guint8* masking_key) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}
| static int dissect_websocket_payload(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_tree *ws_tree, guint8 opcode, guint payload_length, gboolean mask, const guint8* masking_key) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} | -static int dissect_websocket_payload(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_tree *ws_tree, guint8 opcode, guint payload_length, guint8 mask, const guint8* masking_key) {
+static int dissect_websocket_payload(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, proto_tree *ws_tree, guint8 opcode, gu... |
CVE-2015-3811 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-wcp.c | decompressed_entry | static guint8 * decompressed_entry(guint8 *dst, guint16 data_offset, guint16 data_cnt, int *len, guint8 * buf_start, guint8 *buf_end) {
const guint8 *src;
src = (dst - 1 - data_offset);
if ( src < buf_start) {
src += MAX_W_BUF_LEN;
}
while( data_cnt--) {
*dst = *src;
if ( ++(... | static guint8 * decompressed_entry(guint8 *dst, guint16 data_offset, guint16 data_cnt, int *len, wcp_window_t *buf_ptr) {
const guint8 *src;
guint8 *buf_start, *buf_end;
buf_start = buf_ptr->buffer;
buf_end = buf_ptr->buffer + MAX_W_BUF_LEN;
src = (dst - 1 - data_offset);
if ( src < buf_start) {... | static guint8 * decompressed_entry(guint8 *dst, guint16 data_offset, guint16 data_cnt, int *len, guint8 * buf_start, guint8 *buf_end) {
const guint8 *src;
src = (dst - 1 - data_offset);
if ( src < buf_start) {
src += MAX_W_BUF_LEN;
}
while( data_cnt--) {
*dst = *src;
if ( ++(... | static guint8 * decompressed_entry(guint8 *dst, guint16 data_offset, guint16 data_cnt, int *len, wcp_window_t *buf_ptr) {
const guint8 *src;
guint8 *buf_start, *buf_end;
buf_start = buf_ptr->buffer;
buf_end = buf_ptr->buffer + MAX_W_BUF_LEN;
src = (dst - 1 - data_offset);
if ( src < buf_start) {... | static guint8 * decompressed_entry(guint8 *dst, guint16 data_offset, guint16 data_cnt, int *len, guint8 * buf_start, guint8 *buf_end) {
const guint8 *src;
src = (dst - 1 - data_offset);
if ( src < buf_start) {
src += MAX_W_BUF_LEN;
}
while( data_cnt--) {
*dst = *src;
if ( ++(... | static guint8 * decompressed_entry(guint8 *dst, guint16 data_offset, guint16 data_cnt, int *len, wcp_window_t *buf_ptr) {
const guint8 *src;
guint8 *buf_start, *buf_end;
buf_start = buf_ptr->buffer;
buf_end = buf_ptr->buffer + MAX_W_BUF_LEN;
src = (dst - 1 - data_offset);
if ( src < buf_start) {... | static guint8 * decompressed_entry(guint8 *dst, guint16 data_offset, guint16 data_cnt, int *len, guint8 * buf_start, guint8 *buf_end) {
const guint8 *src;
src = (dst - 1 - data_offset);
if ( src < buf_start) {
src += MAX_W_BUF_LEN;
}
while( data_cnt--) {
*dst = *src;
if ( ++(... | static guint8 * decompressed_entry(guint8 *dst, guint16 data_offset, guint16 data_cnt, int *len, wcp_window_t *buf_ptr) {
const guint8 *src;
guint8 *buf_start, *buf_end;
buf_start = buf_ptr->buffer;
buf_end = buf_ptr->buffer + MAX_W_BUF_LEN;
src = (dst - 1 - data_offset);
if ( src < buf_start) {... | -static guint8 * decompressed_entry(guint8 *dst, guint16 data_offset, guint16 data_cnt, int *len, guint8 * buf_start, guint8 *buf_end) {
+static guint8 * decompressed_entry(guint8 *dst, guint16 data_offset, guint16 data_cnt, int *len, wcp_window_t *buf_ptr) {
const guint8 *src;
+ guint8 *buf_start, *buf_end;
+ ... |
CVE-2015-3811 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-wcp.c | get_wcp_window_ptr | static wcp_window_t *get_wcp_window_ptr(packet_info *pinfo, circuit_type ctype, guint32 circuit_id) {
circuit_t *circuit;
wcp_circuit_data_t *wcp_circuit_data;
circuit = find_circuit( ctype, circuit_id, pinfo->fd->num);
if ( !circuit) {
circuit = circuit_new( ctype, circuit_id, pinfo->fd->num);
... | static wcp_window_t *get_wcp_window_ptr(packet_info *pinfo, circuit_type ctype, guint32 circuit_id) {
circuit_t *circuit;
wcp_circuit_data_t *wcp_circuit_data;
circuit = find_circuit( ctype, circuit_id, pinfo->fd->num);
if ( !circuit) {
circuit = circuit_new( ctype, circuit_id, pinfo->fd->num);
... | static wcp_window_t *get_wcp_window_ptr( packet_info *pinfo) {
circuit_t *circuit;
wcp_circuit_data_t *wcp_circuit_data;
circuit = find_circuit( pinfo->ctype, pinfo->circuit_id, pinfo->fd->num);
if ( !circuit) {
circuit = circuit_new( pinfo->ctype, pinfo->circuit_id, pinfo->fd->num);
}
w... | static wcp_window_t *get_wcp_window_ptr( packet_info *pinfo) {
circuit_t *circuit;
wcp_circuit_data_t *wcp_circuit_data;
circuit = find_circuit( pinfo->ctype, pinfo->circuit_id, pinfo->fd->num);
if ( !circuit) {
circuit = circuit_new( pinfo->ctype, pinfo->circuit_id, pinfo->fd->num);
}
w... | static wcp_window_t *get_wcp_window_ptr(packet_info *pinfo, circuit_type ctype, guint32 circuit_id) {
if ( !wcp_circuit_data) {
wcp_circuit_data->recv.buf_cur = wcp_circuit_data->recv.buffer;
wcp_circuit_data->send.buf_cur = wcp_circuit_data->send.buffer;
circuit_add_proto_data(circuit, prot... | static wcp_window_t *get_wcp_window_ptr(packet_info *pinfo, circuit_type ctype, guint32 circuit_id) {
if ( !wcp_circuit_data) {
wcp_circuit_data->recv.buf_cur = wcp_circuit_data->recv.buffer;
wcp_circuit_data->recv.initialized = 0;
wcp_circuit_data->send.buf_cur = wcp_circuit_data->send.buff... | static wcp_window_t *get_wcp_window_ptr( packet_info *pinfo) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if ( !wcp_circuit_data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
wcp_circuit_data->recv.buf_cur = wcp_circuit_data->recv.buffer;
wcp_circuit_data->send.buf_cur = wcp_circuit_da... | static wcp_window_t *get_wcp_window_ptr( packet_info *pinfo) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if ( !wcp_circuit_data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
wcp_circuit_data->recv.buf_cur = wcp_circuit_data->recv.buffer;
wcp_circuit_data->recv.initialized = 0;
... | static wcp_window_t *get_wcp_window_ptr(packet_info *pinfo, circuit_type ctype, guint32 circuit_id) {
if ( !wcp_circuit_data) {
wcp_circuit_data->recv.buf_cur = wcp_circuit_data->recv.buffer;
+ wcp_circuit_data->recv.initialized = 0;
wcp_circuit_data->send.buf_cur = wcp_circuit_data->send... |
CVE-2015-3811 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-wcp.c | proto_register_wcp | void proto_register_wcp(void) {
static hf_register_info hf[] = {
{
&hf_wcp_cmd, {
"Command", "wcp.cmd", FT_UT8, BASE_HEX, VALS(cmd_string), WCP_CMD, "Compression Command", HFILL
}
}, {
&hf_wcp_ext_cmd, {
"Extended Command", "wcp.ext... | void proto_register_wcp(void) {
static hf_register_info hf[] = {
{
&hf_wcp_cmd, {
"Command", "wcp.cmd", FT_UT8, BASE_HEX, VALS(cmd_string), WCP_CMD, "Compression Command", HFILL
}
}, {
&hf_wcp_ext_cmd, {
"Extended Command", "wcp.ext... | void proto_register_wcp(void) {
static hf_register_info hf[] = {
{
&hf_wcp_cmd, {
"Command", "wcp.cmd", FT_UT8, BASE_HEX, VALS(cmd_string), WCP_CMD, "Compression Command", HFILL
}
}, {
&hf_wcp_ext_cmd, {
"Extended Command", "wcp.ext... | void proto_register_wcp(void) {
static hf_register_info hf[] = {
{
&hf_wcp_cmd, {
"Command", "wcp.cmd", FT_UT8, BASE_HEX, VALS(cmd_string), WCP_CMD, "Compression Command", HFILL
}
}, {
&hf_wcp_ext_cmd, {
"Extended Command", "wcp.ext... | void proto_register_wcp(void) {
static gint *ett[] = {
&ett_wcp, &ett_wcp_comp_data, &ett_wcp_field,
};
static ei_register_info ei[] = {
{ &ei_wcp_compressed_data_exceeds, { "wcp.compressed_data.exceeds", PI_MALFORMED, PI_ERROR, "Compressed data exceeds maximum buffer length", EXPFILL }}, { ... | void proto_register_wcp(void) {
static gint *ett[] = {
&ett_wcp, &ett_wcp_comp_data, &ett_wcp_field,
};
static ei_register_info ei[] = {
{ &ei_wcp_compressed_data_exceeds, { "wcp.compressed_data.exceeds", PI_MALFORMED, PI_ERROR, "Compressed data exceeds maximum buffer length", EXPFILL }}, { ... | void proto_register_wcp(void) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
static gint *ett[] = {
&ett_wcp, &ett_wcp_comp_data, &ett_wcp_field,
};
static ei_register_info ei[] = {
{ &ei_wcp_compressed_data_exceeds, { "wcp.compressed_data.exceeds", PI_MALFORMED, PI_ERROR, "Compressed d... | void proto_register_wcp(void) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
static gint *ett[] = {
&ett_wcp, &ett_wcp_comp_data, &ett_wcp_field,
};
static ei_register_info ei[] = {
{ &ei_wcp_compressed_data_exceeds, { "wcp.compressed_data.exceeds", PI_MALFORMED, PI_ERROR, "Compressed d... | void proto_register_wcp(void) {
static gint *ett[] = {
&ett_wcp, &ett_wcp_comp_data, &ett_wcp_field,
};
static ei_register_info ei[] = {
- { &ei_wcp_compressed_data_exceeds, { "wcp.compressed_data.exceeds", PI_MALFORMED, PI_ERROR, "Compressed data exceeds maximum buffer length", EXPFILL ... |
CVE-2015-3811 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-wcp.c | wcp_uncompress | static tvbuff_t *wcp_uncompress( tvbuff_t *src_tvb, int offset, packet_info *pinfo, proto_tree *tree, circuit_type ctype, guint32 circuit_id) {
proto_tree *cd_tree, *sub_tree;
proto_item *cd_item, *ti;
int len, i;
int cnt = tvb_reported_length( src_tvb)-1;
guint8 *dst, *src, *buf_start, *buf_end, co... | static tvbuff_t *wcp_uncompress( tvbuff_t *src_tvb, int offset, packet_info *pinfo, proto_tree *tree, circuit_type ctype, guint32 circuit_id) {
proto_tree *cd_tree, *sub_tree;
proto_item *cd_item, *ti;
int len, i;
int cnt = tvb_reported_length( src_tvb)-1;
guint8 *dst, *src, *buf_start, *buf_end, co... | static tvbuff_t *wcp_uncompress( tvbuff_t *src_tvb, int offset, packet_info *pinfo, proto_tree *tree) {
proto_tree *cd_tree, *sub_tree;
proto_item *cd_item, *ti;
int len, i;
int cnt = tvb_reported_length( src_tvb)-1;
guint8 *dst, *src, *buf_start, *buf_end, comp_flag_bits = 0;
guint16 data_offse... | static tvbuff_t *wcp_uncompress( tvbuff_t *src_tvb, int offset, packet_info *pinfo, proto_tree *tree) {
proto_tree *cd_tree, *sub_tree;
proto_item *cd_item, *ti;
int len, i;
int cnt = tvb_reported_length( src_tvb)-1;
guint8 *dst, *src, *buf_start, *buf_end, comp_flag_bits = 0;
guint16 data_offse... | static tvbuff_t *wcp_uncompress( tvbuff_t *src_tvb, int offset, packet_info *pinfo, proto_tree *tree, circuit_type ctype, guint32 circuit_id) {
int cnt = tvb_reported_length( src_tvb)-1;
buf_ptr = get_wcp_window_ptr(pinfo, ctype, circuit_id);
buf_start = buf_ptr->buffer;
buf_end = buf_start + MAX_W_BUF_... | static tvbuff_t *wcp_uncompress( tvbuff_t *src_tvb, int offset, packet_info *pinfo, proto_tree *tree, circuit_type ctype, guint32 circuit_id) {
int cnt = tvb_reported_length( src_tvb)-1;
buf_ptr = get_wcp_window_ptr(pinfo, ctype, circuit_id);
buf_start = buf_ptr->buffer;
buf_end = buf_start + MAX_W_BUF_... | static tvbuff_t *wcp_uncompress( tvbuff_t *src_tvb, int offset, packet_info *pinfo, proto_tree *tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int cnt = tvb_reported_length( src_tvb)-1;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
buf_ptr = get_wcp_window_ptr( pinfo);
buf_start = buf_ptr->bu... | static tvbuff_t *wcp_uncompress( tvbuff_t *src_tvb, int offset, packet_info *pinfo, proto_tree *tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int cnt = tvb_reported_length( src_tvb)-1;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
buf_ptr = get_wcp_window_ptr( pinfo);
buf_start = buf_ptr->bu... | static tvbuff_t *wcp_uncompress( tvbuff_t *src_tvb, int offset, packet_info *pinfo, proto_tree *tree, circuit_type ctype, guint32 circuit_id) {
int cnt = tvb_reported_length( src_tvb)-1;
buf_ptr = get_wcp_window_ptr(pinfo, ctype, circuit_id);
buf_start = buf_ptr->buffer;
buf_end = buf_start + MAX_W... |
CVE-2015-3812 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-x11.c | x11_init_protocol | static void x11_init_protocol(void) {
x11_conv_data_t *state;
for (state = x11_conv_data_list; state != NULL; ) {
x11_conv_data_t *last;
g_hash_table_destroy(state->seqtable);
g_hash_table_destroy(state->valtable);
last = state;
state = state->next;
g_free(last);
... | static void x11_init_protocol(void) {
x11_conv_data_t *state;
for (state = x11_conv_data_list; state != NULL; ) {
x11_conv_data_t *last;
g_hash_table_destroy(state->eventcode_funcs);
g_hash_table_destroy(state->reply_funcs);
g_hash_table_destroy(state->seqtable);
g_hash_t... | static void x11_init_protocol(void) {
x11_conv_data_t *state;
for (state = x11_conv_data_list; state != NULL; ) {
x11_conv_data_t *last;
g_hash_table_destroy(state->seqtable);
g_hash_table_destroy(state->valtable);
last = state;
state = state->next;
g_free(last);
... | static void x11_init_protocol(void) {
x11_conv_data_t *state;
for (state = x11_conv_data_list; state != NULL; ) {
x11_conv_data_t *last;
g_hash_table_destroy(state->eventcode_funcs);
g_hash_table_destroy(state->reply_funcs);
g_hash_table_destroy(state->seqtable);
g_hash_t... | static void x11_init_protocol(void) {
for (state = x11_conv_data_list; state != NULL; ) {
x11_conv_data_t *last;
g_hash_table_destroy(state->seqtable);
last = state;
state = state->next;
g_free(last);
}
}
| static void x11_init_protocol(void) {
for (state = x11_conv_data_list; state != NULL; ) {
x11_conv_data_t *last;
g_hash_table_destroy(state->eventcode_funcs);
g_hash_table_destroy(state->reply_funcs);
g_hash_table_destroy(state->seqtable);
last = state;
state = state-... | static void x11_init_protocol(void) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
for (state = x11_conv_data_list; state != NULL; ) {
x11_conv_data_t *last;
g_hash_table_destroy(state->seqtable);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
last = state;
state = state->nex... | static void x11_init_protocol(void) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
for (state = x11_conv_data_list; state != NULL; ) {
x11_conv_data_t *last;
g_hash_table_destroy(state->eventcode_funcs);
g_hash_table_destroy(state->reply_funcs);
g_hash_table_destroy(state->seqta... | static void x11_init_protocol(void) {
for (state = x11_conv_data_list; state != NULL; ) {
x11_conv_data_t *last;
+ g_hash_table_destroy(state->eventcode_funcs);
+ g_hash_table_destroy(state->reply_funcs);
g_hash_table_destroy(state->seqtable);
last = state;
state ... |
CVE-2015-3813 | Wireshark | https://github.com/wireshark/wireshark | epan/reassemble.c | fragment_add_work | static gboolean fragment_add_work(fragment_head *fd_head, tvbuff_t *tvb, const int offset, const packet_info *pinfo, const guint32 frag_offset, const guint32 frag_data_len,
const gboolean more_frags) {
fragment_item *fd;
fragment_item *fd_i;
guint32 max, dfpos, fraglen;
... | static gboolean fragment_add_work(fragment_head *fd_head, tvbuff_t *tvb, const int offset, const packet_info *pinfo, const guint32 frag_offset, const guint32 frag_data_len,
const gboolean more_frags) {
fragment_item *fd;
fragment_item *fd_i;
guint32 max, dfpos, fraglen;
... | static gboolean fragment_add_work(fragment_head *fd_head, tvbuff_t *tvb, const int offset, const packet_info *pinfo, const guint32 frag_offset, const guint32 frag_data_len,
const gboolean more_frags) {
fragment_item *fd;
fragment_item *fd_i;
guint32 max, dfpos, fraglen;
... | static gboolean fragment_add_work(fragment_head *fd_head, tvbuff_t *tvb, const int offset, const packet_info *pinfo, const guint32 frag_offset, const guint32 frag_data_len,
const gboolean more_frags) {
fragment_item *fd;
fragment_item *fd_i;
guint32 max, dfpos, fraglen;
... | static gboolean fragment_add_work(fragment_head *fd_head, tvbuff_t *tvb, const int offset, const packet_info *pinfo, const guint32 frag_offset, const guint32 frag_data_len,
const gboolean more_frags) {
fd = g_slice_new(fragment_item);
fd->len = frag_data_len;
if (fd_head->f... | static gboolean fragment_add_work(fragment_head *fd_head, tvbuff_t *tvb, const int offset, const packet_info *pinfo, const guint32 frag_offset, const guint32 frag_data_len,
const gboolean more_frags) {
fd = g_slice_new(fragment_item);
fd->len = frag_data_len;
if (fd_head->f... | static gboolean fragment_add_work(fragment_head *fd_head, tvbuff_t *tvb, const int offset, const packet_info *pinfo, const guint32 frag_offset, const guint32 frag_data_len,
const gboolean more_frags) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
fd = g_slice_new(fragment_item... | static gboolean fragment_add_work(fragment_head *fd_head, tvbuff_t *tvb, const int offset, const packet_info *pinfo, const guint32 frag_offset, const guint32 frag_data_len,
const gboolean more_frags) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
fd = g_slice_new(fragment_item... | static gboolean fragment_add_work(fragment_head *fd_head, tvbuff_t *tvb, const int offset, const packet_info *pinfo, const guint32 frag_offset, const guint32 frag_data_len,
const gboolean more_frags) {
fd = g_slice_new(fragment_item);
fd->len = frag_data_len;
if (fd_he... |
CVE-2015-3814 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-ieee80211.c | dissect_tfs_request | static int dissect_tfs_request(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, guint32 tag_len, int ftype) {
int end = offset + tag_len;
proto_tree_add_item(tree, hf_ieee80211_tag_tfs_request_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset++;
proto_tree_add_item(tree, hf_ieee80211_tag_tf... | static int dissect_tfs_request(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, guint32 tag_len, int ftype) {
int end = offset + tag_len;
proto_tree_add_item(tree, hf_ieee80211_tag_tfs_request_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset++;
proto_tree_add_item(tree, hf_ieee80211_tag_tf... | static int dissect_tfs_request(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, guint32 tag_len, int ftype) {
int end = offset + tag_len;
proto_tree_add_item(tree, hf_ieee80211_tag_tfs_request_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset++;
proto_tree_add_item(tree, hf_ieee80211_tag_tf... | static int dissect_tfs_request(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, guint32 tag_len, int ftype) {
int end = offset + tag_len;
proto_tree_add_item(tree, hf_ieee80211_tag_tfs_request_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset++;
proto_tree_add_item(tree, hf_ieee80211_tag_tf... | static int dissect_tfs_request(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, guint32 tag_len, int ftype) {
proto_tree_add_item(tree, hf_ieee80211_tag_tfs_request_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset++;
proto_tree_add_item(tree, hf_ieee80211_tag_tfs_request_ac_delete_after_match,... | static int dissect_tfs_request(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, guint32 tag_len, int ftype) {
proto_tree_add_item(tree, hf_ieee80211_tag_tfs_request_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset++;
proto_tree_add_item(tree, hf_ieee80211_tag_tfs_request_ac_delete_after_match,... | static int dissect_tfs_request(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, guint32 tag_len, int ftype) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
proto_tree_add_item(tree, hf_ieee80211_tag_tfs_request_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset++;
proto_tree_add_item(tree, h... | static int dissect_tfs_request(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, guint32 tag_len, int ftype) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
proto_tree_add_item(tree, hf_ieee80211_tag_tfs_request_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset++;
proto_tree_add_item(tree, h... | static int dissect_tfs_request(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, guint32 tag_len, int ftype) {
proto_tree_add_item(tree, hf_ieee80211_tag_tfs_request_id, tvb, offset, 1, ENC_LITTLE_ENDIAN);
offset++;
proto_tree_add_item(tree, hf_ieee80211_tag_tfs_request_ac_delete_after_ma... |
CVE-2015-3814 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-ieee80211.c | dissect_tfs_response | static int dissect_tfs_response(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, guint32 tag_len, int ftype) {
int end = offset + tag_len;
while (offset + 3 <= end) {
guint8 id, len;
int s_offset, s_end;
id = tvb_get_guint8(tvb, offset);
proto_tree_add_item(tree, ... | static int dissect_tfs_response(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, guint32 tag_len, int ftype) {
int end = offset + tag_len;
while (offset + 3 <= end) {
guint8 id, len;
int s_offset, s_end;
id = tvb_get_guint8(tvb, offset);
proto_tree_add_item(tree, ... | static int dissect_tfs_response(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, guint32 tag_len, int ftype) {
int end = offset + tag_len;
while (offset + 3 <= end) {
guint8 id, len;
int s_offset, s_end;
id = tvb_get_guint8(tvb, offset);
proto_tree_add_item(tree, ... | static int dissect_tfs_response(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, guint32 tag_len, int ftype) {
int end = offset + tag_len;
while (offset + 3 <= end) {
guint8 id, len;
int s_offset, s_end;
id = tvb_get_guint8(tvb, offset);
proto_tree_add_item(tree, ... | static int dissect_tfs_response(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, guint32 tag_len, int ftype) {
while (offset + 3 <= end) {
guint8 id, len;
int s_offset, s_end;
id = tvb_get_guint8(tvb, offset);
proto_tree_add_item(tree, hf_ieee80211_tag_tfs_response_su... | static int dissect_tfs_response(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, guint32 tag_len, int ftype) {
while (offset + 3 <= end) {
guint8 id, len;
int s_offset, s_end;
id = tvb_get_guint8(tvb, offset);
proto_tree_add_item(tree, hf_ieee80211_tag_tfs_response_su... | static int dissect_tfs_response(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, guint32 tag_len, int ftype) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
while (offset + 3 <= end) {
guint8 id, len;
int s_offset, s_end;
id = tvb_get_guint8(tvb, offset);
proto_tr... | static int dissect_tfs_response(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, guint32 tag_len, int ftype) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
while (offset + 3 <= end) {
guint8 id, len;
int s_offset, s_end;
id = tvb_get_guint8(tvb, offset);
proto_tr... | static int dissect_tfs_response(packet_info *pinfo, proto_tree *tree, tvbuff_t *tvb, int offset, guint32 tag_len, int ftype) {
while (offset + 3 <= end) {
guint8 id, len;
int s_offset, s_end;
id = tvb_get_guint8(tvb, offset);
proto_tree_add_item(tree, hf_ieee80211_tag_tfs_respo... |
CVE-2015-3815 | Wireshark | https://github.com/wireshark/wireshark | wiretap/logcat.c | detect_version | static gint detect_version(wtap *wth, int *err, gchar **err_info) {
gint bytes_read;
guint16 payload_length;
guint16 try_header_size;
guint8 *buffer;
gint64 file_offset;
guint32 log_length;
guint32 tag_length;
guint16 tmp;
file_offset = file_tell(wth->fh);
bytes_read = file_read(... | static gint detect_version(wtap *wth, int *err, gchar **err_info) {
gint bytes_read;
guint16 payload_length;
guint16 hdr_size;
guint16 read_sofar;
guint16 entry_len;
gint version;
struct logger_entry *log_entry;
struct logger_entry_v2 *log_entry_v2;
guint8 *buffer;
guint16 tmp;
... | static gint detect_version(wtap *wth, int *err, gchar **err_info) {
gint bytes_read;
guint16 payload_length;
guint16 try_header_size;
guint8 *buffer;
gint64 file_offset;
guint32 log_length;
guint32 tag_length;
guint16 tmp;
file_offset = file_tell(wth->fh);
bytes_read = file_read(... | static gint detect_version(wtap *wth, int *err, gchar **err_info) {
gint bytes_read;
guint16 payload_length;
guint16 hdr_size;
guint16 read_sofar;
guint16 entry_len;
gint version;
struct logger_entry *log_entry;
struct logger_entry_v2 *log_entry_v2;
guint8 *buffer;
guint16 tmp;
... | static gint detect_version(wtap *wth, int *err, gchar **err_info) {
guint16 payload_length;
guint16 try_header_size;
guint8 *buffer;
gint64 file_offset;
guint32 log_length;
guint32 tag_length;
guint16 tmp;
file_offset = file_tell(wth->fh);
bytes_read = file_read(&tmp, 2, wth->fh);
... | static gint detect_version(wtap *wth, int *err, gchar **err_info) {
guint16 payload_length;
guint16 hdr_size;
guint16 read_sofar;
guint16 entry_len;
gint version;
struct logger_entry *log_entry;
struct logger_entry_v2 *log_entry_v2;
guint8 *buffer;
guint16 tmp;
guint8 *msg_payloa... | static gint detect_version(wtap *wth, int *err, gchar **err_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint16 payload_length;
guint16 try_header_size;
guint8 *buffer;
gint64 file_offset;
guint32 log_length;
guint32 tag_length;
guint16 tmp;
file_offset = file_tell(wth->fh)... | static gint detect_version(wtap *wth, int *err, gchar **err_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint16 payload_length;
guint16 hdr_size;
guint16 read_sofar;
guint16 entry_len;
gint version;
struct logger_entry *log_entry;
struct logger_entry_v2 *log_entry_v2;
guint... | static gint detect_version(wtap *wth, int *err, gchar **err_info) {
guint16 payload_length;
- guint16 try_header_size;
+ guint16 hdr_size;
+ guint16 read_sofar;
+ guint16 entry_len;
+ gint version;
+ struct logger_entry *log_entry;
+ struct logger_entry_v2 *log_entry_v2;
guint8 *buffer;
... |
CVE-2015-3815 | Wireshark | https://github.com/wireshark/wireshark | wiretap/logcat.c | get_priority | static gchar get_priority(const guint8 *priority) {
static gchar priorities[] = "??VDIWEFS";
if (*priority >= (guint8) sizeof(priorities)) {
return '?';
}
return priorities[(int) *priority];
} | static gchar get_priority(const guint8 priority) {
static gchar priorities[] = "??VDIWEFS";
if (priority >= (guint8) sizeof(priorities)) {
return '?';
}
return priorities[priority];
} | static gchar get_priority(const guint8 *priority) {
static gchar priorities[] = "??VDIWEFS";
if (*priority >= (guint8) sizeof(priorities)) {
return '?';
}
return priorities[(int) *priority];
} | static gchar get_priority(const guint8 priority) {
static gchar priorities[] = "??VDIWEFS";
if (priority >= (guint8) sizeof(priorities)) {
return '?';
}
return priorities[priority];
} | static gchar get_priority(const guint8 *priority) {
static gchar priorities[] = "??VDIWEFS";
if (*priority >= (guint8) sizeof(priorities)) {
return '?';
}
return priorities[(int) *priority];
}
| static gchar get_priority(const guint8 priority) {
static gchar priorities[] = "??VDIWEFS";
if (priority >= (guint8) sizeof(priorities)) {
return '?';
}
return priorities[priority];
}
| static gchar get_priority(const guint8 *priority) {
static gchar priorities[] = "??VDIWEFS";
if (*priority >= (guint8) sizeof(priorities)) {
return '?';
}
return priorities[(int) *priority];
}
| static gchar get_priority(const guint8 priority) {
static gchar priorities[] = "??VDIWEFS";
if (priority >= (guint8) sizeof(priorities)) {
return '?';
}
return priorities[priority];
} | -static gchar get_priority(const guint8 *priority) {
+static gchar get_priority(const guint8 priority) {
static gchar priorities[] = "??VDIWEFS";
- if (*priority >= (guint8) sizeof(priorities)) {
+ if (priority >= (guint8) sizeof(priorities)) {
return '?';
}
- return priorities[(int) *priori... |
CVE-2015-3815 | Wireshark | https://github.com/wireshark/wireshark | wiretap/logcat.c | logcat_dump_text | static gboolean logcat_dump_text(wtap_dumper *wdh, const struct wtap_pkthdr *phdr, const guint8 *pd, int *err) {
gchar *buf;
gint length;
gchar priority;
const gchar *tag;
const gint *pid;
const gint *tid;
const gchar *log;
gchar *log_part;
const gchar *str_begin;
const gchar *st... | static gboolean logcat_dump_text(wtap_dumper *wdh, const struct wtap_pkthdr *phdr, const guint8 *pd, int *err) {
gchar *buf;
gint length;
gchar priority;
const struct logger_entry *log_entry = (struct logger_entry *) pd;
const struct logger_entry_v2 *log_entry_v2 = (struct logger_entry_v2 *) pd;
... | static gboolean logcat_dump_text(wtap_dumper *wdh, const struct wtap_pkthdr *phdr, const guint8 *pd, int *err) {
gchar *buf;
gint length;
gchar priority;
const gchar *tag;
const gint *pid;
const gint *tid;
const gchar *log;
gchar *log_part;
const gchar *str_begin;
const gchar *st... | static gboolean logcat_dump_text(wtap_dumper *wdh, const struct wtap_pkthdr *phdr, const guint8 *pd, int *err) {
gchar *buf;
gint length;
gchar priority;
const struct logger_entry *log_entry = (struct logger_entry *) pd;
const struct logger_entry_v2 *log_entry_v2 = (struct logger_entry_v2 *) pd;
... | static gboolean logcat_dump_text(wtap_dumper *wdh, const struct wtap_pkthdr *phdr, const guint8 *pd, int *err) {
gchar priority;
const gchar *tag;
const gint *pid;
const gint *tid;
const gchar *log;
gchar *log_part;
const gchar *str_begin;
const gchar *str_end;
const guint32 *datetim... | static gboolean logcat_dump_text(wtap_dumper *wdh, const struct wtap_pkthdr *phdr, const guint8 *pd, int *err) {
gchar priority;
const struct logger_entry *log_entry = (struct logger_entry *) pd;
const struct logger_entry_v2 *log_entry_v2 = (struct logger_entry_v2 *) pd;
gint payload_length;
const g... | static gboolean logcat_dump_text(wtap_dumper *wdh, const struct wtap_pkthdr *phdr, const guint8 *pd, int *err) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
gchar priority;
const gchar *tag;
const gint *pid;
const gint *tid;
const gchar *log;
gchar *log_part;
const gchar *str_begin;
... | static gboolean logcat_dump_text(wtap_dumper *wdh, const struct wtap_pkthdr *phdr, const guint8 *pd, int *err) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
gchar priority;
const struct logger_entry *log_entry = (struct logger_entry *) pd;
const struct logger_entry_v2 *log_entry_v2 = (struct logger_en... | static gboolean logcat_dump_text(wtap_dumper *wdh, const struct wtap_pkthdr *phdr, const guint8 *pd, int *err) {
gchar priority;
+ const struct logger_entry *log_entry = (struct logger_entry *) pd;
+ const struct logger_entry_v2 *log_entry_v2 = (struct logger_entry_v2 *) pd;
+ gint payload_length;
c... |
CVE-2015-3815 | Wireshark | https://github.com/wireshark/wireshark | wiretap/logcat.c | logcat_log | static gchar *logcat_log(const struct dumper_t *dumper, guint32 seconds, gint microseconds, gint pid, gint tid, gchar priority, const gchar *tag, const gchar *log) {
gchar time_buffer[15];
time_t datetime;
datetime = (time_t) seconds;
switch (dumper->type) {
case DUMP_BRIEF:
return g_strdup_... | static gchar *logcat_log(const struct dumper_t *dumper, guint32 seconds, gint milliseconds, gint pid, gint tid, gchar priority, const gchar *tag, const gchar *log) {
gchar time_buffer[15];
time_t datetime;
datetime = (time_t) seconds;
switch (dumper->type) {
case DUMP_BRIEF:
return g_strdup_... | static gchar *logcat_log(const struct dumper_t *dumper, guint32 seconds, gint microseconds, gint pid, gint tid, gchar priority, const gchar *tag, const gchar *log) {
gchar time_buffer[15];
time_t datetime;
datetime = (time_t) seconds;
switch (dumper->type) {
case DUMP_BRIEF:
return g_strdup_... | static gchar *logcat_log(const struct dumper_t *dumper, guint32 seconds, gint milliseconds, gint pid, gint tid, gchar priority, const gchar *tag, const gchar *log) {
gchar time_buffer[15];
time_t datetime;
datetime = (time_t) seconds;
switch (dumper->type) {
case DUMP_BRIEF:
return g_strdup_... | static gchar *logcat_log(const struct dumper_t *dumper, guint32 seconds, gint microseconds, gint pid, gint tid, gchar priority, const gchar *tag, const gchar *log) {
datetime = (time_t) seconds;
switch (dumper->type) {
case DUMP_TIME:
strftime(time_buffer, sizeof(time_buffer), "%m-%d %H:%M:%S", gmti... | static gchar *logcat_log(const struct dumper_t *dumper, guint32 seconds, gint milliseconds, gint pid, gint tid, gchar priority, const gchar *tag, const gchar *log) {
datetime = (time_t) seconds;
switch (dumper->type) {
case DUMP_TIME:
strftime(time_buffer, sizeof(time_buffer), "%m-%d %H:%M:%S", gmti... | static gchar *logcat_log(const struct dumper_t *dumper, guint32 seconds, gint microseconds, gint pid, gint tid, gchar priority, const gchar *tag, const gchar *log) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
datetime = (time_t) seconds;
switch (dumper->type) {
/* PLACEHOLDER: DO NOT DELETE THIS COMM... | static gchar *logcat_log(const struct dumper_t *dumper, guint32 seconds, gint milliseconds, gint pid, gint tid, gchar priority, const gchar *tag, const gchar *log) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
datetime = (time_t) seconds;
switch (dumper->type) {
/* PLACEHOLDER: DO NOT DELETE THIS COMM... | -static gchar *logcat_log(const struct dumper_t *dumper, guint32 seconds, gint microseconds, gint pid, gint tid, gchar priority, const gchar *tag, const gchar *log) {
+static gchar *logcat_log(const struct dumper_t *dumper, guint32 seconds, gint milliseconds, gint pid, gint tid, gchar priority, const gchar *tag, const ... |
CVE-2015-3815 | Wireshark | https://github.com/wireshark/wireshark | wiretap/logcat.c | logcat_read_packet | static gboolean logcat_read_packet(struct logcat_phdr *logcat, FILE_T fh, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) {
gint bytes_read;
gint packet_size;
guint16 payload_length;
guint tmp[2];
guint8 *pd;
bytes_read = file_read(&tmp, 2, fh);
if (bytes_read != 2) {
... | static gboolean logcat_read_packet(struct logcat_phdr *logcat, FILE_T fh, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) {
gint bytes_read;
gint packet_size;
guint16 payload_length;
guint tmp[2];
guint8 *pd;
struct logger_entry *log_entry;
bytes_read = file_read(&tmp, 2, ... | static gboolean logcat_read_packet(struct logcat_phdr *logcat, FILE_T fh, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) {
gint bytes_read;
gint packet_size;
guint16 payload_length;
guint tmp[2];
guint8 *pd;
bytes_read = file_read(&tmp, 2, fh);
if (bytes_read != 2) {
... | static gboolean logcat_read_packet(struct logcat_phdr *logcat, FILE_T fh, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) {
gint bytes_read;
gint packet_size;
guint16 payload_length;
guint tmp[2];
guint8 *pd;
struct logger_entry *log_entry;
bytes_read = file_read(&tmp, 2, ... | static gboolean logcat_read_packet(struct logcat_phdr *logcat, FILE_T fh, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) {
guint8 *pd;
bytes_read = file_read(&tmp, 2, fh);
payload_length = pletoh16(tmp);
if (logcat->version == 1) {
packet_size = 5 * 4 + payload_length;
} ... | static gboolean logcat_read_packet(struct logcat_phdr *logcat, FILE_T fh, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) {
guint8 *pd;
struct logger_entry *log_entry;
bytes_read = file_read(&tmp, 2, fh);
payload_length = pletoh16(tmp);
if (logcat->version == 1) {
packet_s... | static gboolean logcat_read_packet(struct logcat_phdr *logcat, FILE_T fh, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint8 *pd;
bytes_read = file_read(&tmp, 2, fh);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
payload_length =... | static gboolean logcat_read_packet(struct logcat_phdr *logcat, FILE_T fh, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint8 *pd;
struct logger_entry *log_entry;
bytes_read = file_read(&tmp, 2, fh);
/* PLACEHOLDER: DO NOT DELETE ... | static gboolean logcat_read_packet(struct logcat_phdr *logcat, FILE_T fh, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) {
guint8 *pd;
+ struct logger_entry *log_entry;
bytes_read = file_read(&tmp, 2, fh);
payload_length = pletoh16(tmp);
if (logcat->version == 1) {
- p... |
CVE-2015-3906 | Wireshark | https://github.com/wireshark/wireshark | wiretap/logcat.c | detect_version | static gint detect_version(wtap *wth, int *err, gchar **err_info) {
gint bytes_read;
guint16 payload_length;
guint16 try_header_size;
guint8 *buffer;
gint64 file_offset;
guint32 log_length;
guint32 tag_length;
guint16 tmp;
file_offset = file_tell(wth->fh);
bytes_read = file_read(... | static gint detect_version(wtap *wth, int *err, gchar **err_info) {
gint bytes_read;
guint16 payload_length;
guint16 hdr_size;
guint16 read_sofar;
guint16 entry_len;
gint version;
struct logger_entry *log_entry;
struct logger_entry_v2 *log_entry_v2;
guint8 *buffer;
guint16 tmp;
... | static gint detect_version(wtap *wth, int *err, gchar **err_info) {
gint bytes_read;
guint16 payload_length;
guint16 try_header_size;
guint8 *buffer;
gint64 file_offset;
guint32 log_length;
guint32 tag_length;
guint16 tmp;
file_offset = file_tell(wth->fh);
bytes_read = file_read(... | static gint detect_version(wtap *wth, int *err, gchar **err_info) {
gint bytes_read;
guint16 payload_length;
guint16 hdr_size;
guint16 read_sofar;
guint16 entry_len;
gint version;
struct logger_entry *log_entry;
struct logger_entry_v2 *log_entry_v2;
guint8 *buffer;
guint16 tmp;
... | static gint detect_version(wtap *wth, int *err, gchar **err_info) {
guint16 payload_length;
guint16 try_header_size;
guint8 *buffer;
gint64 file_offset;
guint32 log_length;
guint32 tag_length;
guint16 tmp;
file_offset = file_tell(wth->fh);
bytes_read = file_read(&tmp, 2, wth->fh);
... | static gint detect_version(wtap *wth, int *err, gchar **err_info) {
guint16 payload_length;
guint16 hdr_size;
guint16 read_sofar;
guint16 entry_len;
gint version;
struct logger_entry *log_entry;
struct logger_entry_v2 *log_entry_v2;
guint8 *buffer;
guint16 tmp;
guint8 *msg_payloa... | static gint detect_version(wtap *wth, int *err, gchar **err_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint16 payload_length;
guint16 try_header_size;
guint8 *buffer;
gint64 file_offset;
guint32 log_length;
guint32 tag_length;
guint16 tmp;
file_offset = file_tell(wth->fh)... | static gint detect_version(wtap *wth, int *err, gchar **err_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint16 payload_length;
guint16 hdr_size;
guint16 read_sofar;
guint16 entry_len;
gint version;
struct logger_entry *log_entry;
struct logger_entry_v2 *log_entry_v2;
guint... | static gint detect_version(wtap *wth, int *err, gchar **err_info) {
guint16 payload_length;
- guint16 try_header_size;
+ guint16 hdr_size;
+ guint16 read_sofar;
+ guint16 entry_len;
+ gint version;
+ struct logger_entry *log_entry;
+ struct logger_entry_v2 *log_entry_v2;
guint8 *buffer;
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.