(/home/sate/Testcases/c/cve/wireshark-1.2.0/plugins/asn1/packet-asn1.c) |
| |
| 698 | | | dissect_asn1(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { |
| 699 | | | |
| 700 | | | ASN1_SCK asn1; |
| 701 | | | guint cls, con, tag, len, offset, reassembled; |
| 702 | | | gboolean def; |
| 703 | | | char lenstr[BUFLS]; |
| 704 | | | char tagstr[BUFLS]; |
| 705 | | | char headstr[BUFLL]; |
| 706 | | | char offstr[BUFLS]; |
| 707 | | | const char *name, *tname; |
| 708 | | | volatile guint boffset; |
| 709 | | | volatile int i = 0; |
| 710 | | | proto_tree * volatile ti = 0, * volatile ti2 = 0, *asn1_tree, *tree2; |
| 711 | | | proto_item *hidden_item; |
| 712 | | | PDUprops props; |
| 713 | | | static guint lastseq; |
| 714 | | | struct tcpinfo *info; |
| 715 | | | gint delta; |
| 716 | | | |
| 717 | | | pcount++; |
| 718 | | | boffset = 0; |
| 719 | | | |
| 720 | | | reassembled = 1; |
| 721 | | | if (pinfo->ipproto == IP_PROTO_TCP) { |
Event 1:
Taking false branch. pinfo->ipproto == 6 evaluates to false.
hide
|
|
| 722 | | | info = (struct tcpinfo *)pinfo->private_data; |
| 723 | | | delta = info->seq - lastseq; |
| 724 | | | reassembled = info->is_reassembled; |
| 725 | | | lastseq = info->seq; |
| 726 | | | |
| 727 | | | if (asn1_verbose) |
| 728 | | | g_message("dissect_asn1: tcp - seq=%u, delta=%d, reassembled=%d",
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 729 | | | info->seq, delta, reassembled); |
| 730 | | | } else { |
| 731 | | | if (asn1_verbose) |
Event 2:
Taking true branch. asn1_verbose evaluates to true.
hide
|
|
| 732 | | | g_message("dissect_asn1: udp");
x /usr/include/glib-2.0/glib/gmessages.h |
| |
147 | #define g_message(...) g_log (G_LOG_DOMAIN, \ |
148 | G_LOG_LEVEL_MESSAGE, \ |
149 | __VA_ARGS__) |
| |
|
| 733 | | | } |
| 734 | | | |
| 735 | | | |
| 736 | | | if(check_col(pinfo->cinfo, COL_PROTOCOL)){ |
Event 4:
Taking true branch. check_col(...) evaluates to true.
hide
|
|
| 737 | | | col_add_fstr(pinfo->cinfo, COL_PROTOCOL, "ASN.1 %s", current_pduname); |
| 738 | | | } |
| 739 | | | |
| 740 | [+] | | if(check_col(pinfo->cinfo, COL_INFO)) |
 |
| 741 | | | col_clear(pinfo->cinfo, COL_INFO); |
| 742 | | | |
| 743 | | | |
| 744 | | | offstr[0] = 0; |
| 745 | | | if ((first_pdu_offset > 0) && !reassembled) { |
Event 8:
Skipping " if". first_pdu_offset > 0 evaluates to false.
hide
|
|
| 746 | | | boffset = first_pdu_offset; |
| 747 | | | g_snprintf(offstr, sizeof(offstr), " at %d", boffset); |
| 748 | | | } |
| 749 | | | |
| 750 | | | |
| 751 | | | asn1_open(&asn1, tvb, boffset); |
| 752 | | | |
| 753 | [+] | | (&asn1, &cls, &con, &tag, &def, &len); |
 |
| 754 | | | |
| 755 | | | asn1_close(&asn1, &offset); |
| 756 | | | |
| 757 | [+] | | PDUreset(pcount, 0); |
 |
| 758 | [+] | | getPDUprops(&props, boffset, cls, tag, con); |
 |
| |