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-2015-3906 | 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-3906 | 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-3906 | 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-3906 | 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-4651 | 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;
gint16 family;
guint16 table_length;
proto_tree *element_tree;
proto_item *tf;
if (length < 2*4) {
return length - 2*4... | 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;
gint16 family;
guint16 table_length;
proto_tree *element_tree;
proto_item *tf;
if (info_tree) {
tf = proto_tree_get_pa... | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
guint32 i;
proto_tree *element_tree=NULL;
proto_item *tf=NULL;
wccp_wccp_address_table.in_use = TRUE;
if (length < 2*4) {
return length - 2*4;
}
wccp_wcc... | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
guint32 i;
gint16 family;
guint16 table_length;
proto_tree *element_tree;
proto_item *tf;
if (length < 2*4) {
return length - 2*4;
}
family = tvb_get... | 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 */
guint32 i;
proto_tree *element_tree=NULL;
proto_item *tf=NULL;
wccp_wccp_address_table.in_use = TRUE;
/* PLACEHOLDER: D... | 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 */
guint32 i;
gint16 family;
guint16 table_length;
proto_tree *element_tree;
proto_item *tf;
/* PLACEHOLDER: DO NOT DE... | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
guint32 i;
- proto_tree *element_tree=NULL;
- proto_item *tf=NULL;
- wccp_wccp_address_table.in_use = TRUE;
+ gint16 family;
+ guint16 table_length;
+ proto_tree *el... |
CVE-2015-4652 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-gsm_a_dtap.c | de_bcd_num | static guint16 de_bcd_num(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, int header_field, gboolean *address_extracted) {
guint8 *poctets;
guint8 extension, oct;
guint32 curr_offset, i, num_string_len;
proto_item *item;
gboolean malformed_number;
*address_extract... | static guint16 de_bcd_num(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, int header_field, gboolean *address_extracted) {
guint8 *poctets;
guint8 extension;
guint32 curr_offset, num_string_len;
proto_item *item;
const char *digit_str;
*address_extracted = FALSE;
... | static guint16 de_bcd_num(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, int header_field, gboolean *address_extracted) {
guint8 *poctets;
guint8 extension, oct;
guint32 curr_offset, i, num_string_len;
proto_item *item;
gboolean malformed_number;
*address_extract... | static guint16 de_bcd_num(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, int header_field, gboolean *address_extracted) {
guint8 *poctets;
guint8 extension;
guint32 curr_offset, num_string_len;
proto_item *item;
const char *digit_str;
*address_extracted = FALSE;
... | static guint16 de_bcd_num(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, int header_field, gboolean *address_extracted) {
guint8 *poctets;
guint8 extension, oct;
guint32 curr_offset, i, num_string_len;
proto_item *item;
gboolean malformed_number;
*address_extract... | static guint16 de_bcd_num(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, int header_field, gboolean *address_extracted) {
guint8 *poctets;
guint8 extension;
guint32 curr_offset, num_string_len;
proto_item *item;
const char *digit_str;
*address_extracted = FALSE;
... | static guint16 de_bcd_num(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, int header_field, gboolean *address_extracted) {
guint8 *poctets;
guint8 extension, oct;
guint32 curr_offset, i, num_string_len;
proto_item *item;
gboolean malformed_number;
*address_extract... | static guint16 de_bcd_num(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, int header_field, gboolean *address_extracted) {
guint8 *poctets;
guint8 extension;
guint32 curr_offset, num_string_len;
proto_item *item;
const char *digit_str;
*address_extracted = FALSE;
... | static guint16 de_bcd_num(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint32 offset, guint len, int header_field, gboolean *address_extracted) {
guint8 *poctets;
- guint8 extension, oct;
- guint32 curr_offset, i, num_string_len;
+ guint8 extension;
+ guint32 curr_offset, num_string_len;
... |
CVE-2015-5158 | QEMU | https://github.com/qemu/qemu | hw/scsi/scsi-bus.c | scsi_req_parse_cdb | int scsi_req_parse_cdb(SCSIDevice *dev, SCSICommand *cmd, uint8_t *buf) {
int rc;
cmd->lba = -1;
cmd->len = scsi_cdb_length(buf);
switch (dev->type) {
case TYPE_TAPE:
rc = scsi_req_stream_xfer(cmd, dev, buf);
break;
case TYPE_MEDIUM_CHANGER:
rc = scsi_req_medium_changer_x... | int scsi_req_parse_cdb(SCSIDevice *dev, SCSICommand *cmd, uint8_t *buf) {
int rc;
int len;
cmd->lba = -1;
len = scsi_cdb_length(buf);
if (len < 0) {
return -1;
}
cmd->len = len;
switch (dev->type) {
case TYPE_TAPE:
rc = scsi_req_stream_xfer(cmd, dev, buf);
bre... | int scsi_req_parse_cdb(SCSIDevice *dev, SCSICommand *cmd, uint8_t *buf) {
int rc;
cmd->lba = -1;
cmd->len = scsi_cdb_length(buf);
switch (dev->type) {
case TYPE_TAPE:
rc = scsi_req_stream_xfer(cmd, dev, buf);
break;
case TYPE_MEDIUM_CHANGER:
rc = scsi_req_medium_changer_x... | int scsi_req_parse_cdb(SCSIDevice *dev, SCSICommand *cmd, uint8_t *buf) {
int rc;
int len;
cmd->lba = -1;
len = scsi_cdb_length(buf);
if (len < 0) {
return -1;
}
cmd->len = len;
switch (dev->type) {
case TYPE_TAPE:
rc = scsi_req_stream_xfer(cmd, dev, buf);
bre... | int scsi_req_parse_cdb(SCSIDevice *dev, SCSICommand *cmd, uint8_t *buf) {
int rc;
cmd->lba = -1;
cmd->len = scsi_cdb_length(buf);
switch (dev->type) {
case TYPE_TAPE:
rc = scsi_req_stream_xfer(cmd, dev, buf);
break;
case TYPE_MEDIUM_CHANGER:
rc = scsi_req_medium_changer_x... | int scsi_req_parse_cdb(SCSIDevice *dev, SCSICommand *cmd, uint8_t *buf) {
int rc;
int len;
cmd->lba = -1;
len = scsi_cdb_length(buf);
if (len < 0) {
return -1;
}
cmd->len = len;
switch (dev->type) {
case TYPE_TAPE:
rc = scsi_req_stream_xfer(cmd, dev, buf);
bre... | int scsi_req_parse_cdb(SCSIDevice *dev, SCSICommand *cmd, uint8_t *buf) {
int rc;
cmd->lba = -1;
cmd->len = scsi_cdb_length(buf);
switch (dev->type) {
case TYPE_TAPE:
rc = scsi_req_stream_xfer(cmd, dev, buf);
break;
case TYPE_MEDIUM_CHANGER:
rc = scsi_req_medium_changer_x... | int scsi_req_parse_cdb(SCSIDevice *dev, SCSICommand *cmd, uint8_t *buf) {
int rc;
int len;
cmd->lba = -1;
len = scsi_cdb_length(buf);
if (len < 0) {
return -1;
}
cmd->len = len;
switch (dev->type) {
case TYPE_TAPE:
rc = scsi_req_stream_xfer(cmd, dev, buf);
bre... | int scsi_req_parse_cdb(SCSIDevice *dev, SCSICommand *cmd, uint8_t *buf) {
int rc;
+ int len;
cmd->lba = -1;
- cmd->len = scsi_cdb_length(buf);
+ len = scsi_cdb_length(buf);
+ if (len < 0) {
+ return -1;
+ }
+ cmd->len = len;
switch (dev->type) {
case TYPE_TAPE:
rc ... |
CVE-2015-5225 | QEMU | https://github.com/qemu/qemu | ui/vnc.c | vnc_refresh_server_surface | static int vnc_refresh_server_surface(VncDisplay *vd) {
int width = M(pixman_image_get_width(vd->guest.fb), pixman_image_get_width(vd->server));
int height = M(pixman_image_get_height(vd->guest.fb), pixman_image_get_height(vd->server));
int cmp_bytes, server_stride, min_stride, guest_stride, y = 0;
uint... | static int vnc_refresh_server_surface(VncDisplay *vd) {
int width = M(pixman_image_get_width(vd->guest.fb), pixman_image_get_width(vd->server));
int height = M(pixman_image_get_height(vd->guest.fb), pixman_image_get_height(vd->server));
int cmp_bytes, server_stride, line_bytes, guest_ll, guest_stride, y = 0... | static int vnc_refresh_server_surface(VncDisplay *vd) {
int width = M(pixman_image_get_width(vd->guest.fb), pixman_image_get_width(vd->server));
int height = M(pixman_image_get_height(vd->guest.fb), pixman_image_get_height(vd->server));
int cmp_bytes, server_stride, min_stride, guest_stride, y = 0;
uint... | static int vnc_refresh_server_surface(VncDisplay *vd) {
int width = M(pixman_image_get_width(vd->guest.fb), pixman_image_get_width(vd->server));
int height = M(pixman_image_get_height(vd->guest.fb), pixman_image_get_height(vd->server));
int cmp_bytes, server_stride, line_bytes, guest_ll, guest_stride, y = 0... | static int vnc_refresh_server_surface(VncDisplay *vd) {
int width = M(pixman_image_get_width(vd->guest.fb), pixman_image_get_width(vd->server));
int height = M(pixman_image_get_height(vd->guest.fb), pixman_image_get_height(vd->server));
int cmp_bytes, server_stride, min_stride, guest_stride, y = 0;
uint... | static int vnc_refresh_server_surface(VncDisplay *vd) {
int width = M(pixman_image_get_width(vd->guest.fb), pixman_image_get_width(vd->server));
int height = M(pixman_image_get_height(vd->guest.fb), pixman_image_get_height(vd->server));
int cmp_bytes, server_stride, line_bytes, guest_ll, guest_stride, y = 0... | static int vnc_refresh_server_surface(VncDisplay *vd) {
int width = M(pixman_image_get_width(vd->guest.fb), pixman_image_get_width(vd->server));
int height = M(pixman_image_get_height(vd->guest.fb), pixman_image_get_height(vd->server));
int cmp_bytes, server_stride, min_stride, guest_stride, y = 0;
uint... | static int vnc_refresh_server_surface(VncDisplay *vd) {
int width = M(pixman_image_get_width(vd->guest.fb), pixman_image_get_width(vd->server));
int height = M(pixman_image_get_height(vd->guest.fb), pixman_image_get_height(vd->server));
int cmp_bytes, server_stride, line_bytes, guest_ll, guest_stride, y = 0... | static int vnc_refresh_server_surface(VncDisplay *vd) {
int width = M(pixman_image_get_width(vd->guest.fb), pixman_image_get_width(vd->server));
int height = M(pixman_image_get_height(vd->guest.fb), pixman_image_get_height(vd->server));
- int cmp_bytes, server_stride, min_stride, guest_stride, y = 0;
+ ... |
CVE-2015-5279 | QEMU | https://github.com/qemu/qemu | hw/net/ne2000.c | ne2000_ioport_write | static void ne2000_ioport_write(void *opaque, uint32_t addr, uint32_t val) {
NE2000State *s = opaque;
int offset, page, index;
addr &= 0xf;
printf("NE2000: write addr=0x%x val=0x%02x\n", addr, val);
if (addr == E8390_CMD) {
s->cmd = val;
if (!(val & E8390_STOP)) {
s->isr ... | static void ne2000_ioport_write(void *opaque, uint32_t addr, uint32_t val) {
NE2000State *s = opaque;
int offset, page, index;
addr &= 0xf;
printf("NE2000: write addr=0x%x val=0x%02x\n", addr, val);
if (addr == E8390_CMD) {
s->cmd = val;
if (!(val & E8390_STOP)) {
s->isr ... | static void ne2000_ioport_write(void *opaque, uint32_t addr, uint32_t val) {
NE2000State *s = opaque;
int offset, page, index;
addr &= 0xf;
printf("NE2000: write addr=0x%x val=0x%02x\n", addr, val);
if (addr == E8390_CMD) {
s->cmd = val;
if (!(val & E8390_STOP)) {
s->isr ... | static void ne2000_ioport_write(void *opaque, uint32_t addr, uint32_t val) {
NE2000State *s = opaque;
int offset, page, index;
addr &= 0xf;
printf("NE2000: write addr=0x%x val=0x%02x\n", addr, val);
if (addr == E8390_CMD) {
s->cmd = val;
if (!(val & E8390_STOP)) {
s->isr ... | static void ne2000_ioport_write(void *opaque, uint32_t addr, uint32_t val) {
addr &= 0xf;
printf("NE2000: write addr=0x%x val=0x%02x\n", addr, val);
if (addr == E8390_CMD) {
} else {
switch(offset) {
case EN0_STARTPG:
s->start = val << 8;
break;
case EN0_S... | static void ne2000_ioport_write(void *opaque, uint32_t addr, uint32_t val) {
addr &= 0xf;
printf("NE2000: write addr=0x%x val=0x%02x\n", addr, val);
if (addr == E8390_CMD) {
} else {
switch(offset) {
case EN0_STARTPG:
if (val << 8 <= NE2000_PMEM_END) {
s->star... | static void ne2000_ioport_write(void *opaque, uint32_t addr, uint32_t val) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
addr &= 0xf;
printf("NE2000: write addr=0x%x val=0x%02x\n", addr, val);
if (addr == E8390_CMD) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} else {
/* PLACEHOLDER: D... | static void ne2000_ioport_write(void *opaque, uint32_t addr, uint32_t val) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
addr &= 0xf;
printf("NE2000: write addr=0x%x val=0x%02x\n", addr, val);
if (addr == E8390_CMD) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} else {
/* PLACEHOLDER: D... | static void ne2000_ioport_write(void *opaque, uint32_t addr, uint32_t val) {
addr &= 0xf;
printf("NE2000: write addr=0x%x val=0x%02x\n", addr, val);
if (addr == E8390_CMD) {
} else {
switch(offset) {
case EN0_STARTPG:
- s->start = val << 8;
+ if (val << 8 <= ... |
CVE-2015-5279 | QEMU | https://github.com/qemu/qemu | hw/net/ne2000.c | ne2000_receive | ssize_t ne2000_receive(NetClientState *nc, const uint8_t *buf, size_t size_) {
NE2000State *s = qemu_get_nic_opaque(nc);
int size = size_;
uint8_t *p;
unsigned int total_len, next, avail, len, index, mcast_idx;
uint8_t buf1[60];
static const uint8_t broadcast_macaddr[6] = { 0xff, 0xff, 0xff, 0xf... | ssize_t ne2000_receive(NetClientState *nc, const uint8_t *buf, size_t size_) {
NE2000State *s = qemu_get_nic_opaque(nc);
int size = size_;
uint8_t *p;
unsigned int total_len, next, avail, len, index, mcast_idx;
uint8_t buf1[60];
static const uint8_t broadcast_macaddr[6] = { 0xff, 0xff, 0xff, 0xf... | ssize_t ne2000_receive(NetClientState *nc, const uint8_t *buf, size_t size_) {
NE2000State *s = qemu_get_nic_opaque(nc);
int size = size_;
uint8_t *p;
unsigned int total_len, next, avail, len, index, mcast_idx;
uint8_t buf1[60];
static const uint8_t broadcast_macaddr[6] = { 0xff, 0xff, 0xff, 0xf... | ssize_t ne2000_receive(NetClientState *nc, const uint8_t *buf, size_t size_) {
NE2000State *s = qemu_get_nic_opaque(nc);
int size = size_;
uint8_t *p;
unsigned int total_len, next, avail, len, index, mcast_idx;
uint8_t buf1[60];
static const uint8_t broadcast_macaddr[6] = { 0xff, 0xff, 0xff, 0xf... | ssize_t ne2000_receive(NetClientState *nc, const uint8_t *buf, size_t size_) {
NE2000State *s = qemu_get_nic_opaque(nc);
if (s->cmd & E8390_STOP || ne2000_buffer_full(s)) {
return -1;
}
index = s->curpag << 8;
total_len = size + 4;
next = index + ((total_len + 4 + 255) & ~0xff);
if (... | ssize_t ne2000_receive(NetClientState *nc, const uint8_t *buf, size_t size_) {
NE2000State *s = qemu_get_nic_opaque(nc);
if (s->cmd & E8390_STOP || ne2000_buffer_full(s)) {
return -1;
}
index = s->curpag << 8;
if (index >= NE2000_PMEM_END) {
index = s->start;
}
total_len = si... | ssize_t ne2000_receive(NetClientState *nc, const uint8_t *buf, size_t size_) {
NE2000State *s = qemu_get_nic_opaque(nc);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (s->cmd & E8390_STOP || ne2000_buffer_full(s)) {
return -1;
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
index = s-... | ssize_t ne2000_receive(NetClientState *nc, const uint8_t *buf, size_t size_) {
NE2000State *s = qemu_get_nic_opaque(nc);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (s->cmd & E8390_STOP || ne2000_buffer_full(s)) {
return -1;
}
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
index = s-... | ssize_t ne2000_receive(NetClientState *nc, const uint8_t *buf, size_t size_) {
NE2000State *s = qemu_get_nic_opaque(nc);
if (s->cmd & E8390_STOP || ne2000_buffer_full(s)) {
return -1;
}
index = s->curpag << 8;
+ if (index >= NE2000_PMEM_END) {
+ index = s->start;
+ }
tota... |
CVE-2015-5289 | postgres | src/backend/utils/adt/json.c | datum_to_json | static void datum_to_json(Datum val, bool is_null, StringInfo result, JsonTypeCategory tcategory, Oid outfuncoid, bool key_scalar) {
char *outputstr;
text *jsontext;
Assert(!(key_scalar && is_null));
if (is_null) {
appendStringInfoString(result, "null");
return;
}
if (key_scalar ... | static void datum_to_json(Datum val, bool is_null, StringInfo result, JsonTypeCategory tcategory, Oid outfuncoid, bool key_scalar) {
char *outputstr;
text *jsontext;
check_stack_depth();
Assert(!(key_scalar && is_null));
if (is_null) {
appendStringInfoString(result, "null");
return;
... | static void datum_to_json(Datum val, bool is_null, StringInfo result, JsonTypeCategory tcategory, Oid outfuncoid) {
char *outputstr;
bool numeric_error;
JsonLexContext dummy_lex;
if (is_null) {
appendStringInfoString(result, "null");
return;
}
switch (tcategory) {
case JSONTY... | static void datum_to_json(Datum val, bool is_null, StringInfo result, JsonTypeCategory tcategory, Oid outfuncoid) {
char *outputstr;
bool numeric_error;
JsonLexContext dummy_lex;
check_stack_depth();
if (is_null) {
appendStringInfoString(result, "null");
return;
}
switch (tca... | static void datum_to_json(Datum val, bool is_null, StringInfo result, JsonTypeCategory tcategory, Oid outfuncoid, bool key_scalar) {
text *jsontext;
Assert(!(key_scalar && is_null));
}
| static void datum_to_json(Datum val, bool is_null, StringInfo result, JsonTypeCategory tcategory, Oid outfuncoid, bool key_scalar) {
text *jsontext;
check_stack_depth();
Assert(!(key_scalar && is_null));
}
| static void datum_to_json(Datum val, bool is_null, StringInfo result, JsonTypeCategory tcategory, Oid outfuncoid) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
bool numeric_error;
JsonLexContext dummy_lex;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}
| static void datum_to_json(Datum val, bool is_null, StringInfo result, JsonTypeCategory tcategory, Oid outfuncoid) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
bool numeric_error;
JsonLexContext dummy_lex;
check_stack_depth();
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} | static void datum_to_json(Datum val, bool is_null, StringInfo result, JsonTypeCategory tcategory, Oid outfuncoid, bool key_scalar) {
text *jsontext;
+ check_stack_depth();
Assert(!(key_scalar && is_null));
} | |
CVE-2015-6241 | Wireshark | https://github.com/wireshark/wireshark | epan/proto.c | proto_tree_add_bytes_item | proto_item * proto_tree_add_bytes_item(proto_tree *tree, int hfindex, tvbuff_t *tvb, const gint start, gint length, const guint encoding, GByteArray *retval, gint *endoff, gint *err) {
field_info *new_fi;
GByteArray *bytes = retval;
GByteArray *created_bytes = NULL;
gint saved_err = 0;
guint32 n = 0... | proto_item * proto_tree_add_bytes_item(proto_tree *tree, int hfindex, tvbuff_t *tvb, const gint start, gint length, const guint encoding, GByteArray *retval, gint *endoff, gint *err) {
field_info *new_fi;
GByteArray *bytes = retval;
GByteArray *created_bytes = NULL;
gint saved_err = 0;
guint32 n = 0... | proto_item * proto_tree_add_bytes_item(proto_tree *tree, int hfindex, tvbuff_t *tvb, const gint start, gint length, const guint encoding, GByteArray *retval, gint *endoff, gint *err) {
field_info *new_fi;
GByteArray *bytes = retval;
GByteArray *created_bytes = NULL;
gint saved_err = 0;
guint32 n = 0... | proto_item * proto_tree_add_bytes_item(proto_tree *tree, int hfindex, tvbuff_t *tvb, const gint start, gint length, const guint encoding, GByteArray *retval, gint *endoff, gint *err) {
field_info *new_fi;
GByteArray *bytes = retval;
GByteArray *created_bytes = NULL;
gint saved_err = 0;
guint32 n = 0... | proto_item * proto_tree_add_bytes_item(proto_tree *tree, int hfindex, tvbuff_t *tvb, const gint start, gint length, const guint encoding, GByteArray *retval, gint *endoff, gint *err) {
GByteArray *bytes = retval;
guint32 n = 0;
gboolean generate = (bytes || tree) ? TRUE : FALSE;
PROTO_REGISTRAR_GET_NTH(... | proto_item * proto_tree_add_bytes_item(proto_tree *tree, int hfindex, tvbuff_t *tvb, const gint start, gint length, const guint encoding, GByteArray *retval, gint *endoff, gint *err) {
GByteArray *bytes = retval;
guint32 n = 0;
gboolean generate = (bytes || tree) ? TRUE : FALSE;
PROTO_REGISTRAR_GET_NTH(... | proto_item * proto_tree_add_bytes_item(proto_tree *tree, int hfindex, tvbuff_t *tvb, const gint start, gint length, const guint encoding, GByteArray *retval, gint *endoff, gint *err) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
GByteArray *bytes = retval;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | proto_item * proto_tree_add_bytes_item(proto_tree *tree, int hfindex, tvbuff_t *tvb, const gint start, gint length, const guint encoding, GByteArray *retval, gint *endoff, gint *err) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
GByteArray *bytes = retval;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | proto_item * proto_tree_add_bytes_item(proto_tree *tree, int hfindex, tvbuff_t *tvb, const gint start, gint length, const guint encoding, GByteArray *retval, gint *endoff, gint *err) {
GByteArray *bytes = retval;
guint32 n = 0;
gboolean generate = (bytes || tree) ? TRUE : FALSE;
PROTO_REGISTRAR_GET... |
CVE-2015-6242 | Wireshark | https://github.com/wireshark/wireshark | epan/wmem/wmem_allocator_block.c | wmem_block_split_free_chunk | static void wmem_block_split_free_chunk(wmem_block_allocator_t *allocator, wmem_block_chunk_t *chunk, const size_t size) {
wmem_block_chunk_t *extra;
wmem_block_free_t *old_blk, *new_blk;
size_t aligned_size, available;
gboolean last;
aligned_size = WMEM_ALIGN_SIZE(size) + WMEM_CHUNK_HEADER_SIZE;
... | static void wmem_block_split_free_chunk(wmem_block_allocator_t *allocator, wmem_block_chunk_t *chunk, const size_t size) {
wmem_block_chunk_t *extra;
wmem_block_free_t *old_blk, *new_blk;
size_t aligned_size, available;
gboolean last;
aligned_size = WMEM_ALIGN_SIZE(size) + WMEM_CHUNK_HEADER_SIZE;
... | static void wmem_block_split_free_chunk(wmem_block_allocator_t *allocator, wmem_block_chunk_t *chunk, const size_t size) {
wmem_block_chunk_t *extra;
wmem_block_free_t *old_blk, *new_blk;
size_t aligned_size, available;
gboolean last;
aligned_size = WMEM_ALIGN_SIZE(size) + WMEM_CHUNK_HEADER_SIZE;
... | static void wmem_block_split_free_chunk(wmem_block_allocator_t *allocator, wmem_block_chunk_t *chunk, const size_t size) {
wmem_block_chunk_t *extra;
wmem_block_free_t *old_blk, *new_blk;
size_t aligned_size, available;
gboolean last;
aligned_size = WMEM_ALIGN_SIZE(size) + WMEM_CHUNK_HEADER_SIZE;
... | static void wmem_block_split_free_chunk(wmem_block_allocator_t *allocator, wmem_block_chunk_t *chunk, const size_t size) {
aligned_size = WMEM_ALIGN_SIZE(size) + WMEM_CHUNK_HEADER_SIZE;
if (WMEM_CHUNK_DATA_LEN(chunk) < aligned_size + sizeof(wmem_block_free_t)) {
if (chunk == allocator->master_head) {
... | static void wmem_block_split_free_chunk(wmem_block_allocator_t *allocator, wmem_block_chunk_t *chunk, const size_t size) {
aligned_size = WMEM_ALIGN_SIZE(size) + WMEM_CHUNK_HEADER_SIZE;
if (WMEM_CHUNK_DATA_LEN(chunk) < aligned_size + sizeof(wmem_block_free_t)) {
if (chunk == allocator->master_head) {
... | static void wmem_block_split_free_chunk(wmem_block_allocator_t *allocator, wmem_block_chunk_t *chunk, const size_t size) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
aligned_size = WMEM_ALIGN_SIZE(size) + WMEM_CHUNK_HEADER_SIZE;
if (WMEM_CHUNK_DATA_LEN(chunk) < aligned_size + sizeof(wmem_block_free_t)) {... | static void wmem_block_split_free_chunk(wmem_block_allocator_t *allocator, wmem_block_chunk_t *chunk, const size_t size) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
aligned_size = WMEM_ALIGN_SIZE(size) + WMEM_CHUNK_HEADER_SIZE;
if (WMEM_CHUNK_DATA_LEN(chunk) < aligned_size + sizeof(wmem_block_free_t)) {... | static void wmem_block_split_free_chunk(wmem_block_allocator_t *allocator, wmem_block_chunk_t *chunk, const size_t size) {
aligned_size = WMEM_ALIGN_SIZE(size) + WMEM_CHUNK_HEADER_SIZE;
if (WMEM_CHUNK_DATA_LEN(chunk) < aligned_size + sizeof(wmem_block_free_t)) {
if (chunk == allocator->master_head) ... |
CVE-2015-6243 | Wireshark | https://github.com/wireshark/wireshark | epan/packet.c | dissector_get_string_handle | dissector_handle_t dissector_get_string_handle(dissector_table_t sub_dissectors, const gchar *string) {
dtbl_entry_t *dtbl_entry;
dtbl_entry = find_string_dtbl_entry(sub_dissectors, string);
if (dtbl_entry != NULL) {
return dtbl_entry->current;
} else {
return NULL;
}
} | dissector_handle_t dissector_get_string_handle(dissector_table_t sub_dissectors, const gchar *string) {
dtbl_entry_t *dtbl_entry;
if (!string) {
return 0;
}
dtbl_entry = find_string_dtbl_entry(sub_dissectors, string);
if (dtbl_entry != NULL) {
return dtbl_entry->current;
} else {... | dissector_handle_t dissector_get_string_handle(dissector_table_t sub_dissectors, const gchar *string) {
dtbl_entry_t *dtbl_entry;
dtbl_entry = find_string_dtbl_entry(sub_dissectors, string);
if (dtbl_entry != NULL) {
return dtbl_entry->current;
} else {
return NULL;
}
} | dissector_handle_t dissector_get_string_handle(dissector_table_t sub_dissectors, const gchar *string) {
dtbl_entry_t *dtbl_entry;
if (!string) {
return NULL;
}
dtbl_entry = find_string_dtbl_entry(sub_dissectors, string);
if (dtbl_entry != NULL) {
return dtbl_entry->current;
} els... | dissector_handle_t dissector_get_string_handle(dissector_table_t sub_dissectors, const gchar *string) {
dtbl_entry_t *dtbl_entry;
dtbl_entry = find_string_dtbl_entry(sub_dissectors, string);
if (dtbl_entry != NULL) {
return dtbl_entry->current;
} else {
return NULL;
}
}
| dissector_handle_t dissector_get_string_handle(dissector_table_t sub_dissectors, const gchar *string) {
dtbl_entry_t *dtbl_entry;
if (!string) {
return 0;
}
dtbl_entry = find_string_dtbl_entry(sub_dissectors, string);
if (dtbl_entry != NULL) {
return dtbl_entry->current;
} else {... | dissector_handle_t dissector_get_string_handle(dissector_table_t sub_dissectors, const gchar *string) {
dtbl_entry_t *dtbl_entry;
dtbl_entry = find_string_dtbl_entry(sub_dissectors, string);
if (dtbl_entry != NULL) {
return dtbl_entry->current;
} else {
return NULL;
}
}
| dissector_handle_t dissector_get_string_handle(dissector_table_t sub_dissectors, const gchar *string) {
dtbl_entry_t *dtbl_entry;
if (!string) {
return NULL;
}
dtbl_entry = find_string_dtbl_entry(sub_dissectors, string);
if (dtbl_entry != NULL) {
return dtbl_entry->current;
} els... | dissector_handle_t dissector_get_string_handle(dissector_table_t sub_dissectors, const gchar *string) {
dtbl_entry_t *dtbl_entry;
+ if (!string) {
+ return 0;
+ }
dtbl_entry = find_string_dtbl_entry(sub_dissectors, string);
if (dtbl_entry != NULL) {
return dtbl_entry->current;
... |
CVE-2015-6244 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-zbee-security.c | dissect_zbee_secure | tvbuff_t * dissect_zbee_secure(tvbuff_t *tvb, packet_info *pinfo, proto_tree* tree, guint offset) {
proto_tree *sec_tree;
zbee_security_packet packet;
guint mic_len;
gint payload_reported_len;
tvbuff_t *payload_tvb;
gint payload_captured_len;
proto_item *ti;
proto_item *key_item;
gui... | tvbuff_t * dissect_zbee_secure(tvbuff_t *tvb, packet_info *pinfo, proto_tree* tree, guint offset) {
proto_tree *sec_tree;
zbee_security_packet packet;
guint mic_len;
gint payload_len;
tvbuff_t *payload_tvb;
proto_item *ti;
proto_item *key_item;
guint8 *enc_buffer;
guint8 *dec_buffer;... | tvbuff_t * dissect_zbee_secure(tvbuff_t *tvb, packet_info *pinfo, proto_tree* tree, guint offset) {
proto_tree *sec_tree = NULL;
proto_item *sec_root;
proto_tree *field_tree;
proto_item *ti;
zbee_security_packet packet;
guint mic_len;
gint payload_reported_len;
tvbuff_t *payload_tvb;
... | tvbuff_t * dissect_zbee_secure(tvbuff_t *tvb, packet_info *pinfo, proto_tree* tree, guint offset) {
proto_tree *sec_tree = NULL;
proto_item *sec_root;
proto_tree *field_tree;
proto_item *ti;
zbee_security_packet packet;
guint mic_len;
gint payload_len;
tvbuff_t *payload_tvb;
guint8 *... | tvbuff_t * dissect_zbee_secure(tvbuff_t *tvb, packet_info *pinfo, proto_tree* tree, guint offset) {
guint mic_len;
gint payload_reported_len;
tvbuff_t *payload_tvb;
gint payload_captured_len;
proto_item *ti;
key_record_t *key_rec = NULL;
static const int * sec_flags[] = {
&hf_zbee_se... | tvbuff_t * dissect_zbee_secure(tvbuff_t *tvb, packet_info *pinfo, proto_tree* tree, guint offset) {
guint mic_len;
gint payload_len;
tvbuff_t *payload_tvb;
proto_item *ti;
key_record_t *key_rec = NULL;
static const int * sec_flags[] = {
&hf_zbee_sec_key_id, &hf_zbee_sec_nonce, NULL
}... | tvbuff_t * dissect_zbee_secure(tvbuff_t *tvb, packet_info *pinfo, proto_tree* tree, guint offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint mic_len;
gint payload_reported_len;
tvbuff_t *payload_tvb;
gint payload_captured_len;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
key_reco... | tvbuff_t * dissect_zbee_secure(tvbuff_t *tvb, packet_info *pinfo, proto_tree* tree, guint offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint mic_len;
gint payload_len;
tvbuff_t *payload_tvb;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
key_record_t *key_rec = NULL;
/* PLACEHOLDER... | tvbuff_t * dissect_zbee_secure(tvbuff_t *tvb, packet_info *pinfo, proto_tree* tree, guint offset) {
guint mic_len;
- gint payload_reported_len;
+ gint payload_len;
tvbuff_t *payload_tvb;
- gint payload_captured_len;
proto_item *ti;
key_record_t *key_rec = NULL;
static const int * sec_... |
CVE-2015-6244 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-zbee-security.c | zbee_security_register | void zbee_security_register(module_t *zbee_prefs, int proto) {
static hf_register_info hf[] = {
{
&hf_zbee_sec_field, {
"Security Control Field", "zbee.sec.field", FT_UT8, BASE_HEX, NULL, 0x0, NULL, HFILL
}
}, {
&hf_zbee_sec_key_id, {
... | void zbee_security_register(module_t *zbee_prefs, int proto) {
static hf_register_info hf[] = {
{
&hf_zbee_sec_field, {
"Security Control Field", "zbee.sec.field", FT_UT8, BASE_HEX, NULL, 0x0, NULL, HFILL
}
}, {
&hf_zbee_sec_key_id, {
... | void zbee_security_register(module_t *zbee_prefs, int proto) {
static hf_register_info hf[] = {
{
&hf_zbee_sec_key_id, {
"Key Id", "zbee.sec.key", FT_UT8, BASE_HEX, VALS(zbee_sec_key_names), ZBEE_SEC_CONTROL_KEY, NULL, HFILL
}
}, {
&hf_zbee_sec_non... | void zbee_security_register(module_t *zbee_prefs, int proto) {
static hf_register_info hf[] = {
{
&hf_zbee_sec_key_id, {
"Key Id", "zbee.sec.key", FT_UT8, BASE_HEX, VALS(zbee_sec_key_names), ZBEE_SEC_CONTROL_KEY, NULL, HFILL
}
}, {
&hf_zbee_sec_non... | void zbee_security_register(module_t *zbee_prefs, int proto) {
static gint *ett[] = {
&ett_zbee_sec, &ett_zbee_sec_control
};
static ei_register_info ei[] = {
{ &ei_zbee_sec_encrypted_payload, { "zbee_sec.encrypted_payload", PI_UNDECODED, PI_WARN, "Encrypted Payload", EXPFILL }}, { &ei_zbee_... | void zbee_security_register(module_t *zbee_prefs, int proto) {
static gint *ett[] = {
&ett_zbee_sec, &ett_zbee_sec_control
};
static ei_register_info ei[] = {
{ &ei_zbee_sec_encrypted_payload, { "zbee_sec.encrypted_payload", PI_UNDECODED, PI_WARN, "Encrypted Payload", EXPFILL }}, { &ei_zbee_... | void zbee_security_register(module_t *zbee_prefs, int proto) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
static gint *ett[] = {
&ett_zbee_sec, &ett_zbee_sec_control
};
static ei_register_info ei[] = {
{ &ei_zbee_sec_encrypted_payload, { "zbee_sec.encrypted_payload", PI_UNDECODED, PI_... | void zbee_security_register(module_t *zbee_prefs, int proto) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
static gint *ett[] = {
&ett_zbee_sec, &ett_zbee_sec_control
};
static ei_register_info ei[] = {
{ &ei_zbee_sec_encrypted_payload, { "zbee_sec.encrypted_payload", PI_UNDECODED, PI_... | void zbee_security_register(module_t *zbee_prefs, int proto) {
static gint *ett[] = {
&ett_zbee_sec, &ett_zbee_sec_control
};
static ei_register_info ei[] = {
- { &ei_zbee_sec_encrypted_payload, { "zbee_sec.encrypted_payload", PI_UNDECODED, PI_WARN, "Encrypted Payload", EXPFILL }}, { &ei... |
CVE-2015-6245 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-gsm_rlcmac.c | construct_egprs_data_segment_li_array | static guint8 construct_egprs_data_segment_li_array(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 initial_offset, guint8 *li_count, length_indicator_t *li_array, guint64 *e) {
guint8 offset = initial_offset, li_array_size = *li_count;
proto_item *item;
*li_count = 0;
while (*e == 0) {
... | static gint construct_egprs_data_segment_li_array(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 initial_offset, guint8 *li_count, length_indicator_t *li_array, guint64 *e) {
gint offset = initial_offset;
guint8 li_array_size = *li_count;
proto_item *item;
*li_count = 0;
while (*e == 0)... | static guint8 construct_egprs_data_segment_li_array(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 initial_offset, guint8 *li_count, length_indicator_t *li_array, guint64 *e) {
guint8 offset = initial_offset, li_array_size = *li_count;
proto_item *item;
*li_count = 0;
while (*e == 0) {
... | static gint construct_egprs_data_segment_li_array(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 initial_offset, guint8 *li_count, length_indicator_t *li_array, guint64 *e) {
gint offset = initial_offset;
guint8 li_array_size = *li_count;
proto_item *item;
*li_count = 0;
while (*e == 0)... | static guint8 construct_egprs_data_segment_li_array(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 initial_offset, guint8 *li_count, length_indicator_t *li_array, guint64 *e) {
guint8 offset = initial_offset, li_array_size = *li_count;
proto_item *item;
*li_count = 0;
while (*e == 0) {
... | static gint construct_egprs_data_segment_li_array(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 initial_offset, guint8 *li_count, length_indicator_t *li_array, guint64 *e) {
gint offset = initial_offset;
guint8 li_array_size = *li_count;
proto_item *item;
*li_count = 0;
while (*e == 0)... | static guint8 construct_egprs_data_segment_li_array(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 initial_offset, guint8 *li_count, length_indicator_t *li_array, guint64 *e) {
guint8 offset = initial_offset, li_array_size = *li_count;
proto_item *item;
*li_count = 0;
while (*e == 0) {
... | static gint construct_egprs_data_segment_li_array(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 initial_offset, guint8 *li_count, length_indicator_t *li_array, guint64 *e) {
gint offset = initial_offset;
guint8 li_array_size = *li_count;
proto_item *item;
*li_count = 0;
while (*e == 0)... | -static guint8 construct_egprs_data_segment_li_array(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 initial_offset, guint8 *li_count, length_indicator_t *li_array, guint64 *e) {
- guint8 offset = initial_offset, li_array_size = *li_count;
+static gint construct_egprs_data_segment_li_array(tvbuff_t *tvb,... |
CVE-2015-6245 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-gsm_rlcmac.c | construct_gprs_data_segment_li_array | static guint8 construct_gprs_data_segment_li_array(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 initial_offset, guint8 *li_count, length_indicator_t *li_array, guint64 *e) {
guint8 offset = initial_offset, li_array_size = *li_count;
proto_item *item;
*li_count = 0;
while (*e == 0) {
... | static gint construct_gprs_data_segment_li_array(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 initial_offset, guint8 *li_count, length_indicator_t *li_array, guint64 *e) {
gint offset = initial_offset;
guint8 li_array_size = *li_count;
proto_item *item;
*li_count = 0;
while (*e == 0) ... | static guint8 construct_gprs_data_segment_li_array(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 initial_offset, guint8 *li_count, length_indicator_t *li_array, guint64 *e) {
guint8 offset = initial_offset, li_array_size = *li_count;
proto_item *item;
*li_count = 0;
while (*e == 0) {
... | static gint construct_gprs_data_segment_li_array(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 initial_offset, guint8 *li_count, length_indicator_t *li_array, guint64 *e) {
gint offset = initial_offset;
guint8 li_array_size = *li_count;
proto_item *item;
*li_count = 0;
while (*e == 0) ... | static guint8 construct_gprs_data_segment_li_array(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 initial_offset, guint8 *li_count, length_indicator_t *li_array, guint64 *e) {
guint8 offset = initial_offset, li_array_size = *li_count;
proto_item *item;
*li_count = 0;
while (*e == 0) {
... | static gint construct_gprs_data_segment_li_array(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 initial_offset, guint8 *li_count, length_indicator_t *li_array, guint64 *e) {
gint offset = initial_offset;
guint8 li_array_size = *li_count;
proto_item *item;
*li_count = 0;
while (*e == 0) ... | static guint8 construct_gprs_data_segment_li_array(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 initial_offset, guint8 *li_count, length_indicator_t *li_array, guint64 *e) {
guint8 offset = initial_offset, li_array_size = *li_count;
proto_item *item;
*li_count = 0;
while (*e == 0) {
... | static gint construct_gprs_data_segment_li_array(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 initial_offset, guint8 *li_count, length_indicator_t *li_array, guint64 *e) {
gint offset = initial_offset;
guint8 li_array_size = *li_count;
proto_item *item;
*li_count = 0;
while (*e == 0) ... | -static guint8 construct_gprs_data_segment_li_array(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo, guint8 initial_offset, guint8 *li_count, length_indicator_t *li_array, guint64 *e) {
- guint8 offset = initial_offset, li_array_size = *li_count;
+static gint construct_gprs_data_segment_li_array(tvbuff_t *tvb, p... |
CVE-2015-6245 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-gsm_rlcmac.c | dissect_egprs_dl_data_block | static void dissect_egprs_dl_data_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacDownlink_t *data, egprs_dl_header_info_t *egprs_dl_header_info) {
proto_item *ti;
proto_tree *data_tree;
guint16 offset = 0;
guint16 block_number;
length_indicator_t li_array[20];
guint8 li_count =... | static void dissect_egprs_dl_data_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacDownlink_t *data, egprs_dl_header_info_t *egprs_dl_header_info) {
proto_item *ti;
proto_tree *data_tree;
gint offset = 0;
guint16 block_number;
length_indicator_t li_array[20];
guint8 li_count = ar... | static void dissect_egprs_dl_data_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacDownlink_t *data, egprs_dl_header_info_t *egprs_dl_header_info) {
proto_item *ti;
proto_tree *data_tree;
guint16 offset = 0;
guint16 block_number;
length_indicator_t li_array[20];
guint8 li_count =... | static void dissect_egprs_dl_data_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacDownlink_t *data, egprs_dl_header_info_t *egprs_dl_header_info) {
proto_item *ti;
proto_tree *data_tree;
gint offset = 0;
guint16 block_number;
length_indicator_t li_array[20];
guint8 li_count = ar... | static void dissect_egprs_dl_data_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacDownlink_t *data, egprs_dl_header_info_t *egprs_dl_header_info) {
proto_tree *data_tree;
guint16 offset = 0;
guint16 block_number;
guint8 li_count = array_length(li_array);
ti = proto_tree_add_protocol... | static void dissect_egprs_dl_data_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacDownlink_t *data, egprs_dl_header_info_t *egprs_dl_header_info) {
proto_tree *data_tree;
gint offset = 0;
guint16 block_number;
guint8 li_count = array_length(li_array);
ti = proto_tree_add_protocol_fo... | static void dissect_egprs_dl_data_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacDownlink_t *data, egprs_dl_header_info_t *egprs_dl_header_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
proto_tree *data_tree;
guint16 offset = 0;
guint16 block_number;
/* PLACEHOLDER: DO NOT D... | static void dissect_egprs_dl_data_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacDownlink_t *data, egprs_dl_header_info_t *egprs_dl_header_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
proto_tree *data_tree;
gint offset = 0;
guint16 block_number;
/* PLACEHOLDER: DO NOT DELE... | static void dissect_egprs_dl_data_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacDownlink_t *data, egprs_dl_header_info_t *egprs_dl_header_info) {
proto_tree *data_tree;
- guint16 offset = 0;
+ gint offset = 0;
guint16 block_number;
guint8 li_count = array_length(li_array);
... |
CVE-2015-6245 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-gsm_rlcmac.c | dissect_egprs_ul_data_block | static void dissect_egprs_ul_data_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacUplink_t *data, egprs_ul_header_info_t *egprs_ul_header_info) {
proto_item *ti;
proto_tree *data_tree;
guint8 offset = 0;
length_indicator_t li_array[20];
guint8 li_count = array_length(li_array);
... | static void dissect_egprs_ul_data_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacUplink_t *data, egprs_ul_header_info_t *egprs_ul_header_info) {
proto_item *ti;
proto_tree *data_tree;
gint offset = 0;
length_indicator_t li_array[20];
guint8 li_count = array_length(li_array);
gu... | static void dissect_egprs_ul_data_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacUplink_t *data, egprs_ul_header_info_t *egprs_ul_header_info) {
proto_item *ti;
proto_tree *data_tree;
guint8 offset = 0;
length_indicator_t li_array[20];
guint8 li_count = array_length(li_array);
... | static void dissect_egprs_ul_data_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacUplink_t *data, egprs_ul_header_info_t *egprs_ul_header_info) {
proto_item *ti;
proto_tree *data_tree;
gint offset = 0;
length_indicator_t li_array[20];
guint8 li_count = array_length(li_array);
gu... | static void dissect_egprs_ul_data_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacUplink_t *data, egprs_ul_header_info_t *egprs_ul_header_info) {
proto_tree *data_tree;
guint8 offset = 0;
length_indicator_t li_array[20];
guint8 li_count = array_length(li_array);
ti = proto_tree_add_... | static void dissect_egprs_ul_data_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacUplink_t *data, egprs_ul_header_info_t *egprs_ul_header_info) {
proto_tree *data_tree;
gint offset = 0;
length_indicator_t li_array[20];
guint8 li_count = array_length(li_array);
ti = proto_tree_add_pr... | static void dissect_egprs_ul_data_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacUplink_t *data, egprs_ul_header_info_t *egprs_ul_header_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
proto_tree *data_tree;
guint8 offset = 0;
length_indicator_t li_array[20];
guint8 li_count ... | static void dissect_egprs_ul_data_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacUplink_t *data, egprs_ul_header_info_t *egprs_ul_header_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
proto_tree *data_tree;
gint offset = 0;
length_indicator_t li_array[20];
guint8 li_count = ... | static void dissect_egprs_ul_data_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacUplink_t *data, egprs_ul_header_info_t *egprs_ul_header_info) {
proto_tree *data_tree;
- guint8 offset = 0;
+ gint offset = 0;
length_indicator_t li_array[20];
guint8 li_count = array_length(li_array... |
CVE-2015-6245 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-gsm_rlcmac.c | dissect_ul_gprs_block | static void dissect_ul_gprs_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacUplink_t * data) {
csnStream_t ar;
guint8 payload_type = tvb_get_bits8(tvb, 0, 2);
guint16 bit_length = tvb_reported_length(tvb) * 8;
guint16 bit_offset = 0;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "GSM RLC/... | static void dissect_ul_gprs_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacUplink_t * data) {
csnStream_t ar;
guint8 payload_type = tvb_get_bits8(tvb, 0, 2);
guint16 bit_length = tvb_reported_length(tvb) * 8;
gint bit_offset = 0;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "GSM RLC/MAC... | static void dissect_ul_gprs_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacUplink_t * data) {
csnStream_t ar;
guint8 payload_type = tvb_get_bits8(tvb, 0, 2);
guint16 bit_length = tvb_length(tvb) * 8;
guint16 bit_offset = 0;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "GSM RLC/MAC");
... | static void dissect_ul_gprs_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacUplink_t * data) {
csnStream_t ar;
guint8 payload_type = tvb_get_bits8(tvb, 0, 2);
guint16 bit_length = tvb_length(tvb) * 8;
gint bit_offset = 0;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "GSM RLC/MAC");
c... | static void dissect_ul_gprs_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacUplink_t * data) {
guint16 bit_length = tvb_reported_length(tvb) * 8;
guint16 bit_offset = 0;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "GSM RLC/MAC");
if (payload_type == PAYLOAD_TYPE_DATA) {
ti = proto_t... | static void dissect_ul_gprs_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacUplink_t * data) {
guint16 bit_length = tvb_reported_length(tvb) * 8;
gint bit_offset = 0;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "GSM RLC/MAC");
if (payload_type == PAYLOAD_TYPE_DATA) {
ti = proto_tree... | static void dissect_ul_gprs_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacUplink_t * data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint16 bit_length = tvb_length(tvb) * 8;
guint16 bit_offset = 0;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "GSM RLC/MAC");
/* PLACEHOLDER: DO N... | static void dissect_ul_gprs_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacUplink_t * data) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint16 bit_length = tvb_length(tvb) * 8;
gint bit_offset = 0;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "GSM RLC/MAC");
/* PLACEHOLDER: DO NOT ... | static void dissect_ul_gprs_block(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, RlcMacUplink_t * data) {
guint16 bit_length = tvb_reported_length(tvb) * 8;
- guint16 bit_offset = 0;
+ gint bit_offset = 0;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "GSM RLC/MAC");
if (payload_type == PAYLOAD_TY... |
CVE-2015-6247 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-openflow_v5.c | dissect_openflow_tablemod_v5 | static void dissect_openflow_tablemod_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
proto_item *ti;
proto_tree *conf_tree;
if (tvb_get_guint8(tvb, offset) <= OFPTT_MAX) {
proto_tree_add_item(tree, hf_openflow_v5_tablemod_table_id, tvb, offset, 1, ENC_BIG_ENDI... | static void dissect_openflow_tablemod_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
proto_item *ti;
proto_tree *conf_tree;
int save_offset;
if (tvb_get_guint8(tvb, offset) <= OFPTT_MAX) {
proto_tree_add_item(tree, hf_openflow_v5_tablemod_table_id, tvb, of... | static void dissect_openflow_tablemod_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
proto_item *ti;
proto_tree *conf_tree;
if (tvb_get_guint8(tvb, offset) <= OFPTT_MAX) {
proto_tree_add_item(tree, hf_openflow_v5_tablemod_table_id, tvb, offset, 1, ENC_BIG_ENDI... | static void dissect_openflow_tablemod_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
proto_item *ti;
proto_tree *conf_tree;
int save_offset;
if (tvb_get_guint8(tvb, offset) <= OFPTT_MAX) {
proto_tree_add_item(tree, hf_openflow_v5_tablemod_table_id, tvb, of... | static void dissect_openflow_tablemod_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
proto_tree *conf_tree;
if (tvb_get_guint8(tvb, offset) <= OFPTT_MAX) {
proto_tree_add_item(tree, hf_openflow_v5_tablemod_table_id, tvb, offset, 1, ENC_BIG_ENDIAN);
} else {
... | static void dissect_openflow_tablemod_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
proto_tree *conf_tree;
int save_offset;
if (tvb_get_guint8(tvb, offset) <= OFPTT_MAX) {
proto_tree_add_item(tree, hf_openflow_v5_tablemod_table_id, tvb, offset, 1, ENC_BIG_END... | static void dissect_openflow_tablemod_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
proto_tree *conf_tree;
if (tvb_get_guint8(tvb, offset) <= OFPTT_MAX) {
proto_tree_add_item(tree, hf_openflow_v5_tablemod_table_id... | static void dissect_openflow_tablemod_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
proto_tree *conf_tree;
int save_offset;
if (tvb_get_guint8(tvb, offset) <= OFPTT_MAX) {
proto_tree_add_item(tree, hf_openflow... | static void dissect_openflow_tablemod_v5(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, guint16 length ) {
proto_tree *conf_tree;
+ int save_offset;
if (tvb_get_guint8(tvb, offset) <= OFPTT_MAX) {
proto_tree_add_item(tree, hf_openflow_v5_tablemod_table_id, tvb, offset, 1, ENC_BI... |
CVE-2015-6248 | Wireshark | https://github.com/wireshark/wireshark | epan/proto.c | ptvcursor_add | proto_item * ptvcursor_add(ptvcursor_t *ptvc, int hfindex, gint length, const guint encoding) {
field_info *new_fi;
header_field_info *hfinfo;
gint item_length;
guint32 n;
int offset;
offset = ptvc->offset;
PROTO_REGISTRAR_GET_NTH(hfindex, hfinfo);
get_hfi_length(hfinfo, ptvc->tvb, offse... | proto_item * ptvcursor_add(ptvcursor_t *ptvc, int hfindex, gint length, const guint encoding) {
field_info *new_fi;
header_field_info *hfinfo;
gint item_length;
guint32 n;
int offset;
offset = ptvc->offset;
PROTO_REGISTRAR_GET_NTH(hfindex, hfinfo);
get_hfi_length(hfinfo, ptvc->tvb, offse... | proto_item * ptvcursor_add(ptvcursor_t *ptvc, int hfindex, gint length, const guint encoding) {
field_info *new_fi;
header_field_info *hfinfo;
gint item_length;
guint32 n;
int offset;
offset = ptvc->offset;
hfinfo = get_hfi_and_length(hfindex, ptvc->tvb, offset, &length, &item_length);
p... | proto_item * ptvcursor_add(ptvcursor_t *ptvc, int hfindex, gint length, const guint encoding) {
field_info *new_fi;
header_field_info *hfinfo;
gint item_length;
guint32 n;
int offset;
offset = ptvc->offset;
hfinfo = get_hfi_and_length(hfindex, ptvc->tvb, offset, &length, &item_length);
p... | proto_item * ptvcursor_add(ptvcursor_t *ptvc, int hfindex, gint length, const guint encoding) {
offset = ptvc->offset;
PROTO_REGISTRAR_GET_NTH(hfindex, hfinfo);
get_hfi_length(hfinfo, ptvc->tvb, offset, &length, &item_length);
ptvc->offset += length;
if (hfinfo->type == FT_UT_BYTES || hfinfo->type =... | proto_item * ptvcursor_add(ptvcursor_t *ptvc, int hfindex, gint length, const guint encoding) {
offset = ptvc->offset;
PROTO_REGISTRAR_GET_NTH(hfindex, hfinfo);
get_hfi_length(hfinfo, ptvc->tvb, offset, &length, &item_length);
ptvc->offset += length;
if (hfinfo->type == FT_UT_BYTES || hfinfo->type =... | proto_item * ptvcursor_add(ptvcursor_t *ptvc, int hfindex, gint length, const guint encoding) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
offset = ptvc->offset;
hfinfo = get_hfi_and_length(hfindex, ptvc->tvb, offset, &length, &item_length);
ptvc->offset += length;
if (hfinfo->type == FT_UT_BYTES... | proto_item * ptvcursor_add(ptvcursor_t *ptvc, int hfindex, gint length, const guint encoding) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
offset = ptvc->offset;
hfinfo = get_hfi_and_length(hfindex, ptvc->tvb, offset, &length, &item_length);
ptvc->offset += length;
if (hfinfo->type == FT_UT_BYTES... | proto_item * ptvcursor_add(ptvcursor_t *ptvc, int hfindex, gint length, const guint encoding) {
offset = ptvc->offset;
PROTO_REGISTRAR_GET_NTH(hfindex, hfinfo);
get_hfi_length(hfinfo, ptvc->tvb, offset, &length, &item_length);
ptvc->offset += length;
if (hfinfo->type == FT_UT_BYTES || hfinfo->... |
CVE-2015-6249 | 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;
gint16 family;
guint16 table_length;
proto_tree *element_tree;
proto_item *tf;
if (length < 2*4) {
return length - 2*4... | 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;
gint16 family;
guint16 table_length;
proto_tree *element_tree;
proto_item *tf;
if (length < 2*4) {
return length - 2*4... | 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;
gint16 family;
guint16 table_length;
proto_tree *element_tree;
proto_item *tf;
if (info_tree) {
tf = proto_tree_get_pa... | 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;
gint16 family;
guint16 table_length;
proto_tree *element_tree;
proto_item *tf;
if (info_tree) {
tf = proto_tree_get_pa... | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
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_ntohs(tvb, offset);
pr... | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
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_ntohs(tvb, offset);
pr... | 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 */
family = tvb_get_ntohs(tvb, offset);
proto_tree_add_item(info_tree, hf_address_table_family, tvb, offset, 2, ENC_BIG_ENDIAN);
/... | 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 */
family = tvb_get_ntohs(tvb, offset);
proto_tree_add_item(info_tree, hf_address_table_family, tvb, offset, 2, ENC_BIG_ENDIAN);
/... | static gint dissect_wccp2r1_address_table_info(tvbuff_t *tvb, int offset, int length, packet_info *pinfo, proto_tree *info_tree) {
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_ntohs(tvb, offset);
... |
CVE-2015-6819 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/mjpegdec.c | ff_mjpeg_decode_frame | int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) {
AVFrame *frame = data;
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MJpegDecodeContext *s = avctx->priv_data;
const uint8_t *buf_end, *buf_ptr;
const uint8_t *unescaped_buf_ptr;
i... | int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) {
AVFrame *frame = data;
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MJpegDecodeContext *s = avctx->priv_data;
const uint8_t *buf_end, *buf_ptr;
const uint8_t *unescaped_buf_ptr;
i... | int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) {
AVFrame *frame = data;
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MJpegDecodeContext *s = avctx->priv_data;
const uint8_t *buf_end, *buf_ptr;
const uint8_t *unescaped_buf_ptr;
i... | int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) {
AVFrame *frame = data;
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MJpegDecodeContext *s = avctx->priv_data;
const uint8_t *buf_end, *buf_ptr;
const uint8_t *unescaped_buf_ptr;
i... | int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) {
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MJpegDecodeContext *s = avctx->priv_data;
buf_ptr = buf;
buf_end = buf + buf_size;
while (buf_ptr < buf_end) {
start_code = ff_mjp... | int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) {
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MJpegDecodeContext *s = avctx->priv_data;
buf_ptr = buf;
buf_end = buf + buf_size;
while (buf_ptr < buf_end) {
start_code = ff_mjp... | int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MJpegDecodeContext *s = avctx->priv_data;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
buf_... | int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MJpegDecodeContext *s = avctx->priv_data;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
buf_... | int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPacket *avpkt) {
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
MJpegDecodeContext *s = avctx->priv_data;
buf_ptr = buf;
buf_end = buf + buf_size;
while (buf_ptr < buf_end) {
start_code ... |
CVE-2015-6820 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/aacsbr.c | ff_sbr_apply | void ff_sbr_apply(AACContext *ac, SpectralBandReplication *sbr, int id_aac, float* L, float* R) {
int downsampled = ac->oc[1].m4ac.ext_sample_rate < sbr->sample_rate;
int ch;
int nch = (id_aac == TYPE_CPE) ? 2 : 1;
int err;
if (!sbr->kx_and_m_pushed) {
sbr->kx[0] = sbr->kx[1];
sbr->m... | void ff_sbr_apply(AACContext *ac, SpectralBandReplication *sbr, int id_aac, float* L, float* R) {
int downsampled = ac->oc[1].m4ac.ext_sample_rate < sbr->sample_rate;
int ch;
int nch = (id_aac == TYPE_CPE) ? 2 : 1;
int err;
if (id_aac != sbr->id_aac) {
av_log(ac->avctx, AV_LOG_ERROR, "elemen... | void ff_sbr_apply(AACContext *ac, SpectralBandReplication *sbr, int id_aac, float* L, float* R) {
int downsampled = ac->oc[1].m4ac.ext_sample_rate < sbr->sample_rate;
int ch;
int nch = (id_aac == TYPE_CPE) ? 2 : 1;
int err;
if (!sbr->kx_and_m_pushed) {
sbr->kx[0] = sbr->kx[1];
sbr->m... | void ff_sbr_apply(AACContext *ac, SpectralBandReplication *sbr, int id_aac, float* L, float* R) {
int downsampled = ac->oc[1].m4ac.ext_sample_rate < sbr->sample_rate;
int ch;
int nch = (id_aac == TYPE_CPE) ? 2 : 1;
int err;
if (id_aac != sbr->id_aac) {
av_log(ac->avctx, AV_LOG_ERROR, "elemen... | void ff_sbr_apply(AACContext *ac, SpectralBandReplication *sbr, int id_aac, float* L, float* R) {
int nch = (id_aac == TYPE_CPE) ? 2 : 1;
int err;
if (!sbr->kx_and_m_pushed) {
} else {
}
if (sbr->start) {
sbr_dequant(sbr, id_aac);
}
for (ch = 0; ch < nch; ch++) {
sbr_qmf_... | void ff_sbr_apply(AACContext *ac, SpectralBandReplication *sbr, int id_aac, float* L, float* R) {
int nch = (id_aac == TYPE_CPE) ? 2 : 1;
int err;
if (id_aac != sbr->id_aac) {
av_log(ac->avctx, AV_LOG_ERROR, "element type mismatch %d != %d\n", id_aac, sbr->id_aac);
sbr_turnoff(sbr);
}
... | void ff_sbr_apply(AACContext *ac, SpectralBandReplication *sbr, int id_aac, float* L, float* R) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int nch = (id_aac == TYPE_CPE) ? 2 : 1;
int err;
if (!sbr->kx_and_m_pushed) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} else {
/* PLACEHOLDER:... | void ff_sbr_apply(AACContext *ac, SpectralBandReplication *sbr, int id_aac, float* L, float* R) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int nch = (id_aac == TYPE_CPE) ? 2 : 1;
int err;
if (id_aac != sbr->id_aac) {
av_log(ac->avctx, AV_LOG_ERROR, "element type mismatch %d != %d\n", id_aac... | void ff_sbr_apply(AACContext *ac, SpectralBandReplication *sbr, int id_aac, float* L, float* R) {
int nch = (id_aac == TYPE_CPE) ? 2 : 1;
int err;
+ if (id_aac != sbr->id_aac) {
+ av_log(ac->avctx, AV_LOG_ERROR, "element type mismatch %d != %d\n", id_aac, sbr->id_aac);
+ sbr_turnoff(sbr);
+ ... |
CVE-2015-6820 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/aacsbr.c | read_sbr_data | static unsigned int read_sbr_data(AACContext *ac, SpectralBandReplication *sbr, GetBitContext *gb, int id_aac) {
unsigned int cnt = get_bits_count(gb);
if (id_aac == TYPE_SCE || id_aac == TYPE_CCE) {
if (read_sbr_single_channel_element(ac, sbr, gb)) {
sbr_turnoff(sbr);
return get... | static unsigned int read_sbr_data(AACContext *ac, SpectralBandReplication *sbr, GetBitContext *gb, int id_aac) {
unsigned int cnt = get_bits_count(gb);
sbr->id_aac = id_aac;
if (id_aac == TYPE_SCE || id_aac == TYPE_CCE) {
if (read_sbr_single_channel_element(ac, sbr, gb)) {
sbr_turnoff(sb... | static unsigned int read_sbr_data(AACContext *ac, SpectralBandReplication *sbr, GetBitContext *gb, int id_aac) {
unsigned int cnt = get_bits_count(gb);
if (id_aac == TYPE_SCE || id_aac == TYPE_CCE) {
if (read_sbr_single_channel_element(ac, sbr, gb)) {
sbr_turnoff(sbr);
return get... | static unsigned int read_sbr_data(AACContext *ac, SpectralBandReplication *sbr, GetBitContext *gb, int id_aac) {
unsigned int cnt = get_bits_count(gb);
sbr->id_aac = id_aac;
if (id_aac == TYPE_SCE || id_aac == TYPE_CCE) {
if (read_sbr_single_channel_element(ac, sbr, gb)) {
sbr_turnoff(sb... | static unsigned int read_sbr_data(AACContext *ac, SpectralBandReplication *sbr, GetBitContext *gb, int id_aac) {
unsigned int cnt = get_bits_count(gb);
if (id_aac == TYPE_SCE || id_aac == TYPE_CCE) {
if (read_sbr_single_channel_element(ac, sbr, gb)) {
sbr_turnoff(sbr);
return get... | static unsigned int read_sbr_data(AACContext *ac, SpectralBandReplication *sbr, GetBitContext *gb, int id_aac) {
unsigned int cnt = get_bits_count(gb);
sbr->id_aac = id_aac;
if (id_aac == TYPE_SCE || id_aac == TYPE_CCE) {
if (read_sbr_single_channel_element(ac, sbr, gb)) {
sbr_turnoff(sb... | static unsigned int read_sbr_data(AACContext *ac, SpectralBandReplication *sbr, GetBitContext *gb, int id_aac) {
unsigned int cnt = get_bits_count(gb);
if (id_aac == TYPE_SCE || id_aac == TYPE_CCE) {
if (read_sbr_single_channel_element(ac, sbr, gb)) {
sbr_turnoff(sbr);
return get... | static unsigned int read_sbr_data(AACContext *ac, SpectralBandReplication *sbr, GetBitContext *gb, int id_aac) {
unsigned int cnt = get_bits_count(gb);
sbr->id_aac = id_aac;
if (id_aac == TYPE_SCE || id_aac == TYPE_CCE) {
if (read_sbr_single_channel_element(ac, sbr, gb)) {
sbr_turnoff(sb... | static unsigned int read_sbr_data(AACContext *ac, SpectralBandReplication *sbr, GetBitContext *gb, int id_aac) {
unsigned int cnt = get_bits_count(gb);
+ sbr->id_aac = id_aac;
if (id_aac == TYPE_SCE || id_aac == TYPE_CCE) {
if (read_sbr_single_channel_element(ac, sbr, gb)) {
sbr_turn... |
CVE-2015-6821 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/mpegvideo.c | ff_mpv_common_init | av_cold int ff_mpv_common_init(MpegEncContext *s) {
int i;
int nb_slices = (HAVE_THREADS && s->avctx->active_thread_type & FF_THREAD_SLICE) ? s->avctx->thread_count : 1;
if (s->encoding && s->avctx->slices) {
nb_slices = s->avctx->slices;
}
if (s->codec_id == AV_CODEC_ID_MPEG2VIDEO && !s->pr... | av_cold int ff_mpv_common_init(MpegEncContext *s) {
int i;
int nb_slices = (HAVE_THREADS && s->avctx->active_thread_type & FF_THREAD_SLICE) ? s->avctx->thread_count : 1;
clear_context(s);
if (s->encoding && s->avctx->slices) {
nb_slices = s->avctx->slices;
}
if (s->codec_id == AV_CODEC_I... | av_cold int ff_mpv_common_init(MpegEncContext *s) {
int i;
int nb_slices = (HAVE_THREADS && s->avctx->active_thread_type & FF_THREAD_SLICE) ? s->avctx->thread_count : 1;
if (s->encoding && s->avctx->slices) {
nb_slices = s->avctx->slices;
}
if (s->codec_id == AV_CODEC_ID_MPEG2VIDEO && !s->pr... | av_cold int ff_mpv_common_init(MpegEncContext *s) {
int i;
int nb_slices = (HAVE_THREADS && s->avctx->active_thread_type & FF_THREAD_SLICE) ? s->avctx->thread_count : 1;
clear_context(s);
if (s->encoding && s->avctx->slices) {
nb_slices = s->avctx->slices;
}
if (s->codec_id == AV_CODEC_I... | av_cold int ff_mpv_common_init(MpegEncContext *s) {
int nb_slices = (HAVE_THREADS && s->avctx->active_thread_type & FF_THREAD_SLICE) ? s->avctx->thread_count : 1;
if (s->encoding && s->avctx->slices) {
nb_slices = s->avctx->slices;
}
if (s->codec_id == AV_CODEC_ID_MPEG2VIDEO && !s->progressive_s... | av_cold int ff_mpv_common_init(MpegEncContext *s) {
int nb_slices = (HAVE_THREADS && s->avctx->active_thread_type & FF_THREAD_SLICE) ? s->avctx->thread_count : 1;
clear_context(s);
if (s->encoding && s->avctx->slices) {
nb_slices = s->avctx->slices;
}
if (s->codec_id == AV_CODEC_ID_MPEG2VIDE... | av_cold int ff_mpv_common_init(MpegEncContext *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int nb_slices = (HAVE_THREADS && s->avctx->active_thread_type & FF_THREAD_SLICE) ? s->avctx->thread_count : 1;
if (s->encoding && s->avctx->slices) {
nb_slices = s->avctx->slices;
}
if (s->codec... | av_cold int ff_mpv_common_init(MpegEncContext *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int nb_slices = (HAVE_THREADS && s->avctx->active_thread_type & FF_THREAD_SLICE) ? s->avctx->thread_count : 1;
clear_context(s);
if (s->encoding && s->avctx->slices) {
nb_slices = s->avctx->slices;
... | av_cold int ff_mpv_common_init(MpegEncContext *s) {
int nb_slices = (HAVE_THREADS && s->avctx->active_thread_type & FF_THREAD_SLICE) ? s->avctx->thread_count : 1;
+ clear_context(s);
if (s->encoding && s->avctx->slices) {
nb_slices = s->avctx->slices;
}
if (s->codec_id == AV_CODEC_ID_MP... |
CVE-2015-6822 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/sanm.c | destroy_buffers | static void destroy_buffers(SANMVideoContext *ctx) {
av_freep(&ctx->frm0);
av_freep(&ctx->frm1);
av_freep(&ctx->frm2);
av_freep(&ctx->stored_frame);
av_freep(&ctx->rle_buf);
ctx->frm0_size = ctx->frm1_size = ctx->frm2_size = 0;
} | static void destroy_buffers(SANMVideoContext *ctx) {
av_freep(&ctx->frm0);
av_freep(&ctx->frm1);
av_freep(&ctx->frm2);
av_freep(&ctx->stored_frame);
av_freep(&ctx->rle_buf);
ctx->frm0_size = ctx->frm1_size = ctx->frm2_size = 0;
init_sizes(ctx, 0, 0);
} | static void destroy_buffers(SANMVideoContext *ctx) {
av_freep(&ctx->frm0);
av_freep(&ctx->frm1);
av_freep(&ctx->frm2);
av_freep(&ctx->stored_frame);
av_freep(&ctx->rle_buf);
ctx->frm0_size = ctx->frm1_size = ctx->frm2_size = 0;
} | static void destroy_buffers(SANMVideoContext *ctx) {
av_freep(&ctx->frm0);
av_freep(&ctx->frm1);
av_freep(&ctx->frm2);
av_freep(&ctx->stored_frame);
av_freep(&ctx->rle_buf);
ctx->frm0_size = ctx->frm1_size = ctx->frm2_size = 0;
init_sizes(ctx, 0, 0);
} | static void destroy_buffers(SANMVideoContext *ctx) {
av_freep(&ctx->frm0);
av_freep(&ctx->frm1);
av_freep(&ctx->frm2);
av_freep(&ctx->stored_frame);
av_freep(&ctx->rle_buf);
ctx->frm0_size = ctx->frm1_size = ctx->frm2_size = 0;
}
| static void destroy_buffers(SANMVideoContext *ctx) {
av_freep(&ctx->frm0);
av_freep(&ctx->frm1);
av_freep(&ctx->frm2);
av_freep(&ctx->stored_frame);
av_freep(&ctx->rle_buf);
ctx->frm0_size = ctx->frm1_size = ctx->frm2_size = 0;
init_sizes(ctx, 0, 0);
}
| static void destroy_buffers(SANMVideoContext *ctx) {
av_freep(&ctx->frm0);
av_freep(&ctx->frm1);
av_freep(&ctx->frm2);
av_freep(&ctx->stored_frame);
av_freep(&ctx->rle_buf);
ctx->frm0_size = ctx->frm1_size = ctx->frm2_size = 0;
}
| static void destroy_buffers(SANMVideoContext *ctx) {
av_freep(&ctx->frm0);
av_freep(&ctx->frm1);
av_freep(&ctx->frm2);
av_freep(&ctx->stored_frame);
av_freep(&ctx->rle_buf);
ctx->frm0_size = ctx->frm1_size = ctx->frm2_size = 0;
init_sizes(ctx, 0, 0);
} | static void destroy_buffers(SANMVideoContext *ctx) {
av_freep(&ctx->frm0);
av_freep(&ctx->frm1);
av_freep(&ctx->frm2);
av_freep(&ctx->stored_frame);
av_freep(&ctx->rle_buf);
ctx->frm0_size = ctx->frm1_size = ctx->frm2_size = 0;
+ init_sizes(ctx, 0, 0);
} |
CVE-2015-6823 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/alac.c | allocate_buffers | static int allocate_buffers(ALACContext *alac) {
int ch;
int buf_size = alac->max_samples_per_frame * sizeof(int32_t);
for (ch = 0; ch < FFM(alac->channels, 2); ch++) {
FF_ALLOC_OR_GOTO(alac->avctx, alac->predict_error_buffer[ch], buf_size, buf_alloc_fail);
alac->direct_output = alac->sample... | static int allocate_buffers(ALACContext *alac) {
int ch;
int buf_size = alac->max_samples_per_frame * sizeof(int32_t);
for (ch = 0; ch < 2; ch++) {
alac->predict_error_buffer[ch] = NULL;
alac->output_samples_buffer[ch] = NULL;
alac->extra_bits_buffer[ch] = NULL;
}
for (ch = 0... | static int allocate_buffers(ALACContext *alac) {
int ch;
int buf_size = alac->max_samples_per_frame * sizeof(int32_t);
for (ch = 0; ch < FFM(alac->channels, 2); ch++) {
FF_ALLOC_OR_GOTO(alac->avctx, alac->predict_error_buffer[ch], buf_size, buf_alloc_fail);
alac->direct_output = alac->sample... | static int allocate_buffers(ALACContext *alac) {
int ch;
int buf_size = alac->max_samples_per_frame * sizeof(int32_t);
for (ch = 0; ch < 2; ch++) {
alac->predict_error_buffer[ch] = NULL;
alac->output_samples_buffer[ch] = NULL;
alac->extra_bits_buffer[ch] = NULL;
}
for (ch = 0... | static int allocate_buffers(ALACContext *alac) {
int buf_size = alac->max_samples_per_frame * sizeof(int32_t);
for (ch = 0; ch < FFM(alac->channels, 2); ch++) {
FF_ALLOC_OR_GOTO(alac->avctx, alac->predict_error_buffer[ch], buf_size, buf_alloc_fail);
if (!alac->direct_output) {
FF_ALL... | static int allocate_buffers(ALACContext *alac) {
int buf_size = alac->max_samples_per_frame * sizeof(int32_t);
for (ch = 0; ch < 2; ch++) {
alac->predict_error_buffer[ch] = NULL;
alac->output_samples_buffer[ch] = NULL;
alac->extra_bits_buffer[ch] = NULL;
}
for (ch = 0; ch < FFM(a... | static int allocate_buffers(ALACContext *alac) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int buf_size = alac->max_samples_per_frame * sizeof(int32_t);
for (ch = 0; ch < FFM(alac->channels, 2); ch++) {
FF_ALLOC_OR_GOTO(alac->avctx, alac->predict_error_buffer[ch], buf_size, buf_alloc_fail);
... | static int allocate_buffers(ALACContext *alac) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int buf_size = alac->max_samples_per_frame * sizeof(int32_t);
for (ch = 0; ch < 2; ch++) {
alac->predict_error_buffer[ch] = NULL;
alac->output_samples_buffer[ch] = NULL;
alac->extra_bits_bu... | static int allocate_buffers(ALACContext *alac) {
int buf_size = alac->max_samples_per_frame * sizeof(int32_t);
+ for (ch = 0; ch < 2; ch++) {
+ alac->predict_error_buffer[ch] = NULL;
+ alac->output_samples_buffer[ch] = NULL;
+ alac->extra_bits_buffer[ch] = NULL;
+ }
for (ch = 0; ch... |
CVE-2015-6824 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libswscale/utils.c | sws_init_context | av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter) {
int i, j;
int usesVFilter, usesHFilter;
int unscaled;
SwsFilter dummyFilter = { NULL, NULL, NULL, NULL };
int srcW = c->srcW;
int srcH = c->srcH;
int dstW = c->dstW;
int dstH = c->dstH;
int dst_... | av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter) {
int i, j;
int usesVFilter, usesHFilter;
int unscaled;
SwsFilter dummyFilter = { NULL, NULL, NULL, NULL };
int srcW = c->srcW;
int srcH = c->srcH;
int dstW = c->dstW;
int dstH = c->dstH;
int dst_... | av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter) {
int i, j;
int usesVFilter, usesHFilter;
int unscaled;
SwsFilter dummyFilter = { NULL, NULL, NULL, NULL };
int srcW = c->srcW;
int srcH = c->srcH;
int dstW = c->dstW;
int dstH = c->dstH;
int dst_... | av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter) {
int i, j;
int usesVFilter, usesHFilter;
int unscaled;
SwsFilter dummyFilter = { NULL, NULL, NULL, NULL };
int srcW = c->srcW;
int srcH = c->srcH;
int dstW = c->dstW;
int dstH = c->dstH;
int dst_... | av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter) {
SwsFilter dummyFilter = { NULL, NULL, NULL, NULL };
int srcW = c->srcW;
int srcH = c->srcH;
int dstW = c->dstW;
int dstH = c->dstH;
int dst_stride = FFALIGN(dstW * sizeof(int16_t) + 66, 16);
enum AVPixe... | av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter) {
SwsFilter dummyFilter = { NULL, NULL, NULL, NULL };
int srcW = c->srcW;
int srcH = c->srcH;
int dstW = c->dstW;
int dstH = c->dstH;
int dst_stride = FFALIGN(dstW * sizeof(int16_t) + 66, 16);
enum AVPixe... | av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
SwsFilter dummyFilter = { NULL, NULL, NULL, NULL };
int srcW = c->srcW;
int srcH = c->srcH;
int dstW = c->dstW;
int dstH = c->dstH;
int dst_stride = FFALIGN... | av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
SwsFilter dummyFilter = { NULL, NULL, NULL, NULL };
int srcW = c->srcW;
int srcH = c->srcH;
int dstW = c->dstW;
int dstH = c->dstH;
int dst_stride = FFALIGN... | av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, SwsFilter *dstFilter) {
SwsFilter dummyFilter = { NULL, NULL, NULL, NULL };
int srcW = c->srcW;
int srcH = c->srcH;
int dstW = c->dstW;
int dstH = c->dstH;
int dst_stride = FFALIGN(dstW * sizeof(int16_t) + 66, 16);
enu... |
CVE-2015-6825 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/pthread_frame.c | ff_frame_thread_init | int ff_frame_thread_init(AVCodecContext *avctx) {
int thread_count = avctx->thread_count;
const AVCodec *codec = avctx->codec;
AVCodecContext *src = avctx;
FrameThreadContext *fctx;
int i, err = 0;
w32thread_init();
if (!thread_count) {
int nb_cpus = av_cpu_count();
if ((avct... | int ff_frame_thread_init(AVCodecContext *avctx) {
int thread_count = avctx->thread_count;
const AVCodec *codec = avctx->codec;
AVCodecContext *src = avctx;
FrameThreadContext *fctx;
int i, err = 0;
w32thread_init();
if (!thread_count) {
int nb_cpus = av_cpu_count();
if ((avct... | int ff_frame_thread_init(AVCodecContext *avctx) {
int thread_count = avctx->thread_count;
const AVCodec *codec = avctx->codec;
AVCodecContext *src = avctx;
FrameThreadContext *fctx;
int i, err = 0;
w32thread_init();
if (!thread_count) {
int nb_cpus = av_cpu_count();
if ((avct... | int ff_frame_thread_init(AVCodecContext *avctx) {
int thread_count = avctx->thread_count;
const AVCodec *codec = avctx->codec;
AVCodecContext *src = avctx;
FrameThreadContext *fctx;
int i, err = 0;
w32thread_init();
if (!thread_count) {
int nb_cpus = av_cpu_count();
if ((avct... | int ff_frame_thread_init(AVCodecContext *avctx) {
int thread_count = avctx->thread_count;
if (!thread_count) {
int nb_cpus = av_cpu_count();
if ((avctx->debug & (FF_DEBUG_VIS_QP | FF_DEBUG_VIS_MB_TYPE)) || avctx->debug_mv) {
nb_cpus = 1;
}
if (nb_cpus > 1) {
... | int ff_frame_thread_init(AVCodecContext *avctx) {
int thread_count = avctx->thread_count;
if (!thread_count) {
int nb_cpus = av_cpu_count();
if ((avctx->debug & (FF_DEBUG_VIS_QP | FF_DEBUG_VIS_MB_TYPE)) || avctx->debug_mv) {
nb_cpus = 1;
}
if (nb_cpus > 1) {
... | int ff_frame_thread_init(AVCodecContext *avctx) {
int thread_count = avctx->thread_count;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!thread_count) {
int nb_cpus = av_cpu_count();
if ((avctx->debug & (FF_DEBUG_VIS_QP | FF_DEBUG_VIS_MB_TYPE)) || avctx->debug_mv) {
nb_cpus =... | int ff_frame_thread_init(AVCodecContext *avctx) {
int thread_count = avctx->thread_count;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!thread_count) {
int nb_cpus = av_cpu_count();
if ((avctx->debug & (FF_DEBUG_VIS_QP | FF_DEBUG_VIS_MB_TYPE)) || avctx->debug_mv) {
nb_cpus =... | int ff_frame_thread_init(AVCodecContext *avctx) {
int thread_count = avctx->thread_count;
if (!thread_count) {
int nb_cpus = av_cpu_count();
if ((avctx->debug & (FF_DEBUG_VIS_QP | FF_DEBUG_VIS_MB_TYPE)) || avctx->debug_mv) {
nb_cpus = 1;
}
if (nb_cpus > 1) {
... |
CVE-2015-6826 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/rv34.c | ff_rv34_decode_init_thread_copy | int ff_rv34_decode_init_thread_copy(AVCodecContext *avctx) {
int err;
RV34DecContext *r = avctx->priv_data;
r->s.avctx = avctx;
if (avctx->internal->is_copy) {
r->tmp_b_block_base = NULL;
ff_mpv_idct_init(&r->s);
if ((err = ff_mpv_common_init(&r->s)) < 0) {
return err... | int ff_rv34_decode_init_thread_copy(AVCodecContext *avctx) {
int err;
RV34DecContext *r = avctx->priv_data;
r->s.avctx = avctx;
if (avctx->internal->is_copy) {
r->tmp_b_block_base = NULL;
r->cbp_chroma = NULL;
r->cbp_luma = NULL;
r->deblock_coefs = NULL;
r->intra_... | int ff_rv34_decode_init_thread_copy(AVCodecContext *avctx) {
int err;
RV34DecContext *r = avctx->priv_data;
r->s.avctx = avctx;
if (avctx->internal->is_copy) {
r->tmp_b_block_base = NULL;
ff_mpv_idct_init(&r->s);
if ((err = ff_mpv_common_init(&r->s)) < 0) {
return err... | int ff_rv34_decode_init_thread_copy(AVCodecContext *avctx) {
int err;
RV34DecContext *r = avctx->priv_data;
r->s.avctx = avctx;
if (avctx->internal->is_copy) {
r->tmp_b_block_base = NULL;
r->cbp_chroma = NULL;
r->cbp_luma = NULL;
r->deblock_coefs = NULL;
r->intra_... | int ff_rv34_decode_init_thread_copy(AVCodecContext *avctx) {
if (avctx->internal->is_copy) {
r->tmp_b_block_base = NULL;
ff_mpv_idct_init(&r->s);
if ((err = rv34_decoder_alloc(r)) < 0) {
ff_mpv_common_end(&r->s);
return err;
}
}
}
| int ff_rv34_decode_init_thread_copy(AVCodecContext *avctx) {
if (avctx->internal->is_copy) {
r->tmp_b_block_base = NULL;
r->cbp_chroma = NULL;
r->cbp_luma = NULL;
r->deblock_coefs = NULL;
r->intra_types_hist = NULL;
r->mb_type = NULL;
ff_mpv_idct_init(&r->s);
... | int ff_rv34_decode_init_thread_copy(AVCodecContext *avctx) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (avctx->internal->is_copy) {
r->tmp_b_block_base = NULL;
ff_mpv_idct_init(&r->s);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if ((err = rv34_decoder_alloc(r)) < 0) {
... | int ff_rv34_decode_init_thread_copy(AVCodecContext *avctx) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (avctx->internal->is_copy) {
r->tmp_b_block_base = NULL;
r->cbp_chroma = NULL;
r->cbp_luma = NULL;
r->deblock_coefs = NULL;
r->intra_types_hist = NULL;
r-... | int ff_rv34_decode_init_thread_copy(AVCodecContext *avctx) {
if (avctx->internal->is_copy) {
r->tmp_b_block_base = NULL;
+ r->cbp_chroma = NULL;
+ r->cbp_luma = NULL;
+ r->deblock_coefs = NULL;
+ r->intra_types_hist = NULL;
+ r->mb_type = NULL;
ff_mpv_idct_init... |
CVE-2015-7830 | Wireshark | https://github.com/wireshark/wireshark | wiretap/pcapng.c | pcapng_read_if_descr_block | static gboolean pcapng_read_if_descr_block(wtap *wth, FILE_T fh, pcapng_block_header_t *bh, pcapng_t *pn, wtapng_block_t *wblock, int *err, gchar **err_info) {
guint64 time_units_per_second = 1000000;
int tsprecision = WTAP_TSPREC_USEC;
int bytes_read;
guint to_read, opt_cont_buf_len;
pcapng_interfa... | static gboolean pcapng_read_if_descr_block(wtap *wth, FILE_T fh, pcapng_block_header_t *bh, pcapng_t *pn, wtapng_block_t *wblock, int *err, gchar **err_info) {
guint64 time_units_per_second = 1000000;
int tsprecision = WTAP_TSPREC_USEC;
int bytes_read;
guint to_read, opt_cont_buf_len;
pcapng_interfa... | static int pcapng_read_if_descr_block(FILE_T fh, pcapng_block_header_t *bh, pcapng_t *pn, wtapng_block_t *wblock, int *err, gchar **err_info) {
guint64 time_units_per_second = 1000000;
int bytes_read;
int block_read;
int to_read, opt_cont_buf_len;
pcapng_interface_description_block_t idb;
pcapng... | static int pcapng_read_if_descr_block(FILE_T fh, pcapng_block_header_t *bh, pcapng_t *pn, wtapng_block_t *wblock, int *err, gchar **err_info) {
guint64 time_units_per_second = 1000000;
int bytes_read;
int block_read;
int to_read, opt_cont_buf_len;
pcapng_interface_description_block_t idb;
pcapng... | static gboolean pcapng_read_if_descr_block(wtap *wth, FILE_T fh, pcapng_block_header_t *bh, pcapng_t *pn, wtapng_block_t *wblock, int *err, gchar **err_info) {
if (bh->block_total_length < M_IDB_SIZE) {
return FALSE;
}
if (bh->block_total_length > MAX_BLOCK_SIZE) {
return FALSE;
}
if... | static gboolean pcapng_read_if_descr_block(wtap *wth, FILE_T fh, pcapng_block_header_t *bh, pcapng_t *pn, wtapng_block_t *wblock, int *err, gchar **err_info) {
if (bh->block_total_length < M_IDB_SIZE) {
return FALSE;
}
if (bh->block_total_length > MAX_BLOCK_SIZE) {
return FALSE;
}
if... | static int pcapng_read_if_descr_block(FILE_T fh, pcapng_block_header_t *bh, pcapng_t *pn, wtapng_block_t *wblock, int *err, gchar **err_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (bh->block_total_length < M_IDB_SIZE) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
return -1;
}
... | static int pcapng_read_if_descr_block(FILE_T fh, pcapng_block_header_t *bh, pcapng_t *pn, wtapng_block_t *wblock, int *err, gchar **err_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (bh->block_total_length < M_IDB_SIZE) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
return -1;
}
... | static gboolean pcapng_read_if_descr_block(wtap *wth, FILE_T fh, pcapng_block_header_t *bh, pcapng_t *pn, wtapng_block_t *wblock, int *err, gchar **err_info) {
if (bh->block_total_length < M_IDB_SIZE) {
return FALSE;
}
if (bh->block_total_length > MAX_BLOCK_SIZE) {
return FALSE;
}... |
CVE-2015-8216 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/mjpegdec.c | ljpeg_decode_yuv_scan | static int ljpeg_decode_yuv_scan(MJpegDecodeContext *s, int predictor, int point_transform, int nb_components) {
int i, mb_x, mb_y, mask;
int bits= (s->bits+7)&~7;
int resync_mb_y = 0;
int resync_mb_x = 0;
point_transform += bits - s->bits;
mask = ((1 << s->bits) - 1) << point_transform;
av_... | static int ljpeg_decode_yuv_scan(MJpegDecodeContext *s, int predictor, int point_transform, int nb_components) {
int i, mb_x, mb_y, mask;
int bits= (s->bits+7)&~7;
int resync_mb_y = 0;
int resync_mb_x = 0;
point_transform += bits - s->bits;
mask = ((1 << s->bits) - 1) << point_transform;
av_... | static int ljpeg_decode_yuv_scan(MJpegDecodeContext *s, int predictor, int point_transform, int nb_components) {
int i, mb_x, mb_y, mask;
int bits= (s->bits+7)&~7;
int resync_mb_y = 0;
int resync_mb_x = 0;
point_transform += bits - s->bits;
mask = ((1 << s->bits) - 1) << point_transform;
av_... | static int ljpeg_decode_yuv_scan(MJpegDecodeContext *s, int predictor, int point_transform, int nb_components) {
int i, mb_x, mb_y, mask;
int bits= (s->bits+7)&~7;
int resync_mb_y = 0;
int resync_mb_x = 0;
point_transform += bits - s->bits;
mask = ((1 << s->bits) - 1) << point_transform;
av_... | static int ljpeg_decode_yuv_scan(MJpegDecodeContext *s, int predictor, int point_transform, int nb_components) {
int bits= (s->bits+7)&~7;
int resync_mb_y = 0;
int resync_mb_x = 0;
point_transform += bits - s->bits;
for (mb_y = 0; mb_y < s->mb_height; mb_y++) {
for (mb_x = 0; mb_x < s->mb_wi... | static int ljpeg_decode_yuv_scan(MJpegDecodeContext *s, int predictor, int point_transform, int nb_components) {
int bits= (s->bits+7)&~7;
int resync_mb_y = 0;
int resync_mb_x = 0;
point_transform += bits - s->bits;
for (mb_y = 0; mb_y < s->mb_height; mb_y++) {
for (mb_x = 0; mb_x < s->mb_wi... | static int ljpeg_decode_yuv_scan(MJpegDecodeContext *s, int predictor, int point_transform, int nb_components) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int bits= (s->bits+7)&~7;
int resync_mb_y = 0;
int resync_mb_x = 0;
point_transform += bits - s->bits;
/* PLACEHOLDER: DO NOT DELETE THIS... | static int ljpeg_decode_yuv_scan(MJpegDecodeContext *s, int predictor, int point_transform, int nb_components) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int bits= (s->bits+7)&~7;
int resync_mb_y = 0;
int resync_mb_x = 0;
point_transform += bits - s->bits;
/* PLACEHOLDER: DO NOT DELETE THIS... | static int ljpeg_decode_yuv_scan(MJpegDecodeContext *s, int predictor, int point_transform, int nb_components) {
int bits= (s->bits+7)&~7;
int resync_mb_y = 0;
int resync_mb_x = 0;
point_transform += bits - s->bits;
for (mb_y = 0; mb_y < s->mb_height; mb_y++) {
for (mb_x = 0; mb_x < s... |
CVE-2015-8218 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/faxcompr.c | decode_uncompressed | static int decode_uncompressed(AVCodecContext *avctx, GetBitContext *gb, unsigned int *pix_left, int **runs, const int *runend, int *mode) {
int eob = 0;
int newmode;
int saved_run = 0;
do {
int cwi, k;
int cw = 0;
int codes[2];
do {
cwi = show_bits(gb, 11);
... | static int decode_uncompressed(AVCodecContext *avctx, GetBitContext *gb, unsigned int *pix_left, int **runs, const int *runend, int *mode) {
int eob = 0;
int newmode;
int saved_run = 0;
do {
int cwi, k;
int cw = 0;
int codes[2];
do {
cwi = show_bits(gb, 11);
... | static int decode_uncompressed(AVCodecContext *avctx, GetBitContext *gb, unsigned int *pix_left, int **runs, const int *runend, int *mode) {
int eob = 0;
int newmode;
int saved_run = 0;
do {
int cwi, k;
int cw = 0;
int codes[2];
do {
cwi = show_bits(gb, 11);
... | static int decode_uncompressed(AVCodecContext *avctx, GetBitContext *gb, unsigned int *pix_left, int **runs, const int *runend, int *mode) {
int eob = 0;
int newmode;
int saved_run = 0;
do {
int cwi, k;
int cw = 0;
int codes[2];
do {
cwi = show_bits(gb, 11);
... | static int decode_uncompressed(AVCodecContext *avctx, GetBitContext *gb, unsigned int *pix_left, int **runs, const int *runend, int *mode) {
int saved_run = 0;
do {
int cwi, k;
int cw = 0;
int codes[2];
do {
cwi = show_bits(gb, 11);
if (!cwi) {
... | static int decode_uncompressed(AVCodecContext *avctx, GetBitContext *gb, unsigned int *pix_left, int **runs, const int *runend, int *mode) {
int saved_run = 0;
do {
int cwi, k;
int cw = 0;
int codes[2];
do {
cwi = show_bits(gb, 11);
if (!cwi) {
... | static int decode_uncompressed(AVCodecContext *avctx, GetBitContext *gb, unsigned int *pix_left, int **runs, const int *runend, int *mode) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int saved_run = 0;
do {
int cwi, k;
int cw = 0;
int codes[2];
do {
cwi = show... | static int decode_uncompressed(AVCodecContext *avctx, GetBitContext *gb, unsigned int *pix_left, int **runs, const int *runend, int *mode) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int saved_run = 0;
do {
int cwi, k;
int cw = 0;
int codes[2];
do {
cwi = show... | static int decode_uncompressed(AVCodecContext *avctx, GetBitContext *gb, unsigned int *pix_left, int **runs, const int *runend, int *mode) {
int saved_run = 0;
do {
int cwi, k;
int cw = 0;
int codes[2];
do {
cwi = show_bits(gb, 11);
if (!cwi) {
... |
CVE-2015-8219 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/jpeg2000dec.c | init_tile | static int init_tile(Jpeg2000DecoderContext *s, int tileno) {
int compno;
int tilex = tileno % s->numXtiles;
int tiley = tileno / s->numXtiles;
Jpeg2000Tile *tile = s->tile + tileno;
if (!tile->comp) {
return AVERROR(ENOMEM);
}
tile->coord[0][0] = FFMAX(tilex * s->tile_width + s->til... | static int init_tile(Jpeg2000DecoderContext *s, int tileno) {
int compno;
int tilex = tileno % s->numXtiles;
int tiley = tileno / s->numXtiles;
Jpeg2000Tile *tile = s->tile + tileno;
if (!tile->comp) {
return AVERROR(ENOMEM);
}
tile->coord[0][0] = av_clip(tilex * s->tile_width + s->t... | static int init_tile(Jpeg2000DecoderContext *s, int tileno) {
int compno;
int tilex = tileno % s->numXtiles;
int tiley = tileno / s->numXtiles;
Jpeg2000Tile *tile = s->tile + tileno;
if (!tile->comp) {
return AVERROR(ENOMEM);
}
for (compno = 0; compno < s->ncomponents; compno++) {
... | static int init_tile(Jpeg2000DecoderContext *s, int tileno) {
int compno;
int tilex = tileno % s->numXtiles;
int tiley = tileno / s->numXtiles;
Jpeg2000Tile *tile = s->tile + tileno;
if (!tile->comp) {
return AVERROR(ENOMEM);
}
for (compno = 0; compno < s->ncomponents; compno++) {
... | static int init_tile(Jpeg2000DecoderContext *s, int tileno) {
int tilex = tileno % s->numXtiles;
int tiley = tileno / s->numXtiles;
if (!tile->comp) {
return AVERROR(ENOMEM);
}
tile->coord[0][0] = FFMAX(tilex * s->tile_width + s->tile_offset_x, s->image_offset_x);
tile->coord[0][1] = FFM... | static int init_tile(Jpeg2000DecoderContext *s, int tileno) {
int tilex = tileno % s->numXtiles;
int tiley = tileno / s->numXtiles;
if (!tile->comp) {
return AVERROR(ENOMEM);
}
tile->coord[0][0] = av_clip(tilex * s->tile_width + s->tile_offset_x, s->image_offset_x, s->width);
tile->coord... | static int init_tile(Jpeg2000DecoderContext *s, int tileno) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int tilex = tileno % s->numXtiles;
int tiley = tileno / s->numXtiles;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!tile->comp) {
return AVERROR(ENOMEM);
}
for (compno = 0... | static int init_tile(Jpeg2000DecoderContext *s, int tileno) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int tilex = tileno % s->numXtiles;
int tiley = tileno / s->numXtiles;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!tile->comp) {
return AVERROR(ENOMEM);
}
for (compno = 0... | static int init_tile(Jpeg2000DecoderContext *s, int tileno) {
int tilex = tileno % s->numXtiles;
int tiley = tileno / s->numXtiles;
if (!tile->comp) {
return AVERROR(ENOMEM);
}
- tile->coord[0][0] = FFMAX(tilex * s->tile_width + s->tile_offset_x, s->image_offset_x);
- tile->coord[0][... |
CVE-2015-8363 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/jpeg2000dec.c | jpeg2000_dec_cleanup | static void jpeg2000_dec_cleanup(Jpeg2000DecoderContext *s) {
int tileno, compno;
for (tileno = 0; tileno < s->numXtiles * s->numYtiles; tileno++) {
if (s->tile[tileno].comp) {
for (compno = 0; compno < s->ncomponents; compno++) {
Jpeg2000Component *comp = s->tile[tileno].com... | static void jpeg2000_dec_cleanup(Jpeg2000DecoderContext *s) {
int tileno, compno;
for (tileno = 0; tileno < s->numXtiles * s->numYtiles; tileno++) {
if (s->tile[tileno].comp) {
for (compno = 0; compno < s->ncomponents; compno++) {
Jpeg2000Component *comp = s->tile[tileno].com... | static void jpeg2000_dec_cleanup(Jpeg2000DecoderContext *s) {
int tileno, compno;
for (tileno = 0; tileno < s->numXtiles * s->numYtiles; tileno++) {
if (s->tile[tileno].comp) {
for (compno = 0; compno < s->ncomponents; compno++) {
Jpeg2000Component *comp = s->tile[tileno].com... | static void jpeg2000_dec_cleanup(Jpeg2000DecoderContext *s) {
int tileno, compno;
for (tileno = 0; tileno < s->numXtiles * s->numYtiles; tileno++) {
if (s->tile[tileno].comp) {
for (compno = 0; compno < s->ncomponents; compno++) {
Jpeg2000Component *comp = s->tile[tileno].com... | static void jpeg2000_dec_cleanup(Jpeg2000DecoderContext *s) {
s->numXtiles = s->numYtiles = 0;
}
| static void jpeg2000_dec_cleanup(Jpeg2000DecoderContext *s) {
s->numXtiles = s->numYtiles = 0;
s->ncomponents = 0;
}
| static void jpeg2000_dec_cleanup(Jpeg2000DecoderContext *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
s->numXtiles = s->numYtiles = 0;
}
| static void jpeg2000_dec_cleanup(Jpeg2000DecoderContext *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
s->numXtiles = s->numYtiles = 0;
s->ncomponents = 0;
} | static void jpeg2000_dec_cleanup(Jpeg2000DecoderContext *s) {
s->numXtiles = s->numYtiles = 0;
+ s->ncomponents = 0;
} |
CVE-2015-8363 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/jpeg2000dec.c | jpeg2000_read_main_headers | static int jpeg2000_read_main_headers(Jpeg2000DecoderContext *s) {
Jpeg2000CodingStyle *codsty = s->codsty;
Jpeg2000QuantStyle *qntsty = s->qntsty;
Jpeg2000POC *poc = &s->poc;
uint8_t *properties = s->properties;
for (;;) {
int len, ret = 0;
uint16_t marker;
int oldpos;
... | static int jpeg2000_read_main_headers(Jpeg2000DecoderContext *s) {
Jpeg2000CodingStyle *codsty = s->codsty;
Jpeg2000QuantStyle *qntsty = s->qntsty;
Jpeg2000POC *poc = &s->poc;
uint8_t *properties = s->properties;
for (;;) {
int len, ret = 0;
uint16_t marker;
int oldpos;
... | static int jpeg2000_read_main_headers(Jpeg2000DecoderContext *s) {
Jpeg2000CodingStyle *codsty = s->codsty;
Jpeg2000QuantStyle *qntsty = s->qntsty;
uint8_t *properties = s->properties;
for (;;) {
int len, ret = 0;
uint16_t marker;
int oldpos;
if (bytestream2_get_bytes_lef... | static int jpeg2000_read_main_headers(Jpeg2000DecoderContext *s) {
Jpeg2000CodingStyle *codsty = s->codsty;
Jpeg2000QuantStyle *qntsty = s->qntsty;
uint8_t *properties = s->properties;
for (;;) {
int len, ret = 0;
uint16_t marker;
int oldpos;
if (bytestream2_get_bytes_lef... | static int jpeg2000_read_main_headers(Jpeg2000DecoderContext *s) {
for (;;) {
switch (marker) {
case JPEG2000_SIZ:
ret = get_siz(s);
break;
}
}
}
| static int jpeg2000_read_main_headers(Jpeg2000DecoderContext *s) {
for (;;) {
switch (marker) {
case JPEG2000_SIZ:
if (s->ncomponents) {
av_log(s->avctx, AV_LOG_ERROR, "Duplicate SIZ\n");
return AVERROR_VALIDDATA;
}
ret = get_siz(s)... | static int jpeg2000_read_main_headers(Jpeg2000DecoderContext *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
for (;;) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
switch (marker) {
case JPEG2000_SIZ:
ret = get_siz(s);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | static int jpeg2000_read_main_headers(Jpeg2000DecoderContext *s) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
for (;;) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
switch (marker) {
case JPEG2000_SIZ:
if (s->ncomponents) {
av_log(s->avctx, AV_LOG_ERROR, "Dup... | static int jpeg2000_read_main_headers(Jpeg2000DecoderContext *s) {
for (;;) {
switch (marker) {
case JPEG2000_SIZ:
+ if (s->ncomponents) {
+ av_log(s->avctx, AV_LOG_ERROR, "Duplicate SIZ\n");
+ return AVERROR_VALIDDATA;
+ }
ret = g... |
CVE-2015-8365 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/smacker.c | smka_decode_frame | static int smka_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) {
AVFrame *frame = data;
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
GetBitContext gb;
HuffContext h[4] = { { 0 } };
VLC vlc[4] = { { 0 } };
int16_t *samples;
uint8_t *s... | static int smka_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) {
AVFrame *frame = data;
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
GetBitContext gb;
HuffContext h[4] = { { 0 } };
VLC vlc[4] = { { 0 } };
int16_t *samples;
uint8_t *s... | static int smka_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) {
AVFrame *frame = data;
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
GetBitContext gb;
HuffContext h[4] = { { 0 } };
VLC vlc[4] = { { 0 } };
int16_t *samples;
uint8_t *s... | static int smka_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) {
AVFrame *frame = data;
const uint8_t *buf = avpkt->data;
int buf_size = avpkt->size;
GetBitContext gb;
HuffContext h[4] = { { 0 } };
VLC vlc[4] = { { 0 } };
int16_t *samples;
uint8_t *s... | static int smka_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) {
const uint8_t *buf = avpkt->data;
unp_size = AV_RL32(buf);
if (unp_size > (1U<<24)) {
return AVERROR_VALIDDATA;
}
stereo = get_bits1(&gb);
bits = get_bits1(&gb);
if (stereo ^ (avctx... | static int smka_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) {
const uint8_t *buf = avpkt->data;
unp_size = AV_RL32(buf);
if (unp_size > (1U<<24)) {
return AVERROR_VALIDDATA;
}
stereo = get_bits1(&gb);
bits = get_bits1(&gb);
if (stereo ^ (avctx... | static int smka_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const uint8_t *buf = avpkt->data;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
unp_size = AV_RL32(buf);
if (unp_size > (1U<<24)) {
/* PLACEHOLDER:... | static int smka_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const uint8_t *buf = avpkt->data;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
unp_size = AV_RL32(buf);
if (unp_size > (1U<<24)) {
/* PLACEHOLDER:... | static int smka_decode_frame(AVCodecContext *avctx, void *data, int *got_frame_ptr, AVPacket *avpkt) {
const uint8_t *buf = avpkt->data;
unp_size = AV_RL32(buf);
if (unp_size > (1U<<24)) {
return AVERROR_VALIDDATA;
}
stereo = get_bits1(&gb);
bits = get_bits1(&gb);
if (stereo... |
CVE-2015-8558 | QEMU | https://github.com/qemu/qemu | hw/usb/hcd-ehci.c | ehci_process_itd | static int ehci_process_itd(EHCIState *ehci, EHCIitd *itd, uint32_t addr) {
USBDevice *dev;
USBEndpoint *ep;
uint32_t i, len, pid, dir, devaddr, endp;
uint32_t pg, off, ptr1, ptr2, max, mult;
ehci->periodic_sched_active = PERIODIC_ACTIVE;
dir =(itd->bufptr[1] & ITD_BUFPTR_DIRECTION);
devaddr... | static int ehci_process_itd(EHCIState *ehci, EHCIitd *itd, uint32_t addr) {
USBDevice *dev;
USBEndpoint *ep;
uint32_t i, len, pid, dir, devaddr, endp, xfers = 0;
uint32_t pg, off, ptr1, ptr2, max, mult;
ehci->periodic_sched_active = PERIODIC_ACTIVE;
dir =(itd->bufptr[1] & ITD_BUFPTR_DIRECTION);
... | static int ehci_process_itd(EHCIState *ehci, EHCIitd *itd, uint32_t addr) {
USBDevice *dev;
USBEndpoint *ep;
uint32_t i, len, pid, dir, devaddr, endp;
uint32_t pg, off, ptr1, ptr2, max, mult;
ehci->periodic_sched_active = PERIODIC_ACTIVE;
dir =(itd->bufptr[1] & ITD_BUFPTR_DIRECTION);
devaddr... | static int ehci_process_itd(EHCIState *ehci, EHCIitd *itd, uint32_t addr) {
USBDevice *dev;
USBEndpoint *ep;
uint32_t i, len, pid, dir, devaddr, endp, xfers = 0;
uint32_t pg, off, ptr1, ptr2, max, mult;
ehci->periodic_sched_active = PERIODIC_ACTIVE;
dir =(itd->bufptr[1] & ITD_BUFPTR_DIRECTION);
... | static int ehci_process_itd(EHCIState *ehci, EHCIitd *itd, uint32_t addr) {
USBEndpoint *ep;
uint32_t i, len, pid, dir, devaddr, endp;
uint32_t pg, off, ptr1, ptr2, max, mult;
ehci->periodic_sched_active = PERIODIC_ACTIVE;
for(i = 0; i < 8; i++) {
if (itd->transact[i] & ITD_XACT_ACTIVE) {
... | static int ehci_process_itd(EHCIState *ehci, EHCIitd *itd, uint32_t addr) {
USBEndpoint *ep;
uint32_t i, len, pid, dir, devaddr, endp, xfers = 0;
uint32_t pg, off, ptr1, ptr2, max, mult;
ehci->periodic_sched_active = PERIODIC_ACTIVE;
for(i = 0; i < 8; i++) {
if (itd->transact[i] & ITD_XACT_A... | static int ehci_process_itd(EHCIState *ehci, EHCIitd *itd, uint32_t addr) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
USBEndpoint *ep;
uint32_t i, len, pid, dir, devaddr, endp;
uint32_t pg, off, ptr1, ptr2, max, mult;
ehci->periodic_sched_active = PERIODIC_ACTIVE;
/* PLACEHOLDER: DO NOT DELE... | static int ehci_process_itd(EHCIState *ehci, EHCIitd *itd, uint32_t addr) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
USBEndpoint *ep;
uint32_t i, len, pid, dir, devaddr, endp, xfers = 0;
uint32_t pg, off, ptr1, ptr2, max, mult;
ehci->periodic_sched_active = PERIODIC_ACTIVE;
/* PLACEHOLDER: ... | static int ehci_process_itd(EHCIState *ehci, EHCIitd *itd, uint32_t addr) {
USBEndpoint *ep;
- uint32_t i, len, pid, dir, devaddr, endp;
+ uint32_t i, len, pid, dir, devaddr, endp, xfers = 0;
uint32_t pg, off, ptr1, ptr2, max, mult;
ehci->periodic_sched_active = PERIODIC_ACTIVE;
for(i = 0; i ... |
CVE-2015-8661 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/h264_slice.c | h264_slice_header_init | static int h264_slice_header_init(H264Context *h) {
int nb_slices = (HAVE_THREADS && h->avctx->active_thread_type & FF_THREAD_SLICE) ? h->avctx->thread_count : 1;
int i, ret;
ff_set_sar(h->avctx, h->sps.sar);
av_pix_fmt_get_chroma_sub_sample(h->avctx->pix_fmt, &h->chroma_x_shift, &h->chroma_y_shift);
... | static int h264_slice_header_init(H264Context *h) {
int nb_slices = (HAVE_THREADS && h->avctx->active_thread_type & FF_THREAD_SLICE) ? h->avctx->thread_count : 1;
int i, ret;
ff_set_sar(h->avctx, h->sps.sar);
av_pix_fmt_get_chroma_sub_sample(h->avctx->pix_fmt, &h->chroma_x_shift, &h->chroma_y_shift);
... | static int h264_slice_header_init(H264Context *h, int reinit) {
int nb_slices = (HAVE_THREADS && h->avctx->active_thread_type & FF_THREAD_SLICE) ? h->avctx->thread_count : 1;
int i, ret;
ff_set_sar(h->avctx, h->sps.sar);
av_pix_fmt_get_chroma_sub_sample(h->avctx->pix_fmt, &h->chroma_x_shift, &h->chroma_... | static int h264_slice_header_init(H264Context *h, int reinit) {
int nb_slices = (HAVE_THREADS && h->avctx->active_thread_type & FF_THREAD_SLICE) ? h->avctx->thread_count : 1;
int i, ret;
ff_set_sar(h->avctx, h->sps.sar);
av_pix_fmt_get_chroma_sub_sample(h->avctx->pix_fmt, &h->chroma_x_shift, &h->chroma_... | static int h264_slice_header_init(H264Context *h) {
int nb_slices = (HAVE_THREADS && h->avctx->active_thread_type & FF_THREAD_SLICE) ? h->avctx->thread_count : 1;
ff_set_sar(h->avctx, h->sps.sar);
ff_h264_free_tables(h);
init_scan_tables(h);
ret = ff_h264_alloc_tables(h);
if (nb_slices > H264_MA... | static int h264_slice_header_init(H264Context *h) {
int nb_slices = (HAVE_THREADS && h->avctx->active_thread_type & FF_THREAD_SLICE) ? h->avctx->thread_count : 1;
ff_set_sar(h->avctx, h->sps.sar);
ff_h264_free_tables(h);
init_scan_tables(h);
ret = ff_h264_alloc_tables(h);
if (nb_slices > H264_MA... | static int h264_slice_header_init(H264Context *h, int reinit) {
int nb_slices = (HAVE_THREADS && h->avctx->active_thread_type & FF_THREAD_SLICE) ? h->avctx->thread_count : 1;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ff_set_sar(h->avctx, h->sps.sar);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | static int h264_slice_header_init(H264Context *h, int reinit) {
int nb_slices = (HAVE_THREADS && h->avctx->active_thread_type & FF_THREAD_SLICE) ? h->avctx->thread_count : 1;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ff_set_sar(h->avctx, h->sps.sar);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | static int h264_slice_header_init(H264Context *h) {
int nb_slices = (HAVE_THREADS && h->avctx->active_thread_type & FF_THREAD_SLICE) ? h->avctx->thread_count : 1;
ff_set_sar(h->avctx, h->sps.sar);
ff_h264_free_tables(h);
init_scan_tables(h);
ret = ff_h264_alloc_tables(h);
if (nb_slices > ... |
CVE-2015-8662 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/jpeg2000dwt.c | ff_dwt_decode | int ff_dwt_decode(DWTContext *s, void *t) {
switch (s->type) {
case FF_DWT97:
dwt_decode97_float(s, t);
break;
case FF_DWT97_T:
dwt_decode97_int(s, t);
break;
case FF_DWT53:
dwt_decode53(s, t);
break;
default:
return -1;
}
return 0;
} | int ff_dwt_decode(DWTContext *s, void *t) {
if (s->ndeclevels == 0) {
return 0;
}
switch (s->type) {
case FF_DWT97:
dwt_decode97_float(s, t);
break;
case FF_DWT97_T:
dwt_decode97_int(s, t);
break;
case FF_DWT53:
dwt_decode53(s, t);
break;
... | int ff_dwt_decode(DWTContext *s, void *t) {
switch (s->type) {
case FF_DWT97:
dwt_decode97_float(s, t);
break;
case FF_DWT97_T:
dwt_decode97_int(s, t);
break;
case FF_DWT53:
dwt_decode53(s, t);
break;
default:
return -1;
}
return 0;
} | int ff_dwt_decode(DWTContext *s, void *t) {
if (s->ndeclevels == 0) {
return 0;
}
switch (s->type) {
case FF_DWT97:
dwt_decode97_float(s, t);
break;
case FF_DWT97_T:
dwt_decode97_int(s, t);
break;
case FF_DWT53:
dwt_decode53(s, t);
break;
... | int ff_dwt_decode(DWTContext *s, void *t) {
switch (s->type) {
case FF_DWT97:
dwt_decode97_float(s, t);
break;
case FF_DWT97_T:
dwt_decode97_int(s, t);
break;
case FF_DWT53:
dwt_decode53(s, t);
break;
}
}
| int ff_dwt_decode(DWTContext *s, void *t) {
if (s->ndeclevels == 0) {
return 0;
}
switch (s->type) {
case FF_DWT97:
dwt_decode97_float(s, t);
break;
case FF_DWT97_T:
dwt_decode97_int(s, t);
break;
case FF_DWT53:
dwt_decode53(s, t);
break;
... | int ff_dwt_decode(DWTContext *s, void *t) {
switch (s->type) {
case FF_DWT97:
dwt_decode97_float(s, t);
break;
case FF_DWT97_T:
dwt_decode97_int(s, t);
break;
case FF_DWT53:
dwt_decode53(s, t);
break;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}... | int ff_dwt_decode(DWTContext *s, void *t) {
if (s->ndeclevels == 0) {
return 0;
}
switch (s->type) {
case FF_DWT97:
dwt_decode97_float(s, t);
break;
case FF_DWT97_T:
dwt_decode97_int(s, t);
break;
case FF_DWT53:
dwt_decode53(s, t);
break;
... | int ff_dwt_decode(DWTContext *s, void *t) {
+ if (s->ndeclevels == 0) {
+ return 0;
+ }
switch (s->type) {
case FF_DWT97:
dwt_decode97_float(s, t);
break;
case FF_DWT97_T:
dwt_decode97_int(s, t);
break;
case FF_DWT53:
dwt_decode53(s, t);
... |
CVE-2015-8663 | FFmpeg | https://github.com/FFmpeg/FFmpeg | libavcodec/utils.c | ff_get_buffer | int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags) {
int ret = get_buffer_internal(avctx, frame, flags);
if (ret < 0) {
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
}
return ret;
} | int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags) {
int ret = get_buffer_internal(avctx, frame, flags);
if (ret < 0) {
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
frame->width = frame->height = 0;
}
return ret;
} | int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags) {
int ret = get_buffer_internal(avctx, frame, flags);
if (ret < 0) {
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
}
return ret;
} | int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags) {
int ret = get_buffer_internal(avctx, frame, flags);
if (ret < 0) {
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
frame->width = frame->height = 0;
}
return ret;
} | int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags) {
int ret = get_buffer_internal(avctx, frame, flags);
if (ret < 0) {
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
}
return ret;
}
| int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags) {
int ret = get_buffer_internal(avctx, frame, flags);
if (ret < 0) {
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
frame->width = frame->height = 0;
}
return ret;
}
| int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags) {
int ret = get_buffer_internal(avctx, frame, flags);
if (ret < 0) {
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
}
return ret;
}
| int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags) {
int ret = get_buffer_internal(avctx, frame, flags);
if (ret < 0) {
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
frame->width = frame->height = 0;
}
return ret;
} | int ff_get_buffer(AVCodecContext *avctx, AVFrame *frame, int flags) {
int ret = get_buffer_internal(avctx, frame, flags);
if (ret < 0) {
av_log(avctx, AV_LOG_ERROR, "get_buffer() failed\n");
+ frame->width = frame->height = 0;
}
return ret;
} |
CVE-2015-8711 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-nbap.c | dissect_nbap_RL_Specific_E_DCH_Information_Item | static int dissect_nbap_RL_Specific_E_DCH_Information_Item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
address dst_addr, null_addr;
conversation_t *conversation;
umts_fp_conversation_info_t *umts_fp_conversation_info;
nbap_edch_port_info_t *old_info = NULL;
transp... | static int dissect_nbap_RL_Specific_E_DCH_Information_Item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
address dst_addr, null_addr;
conversation_t *conversation;
umts_fp_conversation_info_t *umts_fp_conversation_info = NULL;
nbap_edch_port_info_t *old_info = NULL;
... | static int dissect_nbap_RL_Specific_E_DCH_Information_Item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
address dst_addr, null_addr;
conversation_t *conversation;
umts_fp_conversation_info_t *umts_fp_conversation_info;
nbap_edch_port_info_t *old_info = NULL;
transp... | static int dissect_nbap_RL_Specific_E_DCH_Information_Item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
address dst_addr, null_addr;
conversation_t *conversation;
umts_fp_conversation_info_t *umts_fp_conversation_info = NULL;
nbap_edch_port_info_t *old_info = NULL;
... | static int dissect_nbap_RL_Specific_E_DCH_Information_Item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
conversation_t *conversation;
umts_fp_conversation_info_t *umts_fp_conversation_info;
nbap_edch_port_info_t *old_info = NULL;
transportLayerAddress_ipv4 = 0;
Bin... | static int dissect_nbap_RL_Specific_E_DCH_Information_Item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
conversation_t *conversation;
umts_fp_conversation_info_t *umts_fp_conversation_info = NULL;
nbap_edch_port_info_t *old_info = NULL;
transportLayerAddress_ipv4 = 0;
... | static int dissect_nbap_RL_Specific_E_DCH_Information_Item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
conversation_t *conversation;
umts_fp_conversation_info_t *umts_fp_conversation_info;
nbap_edch_port_info_t *old_info =... | static int dissect_nbap_RL_Specific_E_DCH_Information_Item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
conversation_t *conversation;
umts_fp_conversation_info_t *umts_fp_conversation_info = NULL;
nbap_edch_port_info_t *old... | static int dissect_nbap_RL_Specific_E_DCH_Information_Item(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
conversation_t *conversation;
- umts_fp_conversation_info_t *umts_fp_conversation_info;
+ umts_fp_conversation_info_t *umts_fp_conversation_info = NULL;
nbap_edch_p... |
CVE-2015-8712 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-umts_fp.c | dissect_hsdsch_channel_info | static void dissect_hsdsch_channel_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, struct fp_info *p_fp_info) {
gboolean is_control_frame;
guint header_length = 0;
guint16 header_crc = 0;
proto_item * header_crc_pi = NULL;
header_crc = tvb_get_bits8(tvb, 0, 7);
header_crc_p... | static void dissect_hsdsch_channel_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, struct fp_info *p_fp_info) {
gboolean is_control_frame;
guint header_length = 0;
guint16 header_crc = 0;
proto_item * header_crc_pi = NULL;
header_crc = tvb_get_bits8(tvb, 0, 7);
header_crc_p... | static void dissect_hsdsch_channel_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, struct fp_info *p_fp_info) {
gboolean is_control_frame;
guint header_length = 0;
guint16 header_crc = 0;
proto_item * header_crc_pi = NULL;
header_crc = tvb_get_bits8(tvb, 0, 7);
header_crc_p... | static void dissect_hsdsch_channel_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, struct fp_info *p_fp_info) {
gboolean is_control_frame;
guint header_length = 0;
guint16 header_crc = 0;
proto_item * header_crc_pi = NULL;
header_crc = tvb_get_bits8(tvb, 0, 7);
header_crc_p... | static void dissect_hsdsch_channel_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, struct fp_info *p_fp_info) {
header_crc = tvb_get_bits8(tvb, 0, 7);
header_crc_pi = proto_tree_add_item(tree, hf_fp_header_crc, tvb, offset, 1, ENC_BIG_ENDIAN);
is_control_frame = tvb_get_guint8(tvb, off... | static void dissect_hsdsch_channel_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, struct fp_info *p_fp_info) {
header_crc = tvb_get_bits8(tvb, 0, 7);
header_crc_pi = proto_tree_add_item(tree, hf_fp_header_crc, tvb, offset, 1, ENC_BIG_ENDIAN);
is_control_frame = tvb_get_guint8(tvb, off... | static void dissect_hsdsch_channel_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, struct fp_info *p_fp_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
header_crc = tvb_get_bits8(tvb, 0, 7);
header_crc_pi = proto_tree_add_item(tree, hf_fp_header_crc, tvb, offset, 1, ENC_BIG_ENDIA... | static void dissect_hsdsch_channel_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, struct fp_info *p_fp_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
header_crc = tvb_get_bits8(tvb, 0, 7);
header_crc_pi = proto_tree_add_item(tree, hf_fp_header_crc, tvb, offset, 1, ENC_BIG_ENDIA... | static void dissect_hsdsch_channel_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset, struct fp_info *p_fp_info) {
header_crc = tvb_get_bits8(tvb, 0, 7);
header_crc_pi = proto_tree_add_item(tree, hf_fp_header_crc, tvb, offset, 1, ENC_BIG_ENDIAN);
is_control_frame = tvb_get_guint8(tvb,... |
CVE-2015-8714 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-dcom.c | dissect_dcom_OBJREF | int dissect_dcom_OBJREF(tvbuff_t *tvb, gint offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep, int hfindex, dcom_interface_t **interf) {
guint32 u32Signature;
guint32 u32Flags;
e_guid_t iid;
e_guid_t clsid;
proto_item *sub_item;
proto_tree *sub_tree;
guint32 u32SubS... | int dissect_dcom_OBJREF(tvbuff_t *tvb, gint offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep, int hfindex, dcom_interface_t **interf) {
guint32 u32Signature;
guint32 u32Flags;
e_guid_t iid;
e_guid_t clsid;
proto_item *sub_item;
proto_tree *sub_tree;
guint32 u32SubS... | int dissect_dcom_OBJREF(tvbuff_t *tvb, gint offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, int hfindex, dcom_interface_t **interf) {
guint32 u32Signature;
guint32 u32Flags;
e_uuid_t iid;
e_uuid_t clsid;
proto_item *sub_item;
proto_tree *sub_tree;
guint32 u32SubStart;
guint32... | int dissect_dcom_OBJREF(tvbuff_t *tvb, gint offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, int hfindex, dcom_interface_t **interf) {
guint32 u32Signature;
guint32 u32Flags;
e_uuid_t iid;
e_uuid_t clsid;
proto_item *sub_item;
proto_tree *sub_tree;
guint32 u32SubStart;
guint32... | int dissect_dcom_OBJREF(tvbuff_t *tvb, gint offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep, int hfindex, dcom_interface_t **interf) {
memset(&ipid, 0, sizeof(ipid));
sub_item = proto_tree_add_item(tree, hf_dcom_objref, tvb, offset, 0, ENC_NA);
switch(u32Flags) {
case(0x1):
... | int dissect_dcom_OBJREF(tvbuff_t *tvb, gint offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep, int hfindex, dcom_interface_t **interf) {
memset(&ipid, 0, sizeof(ipid));
memset(ip, 0, sizeof(ip));
sub_item = proto_tree_add_item(tree, hf_dcom_objref, tvb, offset, 0, ENC_NA);
swit... | int dissect_dcom_OBJREF(tvbuff_t *tvb, gint offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, int hfindex, dcom_interface_t **interf) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
memset(&ipid, 0, sizeof(ipid));
sub_item = proto_tree_add_item(tree, hf_dcom_objref, tvb, offset, 0, ENC_NA);
/*... | int dissect_dcom_OBJREF(tvbuff_t *tvb, gint offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, int hfindex, dcom_interface_t **interf) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
memset(&ipid, 0, sizeof(ipid));
memset(ip, 0, sizeof(ip));
sub_item = proto_tree_add_item(tree, hf_dcom_objref, ... | int dissect_dcom_OBJREF(tvbuff_t *tvb, gint offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep, int hfindex, dcom_interface_t **interf) {
memset(&ipid, 0, sizeof(ipid));
+ memset(ip, 0, sizeof(ip));
sub_item = proto_tree_add_item(tree, hf_dcom_objref, tvb, offset, 0, ENC_NA);
... |
CVE-2015-8715 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-alljoyn.c | parse_arg | static gint parse_arg(tvbuff_t *tvb, packet_info *pinfo, proto_item *header_item, guint encoding, gint offset, proto_tree *field_tree, gboolean is_reply_to, guint8 type_id, guint8 field_code,
guint8 **signature, guint8 *signature_length, gint field_starting_offset) {
gint length;
gint padd... | static gint parse_arg(tvbuff_t *tvb, packet_info *pinfo, proto_item *header_item, guint encoding, gint offset, proto_tree *field_tree, gboolean is_reply_to, guint8 type_id, guint8 field_code,
guint8 **signature, guint8 *signature_length, gint field_starting_offset) {
gint length;
gint padd... | static gint parse_arg(tvbuff_t *tvb, packet_info *pinfo, proto_item *header_item, guint encoding, gint offset, proto_tree *field_tree, gboolean is_reply_to, guint8 type_id, guint8 field_code,
guint8 **signature, guint8 *signature_length) {
gint length;
const gchar *header_type_name = NULL;... | static gint parse_arg(tvbuff_t *tvb, packet_info *pinfo, proto_item *header_item, guint encoding, gint offset, proto_tree *field_tree, gboolean is_reply_to, guint8 type_id, guint8 field_code,
guint8 **signature, guint8 *signature_length) {
gint length;
gint saved_offset = offset;
const... | static gint parse_arg(tvbuff_t *tvb, packet_info *pinfo, proto_item *header_item, guint encoding, gint offset, proto_tree *field_tree, gboolean is_reply_to, guint8 type_id, guint8 field_code,
guint8 **signature, guint8 *signature_length, gint field_starting_offset) {
gint padding_start;
co... | static gint parse_arg(tvbuff_t *tvb, packet_info *pinfo, proto_item *header_item, guint encoding, gint offset, proto_tree *field_tree, gboolean is_reply_to, guint8 type_id, guint8 field_code,
guint8 **signature, guint8 *signature_length, gint field_starting_offset) {
gint padding_start;
gi... | static gint parse_arg(tvbuff_t *tvb, packet_info *pinfo, proto_item *header_item, guint encoding, gint offset, proto_tree *field_tree, gboolean is_reply_to, guint8 type_id, guint8 field_code,
guint8 **signature, guint8 *signature_length) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
cons... | static gint parse_arg(tvbuff_t *tvb, packet_info *pinfo, proto_item *header_item, guint encoding, gint offset, proto_tree *field_tree, gboolean is_reply_to, guint8 type_id, guint8 field_code,
guint8 **signature, guint8 *signature_length) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
gint... | static gint parse_arg(tvbuff_t *tvb, packet_info *pinfo, proto_item *header_item, guint encoding, gint offset, proto_tree *field_tree, gboolean is_reply_to, guint8 type_id, guint8 field_code,
guint8 **signature, guint8 *signature_length, gint field_starting_offset) {
gint padding_start;
+ ... |
CVE-2015-8715 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-alljoyn.c | proto_register_AllJoyn | void proto_register_AllJoyn(void) {
static hf_register_info hf[] = {
{
&hf_alljoyn_ns_header, {
"Header", "alljoyn.header", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL
}
}, {
&hf_alljoyn_ns_sender_version, {
"Sender Version", "alljoy... | void proto_register_AllJoyn(void) {
expert_module_t* expert_alljoyn;
static hf_register_info hf[] = {
{
&hf_alljoyn_ns_header, {
"Header", "alljoyn.header", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL
}
}, {
&hf_alljoyn_ns_sender_version, {
... | void proto_register_AllJoyn(void) {
static hf_register_info hf[] = {
{
&hf_alljoyn_ns_header, {
"Header", "alljoyn.header", FT_PROTOCOL, BASE_NONE, NULL, 0x0, NULL, HFILL
}
}, {
&hf_alljoyn_ns_sender_version, {
"Sender Version", "al... | void proto_register_AllJoyn(void) {
expert_module_t* expert_alljoyn;
static hf_register_info hf[] = {
{
&hf_alljoyn_ns_header, {
"Header", "alljoyn.header", FT_PROTOCOL, BASE_NONE, NULL, 0x0, NULL, HFILL
}
}, {
&hf_alljoyn_ns_sender_version, {
... | void proto_register_AllJoyn(void) {
static hf_register_info hf[] = {
{
&hf_alljoyn_ns_header, {
"Header", "alljoyn.header", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL
}
}, {
&hf_alljoyn_ns_sender_version, {
"Sender Version", "alljoy... | void proto_register_AllJoyn(void) {
expert_module_t* expert_alljoyn;
static hf_register_info hf[] = {
{
&hf_alljoyn_ns_header, {
"Header", "alljoyn.header", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL
}
}, {
&hf_alljoyn_ns_sender_version, {
... | void proto_register_AllJoyn(void) {
static hf_register_info hf[] = {
{
&hf_alljoyn_ns_header, {
"Header", "alljoyn.header", FT_PROTOCOL, BASE_NONE, NULL, 0x0, NULL, HFILL
}
}, {
&hf_alljoyn_ns_sender_version, {
"Sender Version", "al... | void proto_register_AllJoyn(void) {
expert_module_t* expert_alljoyn;
static hf_register_info hf[] = {
{
&hf_alljoyn_ns_header, {
"Header", "alljoyn.header", FT_PROTOCOL, BASE_NONE, NULL, 0x0, NULL, HFILL
}
}, {
&hf_alljoyn_ns_sender_version, {
... | void proto_register_AllJoyn(void) {
+ expert_module_t* expert_alljoyn;
static hf_register_info hf[] = {
{
&hf_alljoyn_ns_header, {
"Header", "alljoyn.header", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL
}
}, {
&hf_alljoyn_ns_sender_versio... |
CVE-2015-8716 | Wireshark | https://github.com/wireshark/wireshark | asn1/t38/packet-t38-template.c | init_t38_info_conv | static void init_t38_info_conv(packet_info *pinfo) {
t38_info_current++;
if (t38_info_current==MAX_T38_MESSAGES__PACKET) {
t38_info_current=0;
}
t38_info = &t38_info_arr[t38_info_current];
t38_info->seq_num = 0;
t38_info->type_msg = 0;
t38_info->data_value = 0;
t38_info->t30ind_v... | static void init_t38_info_conv(packet_info *pinfo) {
t38_info_current++;
if (t38_info_current==MAX_T38_MESSAGES__PACKET) {
t38_info_current=0;
}
t38_info = &t38_info_arr[t38_info_current];
t38_info->seq_num = 0;
t38_info->type_msg = 0;
t38_info->data_value = 0;
t38_info->t30ind_v... | static void init_t38_info_conv(packet_info *pinfo) {
t38_info_current++;
if (t38_info_current==MAX_T38_MESSAGES__PACKET) {
t38_info_current=0;
}
t38_info = &t38_info_arr[t38_info_current];
t38_info->seq_num = 0;
t38_info->type_msg = 0;
t38_info->data_value = 0;
t38_info->t30ind_v... | static void init_t38_info_conv(packet_info *pinfo) {
t38_info_current++;
if (t38_info_current==MAX_T38_MESSAGES__PACKET) {
t38_info_current=0;
}
t38_info = &t38_info_arr[t38_info_current];
t38_info->seq_num = 0;
t38_info->type_msg = 0;
t38_info->data_value = 0;
t38_info->t30ind_v... | static void init_t38_info_conv(packet_info *pinfo) {
p_t38_packet_conv = (t38_conv *)p_get_proto_data(wmem_file_scope(), pinfo, proto_t38, 0);
if (!p_conv) {
conversation_set_dissector(p_conv, t38_udp_handle);
}
if (!p_t38_packet_conv) {
p_t38_conv = (t38_conv *)conversation_get_proto_da... | static void init_t38_info_conv(packet_info *pinfo) {
p_t38_packet_conv = (t38_conv *)p_get_proto_data(wmem_file_scope(), pinfo, proto_t38, 0);
if (!p_conv) {
conversation_set_dissector(p_conv, t38_udp_handle);
}
p_t38_conv = (t38_conv *)conversation_get_proto_data(p_conv, proto_t38);
if (!p_... | static void init_t38_info_conv(packet_info *pinfo) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
p_t38_packet_conv = (t38_conv *)p_get_proto_data(wmem_file_scope(), pinfo, proto_t38, 0);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!p_conv) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | static void init_t38_info_conv(packet_info *pinfo) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
p_t38_packet_conv = (t38_conv *)p_get_proto_data(wmem_file_scope(), pinfo, proto_t38, 0);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!p_conv) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | static void init_t38_info_conv(packet_info *pinfo) {
p_t38_packet_conv = (t38_conv *)p_get_proto_data(wmem_file_scope(), pinfo, proto_t38, 0);
if (!p_conv) {
conversation_set_dissector(p_conv, t38_udp_handle);
}
+ p_t38_conv = (t38_conv *)conversation_get_proto_data(p_conv, proto_t38);
+ ... |
CVE-2015-8716 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-t38.c | init_t38_info_conv | static void init_t38_info_conv(packet_info *pinfo) {
t38_info_current++;
if (t38_info_current==MAX_T38_MESSAGES__PACKET) {
t38_info_current=0;
}
t38_info = &t38_info_arr[t38_info_current];
t38_info->seq_num = 0;
t38_info->type_msg = 0;
t38_info->data_value = 0;
t38_info->t30ind_v... | static void init_t38_info_conv(packet_info *pinfo) {
t38_info_current++;
if (t38_info_current==MAX_T38_MESSAGES__PACKET) {
t38_info_current=0;
}
t38_info = &t38_info_arr[t38_info_current];
t38_info->seq_num = 0;
t38_info->type_msg = 0;
t38_info->data_value = 0;
t38_info->t30ind_v... | static void init_t38_info_conv(packet_info *pinfo) {
t38_info_current++;
if (t38_info_current==MAX_T38_MESSAGES__PACKET) {
t38_info_current=0;
}
t38_info = &t38_info_arr[t38_info_current];
t38_info->seq_num = 0;
t38_info->type_msg = 0;
t38_info->data_value = 0;
t38_info->t30ind_v... | static void init_t38_info_conv(packet_info *pinfo) {
t38_info_current++;
if (t38_info_current==MAX_T38_MESSAGES__PACKET) {
t38_info_current=0;
}
t38_info = &t38_info_arr[t38_info_current];
t38_info->seq_num = 0;
t38_info->type_msg = 0;
t38_info->data_value = 0;
t38_info->t30ind_v... | static void init_t38_info_conv(packet_info *pinfo) {
p_t38_packet_conv = (t38_conv *)p_get_proto_data(wmem_file_scope(), pinfo, proto_t38, 0);
if (!p_conv) {
conversation_set_dissector(p_conv, t38_udp_handle);
}
if (!p_t38_packet_conv) {
p_t38_conv = (t38_conv *)conversation_get_proto_da... | static void init_t38_info_conv(packet_info *pinfo) {
p_t38_packet_conv = (t38_conv *)p_get_proto_data(wmem_file_scope(), pinfo, proto_t38, 0);
if (!p_conv) {
conversation_set_dissector(p_conv, t38_udp_handle);
}
p_t38_conv = (t38_conv *)conversation_get_proto_data(p_conv, proto_t38);
if (!p_... | static void init_t38_info_conv(packet_info *pinfo) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
p_t38_packet_conv = (t38_conv *)p_get_proto_data(wmem_file_scope(), pinfo, proto_t38, 0);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!p_conv) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | static void init_t38_info_conv(packet_info *pinfo) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
p_t38_packet_conv = (t38_conv *)p_get_proto_data(wmem_file_scope(), pinfo, proto_t38, 0);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!p_conv) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | static void init_t38_info_conv(packet_info *pinfo) {
p_t38_packet_conv = (t38_conv *)p_get_proto_data(wmem_file_scope(), pinfo, proto_t38, 0);
if (!p_conv) {
conversation_set_dissector(p_conv, t38_udp_handle);
}
+ p_t38_conv = (t38_conv *)conversation_get_proto_data(p_conv, proto_t38);
+ ... |
CVE-2015-8717 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-sdp.c | dissect_sdp | static void dissect_sdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
proto_tree *sdp_tree;
proto_item *ti, *sub_ti;
gint offset = 0, next_offset, n, i;
int linelen;
gboolean in_media_description;
guchar type, delim;
int datalen, tokenoffset, hf = -1;
char *string;
transport... | static void dissect_sdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
proto_tree *sdp_tree;
proto_item *ti, *sub_ti;
gint offset = 0, next_offset, n, i;
int linelen;
gboolean in_media_description;
guchar type, delim;
int datalen, tokenoffset, hf = -1;
char *string;
transport... | static void dissect_sdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
proto_tree *sdp_tree;
proto_item *ti, *sub_ti;
gint offset = 0, next_offset, n, i;
int linelen;
gboolean in_media_description;
guchar type, delim;
int datalen, tokenoffset, hf = -1;
char *string;
transport... | static void dissect_sdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
proto_tree *sdp_tree;
proto_item *ti, *sub_ti;
gint offset = 0, next_offset, n, i;
int linelen;
gboolean in_media_description;
guchar type, delim;
int datalen, tokenoffset, hf = -1;
char *string;
transport... | static void dissect_sdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
gint offset = 0, next_offset, n, i;
transport_info_t* transport_info = NULL;
struct srtp_info *srtp_info = NULL;
if (!pinfo->fd->flags.visited) {
transport_info = (transport_info_t*)wmem_tree_lookup32( sdp_transport_r... | static void dissect_sdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
gint offset = 0, next_offset, n, i;
transport_info_t* transport_info = NULL;
struct srtp_info *srtp_info = NULL;
if (!pinfo->fd->flags.visited) {
transport_info = (transport_info_t*)wmem_tree_lookup32( sdp_transport_r... | static void dissect_sdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
gint offset = 0, next_offset, n, i;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
transport_info_t* transport_info = NULL;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
st... | static void dissect_sdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
gint offset = 0, next_offset, n, i;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
transport_info_t* transport_info = NULL;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
st... | static void dissect_sdp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
gint offset = 0, next_offset, n, i;
transport_info_t* transport_info = NULL;
struct srtp_info *srtp_info = NULL;
if (!pinfo->fd->flags.visited) {
transport_info = (transport_info_t*)wmem_tree_lookup32( sdp_trans... |
CVE-2015-8718 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-nlm.c | nlm_register_unmatched_res | static void nlm_register_unmatched_res(packet_info *pinfo, tvbuff_t *tvb, int offset) {
nlm_msg_res_unmatched_data umd;
nlm_msg_res_unmatched_data *old_umd;
umd.cookie_len=tvb_get_ntohl(tvb, offset);
umd.cookie=tvb_get_ptr(tvb, offset+4, -1);
old_umd=(nlm_msg_res_unmatched_data *)g_hash_table_lookup... | static void nlm_register_unmatched_res(packet_info *pinfo, tvbuff_t *tvb, int offset) {
nlm_msg_res_unmatched_data umd;
nlm_msg_res_unmatched_data *old_umd;
umd.cookie_len=tvb_get_ntohl(tvb, offset);
umd.cookie=tvb_get_ptr(tvb, offset+4, -1);
old_umd=(nlm_msg_res_unmatched_data *)g_hash_table_lookup... | static void nlm_register_unmatched_res(packet_info *pinfo, tvbuff_t *tvb, int offset) {
nlm_msg_res_unmatched_data umd;
nlm_msg_res_unmatched_data *old_umd;
umd.cookie_len=tvb_get_ntohl(tvb, offset);
umd.cookie=tvb_get_ptr(tvb, offset+4, -1);
old_umd=g_hash_table_lookup(nlm_msg_res_unmatched, (gcons... | static void nlm_register_unmatched_res(packet_info *pinfo, tvbuff_t *tvb, int offset) {
nlm_msg_res_unmatched_data umd;
nlm_msg_res_unmatched_data *old_umd;
umd.cookie_len=tvb_get_ntohl(tvb, offset);
umd.cookie=tvb_get_ptr(tvb, offset+4, -1);
old_umd=g_hash_table_lookup(nlm_msg_res_unmatched, (gcons... | static void nlm_register_unmatched_res(packet_info *pinfo, tvbuff_t *tvb, int offset) {
old_umd=(nlm_msg_res_unmatched_data *)g_hash_table_lookup(nlm_msg_res_unmatched, (gconstpointer)&umd);
if(old_umd) {
nlm_msg_res_matched_data *md;
md=(nlm_msg_res_matched_data *)g_malloc(sizeof(nlm_msg_res_ma... | static void nlm_register_unmatched_res(packet_info *pinfo, tvbuff_t *tvb, int offset) {
old_umd=(nlm_msg_res_unmatched_data *)g_hash_table_lookup(nlm_msg_res_unmatched, (gconstpointer)&umd);
if(old_umd) {
nlm_msg_res_matched_data *md_req, *md_rep;
md_req=(nlm_msg_res_matched_data *)g_malloc(size... | static void nlm_register_unmatched_res(packet_info *pinfo, tvbuff_t *tvb, int offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
old_umd=g_hash_table_lookup(nlm_msg_res_unmatched, (gconstpointer)&umd);
if(old_umd) {
nlm_msg_res_matched_data *md;
md=g_malloc(sizeof(nlm_msg_res_matched_da... | static void nlm_register_unmatched_res(packet_info *pinfo, tvbuff_t *tvb, int offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
old_umd=g_hash_table_lookup(nlm_msg_res_unmatched, (gconstpointer)&umd);
if(old_umd) {
nlm_msg_res_matched_data *md_req, *md_rep;
md_req=(nlm_msg_res_matched_... | static void nlm_register_unmatched_res(packet_info *pinfo, tvbuff_t *tvb, int offset) {
old_umd=(nlm_msg_res_unmatched_data *)g_hash_table_lookup(nlm_msg_res_unmatched, (gconstpointer)&umd);
if(old_umd) {
- nlm_msg_res_matched_data *md;
- md=(nlm_msg_res_matched_data *)g_malloc(sizeof(nlm_msg_r... |
CVE-2015-8719 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-dns.c | dissect_dns_answer | static int dissect_dns_answer(tvbuff_t *tvb, int offsetx, int dns_data_offset, column_info *cinfo, proto_tree *dns_tree, packet_info *pinfo, gboolean is_mdns) {
int len;
const guchar *name;
gchar *name_out;
int name_len;
int dns_type;
int dns_class;
int flush;
const char *class_name;
... | static int dissect_dns_answer(tvbuff_t *tvb, int offsetx, int dns_data_offset, column_info *cinfo, proto_tree *dns_tree, packet_info *pinfo, gboolean is_mdns) {
int len;
const guchar *name;
gchar *name_out;
int name_len;
int dns_type;
int dns_class;
int flush;
const char *class_name;
... | static int dissect_dns_answer(tvbuff_t *tvb, int offsetx, int dns_data_offset, column_info *cinfo, proto_tree *dns_tree, packet_info *pinfo, gboolean is_mdns) {
int len;
const guchar *name;
gchar *name_out;
int name_len;
int dns_type;
int dns_class;
int flush;
const char *class_name;
... | static int dissect_dns_answer(tvbuff_t *tvb, int offsetx, int dns_data_offset, column_info *cinfo, proto_tree *dns_tree, packet_info *pinfo, gboolean is_mdns) {
int len;
const guchar *name;
gchar *name_out;
int name_len;
int dns_type;
int dns_class;
int flush;
const char *class_name;
... | static int dissect_dns_answer(tvbuff_t *tvb, int offsetx, int dns_data_offset, column_info *cinfo, proto_tree *dns_tree, packet_info *pinfo, gboolean is_mdns) {
proto_tree *rr_tree = NULL;
proto_item *trr = NULL;
data_start = data_offset = offsetx;
cur_offset = offsetx;
len = get_dns_name_type_class... | static int dissect_dns_answer(tvbuff_t *tvb, int offsetx, int dns_data_offset, column_info *cinfo, proto_tree *dns_tree, packet_info *pinfo, gboolean is_mdns) {
proto_tree *rr_tree = NULL;
proto_item *trr = NULL;
data_start = data_offset = offsetx;
cur_offset = offsetx;
len = get_dns_name_type_class... | static int dissect_dns_answer(tvbuff_t *tvb, int offsetx, int dns_data_offset, column_info *cinfo, proto_tree *dns_tree, packet_info *pinfo, gboolean is_mdns) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
proto_tree *rr_tree = NULL;
proto_item *trr = NULL;
data_start = data_offset = offsetx;
cur_o... | static int dissect_dns_answer(tvbuff_t *tvb, int offsetx, int dns_data_offset, column_info *cinfo, proto_tree *dns_tree, packet_info *pinfo, gboolean is_mdns) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
proto_tree *rr_tree = NULL;
proto_item *trr = NULL;
data_start = data_offset = offsetx;
cur_o... | static int dissect_dns_answer(tvbuff_t *tvb, int offsetx, int dns_data_offset, column_info *cinfo, proto_tree *dns_tree, packet_info *pinfo, gboolean is_mdns) {
proto_tree *rr_tree = NULL;
proto_item *trr = NULL;
data_start = data_offset = offsetx;
cur_offset = offsetx;
len = get_dns_name_type... |
CVE-2015-8723 | Wireshark | https://github.com/wireshark/wireshark | epan/crypt/airpdcap.c | AirPDcapPacketProcess | T AirPDcapPacketProcess( PAIRPDCAP_CONTEXT ctx, const guint8 *data, const guint mac_header_len, const guint tot_len, UCHAR *decrypt_data, guint *decrypt_len, PAIRPDCAP_KEY_ITEM key,
gboolean scanHandshake) {
const UCHAR *addr;
AIRPDCAP_SEC_ASSOCIATION_ID id;
UCHAR tmp_data[AIRPDCAP_... | T AirPDcapPacketProcess( PAIRPDCAP_CONTEXT ctx, const guint8 *data, const guint mac_header_len, const guint tot_len, UCHAR *decrypt_data, guint *decrypt_len, PAIRPDCAP_KEY_ITEM key,
gboolean scanHandshake) {
const UCHAR *addr;
AIRPDCAP_SEC_ASSOCIATION_ID id;
UCHAR tmp_data[AIRPDCAP_... | T AirPDcapPacketProcess( PAIRPDCAP_CONTEXT ctx, const guint8 *data, const guint mac_header_len, const guint tot_len, UCHAR *decrypt_data, guint *decrypt_len, PAIRPDCAP_KEY_ITEM key,
gboolean mngHandshake, gboolean mngDecrypt) {
const UCHAR *address;
AIRPDCAP_SEC_ASSOCIATION_ID id;
P... | T AirPDcapPacketProcess( PAIRPDCAP_CONTEXT ctx, const guint8 *data, const guint mac_header_len, const guint tot_len, UCHAR *decrypt_data, guint *decrypt_len, PAIRPDCAP_KEY_ITEM key,
gboolean mngHandshake, gboolean mngDecrypt) {
const UCHAR *address;
AIRPDCAP_SEC_ASSOCIATION_ID id;
P... | T AirPDcapPacketProcess( PAIRPDCAP_CONTEXT ctx, const guint8 *data, const guint mac_header_len, const guint tot_len, UCHAR *decrypt_data, guint *decrypt_len, PAIRPDCAP_KEY_ITEM key,
gboolean scanHandshake) {
if (ctx==NULL) {
return AIRPDCAP_RET_REQ_DATA;
}
if (data==NULL || ... | T AirPDcapPacketProcess( PAIRPDCAP_CONTEXT ctx, const guint8 *data, const guint mac_header_len, const guint tot_len, UCHAR *decrypt_data, guint *decrypt_len, PAIRPDCAP_KEY_ITEM key,
gboolean scanHandshake) {
if (ctx==NULL) {
return AIRPDCAP_RET_REQ_DATA;
}
if (data==NULL || ... | T AirPDcapPacketProcess( PAIRPDCAP_CONTEXT ctx, const guint8 *data, const guint mac_header_len, const guint tot_len, UCHAR *decrypt_data, guint *decrypt_len, PAIRPDCAP_KEY_ITEM key,
gboolean mngHandshake, gboolean mngDecrypt) {
const UCHAR *address;
/* PLACEHOLDER: DO NOT DELETE THIS CO... | T AirPDcapPacketProcess( PAIRPDCAP_CONTEXT ctx, const guint8 *data, const guint mac_header_len, const guint tot_len, UCHAR *decrypt_data, guint *decrypt_len, PAIRPDCAP_KEY_ITEM key,
gboolean mngHandshake, gboolean mngDecrypt) {
const UCHAR *address;
/* PLACEHOLDER: DO NOT DELETE THIS CO... | T AirPDcapPacketProcess( PAIRPDCAP_CONTEXT ctx, const guint8 *data, const guint mac_header_len, const guint tot_len, UCHAR *decrypt_data, guint *decrypt_len, PAIRPDCAP_KEY_ITEM key,
gboolean scanHandshake) {
if (ctx==NULL) {
return AIRPDCAP_RET_REQ_DATA;
}
if (data==NU... |
CVE-2015-8724 | Wireshark | https://github.com/wireshark/wireshark | epan/crypt/airpdcap.c | AirPDcapDecryptWPABroadcastKey | static T AirPDcapDecryptWPABroadcastKey(const EAPOL_RSN_KEY *pEAPKey, guint8 *decryption_key, PAIRPDCAP_SEC_ASSOCIATION sa, gboolean group_hshake) {
guint8 key_version;
guint8 *szEncryptedKey;
guint16 key_bytes_len = 0;
guint16 key_len;
static AIRPDCAP_KEY_ITEM dummy_key;
AIRPDCAP_SEC_ASSOCIATIO... | static T AirPDcapDecryptWPABroadcastKey(const EAPOL_RSN_KEY *pEAPKey, guint8 *decryption_key, PAIRPDCAP_SEC_ASSOCIATION sa, gboolean group_hshake) {
guint8 key_version;
guint8 *szEncryptedKey;
guint16 key_bytes_len = 0;
guint16 key_len;
static AIRPDCAP_KEY_ITEM dummy_key;
AIRPDCAP_SEC_ASSOCIATIO... | static void AirPDcapDecryptWPABroadcastKey(const EAPOL_RSN_KEY *pEAPKey, guint8 *decryption_key, PAIRPDCAP_SEC_ASSOCIATION sa, gboolean group_hshake) {
guint8 new_key[32];
guint8 key_version;
guint8 *szEncryptedKey;
guint16 key_bytes_len = 0;
guint16 key_len = 0;
static AIRPDCAP_KEY_ITEM dummy_k... | static void AirPDcapDecryptWPABroadcastKey(const EAPOL_RSN_KEY *pEAPKey, guint8 *decryption_key, PAIRPDCAP_SEC_ASSOCIATION sa, gboolean group_hshake) {
guint8 new_key[32];
guint8 key_version;
guint8 *szEncryptedKey;
guint16 key_bytes_len = 0;
guint16 key_len = 0;
static AIRPDCAP_KEY_ITEM dummy_k... | static T AirPDcapDecryptWPABroadcastKey(const EAPOL_RSN_KEY *pEAPKey, guint8 *decryption_key, PAIRPDCAP_SEC_ASSOCIATION sa, gboolean group_hshake) {
guint16 key_bytes_len = 0;
key_version = AIRPDCAP_EAP_KEY_DESCR_VER(pEAPKey->key_information[1]);
if (key_version == AIRPDCAP_WPA_KEY_VER_NOT_CCMP) {
k... | static T AirPDcapDecryptWPABroadcastKey(const EAPOL_RSN_KEY *pEAPKey, guint8 *decryption_key, PAIRPDCAP_SEC_ASSOCIATION sa, gboolean group_hshake) {
guint16 key_bytes_len = 0;
key_version = AIRPDCAP_EAP_KEY_DESCR_VER(pEAPKey->key_information[1]);
if (key_version == AIRPDCAP_WPA_KEY_VER_NOT_CCMP) {
k... | static void AirPDcapDecryptWPABroadcastKey(const EAPOL_RSN_KEY *pEAPKey, guint8 *decryption_key, PAIRPDCAP_SEC_ASSOCIATION sa, gboolean group_hshake) {
guint8 new_key[32];
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint16 key_bytes_len = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
key_versi... | static void AirPDcapDecryptWPABroadcastKey(const EAPOL_RSN_KEY *pEAPKey, guint8 *decryption_key, PAIRPDCAP_SEC_ASSOCIATION sa, gboolean group_hshake) {
guint8 new_key[32];
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint16 key_bytes_len = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
key_versi... | static T AirPDcapDecryptWPABroadcastKey(const EAPOL_RSN_KEY *pEAPKey, guint8 *decryption_key, PAIRPDCAP_SEC_ASSOCIATION sa, gboolean group_hshake) {
guint16 key_bytes_len = 0;
key_version = AIRPDCAP_EAP_KEY_DESCR_VER(pEAPKey->key_information[1]);
if (key_version == AIRPDCAP_WPA_KEY_VER_NOT_CCMP) {
... |
CVE-2015-8725 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-diameter.c | dissect_diameter_base_framed_ipv6_prefix | static int dissect_diameter_base_framed_ipv6_prefix(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) {
diam_sub_dis_t *diam_sub_dis = (diam_sub_dis_t*)data;
guint8 prefix_len, prefix_len_bytes;
proto_tree_add_item(tree, hf_framed_ipv6_prefix_reserved, tvb, 0, 1, ENC_BIG_ENDIAN);
proto_tr... | static int dissect_diameter_base_framed_ipv6_prefix(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) {
diam_sub_dis_t *diam_sub_dis = (diam_sub_dis_t*)data;
guint8 prefix_len, prefix_len_bytes;
proto_item *pi;
proto_tree_add_item(tree, hf_framed_ipv6_prefix_reserved, tvb, 0, 1, ENC_BIG_E... | static int dissect_diameter_base_framed_ipv6_prefix(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
guint8 prefix_len, prefix_len_bytes;
proto_tree_add_item(tree, hf_framed_ipv6_prefix_reserved, tvb, 0, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hf_framed_ipv6_prefix_length, tvb, 1, 1, ENC_BIG_END... | static int dissect_diameter_base_framed_ipv6_prefix(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
guint8 prefix_len, prefix_len_bytes;
proto_item *pi;
proto_tree_add_item(tree, hf_framed_ipv6_prefix_reserved, tvb, 0, 1, ENC_BIG_ENDIAN);
pi = proto_tree_add_item(tree, hf_framed_ipv6_prefix_lengt... | static int dissect_diameter_base_framed_ipv6_prefix(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) {
guint8 prefix_len, prefix_len_bytes;
proto_tree_add_item(tree, hf_framed_ipv6_prefix_reserved, tvb, 0, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hf_framed_ipv6_prefix_length, tvb, 1, 1,... | static int dissect_diameter_base_framed_ipv6_prefix(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) {
guint8 prefix_len, prefix_len_bytes;
proto_item *pi;
proto_tree_add_item(tree, hf_framed_ipv6_prefix_reserved, tvb, 0, 1, ENC_BIG_ENDIAN);
pi = proto_tree_add_item(tree, hf_framed_ipv6_... | static int dissect_diameter_base_framed_ipv6_prefix(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
guint8 prefix_len, prefix_len_bytes;
proto_tree_add_item(tree, hf_framed_ipv6_prefix_reserved, tvb, 0, 1, ENC_BIG_ENDIAN);
proto_tree_add_item(tree, hf_framed_ipv6_prefix_length, tvb, 1, 1, ENC_BIG_END... | static int dissect_diameter_base_framed_ipv6_prefix(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
guint8 prefix_len, prefix_len_bytes;
proto_item *pi;
proto_tree_add_item(tree, hf_framed_ipv6_prefix_reserved, tvb, 0, 1, ENC_BIG_ENDIAN);
pi = proto_tree_add_item(tree, hf_framed_ipv6_prefix_lengt... | static int dissect_diameter_base_framed_ipv6_prefix(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data) {
guint8 prefix_len, prefix_len_bytes;
+ proto_item *pi;
proto_tree_add_item(tree, hf_framed_ipv6_prefix_reserved, tvb, 0, 1, ENC_BIG_ENDIAN);
- proto_tree_add_item(tree, hf_framed_ipv6_... |
CVE-2015-8726 | Wireshark | https://github.com/wireshark/wireshark | wiretap/vwr.c | getRate | static float getRate( guint8 plcpType, guint8 mcsIndex, guint16 rflags, guint8 nss ) {
float canonical_rate_legacy[] = {1.0f, 2.0f, 5.5f, 11.0f, 6.0f, 9.0f, 12.0f, 18.0f, 24.0f, 36.0f, 48.0f, 54.0f};
int canonical_ndbps_20_ht[] = {26, 52, 78, 104, 156, 208, 234, 260};
int canonical_ndbps_40_ht[] = {54, 108,... | static float getRate( guint8 plcpType, guint8 mcsIndex, guint16 rflags, guint8 nss ) {
float canonical_rate_legacy[] = {1.0f, 2.0f, 5.5f, 11.0f, 6.0f, 9.0f, 12.0f, 18.0f, 24.0f, 36.0f, 48.0f, 54.0f};
int canonical_ndbps_20_ht[] = {26, 52, 78, 104, 156, 208, 234, 260};
int canonical_ndbps_40_ht[] = {54, 108,... | static float getRate( guint8 plcpType, guint8 mcsIndex, guint16 rflags, guint8 nss ) {
float canonical_rate_legacy[] = {1.0f, 2.0f, 5.5f, 11.0f, 6.0f, 9.0f, 12.0f, 18.0f, 24.0f, 36.0f, 48.0f, 54.0f};
int canonical_ndbps_20_ht[] = {26, 52, 78, 104, 156, 208, 234, 260};
int canonical_ndbps_40_ht[] = {54, 108,... | static float getRate( guint8 plcpType, guint8 mcsIndex, guint16 rflags, guint8 nss ) {
float canonical_rate_legacy[] = {1.0f, 2.0f, 5.5f, 11.0f, 6.0f, 9.0f, 12.0f, 18.0f, 24.0f, 36.0f, 48.0f, 54.0f};
int canonical_ndbps_20_ht[] = {26, 52, 78, 104, 156, 208, 234, 260};
int canonical_ndbps_40_ht[] = {54, 108,... | static float getRate( guint8 plcpType, guint8 mcsIndex, guint16 rflags, guint8 nss ) {
float canonical_rate_legacy[] = {1.0f, 2.0f, 5.5f, 11.0f, 6.0f, 9.0f, 12.0f, 18.0f, 24.0f, 36.0f, 48.0f, 54.0f};
if (plcpType == 0) {
bitrate = canonical_rate_legacy[mcsIndex];
} else if (plcpType == 1 || plcpType... | static float getRate( guint8 plcpType, guint8 mcsIndex, guint16 rflags, guint8 nss ) {
float canonical_rate_legacy[] = {1.0f, 2.0f, 5.5f, 11.0f, 6.0f, 9.0f, 12.0f, 18.0f, 24.0f, 36.0f, 48.0f, 54.0f};
if (plcpType == 0) {
if (mcsIndex < G_N_ELEMENTS(canonical_rate_legacy)) {
bitrate = canonic... | static float getRate( guint8 plcpType, guint8 mcsIndex, guint16 rflags, guint8 nss ) {
float canonical_rate_legacy[] = {1.0f, 2.0f, 5.5f, 11.0f, 6.0f, 9.0f, 12.0f, 18.0f, 24.0f, 36.0f, 48.0f, 54.0f};
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (plcpType == 0) {
bitrate = canonical_rate_legacy[m... | static float getRate( guint8 plcpType, guint8 mcsIndex, guint16 rflags, guint8 nss ) {
float canonical_rate_legacy[] = {1.0f, 2.0f, 5.5f, 11.0f, 6.0f, 9.0f, 12.0f, 18.0f, 24.0f, 36.0f, 48.0f, 54.0f};
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (plcpType == 0) {
if (mcsIndex < G_N_ELEMENTS(canon... | static float getRate( guint8 plcpType, guint8 mcsIndex, guint16 rflags, guint8 nss ) {
float canonical_rate_legacy[] = {1.0f, 2.0f, 5.5f, 11.0f, 6.0f, 9.0f, 12.0f, 18.0f, 24.0f, 36.0f, 48.0f, 54.0f};
if (plcpType == 0) {
- bitrate = canonical_rate_legacy[mcsIndex];
+ if (mcsIndex < G_N_ELEMENTS... |
CVE-2015-8729 | Wireshark | https://github.com/wireshark/wireshark | wiretap/ascendtext.c | ascend_seek | static gint64 ascend_seek(wtap *wth, int *err, gchar **err_info) {
int byte;
gint64 date_off = -1, cur_off, packet_off;
size_t string_level[ASCEND_MAGIC_STRGS];
guint string_i = 0, type = 0;
guint excessive_read_count = 262144;
memset(&string_level, 0, sizeof(string_level));
while (((byte = ... | static gint64 ascend_seek(wtap *wth, int *err, gchar **err_info) {
int byte;
gint64 date_off = -1, cur_off, packet_off;
size_t string_level[ASCEND_MAGIC_STRGS];
guint string_i = 0, type = 0;
guint excessive_read_count = 262144;
memset(&string_level, 0, sizeof(string_level));
while (((byte = ... | static gint64 ascend_seek(wtap *wth, int *err, gchar **err_info) {
int byte;
gint64 date_off = -1, cur_off, packet_off;
size_t string_level[ASCEND_MAGIC_STRGS];
guint string_i = 0, type = 0;
guint excessive_read_count = 262144;
memset(&string_level, 0, sizeof(string_level));
while (((byte = ... | static gint64 ascend_seek(wtap *wth, int *err, gchar **err_info) {
int byte;
gint64 date_off = -1, cur_off, packet_off;
size_t string_level[ASCEND_MAGIC_STRGS];
guint string_i = 0, type = 0;
guint excessive_read_count = 262144;
memset(&string_level, 0, sizeof(string_level));
while (((byte = ... | static gint64 ascend_seek(wtap *wth, int *err, gchar **err_info) {
while (((byte = file_getc(wth->fh)) != EOF)) {
excessive_read_count--;
if (!excessive_read_count) {
*err = 0;
return -1;
}
for (string_i = 0; string_i < ASCEND_MAGIC_STRGS; string_i++) {
... | static gint64 ascend_seek(wtap *wth, int *err, gchar **err_info) {
while (((byte = file_getc(wth->fh)) != EOF)) {
excessive_read_count--;
if (!excessive_read_count) {
*err = 0;
return -1;
}
for (string_i = 0; string_i < ASCEND_MAGIC_STRGS; string_i++) {
... | static gint64 ascend_seek(wtap *wth, int *err, gchar **err_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
while (((byte = file_getc(wth->fh)) != EOF)) {
excessive_read_count--;
if (!excessive_read_count) {
*err = 0;
return -1;
}
for (string_i = 0; s... | static gint64 ascend_seek(wtap *wth, int *err, gchar **err_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
while (((byte = file_getc(wth->fh)) != EOF)) {
excessive_read_count--;
if (!excessive_read_count) {
*err = 0;
return -1;
}
for (string_i = 0; s... | static gint64 ascend_seek(wtap *wth, int *err, gchar **err_info) {
while (((byte = file_getc(wth->fh)) != EOF)) {
excessive_read_count--;
if (!excessive_read_count) {
*err = 0;
return -1;
}
for (string_i = 0; string_i < ASCEND_MAGIC_STRGS; string_i++) ... |
CVE-2015-8730 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-nbap.c | dissect_nbap_E_DCH_DDI_Value | static int dissect_nbap_E_DCH_DDI_Value(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 0U, 62U, &e_dch_ddi_value, FALSE);
if (actx->pinfo->fd->flags.visited) {
return offset;
}
nbap_edch_... | static int dissect_nbap_E_DCH_DDI_Value(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 0U, 62U, &e_dch_ddi_value, FALSE);
if (actx->pinfo->fd->flags.visited) {
return offset;
}
if(num_ite... | static int dissect_nbap_E_DCH_DDI_Value(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 0U, 62U, &e_dch_ddi_value, FALSE);
if (actx->pinfo->fd->flags.visited) {
return offset;
}
nbap_edch_... | static int dissect_nbap_E_DCH_DDI_Value(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 0U, 62U, &e_dch_ddi_value, FALSE);
if (actx->pinfo->fd->flags.visited) {
return offset;
}
if(num_ite... | static int dissect_nbap_E_DCH_DDI_Value(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 0U, 62U, &e_dch_ddi_value, FALSE);
if (actx->pinfo->fd->flags.visited) {
return offset;
}
nbap_edch_... | static int dissect_nbap_E_DCH_DDI_Value(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 0U, 62U, &e_dch_ddi_value, FALSE);
if (actx->pinfo->fd->flags.visited) {
return offset;
}
if(num_ite... | static int dissect_nbap_E_DCH_DDI_Value(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 0U, 62U, &e_dch_ddi_value, FALSE);
if (actx->pinfo->fd->flags.visited) {
return offset;
}
nbap_edch_... | static int dissect_nbap_E_DCH_DDI_Value(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 0U, 62U, &e_dch_ddi_value, FALSE);
if (actx->pinfo->fd->flags.visited) {
return offset;
}
if(num_ite... | static int dissect_nbap_E_DCH_DDI_Value(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 0U, 62U, &e_dch_ddi_value, FALSE);
if (actx->pinfo->fd->flags.visited) {
return offset;
}
- nbap... |
CVE-2015-8730 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-nbap.c | dissect_nbap_LogicalChannelID | static int dissect_nbap_LogicalChannelID(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 1U, 15U, &logical_channel_id, FALSE);
nbap_edch_channel_info[e_dch_macdflow_id].lchId[num_items-1] = logical_channe... | static int dissect_nbap_LogicalChannelID(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 1U, 15U, &logical_channel_id, FALSE);
if(num_items>0) {
nbap_edch_channel_info[e_dch_macdflow_id].lchId[num... | static int dissect_nbap_LogicalChannelID(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 1U, 15U, &logical_channel_id, FALSE);
nbap_edch_channel_info[e_dch_macdflow_id].lchId[num_items-1] = logical_channe... | static int dissect_nbap_LogicalChannelID(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 1U, 15U, &logical_channel_id, FALSE);
if(num_items>0) {
nbap_edch_channel_info[e_dch_macdflow_id].lchId[num... | static int dissect_nbap_LogicalChannelID(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 1U, 15U, &logical_channel_id, FALSE);
nbap_edch_channel_info[e_dch_macdflow_id].lchId[num_items-1] = logical_channe... | static int dissect_nbap_LogicalChannelID(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 1U, 15U, &logical_channel_id, FALSE);
if(num_items>0) {
nbap_edch_channel_info[e_dch_macdflow_id].lchId[num... | static int dissect_nbap_LogicalChannelID(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 1U, 15U, &logical_channel_id, FALSE);
nbap_edch_channel_info[e_dch_macdflow_id].lchId[num_items-1] = logical_channe... | static int dissect_nbap_LogicalChannelID(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 1U, 15U, &logical_channel_id, FALSE);
if(num_items>0) {
nbap_edch_channel_info[e_dch_macdflow_id].lchId[num... | static int dissect_nbap_LogicalChannelID(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 1U, 15U, &logical_channel_id, FALSE);
- nbap_edch_channel_info[e_dch_macdflow_id].lchId[num_items-1] = logical_cha... |
CVE-2015-8730 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-nbap.c | dissect_nbap_MACdPDU_Size | static int dissect_nbap_MACdPDU_Size(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 1U, 5000U, &MACdPDU_Size, TRUE);
if (actx->pinfo->fd->flags.visited) {
return offset;
}
nbap_edch_chann... | static int dissect_nbap_MACdPDU_Size(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 1U, 5000U, &MACdPDU_Size, TRUE);
if (actx->pinfo->fd->flags.visited) {
return offset;
}
if(num_items>0)... | static int dissect_nbap_MACdPDU_Size(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 1U, 5000U, &MACdPDU_Size, TRUE);
if (actx->pinfo->fd->flags.visited) {
return offset;
}
nbap_edch_chann... | static int dissect_nbap_MACdPDU_Size(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 1U, 5000U, &MACdPDU_Size, TRUE);
if (actx->pinfo->fd->flags.visited) {
return offset;
}
if(num_items>0)... | static int dissect_nbap_MACdPDU_Size(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 1U, 5000U, &MACdPDU_Size, TRUE);
if (actx->pinfo->fd->flags.visited) {
return offset;
}
nbap_edch_chann... | static int dissect_nbap_MACdPDU_Size(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 1U, 5000U, &MACdPDU_Size, TRUE);
if (actx->pinfo->fd->flags.visited) {
return offset;
}
if(num_items>0)... | static int dissect_nbap_MACdPDU_Size(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 1U, 5000U, &MACdPDU_Size, TRUE);
if (actx->pinfo->fd->flags.visited) {
return offset;
}
nbap_edch_chann... | static int dissect_nbap_MACdPDU_Size(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 1U, 5000U, &MACdPDU_Size, TRUE);
if (actx->pinfo->fd->flags.visited) {
return offset;
}
if(num_items>0)... | static int dissect_nbap_MACdPDU_Size(tvbuff_t *tvb, int offset, asn1_ctx_t *actx, proto_tree *tree, int hf_index ) {
offset = dissect_per_constrained_integer(tvb, offset, actx, tree, hf_index, 1U, 5000U, &MACdPDU_Size, TRUE);
if (actx->pinfo->fd->flags.visited) {
return offset;
}
- nbap_edch... |
CVE-2015-8731 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-rsl.c | dissct_rsl_ipaccess_msg | static int dissct_rsl_ipaccess_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) {
guint8 msg_type;
guint32 local_addr = 0;
guint16 local_port = 0;
address src_addr;
msg_type = tvb_get_guint8(tvb, offset) & 0x7f;
offset++;
while (tvb_reported_length_remaining(tvb, offset) ... | static int dissct_rsl_ipaccess_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) {
guint8 msg_type;
guint32 local_addr = 0;
guint16 local_port = 0;
address src_addr;
msg_type = tvb_get_guint8(tvb, offset) & 0x7f;
offset++;
while (tvb_reported_length_remaining(tvb, offset) ... | static int dissct_rsl_ipaccess_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) {
guint8 msg_type;
guint32 local_addr = 0;
guint16 local_port = 0;
address src_addr;
msg_type = tvb_get_guint8(tvb, offset) & 0x7f;
offset++;
while (tvb_reported_length_remaining(tvb, offset) ... | static int dissct_rsl_ipaccess_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) {
guint8 msg_type;
guint32 local_addr = 0;
guint16 local_port = 0;
address src_addr;
msg_type = tvb_get_guint8(tvb, offset) & 0x7f;
offset++;
while (tvb_reported_length_remaining(tvb, offset) ... | static int dissct_rsl_ipaccess_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) {
msg_type = tvb_get_guint8(tvb, offset) & 0x7f;
offset++;
while (tvb_reported_length_remaining(tvb, offset) > 0) {
guint8 tag;
unsigned int len, hlen;
const struct tlv_def *tdef;
... | static int dissct_rsl_ipaccess_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) {
msg_type = tvb_get_guint8(tvb, offset) & 0x7f;
offset++;
while (tvb_reported_length_remaining(tvb, offset) > 0) {
guint8 tag;
unsigned int len, hlen;
const struct tlv_def *tdef;
... | static int dissct_rsl_ipaccess_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
msg_type = tvb_get_guint8(tvb, offset) & 0x7f;
offset++;
while (tvb_reported_length_remaining(tvb, offset) > 0) {
guint8 tag;
unsigned int l... | static int dissct_rsl_ipaccess_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
msg_type = tvb_get_guint8(tvb, offset) & 0x7f;
offset++;
while (tvb_reported_length_remaining(tvb, offset) > 0) {
guint8 tag;
unsigned int l... | static int dissct_rsl_ipaccess_msg(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset) {
msg_type = tvb_get_guint8(tvb, offset) & 0x7f;
offset++;
while (tvb_reported_length_remaining(tvb, offset) > 0) {
guint8 tag;
unsigned int len, hlen;
const struct tlv_def *tde... |
CVE-2015-8733 | Wireshark | https://github.com/wireshark/wireshark | wiretap/ngsniffer.c | ngsniffer_process_record | static int ngsniffer_process_record(wtap *wth, gboolean is_random, guint *padding, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) {
ngsniffer_t *ngsniffer;
char record_type[2];
char record_length[4];
guint16 type, length;
struct frame2_rec frame2;
struct frame4_rec frame4;
... | static int ngsniffer_process_record(wtap *wth, gboolean is_random, guint *padding, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) {
ngsniffer_t *ngsniffer;
char record_type[2];
char record_length[4];
guint type, length;
struct frame2_rec frame2;
struct frame4_rec frame4;
... | static int ngsniffer_process_record(wtap *wth, gboolean is_random, guint *padding, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) {
ngsniffer_t *ngsniffer;
gint64 bytes_read;
char record_type[2];
char record_length[4];
guint16 type, length;
struct frame2_rec frame2;
struc... | static int ngsniffer_process_record(wtap *wth, gboolean is_random, guint *padding, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) {
ngsniffer_t *ngsniffer;
gint64 bytes_read;
char record_type[2];
char record_length[4];
guint type, length;
struct frame2_rec frame2;
struct ... | static int ngsniffer_process_record(wtap *wth, gboolean is_random, guint *padding, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) {
char record_length[4];
guint16 type, length;
struct frame2_rec frame2;
if (!ng_read_bytes_or_eof(wth, record_type, 2, is_random, err, err_info)) {
... | static int ngsniffer_process_record(wtap *wth, gboolean is_random, guint *padding, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) {
char record_length[4];
guint type, length;
struct frame2_rec frame2;
if (!ng_read_bytes_or_eof(wth, record_type, 2, is_random, err, err_info)) {
... | static int ngsniffer_process_record(wtap *wth, gboolean is_random, guint *padding, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
char record_length[4];
guint16 type, length;
struct frame2_rec frame2;
/* PLACEHOLDER: DO NOT DELETE T... | static int ngsniffer_process_record(wtap *wth, gboolean is_random, guint *padding, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
char record_length[4];
guint type, length;
struct frame2_rec frame2;
/* PLACEHOLDER: DO NOT DELETE THI... | static int ngsniffer_process_record(wtap *wth, gboolean is_random, guint *padding, struct wtap_pkthdr *phdr, Buffer *buf, int *err, gchar **err_info) {
char record_length[4];
- guint16 type, length;
+ guint type, length;
struct frame2_rec frame2;
if (!ng_read_bytes_or_eof(wth, record_type, 2, is_r... |
CVE-2015-8734 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-nwp.c | dissect_nwp | static gint dissect_nwp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) {
proto_tree *nwp_tree = NULL;
proto_item *ti = NULL;
proto_item *type_ti = NULL;
const gchar *type_str;
guint8 type, hid_count, ha_len;
if (tvb_reported_length(tvb) < NWPH_M_LEN) {
return 0;
}
... | static gint dissect_nwp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) {
proto_tree *nwp_tree = NULL;
proto_item *ti = NULL;
proto_item *type_ti = NULL;
const gchar *type_str;
guint8 type, hid_count, ha_len;
if (tvb_reported_length(tvb) < NWPH_M_LEN) {
return 0;
}
... | static gint dissect_nwp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) {
proto_tree *nwp_tree = NULL;
proto_item *ti = NULL;
proto_item *type_ti = NULL;
const gchar *type_str;
guint8 type, hid_count, ha_len;
if (tvb_reported_length(tvb) < NWPH_M_LEN) {
return 0;
}
... | static gint dissect_nwp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) {
proto_tree *nwp_tree = NULL;
proto_item *ti = NULL;
proto_item *type_ti = NULL;
const gchar *type_str;
guint8 type, hid_count, ha_len;
if (tvb_reported_length(tvb) < NWPH_M_LEN) {
return 0;
}
... | static gint dissect_nwp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) {
if (tvb_reported_length(tvb) < NWPH_M_LEN) {
return 0;
}
col_set_str(pinfo->cinfo, COL_PROTOCOL, "NWP");
col_clear(pinfo->cinfo, COL_FO);
type = tvb_get_guint8(tvb, NWPH_TYPE);
type_str = val_to_s... | static gint dissect_nwp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) {
if (tvb_reported_length(tvb) < NWPH_M_LEN) {
return 0;
}
col_set_str(pinfo->cinfo, COL_PROTOCOL, "NWP");
col_clear(pinfo->cinfo, COL_FO);
type = tvb_get_guint8(tvb, NWPH_TYPE);
type_str = val_to_s... | static gint dissect_nwp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (tvb_reported_length(tvb) < NWPH_M_LEN) {
return 0;
}
col_set_str(pinfo->cinfo, COL_PROTOCOL, "NWP");
col_clear(pinfo->cinfo, COL_FO);
type = tvb_g... | static gint dissect_nwp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (tvb_reported_length(tvb) < NWPH_M_LEN) {
return 0;
}
col_set_str(pinfo->cinfo, COL_PROTOCOL, "NWP");
col_clear(pinfo->cinfo, COL_FO);
type = tvb_g... | static gint dissect_nwp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data ) {
if (tvb_reported_length(tvb) < NWPH_M_LEN) {
return 0;
}
col_set_str(pinfo->cinfo, COL_PROTOCOL, "NWP");
col_clear(pinfo->cinfo, COL_FO);
type = tvb_get_guint8(tvb, NWPH_TYPE);
type_str = ... |
CVE-2015-8735 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-btatt.c | get_value | static guint8 * get_value(packet_info *pinfo, guint32 handle, bluetooth_data_t *bluetooth_data, guint *length) {
wmem_tree_key_t key[4];
guint32 frame_number;
fragment_data_t *fragment_data;
wmem_tree_t *sub_wmemtree;
guint16 last_offset = 0xFFFF;
guint16 size;
gboolean first = TRUE;
gui... | static guint8 * get_value(packet_info *pinfo, guint32 handle, bluetooth_data_t *bluetooth_data, guint *length) {
wmem_tree_key_t key[4];
guint32 frame_number;
fragment_data_t *fragment_data;
wmem_tree_t *sub_wmemtree;
guint last_offset = G_MAXUT;
guint size;
gboolean first = TRUE;
guint8... | static guint8 * get_value(packet_info *pinfo, guint32 handle, bluetooth_data_t *bluetooth_data, guint *length) {
wmem_tree_key_t key[4];
guint32 frame_number;
fragment_data_t *fragment_data;
wmem_tree_t *sub_wmemtree;
guint16 last_offset = 0xFFFF;
guint16 size;
gboolean first = TRUE;
gui... | static guint8 * get_value(packet_info *pinfo, guint32 handle, bluetooth_data_t *bluetooth_data, guint *length) {
wmem_tree_key_t key[4];
guint32 frame_number;
fragment_data_t *fragment_data;
wmem_tree_t *sub_wmemtree;
guint last_offset = G_MAXUT;
guint size;
gboolean first = TRUE;
guint8... | static guint8 * get_value(packet_info *pinfo, guint32 handle, bluetooth_data_t *bluetooth_data, guint *length) {
wmem_tree_t *sub_wmemtree;
guint16 last_offset = 0xFFFF;
guint16 size;
gboolean first = TRUE;
while (1) {
fragment_data = (sub_wmemtree) ? (fragment_data_t *) wmem_tree_lookup32_l... | static guint8 * get_value(packet_info *pinfo, guint32 handle, bluetooth_data_t *bluetooth_data, guint *length) {
wmem_tree_t *sub_wmemtree;
guint last_offset = G_MAXUT;
guint size;
gboolean first = TRUE;
while (1) {
fragment_data = (sub_wmemtree) ? (fragment_data_t *) wmem_tree_lookup32_le(s... | static guint8 * get_value(packet_info *pinfo, guint32 handle, bluetooth_data_t *bluetooth_data, guint *length) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
wmem_tree_t *sub_wmemtree;
guint16 last_offset = 0xFFFF;
guint16 size;
gboolean first = TRUE;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT ... | static guint8 * get_value(packet_info *pinfo, guint32 handle, bluetooth_data_t *bluetooth_data, guint *length) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
wmem_tree_t *sub_wmemtree;
guint last_offset = G_MAXUT;
guint size;
gboolean first = TRUE;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
... | static guint8 * get_value(packet_info *pinfo, guint32 handle, bluetooth_data_t *bluetooth_data, guint *length) {
wmem_tree_t *sub_wmemtree;
- guint16 last_offset = 0xFFFF;
- guint16 size;
+ guint last_offset = G_MAXUT;
+ guint size;
gboolean first = TRUE;
while (1) {
fragment_data =... |
CVE-2015-8736 | Wireshark | https://github.com/wireshark/wireshark | wiretap/mp2t.c | mp2t_find_next_pcr | static gboolean mp2t_find_next_pcr(wtap *wth, guint8 trailer_len, int *err, gchar **err_info, guint32 *idx, guint64 *pcr, guint16 *pid) {
guint8 buffer[MP2T_SIZE];
gboolean found;
guint8 afc;
found = FALSE;
while (FALSE == found) {
(*idx)++;
if (!wtap_read_bytes_or_eof( wth->fh, buff... | static gboolean mp2t_find_next_pcr(wtap *wth, guint8 trailer_len, int *err, gchar **err_info, guint32 *idx, guint64 *pcr, guint16 *pid) {
guint8 buffer[MP2T_SIZE+TRAILER_LEN_MAX];
gboolean found;
guint8 afc;
found = FALSE;
while (FALSE == found) {
(*idx)++;
if (!wtap_read_bytes_or_eo... | static gboolean mp2t_find_next_pcr(wtap *wth, guint8 trailer_len, int *err, gchar **err_info, guint32 *idx, guint64 *pcr, guint16 *pid) {
guint8 buffer[MP2T_SIZE];
gboolean found;
guint8 afc;
found = FALSE;
while (FALSE == found) {
(*idx)++;
if (!wtap_read_bytes_or_eof( wth->fh, buff... | static gboolean mp2t_find_next_pcr(wtap *wth, guint8 trailer_len, int *err, gchar **err_info, guint32 *idx, guint64 *pcr, guint16 *pid) {
guint8 buffer[MP2T_SIZE+TRAILER_LEN_MAX];
gboolean found;
guint8 afc;
found = FALSE;
while (FALSE == found) {
(*idx)++;
if (!wtap_read_bytes_or_eo... | static gboolean mp2t_find_next_pcr(wtap *wth, guint8 trailer_len, int *err, gchar **err_info, guint32 *idx, guint64 *pcr, guint16 *pid) {
guint8 buffer[MP2T_SIZE];
gboolean found;
}
| static gboolean mp2t_find_next_pcr(wtap *wth, guint8 trailer_len, int *err, gchar **err_info, guint32 *idx, guint64 *pcr, guint16 *pid) {
guint8 buffer[MP2T_SIZE+TRAILER_LEN_MAX];
gboolean found;
}
| static gboolean mp2t_find_next_pcr(wtap *wth, guint8 trailer_len, int *err, gchar **err_info, guint32 *idx, guint64 *pcr, guint16 *pid) {
guint8 buffer[MP2T_SIZE];
gboolean found;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}
| static gboolean mp2t_find_next_pcr(wtap *wth, guint8 trailer_len, int *err, gchar **err_info, guint32 *idx, guint64 *pcr, guint16 *pid) {
guint8 buffer[MP2T_SIZE+TRAILER_LEN_MAX];
gboolean found;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} | static gboolean mp2t_find_next_pcr(wtap *wth, guint8 trailer_len, int *err, gchar **err_info, guint32 *idx, guint64 *pcr, guint16 *pid) {
- guint8 buffer[MP2T_SIZE];
+ guint8 buffer[MP2T_SIZE+TRAILER_LEN_MAX];
gboolean found;
} |
CVE-2015-8737 | Wireshark | https://github.com/wireshark/wireshark | wiretap/mp2t.c | mp2t_open | wtap_open_return_val mp2t_open(wtap *wth, int *err, gchar **err_info) {
guint8 buffer[MP2T_SIZE+TRAILER_LEN_MAX];
guint8 trailer_len = 0;
guint sync_steps = 0;
int i;
int first;
mp2t_filetype_t *mp2t;
wtap_open_return_val status;
guint64 bitrate;
if (!wtap_read_bytes(wth->fh, buffer,... | wtap_open_return_val mp2t_open(wtap *wth, int *err, gchar **err_info) {
guint8 buffer[MP2T_SIZE+TRAILER_LEN_MAX];
guint8 trailer_len = 0;
guint sync_steps = 0;
int i;
int first;
mp2t_filetype_t *mp2t;
wtap_open_return_val status;
guint64 bitrate;
if (!wtap_read_bytes(wth->fh, buffer,... | wtap_open_return_val mp2t_open(wtap *wth, int *err, gchar **err_info) {
guint8 buffer[MP2T_SIZE+TRAILER_LEN_MAX];
guint8 trailer_len = 0;
guint sync_steps = 0;
int i;
int first;
mp2t_filetype_t *mp2t;
wtap_open_return_val status;
guint64 bitrate;
if (!wtap_read_bytes(wth->fh, buffer,... | wtap_open_return_val mp2t_open(wtap *wth, int *err, gchar **err_info) {
guint8 buffer[MP2T_SIZE+TRAILER_LEN_MAX];
guint8 trailer_len = 0;
guint sync_steps = 0;
int i;
int first;
mp2t_filetype_t *mp2t;
wtap_open_return_val status;
guint64 bitrate;
if (!wtap_read_bytes(wth->fh, buffer,... | wtap_open_return_val mp2t_open(wtap *wth, int *err, gchar **err_info) {
if (status != WTAP_OPEN_ME) {
return status;
}
if (-1 == file_seek(wth->fh, first, SEEK_SET, err)) {
return WTAP_OPEN_ERROR;
}
mp2t->bitrate = bitrate;
}
| wtap_open_return_val mp2t_open(wtap *wth, int *err, gchar **err_info) {
if (status != WTAP_OPEN_ME) {
return status;
}
if (bitrate == 0) {
return WTAP_OPEN_ERROR;
}
if (-1 == file_seek(wth->fh, first, SEEK_SET, err)) {
return WTAP_OPEN_ERROR;
}
mp2t->bitrate = bitrate... | wtap_open_return_val mp2t_open(wtap *wth, int *err, gchar **err_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (status != WTAP_OPEN_ME) {
return status;
}
if (-1 == file_seek(wth->fh, first, SEEK_SET, err)) {
return WTAP_OPEN_ERROR;
}
/* PLACEHOLDER: DO NOT DELETE THIS ... | wtap_open_return_val mp2t_open(wtap *wth, int *err, gchar **err_info) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (status != WTAP_OPEN_ME) {
return status;
}
if (bitrate == 0) {
return WTAP_OPEN_ERROR;
}
if (-1 == file_seek(wth->fh, first, SEEK_SET, err)) {
return ... | wtap_open_return_val mp2t_open(wtap *wth, int *err, gchar **err_info) {
if (status != WTAP_OPEN_ME) {
return status;
+ }
+ if (bitrate == 0) {
+ return WTAP_OPEN_ERROR;
}
if (-1 == file_seek(wth->fh, first, SEEK_SET, err)) {
return WTAP_OPEN_ERROR;
}
mp2t->bitrat... |
CVE-2015-8738 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-s7comm_szl_ids.c | s7comm_decode_ud_cpu_szl_subfunc | guint32 s7comm_decode_ud_cpu_szl_subfunc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *data_tree, guint8 type, guint8 ret_val, guint16 len, guint16 dlength, guint8 data_unit_ref,
guint8 last_data_unit, guint32 offset) {
guint16 id;
guint16 idx;
guint16 list_len;
guint16 list_count;
guint16 ... | guint32 s7comm_decode_ud_cpu_szl_subfunc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *data_tree, guint8 type, guint8 ret_val, guint16 len, guint16 dlength, guint8 data_unit_ref,
guint8 last_data_unit, guint32 offset) {
guint16 id;
guint16 idx;
guint16 list_len;
guint16 list_count;
guint16 ... | guint32 s7comm_decode_ud_cpu_szl_subfunc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *data_tree, guint8 type, guint8 ret_val, guint16 len, guint16 dlength, guint8 data_unit_ref,
guint8 last_data_unit, guint32 offset) {
guint16 id;
guint16 idx;
guint16 list_len;
guint16 list_count;
guint16 ... | guint32 s7comm_decode_ud_cpu_szl_subfunc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *data_tree, guint8 type, guint8 ret_val, guint16 len, guint16 dlength, guint8 data_unit_ref,
guint8 last_data_unit, guint32 offset) {
guint16 id;
guint16 idx;
guint16 list_len;
guint16 list_count;
guint16 ... | guint32 s7comm_decode_ud_cpu_szl_subfunc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *data_tree, guint8 type, guint8 ret_val, guint16 len, guint16 dlength, guint8 data_unit_ref,
guint8 last_data_unit, guint32 offset) {
if (type == S7COMM_UD_TYPE_REQ) {
} else if (type == S7COMM_UD_TYPE_RES) {
... | guint32 s7comm_decode_ud_cpu_szl_subfunc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *data_tree, guint8 type, guint8 ret_val, guint16 len, guint16 dlength, guint8 data_unit_ref,
guint8 last_data_unit, guint32 offset) {
if (type == S7COMM_UD_TYPE_REQ) {
} else if (type == S7COMM_UD_TYPE_RES) {
... | guint32 s7comm_decode_ud_cpu_szl_subfunc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *data_tree, guint8 type, guint8 ret_val, guint16 len, guint16 dlength, guint8 data_unit_ref,
guint8 last_data_unit, guint32 offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (type == S7COMM_UD_TYPE_REQ) {
... | guint32 s7comm_decode_ud_cpu_szl_subfunc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *data_tree, guint8 type, guint8 ret_val, guint16 len, guint16 dlength, guint8 data_unit_ref,
guint8 last_data_unit, guint32 offset) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (type == S7COMM_UD_TYPE_REQ) {
... | guint32 s7comm_decode_ud_cpu_szl_subfunc(tvbuff_t *tvb, packet_info *pinfo, proto_tree *data_tree, guint8 type, guint8 ret_val, guint16 len, guint16 dlength, guint8 data_unit_ref,
guint8 last_data_unit, guint32 offset) {
if (type == S7COMM_UD_TYPE_REQ) {
} else if (type == S7COMM_UD_TYPE_RES) {
... |
CVE-2015-8739 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-ipmi.c | ipmi_fmt_udpport | void ipmi_fmt_udpport(gchar *s, guint32 v) {
g_snprintf(s, ITEM_LABEL_LENGTH, "%s (%d)", udp_port_to_display(wmem_packet_scope(), v), v);
} | void ipmi_fmt_udpport(gchar *s, guint32 v) {
gchar* port_str = udp_port_to_display(NULL, v);
g_snprintf(s, ITEM_LABEL_LENGTH, "%s (%d)", port_str, v);
wmem_free(NULL, port_str);
} | void ipmi_fmt_udpport(gchar *s, guint32 v) {
g_snprintf(s, ITEM_LABEL_LENGTH, "%s (%d)", udp_port_to_display(wmem_packet_scope(), v), v);
} | void ipmi_fmt_udpport(gchar *s, guint32 v) {
gchar* port_str = udp_port_to_display(NULL, v);
g_snprintf(s, ITEM_LABEL_LENGTH, "%s (%d)", port_str, v);
wmem_free(NULL, port_str);
} | void ipmi_fmt_udpport(gchar *s, guint32 v) {
g_snprintf(s, ITEM_LABEL_LENGTH, "%s (%d)", udp_port_to_display(wmem_packet_scope(), v), v);
}
| void ipmi_fmt_udpport(gchar *s, guint32 v) {
gchar* port_str = udp_port_to_display(NULL, v);
g_snprintf(s, ITEM_LABEL_LENGTH, "%s (%d)", port_str, v);
wmem_free(NULL, port_str);
}
| void ipmi_fmt_udpport(gchar *s, guint32 v) {
g_snprintf(s, ITEM_LABEL_LENGTH, "%s (%d)", udp_port_to_display(wmem_packet_scope(), v), v);
}
| void ipmi_fmt_udpport(gchar *s, guint32 v) {
gchar* port_str = udp_port_to_display(NULL, v);
g_snprintf(s, ITEM_LABEL_LENGTH, "%s (%d)", port_str, v);
wmem_free(NULL, port_str);
} | void ipmi_fmt_udpport(gchar *s, guint32 v) {
- g_snprintf(s, ITEM_LABEL_LENGTH, "%s (%d)", udp_port_to_display(wmem_packet_scope(), v), v);
+ gchar* port_str = udp_port_to_display(NULL, v);
+ g_snprintf(s, ITEM_LABEL_LENGTH, "%s (%d)", port_str, v);
+ wmem_free(NULL, port_str);
} |
CVE-2015-8740 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-tds.c | dissect_tds7_colmetadata_token | static int dissect_tds7_colmetadata_token(tvbuff_t *tvb, struct _netlib_data *nl_data, guint offset, proto_tree *tree, tds_conv_info_t *tds_info) {
guint cur = offset;
guint16 num_columns, flags, numparts, parti, partlen, msg_len;
guint8 type;
int i, col_offset;
proto_tree* col_tree, *flags_tree;
... | static int dissect_tds7_colmetadata_token(tvbuff_t *tvb, struct _netlib_data *nl_data, guint offset, proto_tree *tree, tds_conv_info_t *tds_info) {
guint cur = offset;
guint16 num_columns, flags, numparts, parti, partlen, msg_len;
guint8 type;
int i, col_offset;
proto_tree* col_tree, *flags_tree;
... | static int dissect_tds7_colmetadata_token(tvbuff_t *tvb, struct _netlib_data *nl_data, guint offset, proto_tree *tree, tds_conv_info_t *tds_info) {
guint cur = offset;
guint16 num_columns, flags, numparts, parti, partlen, msg_len;
guint8 type;
int i, col_offset;
proto_tree* col_tree, *flags_tree;
... | static int dissect_tds7_colmetadata_token(tvbuff_t *tvb, struct _netlib_data *nl_data, guint offset, proto_tree *tree, tds_conv_info_t *tds_info) {
guint cur = offset;
guint16 num_columns, flags, numparts, parti, partlen, msg_len;
guint8 type;
int i, col_offset;
proto_tree* col_tree, *flags_tree;
... | static int dissect_tds7_colmetadata_token(tvbuff_t *tvb, struct _netlib_data *nl_data, guint offset, proto_tree *tree, tds_conv_info_t *tds_info) {
guint cur = offset;
num_columns = tvb_get_letohs(tvb, cur);
nl_data->num_cols = num_columns;
proto_tree_add_item(tree, hf_tds_colmetadata_columns, tvb, cur,... | static int dissect_tds7_colmetadata_token(tvbuff_t *tvb, struct _netlib_data *nl_data, guint offset, proto_tree *tree, tds_conv_info_t *tds_info) {
guint cur = offset;
num_columns = tvb_get_letohs(tvb, cur);
nl_data->num_cols = num_columns;
proto_tree_add_item(tree, hf_tds_colmetadata_columns, tvb, cur,... | static int dissect_tds7_colmetadata_token(tvbuff_t *tvb, struct _netlib_data *nl_data, guint offset, proto_tree *tree, tds_conv_info_t *tds_info) {
guint cur = offset;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
num_columns = tvb_get_letohs(tvb, cur);
nl_data->num_cols = num_columns;
proto_tree_ad... | static int dissect_tds7_colmetadata_token(tvbuff_t *tvb, struct _netlib_data *nl_data, guint offset, proto_tree *tree, tds_conv_info_t *tds_info) {
guint cur = offset;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
num_columns = tvb_get_letohs(tvb, cur);
nl_data->num_cols = num_columns;
proto_tree_ad... | static int dissect_tds7_colmetadata_token(tvbuff_t *tvb, struct _netlib_data *nl_data, guint offset, proto_tree *tree, tds_conv_info_t *tds_info) {
guint cur = offset;
num_columns = tvb_get_letohs(tvb, cur);
nl_data->num_cols = num_columns;
proto_tree_add_item(tree, hf_tds_colmetadata_columns, tvb,... |
CVE-2015-8741 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-ppi.c | dissect_ppi | static int dissect_ppi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
proto_tree *ppi_tree = NULL, *ppi_flags_tree = NULL, *seg_tree = NULL, *ampdu_tree = NULL;
proto_tree *agg_tree = NULL;
proto_item *ti = NULL;
tvbuff_t *next_tvb;
int offset = 0;
guint version, flags;
... | static int dissect_ppi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
proto_tree *ppi_tree = NULL, *ppi_flags_tree = NULL, *seg_tree = NULL, *ampdu_tree = NULL;
proto_tree *agg_tree = NULL;
proto_item *ti = NULL;
tvbuff_t *next_tvb;
int offset = 0;
guint version, flags;
... | static void dissect_ppi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
proto_tree *ppi_tree = NULL, *ppi_flags_tree = NULL, *seg_tree = NULL, *ampdu_tree = NULL;
proto_tree *agg_tree = NULL;
proto_item *ti = NULL;
tvbuff_t *next_tvb;
int offset = 0;
guint version, flags;
gint tot_len... | static void dissect_ppi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
proto_tree *ppi_tree = NULL, *ppi_flags_tree = NULL, *seg_tree = NULL, *ampdu_tree = NULL;
proto_tree *agg_tree = NULL;
proto_item *ti = NULL;
tvbuff_t *next_tvb;
int offset = 0;
guint version, flags;
gint tot_len... | static int dissect_ppi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
offset += 8;
phdr.fcs_len = -1;
}
| static int dissect_ppi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
offset += 8;
memset(&phdr, 0, sizeof(phdr));
phdr.fcs_len = -1;
}
| static void dissect_ppi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
offset += 8;
phdr.fcs_len = -1;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}
| static void dissect_ppi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
offset += 8;
memset(&phdr, 0, sizeof(phdr));
phdr.fcs_len = -1;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} | static int dissect_ppi(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data ) {
offset += 8;
+ memset(&phdr, 0, sizeof(phdr));
phdr.fcs_len = -1;
} |
CVE-2015-8742 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-mswsp.c | dissect_CPMSetBindings | static int dissect_CPMSetBindings(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, gboolean in, void *private_data) {
gint offset = 16;
struct CPMSetBindingsIn request;
col_append_str(pinfo->cinfo, COL_FO, "SetBindings");
if (in) {
struct mswsp_ct *ct = NULL;
struct message_da... | static int dissect_CPMSetBindings(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, gboolean in, void *private_data) {
gint offset = 16;
struct CPMSetBindingsIn request;
col_append_str(pinfo->cinfo, COL_FO, "SetBindings");
if (in) {
struct mswsp_ct *ct = NULL;
struct message_da... | static int dissect_CPMSetBindings(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, gboolean in, void *private_data) {
gint offset = 16;
struct CPMSetBindingsIn request;
col_append_str(pinfo->cinfo, COL_FO, "SetBindings");
if (in) {
struct mswsp_ct *ct = NULL;
struct message_da... | static int dissect_CPMSetBindings(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, gboolean in, void *private_data) {
gint offset = 16;
struct CPMSetBindingsIn request;
col_append_str(pinfo->cinfo, COL_FO, "SetBindings");
if (in) {
struct mswsp_ct *ct = NULL;
struct message_da... | static int dissect_CPMSetBindings(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, gboolean in, void *private_data) {
gint offset = 16;
if (in) {
guint32 size, num, n;
ti = proto_tree_add_item(parent_tree, hf_mswsp_msg, tvb, offset, -1, ENC_NA);
tree = proto_item_add_subtree(t... | static int dissect_CPMSetBindings(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, gboolean in, void *private_data) {
gint offset = 16;
if (in) {
guint32 size, num, n;
gint64 column_size;
ti = proto_tree_add_item(parent_tree, hf_mswsp_msg, tvb, offset, -1, ENC_NA);
tre... | static int dissect_CPMSetBindings(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, gboolean in, void *private_data) {
gint offset = 16;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (in) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint32 size, num, n;
ti = proto_tree_a... | static int dissect_CPMSetBindings(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, gboolean in, void *private_data) {
gint offset = 16;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (in) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
guint32 size, num, n;
gint64 column_siz... | static int dissect_CPMSetBindings(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, gboolean in, void *private_data) {
gint offset = 16;
if (in) {
guint32 size, num, n;
+ gint64 column_size;
ti = proto_tree_add_item(parent_tree, hf_mswsp_msg, tvb, offset, -1, ENC_NA);
... |
CVE-2015-8742 | Wireshark | https://github.com/wireshark/wireshark | epan/dissectors/packet-mswsp.c | proto_register_mswsp | void proto_register_mswsp(void) {
expert_module_t* expert_mswsp = NULL;
static hf_register_info hf[] = {
{
&hf_mswsp_hdr, {
"Header", "mswsp.hdr", FT_NONE, BASE_NONE, NULL, 0, "Message header", HFILL
}
}, {
&hf_mswsp_hdr_msg, {
... | void proto_register_mswsp(void) {
expert_module_t* expert_mswsp = NULL;
static hf_register_info hf[] = {
{
&hf_mswsp_hdr, {
"Header", "mswsp.hdr", FT_NONE, BASE_NONE, NULL, 0, "Message header", HFILL
}
}, {
&hf_mswsp_hdr_msg, {
... | void proto_register_mswsp(void) {
expert_module_t* expert_mswsp = NULL;
static hf_register_info hf[] = {
{
&hf_mswsp_hdr, {
"Header", "mswsp.hdr", FT_NONE, BASE_NONE, NULL, 0, "Message header", HFILL
}
}, {
&hf_mswsp_hdr_msg, {
... | void proto_register_mswsp(void) {
expert_module_t* expert_mswsp = NULL;
static hf_register_info hf[] = {
{
&hf_mswsp_hdr, {
"Header", "mswsp.hdr", FT_NONE, BASE_NONE, NULL, 0, "Message header", HFILL
}
}, {
&hf_mswsp_hdr_msg, {
... | void proto_register_mswsp(void) {
static gint *ett[] = {
&ett_mswsp, &ett_mswsp_hdr, &ett_mswsp_msg, &ett_mswsp_pad, &ett_mswsp_property_restriction, &ett_CRestrictionArray, &ett_CBaseStorageVariant, &ett_CBaseStorageVariant_Vector, &ett_CBaseStorageVariant_Array, &ett_CDbColId, &ett_GUID, &ett_CDbProp, &et... | void proto_register_mswsp(void) {
static gint *ett[] = {
&ett_mswsp, &ett_mswsp_hdr, &ett_mswsp_msg, &ett_mswsp_pad, &ett_mswsp_property_restriction, &ett_CRestrictionArray, &ett_CBaseStorageVariant, &ett_CBaseStorageVariant_Vector, &ett_CBaseStorageVariant_Array, &ett_CDbColId, &ett_GUID, &ett_CDbProp, &et... | void proto_register_mswsp(void) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
static gint *ett[] = {
&ett_mswsp, &ett_mswsp_hdr, &ett_mswsp_msg, &ett_mswsp_pad, &ett_mswsp_property_restriction, &ett_CRestrictionArray, &ett_CBaseStorageVariant, &ett_CBaseStorageVariant_Vector, &ett_CBaseStorageVariant_... | void proto_register_mswsp(void) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
static gint *ett[] = {
&ett_mswsp, &ett_mswsp_hdr, &ett_mswsp_msg, &ett_mswsp_pad, &ett_mswsp_property_restriction, &ett_CRestrictionArray, &ett_CBaseStorageVariant, &ett_CBaseStorageVariant_Vector, &ett_CBaseStorageVariant_... | void proto_register_mswsp(void) {
static gint *ett[] = {
&ett_mswsp, &ett_mswsp_hdr, &ett_mswsp_msg, &ett_mswsp_pad, &ett_mswsp_property_restriction, &ett_CRestrictionArray, &ett_CBaseStorageVariant, &ett_CBaseStorageVariant_Vector, &ett_CBaseStorageVariant_Array, &ett_CDbColId, &ett_GUID, &ett_CDbProp, ... |
CVE-2016-0701 | OpenSSL | https://github.com/openssl/openssl | ssl/s3_lib.c | ssl3_ctrl | long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg) {
int ret = 0;
if ( cmd == SSL_CTRL_SET_TMP_RSA || cmd == SSL_CTRL_SET_TMP_RSA_CB || cmd == SSL_CTRL_SET_TMP_DH || cmd == SSL_CTRL_SET_TMP_DH_CB || 0) {
if (!ssl_cert_inst(&s->cert)) {
SSLerr(SSL_F_SSL3_CTRL, ERR_R_MALLOC_FAILURE);
... | long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg) {
int ret = 0;
if ( cmd == SSL_CTRL_SET_TMP_RSA || cmd == SSL_CTRL_SET_TMP_RSA_CB || cmd == SSL_CTRL_SET_TMP_DH || cmd == SSL_CTRL_SET_TMP_DH_CB || 0) {
if (!ssl_cert_inst(&s->cert)) {
SSLerr(SSL_F_SSL3_CTRL, ERR_R_MALLOC_FAILURE);
... | long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg) {
int ret = 0;
if ( cmd == SSL_CTRL_SET_TMP_RSA || cmd == SSL_CTRL_SET_TMP_RSA_CB || cmd == SSL_CTRL_SET_TMP_DH || cmd == SSL_CTRL_SET_TMP_DH_CB || 0) {
if (!ssl_cert_inst(&s->cert)) {
SSLerr(SSL_F_SSL3_CTRL, ERR_R_MALLOC_FAILURE);
... | long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg) {
int ret = 0;
if ( cmd == SSL_CTRL_SET_TMP_RSA || cmd == SSL_CTRL_SET_TMP_RSA_CB || cmd == SSL_CTRL_SET_TMP_DH || cmd == SSL_CTRL_SET_TMP_DH_CB || 0) {
if (!ssl_cert_inst(&s->cert)) {
SSLerr(SSL_F_SSL3_CTRL, ERR_R_MALLOC_FAILURE);
... | long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg) {
int ret = 0;
switch (cmd) {
case SSL_CTRL_SET_TMP_DH: {
DH *dh = (DH *)parg;
if (dh == NULL) {
return (ret);
}
if ((dh = DHparams_dup(dh)) == NULL) {
return (ret);
}
if (!(s->opti... | long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg) {
int ret = 0;
switch (cmd) {
case SSL_CTRL_SET_TMP_DH: {
DH *dh = (DH *)parg;
if (dh == NULL) {
return (ret);
}
if ((dh = DHparams_dup(dh)) == NULL) {
return (ret);
}
s->cert->dh_t... | long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg) {
int ret = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
switch (cmd) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
case SSL_CTRL_SET_TMP_DH: {
DH *dh = (DH *)parg;
if (dh == NULL) {
/* PLACEHOLDER: DO NOT DELETE THIS C... | long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg) {
int ret = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
switch (cmd) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
case SSL_CTRL_SET_TMP_DH: {
DH *dh = (DH *)parg;
if (dh == NULL) {
/* PLACEHOLDER: DO NOT DELETE THIS C... | long ssl3_ctrl(SSL *s, int cmd, long larg, void *parg) {
int ret = 0;
switch (cmd) {
case SSL_CTRL_SET_TMP_DH: {
DH *dh = (DH *)parg;
if (dh == NULL) {
return (ret);
}
if ((dh = DHparams_dup(dh)) == NULL) {
return (ret);
}
- i... |
CVE-2016-0701 | OpenSSL | https://github.com/openssl/openssl | ssl/s3_lib.c | ssl3_ctx_ctrl | long ssl3_ctx_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg) {
CERT *cert;
cert = ctx->cert;
switch (cmd) {
case SSL_CTRL_NEED_TMP_RSA:
if ((cert->rsa_tmp == NULL) && ((cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL) || (EVP_PKEY_size(cert->pkeys[SSL_PKEY_RSA_ENC].privatekey) > (512 / 8)))... | long ssl3_ctx_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg) {
CERT *cert;
cert = ctx->cert;
switch (cmd) {
case SSL_CTRL_NEED_TMP_RSA:
if ((cert->rsa_tmp == NULL) && ((cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL) || (EVP_PKEY_size(cert->pkeys[SSL_PKEY_RSA_ENC].privatekey) > (512 / 8)))... | long ssl3_ctx_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg) {
CERT *cert;
cert = ctx->cert;
switch (cmd) {
case SSL_CTRL_NEED_TMP_RSA:
if ((cert->rsa_tmp == NULL) && ((cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL) || (EVP_PKEY_size(cert->pkeys[SSL_PKEY_RSA_ENC].privatekey) > (512 / 8)))... | long ssl3_ctx_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg) {
CERT *cert;
cert = ctx->cert;
switch (cmd) {
case SSL_CTRL_NEED_TMP_RSA:
if ((cert->rsa_tmp == NULL) && ((cert->pkeys[SSL_PKEY_RSA_ENC].privatekey == NULL) || (EVP_PKEY_size(cert->pkeys[SSL_PKEY_RSA_ENC].privatekey) > (512 / 8)))... | long ssl3_ctx_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg) {
switch (cmd) {
case SSL_CTRL_SET_TMP_DH: {
dh = (DH *)parg;
if ((new = DHparams_dup(dh)) == NULL) {
return 0;
}
if (!(ctx->options & SSL_OP_SGLE_DH_USE)) {
if (!DH_generate_key(new)) {
... | long ssl3_ctx_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg) {
switch (cmd) {
case SSL_CTRL_SET_TMP_DH: {
dh = (DH *)parg;
if ((new = DHparams_dup(dh)) == NULL) {
return 0;
}
cert->dh_tmp = new;
return 1;
}
}
}
| long ssl3_ctx_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
switch (cmd) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
case SSL_CTRL_SET_TMP_DH: {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
dh = (DH *)parg;
if ((new = DHparams... | long ssl3_ctx_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
switch (cmd) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
case SSL_CTRL_SET_TMP_DH: {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
dh = (DH *)parg;
if ((new = DHparams... | long ssl3_ctx_ctrl(SSL_CTX *ctx, int cmd, long larg, void *parg) {
switch (cmd) {
case SSL_CTRL_SET_TMP_DH: {
dh = (DH *)parg;
if ((new = DHparams_dup(dh)) == NULL) {
return 0;
}
- if (!(ctx->options & SSL_OP_SGLE_DH_USE)) {
- if (!DH_generate_key(new... |
CVE-2016-0702 | OpenSSL | https://github.com/openssl/openssl | crypto/bn/bn_exp.c | BN_mod_exp_mont_consttime | int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont) {
int i, bits, ret = 0, window, wvalue;
int top;
BN_MONT_CTX *mont = NULL;
int numPowers;
unsigned char *powerbufFree = NULL;
int powerbufLen = 0;
unsigned char *po... | int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont) {
int i, bits, ret = 0, window, wvalue;
int top;
BN_MONT_CTX *mont = NULL;
int numPowers;
unsigned char *powerbufFree = NULL;
int powerbufLen = 0;
unsigned char *po... | int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont) {
int i, bits, ret = 0, window, wvalue;
int top;
BN_MONT_CTX *mont = NULL;
int numPowers;
unsigned char *powerbufFree = NULL;
int powerbufLen = 0;
unsigned char *po... | int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont) {
int i, bits, ret = 0, window, wvalue;
int top;
BN_MONT_CTX *mont = NULL;
int numPowers;
unsigned char *powerbufFree = NULL;
int powerbufLen = 0;
unsigned char *po... | int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont) {
int powerbufLen = 0;
bn_check_top(p);
bn_check_top(m);
if (!BN_is_odd(m)) {
return (0);
}
top = m->top;
bits = BN_num_bits(p);
if (bits == 0) {
... | int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont) {
int powerbufLen = 0;
bn_check_top(p);
bn_check_top(m);
if (!BN_is_odd(m)) {
return (0);
}
top = m->top;
bits = BN_num_bits(p);
if (bits == 0) {
... | int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int powerbufLen = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
bn_check_top(p);
bn_check_top(m);
if (!BN_is_odd(m)) ... | int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int powerbufLen = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
bn_check_top(p);
bn_check_top(m);
if (!BN_is_odd(m)) ... | int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont) {
int powerbufLen = 0;
bn_check_top(p);
bn_check_top(m);
if (!BN_is_odd(m)) {
return (0);
}
top = m->top;
bits = BN_num_bits(p);
if (bits == 0... |
CVE-2016-0702 | OpenSSL | https://github.com/openssl/openssl | crypto/bn/bn_exp.c | MOD_EXP_CTIME_COPY_FROM_PREBUF | static int MOD_EXP_CTIME_COPY_FROM_PREBUF(BIGNUM *b, int top, unsigned char *buf, int idx, int width) {
size_t i, j;
if (bn_wexpand(b, top) == NULL) {
return 0;
}
for (i = 0, j = idx; i < top * sizeof b->d[0]; i++, j += width) {
((unsigned char *)b->d)[i] = buf[j];
}
b->top = top... | static int MOD_EXP_CTIME_COPY_FROM_PREBUF(BIGNUM *b, int top, unsigned char *buf, int idx, int window) {
int i, j;
int width = 1 << window;
volatile BN_ULONG *table = (volatile BN_ULONG *)buf;
if (bn_wexpand(b, top) == NULL) {
return 0;
}
if (window <= 3) {
for (i = 0; i < top; i... | static int MOD_EXP_CTIME_COPY_FROM_PREBUF(BIGNUM *b, int top, unsigned char *buf, int idx, int width) {
size_t i, j;
if (bn_wexpand(b, top) == NULL) {
return 0;
}
for (i = 0, j = idx; i < top * sizeof b->d[0]; i++, j += width) {
((unsigned char *)b->d)[i] = buf[j];
}
b->top = top... | static int MOD_EXP_CTIME_COPY_FROM_PREBUF(BIGNUM *b, int top, unsigned char *buf, int idx, int window) {
int i, j;
int width = 1 << window;
volatile BN_ULONG *table = (volatile BN_ULONG *)buf;
if (bn_wexpand(b, top) == NULL) {
return 0;
}
if (window <= 3) {
for (i = 0; i < top; i... | static int MOD_EXP_CTIME_COPY_FROM_PREBUF(BIGNUM *b, int top, unsigned char *buf, int idx, int width) {
size_t i, j;
if (bn_wexpand(b, top) == NULL) {
return 0;
}
for (i = 0, j = idx; i < top * sizeof b->d[0]; i++, j += width) {
((unsigned char *)b->d)[i] = buf[j];
}
b->top = top... | static int MOD_EXP_CTIME_COPY_FROM_PREBUF(BIGNUM *b, int top, unsigned char *buf, int idx, int window) {
int i, j;
int width = 1 << window;
volatile BN_ULONG *table = (volatile BN_ULONG *)buf;
if (bn_wexpand(b, top) == NULL) {
return 0;
}
if (window <= 3) {
for (i = 0; i < top; i... | static int MOD_EXP_CTIME_COPY_FROM_PREBUF(BIGNUM *b, int top, unsigned char *buf, int idx, int width) {
size_t i, j;
if (bn_wexpand(b, top) == NULL) {
return 0;
}
for (i = 0, j = idx; i < top * sizeof b->d[0]; i++, j += width) {
((unsigned char *)b->d)[i] = buf[j];
}
b->top = top... | static int MOD_EXP_CTIME_COPY_FROM_PREBUF(BIGNUM *b, int top, unsigned char *buf, int idx, int window) {
int i, j;
int width = 1 << window;
volatile BN_ULONG *table = (volatile BN_ULONG *)buf;
if (bn_wexpand(b, top) == NULL) {
return 0;
}
if (window <= 3) {
for (i = 0; i < top; i... | -static int MOD_EXP_CTIME_COPY_FROM_PREBUF(BIGNUM *b, int top, unsigned char *buf, int idx, int width) {
- size_t i, j;
+static int MOD_EXP_CTIME_COPY_FROM_PREBUF(BIGNUM *b, int top, unsigned char *buf, int idx, int window) {
+ int i, j;
+ int width = 1 << window;
+ volatile BN_ULONG *table = (volatile BN_U... |
CVE-2016-0702 | OpenSSL | https://github.com/openssl/openssl | crypto/bn/bn_exp.c | MOD_EXP_CTIME_COPY_TO_PREBUF | static int MOD_EXP_CTIME_COPY_TO_PREBUF(const BIGNUM *b, int top, unsigned char *buf, int idx, int width) {
size_t i, j;
if (top > b->top) {
top = b->top;
}
for (i = 0, j = idx; i < top * sizeof b->d[0]; i++, j += width) {
buf[j] = ((unsigned char *)b->d)[i];
}
return 1;
} | static int MOD_EXP_CTIME_COPY_TO_PREBUF(const BIGNUM *b, int top, unsigned char *buf, int idx, int window) {
int i, j;
int width = 1 << window;
BN_ULONG *table = (BN_ULONG *)buf;
if (top > b->top) {
top = b->top;
}
for (i = 0, j = idx; i < top; i++, j += width) {
table[j] = b->d[... | static int MOD_EXP_CTIME_COPY_TO_PREBUF(const BIGNUM *b, int top, unsigned char *buf, int idx, int width) {
size_t i, j;
if (top > b->top) {
top = b->top;
}
for (i = 0, j = idx; i < top * sizeof b->d[0]; i++, j += width) {
buf[j] = ((unsigned char *)b->d)[i];
}
return 1;
} | static int MOD_EXP_CTIME_COPY_TO_PREBUF(const BIGNUM *b, int top, unsigned char *buf, int idx, int window) {
int i, j;
int width = 1 << window;
BN_ULONG *table = (BN_ULONG *)buf;
if (top > b->top) {
top = b->top;
}
for (i = 0, j = idx; i < top; i++, j += width) {
table[j] = b->d[... | static int MOD_EXP_CTIME_COPY_TO_PREBUF(const BIGNUM *b, int top, unsigned char *buf, int idx, int width) {
size_t i, j;
if (top > b->top) {
top = b->top;
}
for (i = 0, j = idx; i < top * sizeof b->d[0]; i++, j += width) {
buf[j] = ((unsigned char *)b->d)[i];
}
return 1;
}
| static int MOD_EXP_CTIME_COPY_TO_PREBUF(const BIGNUM *b, int top, unsigned char *buf, int idx, int window) {
int i, j;
int width = 1 << window;
BN_ULONG *table = (BN_ULONG *)buf;
if (top > b->top) {
top = b->top;
}
for (i = 0, j = idx; i < top; i++, j += width) {
table[j] = b->d[... | static int MOD_EXP_CTIME_COPY_TO_PREBUF(const BIGNUM *b, int top, unsigned char *buf, int idx, int width) {
size_t i, j;
if (top > b->top) {
top = b->top;
}
for (i = 0, j = idx; i < top * sizeof b->d[0]; i++, j += width) {
buf[j] = ((unsigned char *)b->d)[i];
}
return 1;
}
| static int MOD_EXP_CTIME_COPY_TO_PREBUF(const BIGNUM *b, int top, unsigned char *buf, int idx, int window) {
int i, j;
int width = 1 << window;
BN_ULONG *table = (BN_ULONG *)buf;
if (top > b->top) {
top = b->top;
}
for (i = 0, j = idx; i < top; i++, j += width) {
table[j] = b->d[... | -static int MOD_EXP_CTIME_COPY_TO_PREBUF(const BIGNUM *b, int top, unsigned char *buf, int idx, int width) {
- size_t i, j;
+static int MOD_EXP_CTIME_COPY_TO_PREBUF(const BIGNUM *b, int top, unsigned char *buf, int idx, int window) {
+ int i, j;
+ int width = 1 << window;
+ BN_ULONG *table = (BN_ULONG *)buf... |
CVE-2016-0703 | 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-2016-0703 | 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-2016-0703 | 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-2016-0703 | 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-2016-0704 | 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-2016-0704 | 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-2016-0704 | 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-2016-0704 | 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-2016-0705 | OpenSSL | https://github.com/openssl/openssl | crypto/dsa/dsa_ameth.c | dsa_priv_decode | static int dsa_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_FO *p8) {
const unsigned char *p, *pm;
int pklen, pmlen;
int ptype;
void *pval;
ASN1_STRG *pstr;
X509_ALGOR *palg;
ASN1_TEGER *privkey = NULL;
BN_CTX *ctx = NULL;
STACK_OF(ASN1_TYPE) *ndsa = NULL;
DSA *dsa = NULL;
if (... | static int dsa_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_FO *p8) {
const unsigned char *p, *pm;
int pklen, pmlen;
int ptype;
void *pval;
ASN1_STRG *pstr;
X509_ALGOR *palg;
ASN1_TEGER *privkey = NULL;
BN_CTX *ctx = NULL;
STACK_OF(ASN1_TYPE) *ndsa = NULL;
DSA *dsa = NULL;
int ... | static int dsa_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_FO *p8) {
const unsigned char *p, *pm;
int pklen, pmlen;
int ptype;
void *pval;
ASN1_STRG *pstr;
X509_ALGOR *palg;
ASN1_TEGER *privkey = NULL;
BN_CTX *ctx = NULL;
STACK_OF(ASN1_TYPE) *ndsa = NULL;
DSA *dsa = NULL;
if (... | static int dsa_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_FO *p8) {
const unsigned char *p, *pm;
int pklen, pmlen;
int ptype;
void *pval;
ASN1_STRG *pstr;
X509_ALGOR *palg;
ASN1_TEGER *privkey = NULL;
BN_CTX *ctx = NULL;
STACK_OF(ASN1_TYPE) *ndsa = NULL;
DSA *dsa = NULL;
int ... | static int dsa_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_FO *p8) {
ASN1_TEGER *privkey = NULL;
BN_CTX *ctx = NULL;
STACK_OF(ASN1_TYPE) *ndsa = NULL;
DSA *dsa = NULL;
if (!PKCS8_pkey_get0(NULL, &p, &pklen, &palg, p8)) {
return 0;
}
X509_ALGOR_get0(NULL, &ptype, &pval, palg);
if (... | static int dsa_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_FO *p8) {
ASN1_TEGER *privkey = NULL;
BN_CTX *ctx = NULL;
STACK_OF(ASN1_TYPE) *ndsa = NULL;
DSA *dsa = NULL;
int ret = 0;
if (!PKCS8_pkey_get0(NULL, &p, &pklen, &palg, p8)) {
return 0;
}
X509_ALGOR_get0(NULL, &ptype, &pval... | static int dsa_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_FO *p8) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ASN1_TEGER *privkey = NULL;
BN_CTX *ctx = NULL;
STACK_OF(ASN1_TYPE) *ndsa = NULL;
DSA *dsa = NULL;
if (!PKCS8_pkey_get0(NULL, &p, &pklen, &palg, p8)) {
return 0;
}
X5... | static int dsa_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_FO *p8) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
ASN1_TEGER *privkey = NULL;
BN_CTX *ctx = NULL;
STACK_OF(ASN1_TYPE) *ndsa = NULL;
DSA *dsa = NULL;
int ret = 0;
if (!PKCS8_pkey_get0(NULL, &p, &pklen, &palg, p8)) {
retur... | static int dsa_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_FO *p8) {
ASN1_TEGER *privkey = NULL;
BN_CTX *ctx = NULL;
STACK_OF(ASN1_TYPE) *ndsa = NULL;
DSA *dsa = NULL;
+ int ret = 0;
if (!PKCS8_pkey_get0(NULL, &p, &pklen, &palg, p8)) {
return 0;
}
X509_ALGOR_get0(NULL, &pt... |
CVE-2016-0797 | OpenSSL | https://github.com/openssl/openssl | crypto/bn/bn_print.c | BN_dec2bn | int BN_dec2bn(BIGNUM **bn, const char *a) {
BIGNUM *ret = NULL;
BN_ULONG l = 0;
int neg = 0, i, j;
int num;
if ((a == NULL) || (*a == '\0')) {
return (0);
}
if (*a == '-') {
neg = 1;
a++;
}
for (i = 0; isdigit((unsigned char)a[i]); i++) ;
num = i + neg;
... | int BN_dec2bn(BIGNUM **bn, const char *a) {
BIGNUM *ret = NULL;
BN_ULONG l = 0;
int neg = 0, i, j;
int num;
if ((a == NULL) || (*a == '\0')) {
return (0);
}
if (*a == '-') {
neg = 1;
a++;
}
for (i = 0; i <= (T_MAX/4) && isdigit((unsigned char)a[i]); i++)
... | int BN_dec2bn(BIGNUM **bn, const char *a) {
BIGNUM *ret = NULL;
BN_ULONG l = 0;
int neg = 0, i, j;
int num;
if ((a == NULL) || (*a == '\0')) {
return (0);
}
if (*a == '-') {
neg = 1;
a++;
}
for (i = 0; isdigit((unsigned char)a[i]); i++) ;
num = i + neg;
... | int BN_dec2bn(BIGNUM **bn, const char *a) {
BIGNUM *ret = NULL;
BN_ULONG l = 0;
int neg = 0, i, j;
int num;
if ((a == NULL) || (*a == '\0')) {
return (0);
}
if (*a == '-') {
neg = 1;
a++;
}
for (i = 0; i <= (T_MAX/4) && isdigit((unsigned char)a[i]); i++)
... | int BN_dec2bn(BIGNUM **bn, const char *a) {
if ((a == NULL) || (*a == '\0')) {
return (0);
}
if (*a == '-') {
a++;
}
for (i = 0; isdigit((unsigned char)a[i]); i++) ;
num = i + neg;
if (bn == NULL) {
return (num);
}
if (bn_expand(ret, i * 4) == NULL) {
... | int BN_dec2bn(BIGNUM **bn, const char *a) {
if ((a == NULL) || (*a == '\0')) {
return (0);
}
if (*a == '-') {
a++;
}
for (i = 0; i <= (T_MAX/4) && isdigit((unsigned char)a[i]); i++)
continue;
if (i > T_MAX/4) {
goto err;
}
num = i + neg;
if (bn == NULL... | int BN_dec2bn(BIGNUM **bn, const char *a) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if ((a == NULL) || (*a == '\0')) {
return (0);
}
if (*a == '-') {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
a++;
}
for (i = 0; isdigit((unsigned char)a[i]); i++) ;
num = i + neg;... | int BN_dec2bn(BIGNUM **bn, const char *a) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if ((a == NULL) || (*a == '\0')) {
return (0);
}
if (*a == '-') {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
a++;
}
for (i = 0; i <= (T_MAX/4) && isdigit((unsigned char)a[i]); i++)
... | int BN_dec2bn(BIGNUM **bn, const char *a) {
if ((a == NULL) || (*a == '\0')) {
return (0);
}
if (*a == '-') {
a++;
}
- for (i = 0; isdigit((unsigned char)a[i]); i++) ;
+ for (i = 0; i <= (T_MAX/4) && isdigit((unsigned char)a[i]); i++)
+ continue;
+ if (i > T_MAX/4)... |
CVE-2016-0797 | OpenSSL | https://github.com/openssl/openssl | crypto/bn/bn_print.c | BN_hex2bn | int BN_hex2bn(BIGNUM **bn, const char *a) {
BIGNUM *ret = NULL;
BN_ULONG l = 0;
int neg = 0, h, m, i, j, k, c;
int num;
if ((a == NULL) || (*a == '\0')) {
return (0);
}
if (*a == '-') {
neg = 1;
a++;
}
for (i = 0; isxdigit((unsigned char)a[i]); i++) ;
num ... | int BN_hex2bn(BIGNUM **bn, const char *a) {
BIGNUM *ret = NULL;
BN_ULONG l = 0;
int neg = 0, h, m, i, j, k, c;
int num;
if ((a == NULL) || (*a == '\0')) {
return (0);
}
if (*a == '-') {
neg = 1;
a++;
}
for (i = 0; i <= (T_MAX/4) && isxdigit((unsigned char)a[i]... | int BN_hex2bn(BIGNUM **bn, const char *a) {
BIGNUM *ret = NULL;
BN_ULONG l = 0;
int neg = 0, h, m, i, j, k, c;
int num;
if ((a == NULL) || (*a == '\0')) {
return (0);
}
if (*a == '-') {
neg = 1;
a++;
}
for (i = 0; isxdigit((unsigned char)a[i]); i++) ;
num ... | int BN_hex2bn(BIGNUM **bn, const char *a) {
BIGNUM *ret = NULL;
BN_ULONG l = 0;
int neg = 0, h, m, i, j, k, c;
int num;
if ((a == NULL) || (*a == '\0')) {
return (0);
}
if (*a == '-') {
neg = 1;
a++;
}
for (i = 0; i <= (T_MAX/4) && isxdigit((unsigned char)a[i]... | int BN_hex2bn(BIGNUM **bn, const char *a) {
if ((a == NULL) || (*a == '\0')) {
return (0);
}
if (*a == '-') {
a++;
}
for (i = 0; isxdigit((unsigned char)a[i]); i++) ;
num = i + neg;
if (bn == NULL) {
return (num);
}
if (bn_expand(ret, i * 4) == NULL) {
... | int BN_hex2bn(BIGNUM **bn, const char *a) {
if ((a == NULL) || (*a == '\0')) {
return (0);
}
if (*a == '-') {
a++;
}
for (i = 0; i <= (T_MAX/4) && isxdigit((unsigned char)a[i]); i++)
continue;
if (i > T_MAX/4) {
goto err;
}
num = i + neg;
if (bn == NUL... | int BN_hex2bn(BIGNUM **bn, const char *a) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if ((a == NULL) || (*a == '\0')) {
return (0);
}
if (*a == '-') {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
a++;
}
for (i = 0; isxdigit((unsigned char)a[i]); i++) ;
num = i + neg... | int BN_hex2bn(BIGNUM **bn, const char *a) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if ((a == NULL) || (*a == '\0')) {
return (0);
}
if (*a == '-') {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
a++;
}
for (i = 0; i <= (T_MAX/4) && isxdigit((unsigned char)a[i]); i++)
... | int BN_hex2bn(BIGNUM **bn, const char *a) {
if ((a == NULL) || (*a == '\0')) {
return (0);
}
if (*a == '-') {
a++;
}
- for (i = 0; isxdigit((unsigned char)a[i]); i++) ;
+ for (i = 0; i <= (T_MAX/4) && isxdigit((unsigned char)a[i]); i++)
+ continue;
+ if (i > T_MAX/... |
CVE-2016-0798 | OpenSSL | https://github.com/openssl/openssl | apps/s_server.c | init_ssl_connection | static int init_ssl_connection(SSL *con) {
int i;
const char *str;
X509 *peer;
long verify_error;
MS_STATIC char buf[BUFSIZ];
char *client_princ;
const unsigned char *next_proto_neg;
unsigned next_proto_neg_len;
unsigned char *exportedkeymat;
i = SSL_accept(con);
{
wh... | static int init_ssl_connection(SSL *con) {
int i;
const char *str;
X509 *peer;
long verify_error;
MS_STATIC char buf[BUFSIZ];
char *client_princ;
const unsigned char *next_proto_neg;
unsigned next_proto_neg_len;
unsigned char *exportedkeymat;
i = SSL_accept(con);
{
wh... | static int init_ssl_connection(SSL *con) {
int i;
const char *str;
X509 *peer;
long verify_error;
MS_STATIC char buf[BUFSIZ];
char *client_princ;
const unsigned char *next_proto_neg;
unsigned next_proto_neg_len;
unsigned char *exportedkeymat;
i = SSL_accept(con);
while (i <= ... | static int init_ssl_connection(SSL *con) {
int i;
const char *str;
X509 *peer;
long verify_error;
MS_STATIC char buf[BUFSIZ];
char *client_princ;
const unsigned char *next_proto_neg;
unsigned next_proto_neg_len;
unsigned char *exportedkeymat;
i = SSL_accept(con);
while (i <= ... | static int init_ssl_connection(SSL *con) {
while (i <= 0 && SSL_get_error(con, i) == SSL_ERROR_WANT_X509_LOOKUP) {
BIO_printf(bio_s_out, "LOOKUP during accept %s\n", srp_callback_parm.login);
srp_callback_parm.user = SRP_VBASE_get_by_user(srp_callback_parm.vb, srp_callback_parm.login);
if (s... | static int init_ssl_connection(SSL *con) {
while (i <= 0 && SSL_get_error(con, i) == SSL_ERROR_WANT_X509_LOOKUP) {
BIO_printf(bio_s_out, "LOOKUP during accept %s\n", srp_callback_parm.login);
SRP_user_pwd_free(srp_callback_parm.user);
srp_callback_parm.user = SRP_VBASE_get1_by_user(srp_callb... | static int init_ssl_connection(SSL *con) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
while (i <= 0 && SSL_get_error(con, i) == SSL_ERROR_WANT_X509_LOOKUP) {
BIO_printf(bio_s_out, "LOOKUP during accept %s\n", srp_callback_parm.login);
srp_callback_parm.user = SRP_VBASE_get_by_user(srp_callbac... | static int init_ssl_connection(SSL *con) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
while (i <= 0 && SSL_get_error(con, i) == SSL_ERROR_WANT_X509_LOOKUP) {
BIO_printf(bio_s_out, "LOOKUP during accept %s\n", srp_callback_parm.login);
SRP_user_pwd_free(srp_callback_parm.user);
srp_cal... | static int init_ssl_connection(SSL *con) {
while (i <= 0 && SSL_get_error(con, i) == SSL_ERROR_WANT_X509_LOOKUP) {
BIO_printf(bio_s_out, "LOOKUP during accept %s\n", srp_callback_parm.login);
- srp_callback_parm.user = SRP_VBASE_get_by_user(srp_callback_parm.vb, srp_callback_parm.login);
+ ... |
CVE-2016-0798 | OpenSSL | https://github.com/openssl/openssl | apps/s_server.c | sv_body | static int sv_body(char *hostname, int s, int stype, unsigned char *context) {
char *buf = NULL;
fd_set readfds;
int ret = 1, width;
int k, i;
unsigned long l;
SSL *con = NULL;
BIO *sbio;
KSSL_CTX *kctx;
struct timeval timeout;
struct timeval tv;
struct timeval *timeoutp;
... | static int sv_body(char *hostname, int s, int stype, unsigned char *context) {
char *buf = NULL;
fd_set readfds;
int ret = 1, width;
int k, i;
unsigned long l;
SSL *con = NULL;
BIO *sbio;
KSSL_CTX *kctx;
struct timeval timeout;
struct timeval tv;
struct timeval *timeoutp;
... | static int sv_body(char *hostname, int s, unsigned char *context) {
char *buf = NULL;
fd_set readfds;
int ret = 1, width;
int k, i;
unsigned long l;
SSL *con = NULL;
BIO *sbio;
KSSL_CTX *kctx;
struct timeval timeout;
struct timeval tv;
struct timeval *timeoutp;
if ((buf =... | static int sv_body(char *hostname, int s, unsigned char *context) {
char *buf = NULL;
fd_set readfds;
int ret = 1, width;
int k, i;
unsigned long l;
SSL *con = NULL;
BIO *sbio;
KSSL_CTX *kctx;
struct timeval timeout;
struct timeval tv;
struct timeval *timeoutp;
if ((buf =... | static int sv_body(char *hostname, int s, int stype, unsigned char *context) {
for (;;) {
if (read_from_terminal) {
for (;;) {
while (SSL_get_error(con, k) == SSL_ERROR_WANT_X509_LOOKUP) {
BIO_printf(bio_s_out, "LOOKUP renego during write\n");
... | static int sv_body(char *hostname, int s, int stype, unsigned char *context) {
for (;;) {
if (read_from_terminal) {
for (;;) {
while (SSL_get_error(con, k) == SSL_ERROR_WANT_X509_LOOKUP) {
BIO_printf(bio_s_out, "LOOKUP renego during write\n");
... | static int sv_body(char *hostname, int s, unsigned char *context) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
for (;;) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (read_from_terminal) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
for (;;) {
/* PLACEHOLDER: DO NOT DEL... | static int sv_body(char *hostname, int s, unsigned char *context) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
for (;;) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (read_from_terminal) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
for (;;) {
/* PLACEHOLDER: DO NOT DEL... | static int sv_body(char *hostname, int s, int stype, unsigned char *context) {
for (;;) {
if (read_from_terminal) {
for (;;) {
while (SSL_get_error(con, k) == SSL_ERROR_WANT_X509_LOOKUP) {
BIO_printf(bio_s_out, "LOOKUP renego during write\n");
- ... |
CVE-2016-0798 | OpenSSL | https://github.com/openssl/openssl | apps/s_server.c | www_body | static int www_body(char *hostname, int s, int stype, unsigned char *context) {
char *buf = NULL;
int ret = 1;
int i, j, k, dot;
SSL *con;
const SSL_CIPHER *c;
BIO *io, *ssl_bio, *sbio;
KSSL_CTX *kctx;
buf = OPENSSL_malloc(bufsize);
if (buf == NULL) {
return (0);
}
io... | static int www_body(char *hostname, int s, int stype, unsigned char *context) {
char *buf = NULL;
int ret = 1;
int i, j, k, dot;
SSL *con;
const SSL_CIPHER *c;
BIO *io, *ssl_bio, *sbio;
KSSL_CTX *kctx;
buf = OPENSSL_malloc(bufsize);
if (buf == NULL) {
return (0);
}
io... | static int www_body(char *hostname, int s, unsigned char *context) {
char *buf = NULL;
int ret = 1;
int i, j, k, dot;
SSL *con;
const SSL_CIPHER *c;
BIO *io, *ssl_bio, *sbio;
KSSL_CTX *kctx;
buf = OPENSSL_malloc(bufsize);
if (buf == NULL) {
return (0);
}
io = BIO_new(... | static int www_body(char *hostname, int s, unsigned char *context) {
char *buf = NULL;
int ret = 1;
int i, j, k, dot;
SSL *con;
const SSL_CIPHER *c;
BIO *io, *ssl_bio, *sbio;
KSSL_CTX *kctx;
buf = OPENSSL_malloc(bufsize);
if (buf == NULL) {
return (0);
}
io = BIO_new(... | static int www_body(char *hostname, int s, int stype, unsigned char *context) {
buf = OPENSSL_malloc(bufsize);
if (buf == NULL) {
return (0);
}
io = BIO_new(BIO_f_buffer());
ssl_bio = BIO_new(BIO_f_ssl());
if ((io == NULL) || (ssl_bio == NULL)) {
goto err;
}
if ((con = SS... | static int www_body(char *hostname, int s, int stype, unsigned char *context) {
buf = OPENSSL_malloc(bufsize);
if (buf == NULL) {
return (0);
}
io = BIO_new(BIO_f_buffer());
ssl_bio = BIO_new(BIO_f_ssl());
if ((io == NULL) || (ssl_bio == NULL)) {
goto err;
}
if ((con = SS... | static int www_body(char *hostname, int s, unsigned char *context) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
buf = OPENSSL_malloc(bufsize);
if (buf == NULL) {
return (0);
}
io = BIO_new(BIO_f_buffer());
ssl_bio = BIO_new(BIO_f_ssl());
if ((io == NULL) || (ssl_bio == NULL)) {
... | static int www_body(char *hostname, int s, unsigned char *context) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
buf = OPENSSL_malloc(bufsize);
if (buf == NULL) {
return (0);
}
io = BIO_new(BIO_f_buffer());
ssl_bio = BIO_new(BIO_f_ssl());
if ((io == NULL) || (ssl_bio == NULL)) {
... | static int www_body(char *hostname, int s, int stype, unsigned char *context) {
buf = OPENSSL_malloc(bufsize);
if (buf == NULL) {
return (0);
}
io = BIO_new(BIO_f_buffer());
ssl_bio = BIO_new(BIO_f_ssl());
if ((io == NULL) || (ssl_bio == NULL)) {
goto err;
}
if... |
CVE-2016-0798 | OpenSSL | https://github.com/openssl/openssl | crypto/srp/srp_vfy.c | SRP_user_pwd_free | static void SRP_user_pwd_free(SRP_user_pwd *user_pwd) {
if (user_pwd == NULL) {
return;
}
BN_free(user_pwd->s);
BN_clear_free(user_pwd->v);
OPENSSL_free(user_pwd->id);
OPENSSL_free(user_pwd->info);
OPENSSL_free(user_pwd);
} | void SRP_user_pwd_free(SRP_user_pwd *user_pwd) {
if (user_pwd == NULL) {
return;
}
BN_free(user_pwd->s);
BN_clear_free(user_pwd->v);
OPENSSL_free(user_pwd->id);
OPENSSL_free(user_pwd->info);
OPENSSL_free(user_pwd);
} | static void SRP_user_pwd_free(SRP_user_pwd *user_pwd) {
if (user_pwd == NULL) {
return;
}
BN_free(user_pwd->s);
BN_clear_free(user_pwd->v);
OPENSSL_free(user_pwd->id);
OPENSSL_free(user_pwd->info);
OPENSSL_free(user_pwd);
} | void SRP_user_pwd_free(SRP_user_pwd *user_pwd) {
if (user_pwd == NULL) {
return;
}
BN_free(user_pwd->s);
BN_clear_free(user_pwd->v);
OPENSSL_free(user_pwd->id);
OPENSSL_free(user_pwd->info);
OPENSSL_free(user_pwd);
} | static void SRP_user_pwd_free(SRP_user_pwd *user_pwd) {
}
| void SRP_user_pwd_free(SRP_user_pwd *user_pwd) {
}
| static void SRP_user_pwd_free(SRP_user_pwd *user_pwd) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}
| void SRP_user_pwd_free(SRP_user_pwd *user_pwd) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
} | -static void SRP_user_pwd_free(SRP_user_pwd *user_pwd) {
+void SRP_user_pwd_free(SRP_user_pwd *user_pwd) {
} |
CVE-2016-0799 | OpenSSL | https://github.com/openssl/openssl | crypto/bio/b_print.c | BIO_vprintf | int BIO_vprintf(BIO *bio, const char *format, va_list args) {
int ret;
size_t retlen;
char hugebuf[1024 * 2];
char *hugebufp = hugebuf;
size_t hugebufsize = sizeof(hugebuf);
char *dynbuf = NULL;
int ignored;
dynbuf = NULL;
_dopr(&hugebufp, &dynbuf, &hugebufsize, &retlen, &ignored, fo... | int BIO_vprintf(BIO *bio, const char *format, va_list args) {
int ret;
size_t retlen;
char hugebuf[1024 * 2];
char *hugebufp = hugebuf;
size_t hugebufsize = sizeof(hugebuf);
char *dynbuf = NULL;
int ignored;
dynbuf = NULL;
if (!_dopr(&hugebufp, &dynbuf, &hugebufsize, &retlen, &ignore... | int BIO_vprintf(BIO *bio, const char *format, va_list args) {
int ret;
size_t retlen;
char hugebuf[1024 * 2];
char *hugebufp = hugebuf;
size_t hugebufsize = sizeof(hugebuf);
char *dynbuf = NULL;
int ignored;
dynbuf = NULL;
CRYPTO_push_info("doapr()");
_dopr(&hugebufp, &dynbuf, &h... | int BIO_vprintf(BIO *bio, const char *format, va_list args) {
int ret;
size_t retlen;
char hugebuf[1024 * 2];
char *hugebufp = hugebuf;
size_t hugebufsize = sizeof(hugebuf);
char *dynbuf = NULL;
int ignored;
dynbuf = NULL;
CRYPTO_push_info("doapr()");
if (!_dopr(&hugebufp, &dynbu... | int BIO_vprintf(BIO *bio, const char *format, va_list args) {
char *hugebufp = hugebuf;
size_t hugebufsize = sizeof(hugebuf);
dynbuf = NULL;
_dopr(&hugebufp, &dynbuf, &hugebufsize, &retlen, &ignored, format, args);
if (dynbuf) {
} else {
}
}
| int BIO_vprintf(BIO *bio, const char *format, va_list args) {
char *hugebufp = hugebuf;
size_t hugebufsize = sizeof(hugebuf);
dynbuf = NULL;
if (!_dopr(&hugebufp, &dynbuf, &hugebufsize, &retlen, &ignored, format, args)) {
OPENSSL_free(dynbuf);
return -1;
}
if (dynbuf) {
} els... | int BIO_vprintf(BIO *bio, const char *format, va_list args) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
char *hugebufp = hugebuf;
size_t hugebufsize = sizeof(hugebuf);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
dynbuf = NULL;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
_dopr(&hugebu... | int BIO_vprintf(BIO *bio, const char *format, va_list args) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
char *hugebufp = hugebuf;
size_t hugebufsize = sizeof(hugebuf);
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
dynbuf = NULL;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (!_dopr(&h... | int BIO_vprintf(BIO *bio, const char *format, va_list args) {
char *hugebufp = hugebuf;
size_t hugebufsize = sizeof(hugebuf);
dynbuf = NULL;
- _dopr(&hugebufp, &dynbuf, &hugebufsize, &retlen, &ignored, format, args);
+ if (!_dopr(&hugebufp, &dynbuf, &hugebufsize, &retlen, &ignored, format, args)) ... |
CVE-2016-0799 | OpenSSL | https://github.com/openssl/openssl | crypto/bio/b_print.c | BIO_vsnprintf | int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) {
size_t retlen;
int truncated;
_dopr(&buf, NULL, &n, &retlen, &truncated, format, args);
if (truncated) {
return -1;
} else {
return (retlen <= T_MAX) ? (int)retlen : -1;
}
} | int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) {
size_t retlen;
int truncated;
if(!_dopr(&buf, NULL, &n, &retlen, &truncated, format, args)) {
return -1;
}
if (truncated) {
return -1;
} else {
return (retlen <= T_MAX) ? (int)retlen : -1;
}
} | int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) {
size_t retlen;
int truncated;
_dopr(&buf, NULL, &n, &retlen, &truncated, format, args);
if (truncated) {
return -1;
} else {
return (retlen <= T_MAX) ? (int)retlen : -1;
}
} | int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) {
size_t retlen;
int truncated;
if(!_dopr(&buf, NULL, &n, &retlen, &truncated, format, args)) {
return -1;
}
if (truncated) {
return -1;
} else {
return (retlen <= T_MAX) ? (int)retlen : -1;
}
} | int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) {
int truncated;
_dopr(&buf, NULL, &n, &retlen, &truncated, format, args);
if (truncated) {
return -1;
} else {
}
}
| int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) {
int truncated;
if(!_dopr(&buf, NULL, &n, &retlen, &truncated, format, args)) {
return -1;
}
if (truncated) {
return -1;
} else {
}
}
| int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int truncated;
_dopr(&buf, NULL, &n, &retlen, &truncated, format, args);
if (truncated) {
return -1;
} else {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
}
}
| int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int truncated;
if(!_dopr(&buf, NULL, &n, &retlen, &truncated, format, args)) {
return -1;
}
if (truncated) {
return -1;
} else {
/* PLACEHOLDER: DO NOT DEL... | int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) {
int truncated;
- _dopr(&buf, NULL, &n, &retlen, &truncated, format, args);
+ if(!_dopr(&buf, NULL, &n, &retlen, &truncated, format, args)) {
+ return -1;
+ }
if (truncated) {
return -1;
} else {
}
} |
CVE-2016-0799 | OpenSSL | https://github.com/openssl/openssl | crypto/bio/b_print.c | _dopr | static void _dopr(char **sbuffer, char **buffer, size_t *maxlen, size_t *retlen, int *truncated, const char *format, va_list args) {
char ch;
LLONG value;
LDOUBLE fvalue;
char *strvalue;
int min;
int max;
int state;
int flags;
int cflags;
size_t currlen;
state = DP_S_DEFAULT;... | static int _dopr(char **sbuffer, char **buffer, size_t *maxlen, size_t *retlen, int *truncated, const char *format, va_list args) {
char ch;
LLONG value;
LDOUBLE fvalue;
char *strvalue;
int min;
int max;
int state;
int flags;
int cflags;
size_t currlen;
state = DP_S_DEFAULT;
... | static void _dopr(char **sbuffer, char **buffer, size_t *maxlen, size_t *retlen, int *truncated, const char *format, va_list args) {
char ch;
LLONG value;
LDOUBLE fvalue;
char *strvalue;
int min;
int max;
int state;
int flags;
int cflags;
size_t currlen;
state = DP_S_DEFAULT;... | static int _dopr(char **sbuffer, char **buffer, size_t *maxlen, size_t *retlen, int *truncated, const char *format, va_list args) {
char ch;
LLONG value;
LDOUBLE fvalue;
char *strvalue;
int min;
int max;
int state;
int flags;
int cflags;
size_t currlen;
state = DP_S_DEFAULT;
... | static void _dopr(char **sbuffer, char **buffer, size_t *maxlen, size_t *retlen, int *truncated, const char *format, va_list args) {
flags = currlen = cflags = min = 0;
max = -1;
ch = *format++;
while (state != DP_S_DONE) {
if (ch == '\0' || (buffer == NULL && currlen >= *maxlen)) {
... | static int _dopr(char **sbuffer, char **buffer, size_t *maxlen, size_t *retlen, int *truncated, const char *format, va_list args) {
flags = currlen = cflags = min = 0;
max = -1;
ch = *format++;
while (state != DP_S_DONE) {
if (ch == '\0' || (buffer == NULL && currlen >= *maxlen)) {
s... | static void _dopr(char **sbuffer, char **buffer, size_t *maxlen, size_t *retlen, int *truncated, const char *format, va_list args) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
flags = currlen = cflags = min = 0;
max = -1;
ch = *format++;
while (state != DP_S_DONE) {
if (ch == '\0' || (buf... | static int _dopr(char **sbuffer, char **buffer, size_t *maxlen, size_t *retlen, int *truncated, const char *format, va_list args) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
flags = currlen = cflags = min = 0;
max = -1;
ch = *format++;
while (state != DP_S_DONE) {
if (ch == '\0' || (buff... | -static void _dopr(char **sbuffer, char **buffer, size_t *maxlen, size_t *retlen, int *truncated, const char *format, va_list args) {
+static int _dopr(char **sbuffer, char **buffer, size_t *maxlen, size_t *retlen, int *truncated, const char *format, va_list args) {
flags = currlen = cflags = min = 0;
max = -... |
CVE-2016-0799 | OpenSSL | https://github.com/openssl/openssl | crypto/bio/b_print.c | doapr_outch | static void doapr_outch(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, int c) {
assert(*sbuffer != NULL || buffer != NULL);
assert(*currlen <= *maxlen);
if (buffer && *currlen == *maxlen) {
*maxlen += 1024;
if (*buffer == NULL) {
*buffer = OPENSSL_malloc(*maxlen)... | static int doapr_outch(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, int c) {
assert(*sbuffer != NULL || buffer != NULL);
assert(*currlen <= *maxlen);
if (buffer && *currlen == *maxlen) {
if (*maxlen > T_MAX - BUFFER_C) {
return 0;
}
*maxlen += BUFFER_C;... | static void doapr_outch(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, int c) {
assert(*sbuffer != NULL || buffer != NULL);
assert(*currlen <= *maxlen);
if (buffer && *currlen == *maxlen) {
*maxlen += 1024;
if (*buffer == NULL) {
*buffer = OPENSSL_malloc(*maxlen)... | static int doapr_outch(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, int c) {
assert(*sbuffer != NULL || buffer != NULL);
assert(*currlen <= *maxlen);
if (buffer && *currlen == *maxlen) {
if (*maxlen > T_MAX - BUFFER_C) {
return 0;
}
*maxlen += BUFFER_C;... | static void doapr_outch(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, int c) {
assert(*sbuffer != NULL || buffer != NULL);
assert(*currlen <= *maxlen);
if (buffer && *currlen == *maxlen) {
*maxlen += 1024;
if (*buffer == NULL) {
*buffer = OPENSSL_malloc(*maxlen)... | static int doapr_outch(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, int c) {
assert(*sbuffer != NULL || buffer != NULL);
assert(*currlen <= *maxlen);
if (buffer && *currlen == *maxlen) {
if (*maxlen > T_MAX - BUFFER_C) {
return 0;
}
*maxlen += BUFFER_C;... | static void doapr_outch(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, int c) {
assert(*sbuffer != NULL || buffer != NULL);
assert(*currlen <= *maxlen);
if (buffer && *currlen == *maxlen) {
*maxlen += 1024;
if (*buffer == NULL) {
*buffer = OPENSSL_malloc(*maxlen)... | static int doapr_outch(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, int c) {
assert(*sbuffer != NULL || buffer != NULL);
assert(*currlen <= *maxlen);
if (buffer && *currlen == *maxlen) {
if (*maxlen > T_MAX - BUFFER_C) {
return 0;
}
*maxlen += BUFFER_C;... | -static void doapr_outch(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, int c) {
+static int doapr_outch(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, int c) {
assert(*sbuffer != NULL || buffer != NULL);
assert(*currlen <= *maxlen);
if (buffer && *currlen == *maxlen) {
... |
CVE-2016-0799 | OpenSSL | https://github.com/openssl/openssl | crypto/bio/b_print.c | fmtfp | static void fmtfp(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LDOUBLE fvalue, int min, int max, int flags) {
int signvalue = 0;
LDOUBLE ufvalue;
char iconvert[20];
char fconvert[20];
int iplace = 0;
int fplace = 0;
int padlen = 0;
int zpadlen = 0;
long intpart;
... | static int fmtfp(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LDOUBLE fvalue, int min, int max, int flags) {
int signvalue = 0;
LDOUBLE ufvalue;
char iconvert[20];
char fconvert[20];
int iplace = 0;
int fplace = 0;
int padlen = 0;
int zpadlen = 0;
long intpart;
... | static void fmtfp(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LDOUBLE fvalue, int min, int max, int flags) {
int signvalue = 0;
LDOUBLE ufvalue;
char iconvert[20];
char fconvert[20];
int iplace = 0;
int fplace = 0;
int padlen = 0;
int zpadlen = 0;
long intpart;
... | static int fmtfp(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LDOUBLE fvalue, int min, int max, int flags) {
int signvalue = 0;
LDOUBLE ufvalue;
char iconvert[20];
char fconvert[20];
int iplace = 0;
int fplace = 0;
int padlen = 0;
int zpadlen = 0;
long intpart;
... | static void fmtfp(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LDOUBLE fvalue, int min, int max, int flags) {
int iplace = 0;
int fplace = 0;
if (max < 0) {
max = 6;
}
ufvalue = abs_val(fvalue);
intpart = (long)ufvalue;
if (max > 9) {
max = 9;
}
max... | static int fmtfp(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LDOUBLE fvalue, int min, int max, int flags) {
int iplace = 0;
int fplace = 0;
if (max < 0) {
max = 6;
}
ufvalue = abs_val(fvalue);
intpart = (long)ufvalue;
if (max > 9) {
max = 9;
}
max1... | static void fmtfp(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LDOUBLE fvalue, int min, int max, int flags) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int iplace = 0;
int fplace = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (max < 0) {
max = 6;
}
ufval... | static int fmtfp(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LDOUBLE fvalue, int min, int max, int flags) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int iplace = 0;
int fplace = 0;
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
if (max < 0) {
max = 6;
}
ufvalu... | -static void fmtfp(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LDOUBLE fvalue, int min, int max, int flags) {
+static int fmtfp(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LDOUBLE fvalue, int min, int max, int flags) {
int iplace = 0;
int fplace = 0;
if (max < 0) {... |
CVE-2016-0799 | OpenSSL | https://github.com/openssl/openssl | crypto/bio/b_print.c | fmtint | static void fmtint(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LLONG value, int base, int min, int max, int flags) {
int signvalue = 0;
const char *prefix = "";
unsigned LLONG uvalue;
char convert[DECIMAL_SIZE(value) + 3];
int place = 0;
int spadlen = 0;
int zpadlen = 0;
... | static int fmtint(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LLONG value, int base, int min, int max, int flags) {
int signvalue = 0;
const char *prefix = "";
unsigned LLONG uvalue;
char convert[DECIMAL_SIZE(value) + 3];
int place = 0;
int spadlen = 0;
int zpadlen = 0;
... | static void fmtint(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LLONG value, int base, int min, int max, int flags) {
int signvalue = 0;
const char *prefix = "";
unsigned LLONG uvalue;
char convert[DECIMAL_SIZE(value) + 3];
int place = 0;
int spadlen = 0;
int zpadlen = 0;
... | static int fmtint(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LLONG value, int base, int min, int max, int flags) {
int signvalue = 0;
const char *prefix = "";
unsigned LLONG uvalue;
char convert[DECIMAL_SIZE(value) + 3];
int place = 0;
int spadlen = 0;
int zpadlen = 0;
... | static void fmtint(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LLONG value, int base, int min, int max, int flags) {
const char *prefix = "";
int place = 0;
if (max < 0) {
max = 0;
}
uvalue = value;
if (!(flags & DP_F_UNSIGNED)) {
if (value < 0) {
... | static int fmtint(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LLONG value, int base, int min, int max, int flags) {
const char *prefix = "";
int place = 0;
if (max < 0) {
max = 0;
}
uvalue = value;
if (!(flags & DP_F_UNSIGNED)) {
if (value < 0) {
u... | static void fmtint(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LLONG value, int base, int min, int max, int flags) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const char *prefix = "";
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int place = 0;
/* PLACEHOLDER: DO NOT DELETE T... | static int fmtint(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LLONG value, int base, int min, int max, int flags) {
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
const char *prefix = "";
/* PLACEHOLDER: DO NOT DELETE THIS COMMENT */
int place = 0;
/* PLACEHOLDER: DO NOT DELETE TH... | -static void fmtint(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LLONG value, int base, int min, int max, int flags) {
+static int fmtint(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, LLONG value, int base, int min, int max, int flags) {
const char *prefix = "";
int place ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.