(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-dnsserver.c) |
| |
| 588 | | | dnsserver_dissect_struct_DNS_RPC_NAME(tvbuff_t *tvb _U_, int offset _U_, packet_info *pinfo _U_, proto_tree *parent_tree _U_, guint8 *drep _U_, int hf_index _U_, guint32 param _U_) |
| 589 | | | { |
| 590 | | | proto_item *item = NULL; |
| 591 | | | proto_tree *tree = NULL; |
| 592 | | | int old_offset; |
| 593 | | | dcerpc_info *di = NULL; |
| 594 | | | guint8 len; |
| 595 | | | const char *dn; |
| 596 | | | int dn_len; |
| 597 | | | guint16 bc; |
| 598 | | | di=pinfo->private_data; |
| 599 | | | if(di->conformant_run){ |
Event 1:
Skipping " if". di->conformant_run evaluates to false.
hide
|
|
| 600 | | | |
| 601 | | | return offset; |
| 602 | | | } |
| 603 | | | old_offset = offset; |
| 604 | | | if (parent_tree) { |
Event 2:
Skipping " if". parent_tree evaluates to false.
hide
|
|
| 605 | | | item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, -1, TRUE); |
| 606 | | | tree = proto_item_add_subtree(item, ett_dnsserver_DNS_RPC_NAME); |
| 607 | | | } |
| 608 | | | offset = dissect_ndr_uint8(tvb, offset, pinfo, tree, drep, hf_dnsserver_DNS_RPC_NAME_NameLength, &len); |
| 609 | | | bc = tvb_length_remaining(tvb, offset); |
| 610 | | | dn = get_unicode_or_ascii_string(tvb, &offset, |
| 611 | [+] | | TRUE, &dn_len, TRUE, TRUE, &bc); |
Event 3:
!0 evaluates to true.
hide
Event 4:
!0 evaluates to true.
hide
Event 5:
!0 evaluates to true.
hide
Event 6:
&dn_len is passed to get_unicode_or_ascii_string() as the fourth argument.
hide
Event 7:
get_unicode_or_ascii_string() does not initialize dn_len. - This may be because of a failure case or other special case for get_unicode_or_ascii_string().
hide
|
|
 |
| |