(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-nlm.c) |
| |
| 628 | | | dissect_nlm_share(tvbuff_t *tvb, int offset, packet_info *pinfo, |
| 629 | | | proto_tree *tree,int version _U_) |
| 630 | | | { |
| 631 | | | proto_item* lock_item = NULL; |
| 632 | | | proto_tree* lock_tree = NULL; |
| 633 | | | guint32 fh_hash; |
| 634 | | | |
| 635 | | | offset = dissect_rpc_data(tvb, tree, hf_nlm_cookie, offset); |
| 636 | | | |
| 637 | | | if (tree) { |
Event 1:
Skipping " if". tree evaluates to false.
hide
|
|
| 638 | | | lock_item = proto_tree_add_item(tree, hf_nlm_share, tvb, |
| 639 | | | offset, -1, FALSE); |
| 640 | | | if (lock_item) |
| 641 | | | lock_tree = proto_item_add_subtree(lock_item, |
| 642 | | | ett_nlm_lock); |
| 643 | | | } |
| 644 | | | |
| 645 | | | offset = dissect_rpc_string(tvb,lock_tree, |
| 646 | | | hf_nlm_lock_caller_name, offset, NULL); |
| 647 | | | |
| 648 | [+] | | offset = dissect_nfs_fh3(tvb, offset, pinfo, lock_tree, "fh", &fh_hash); |
Event 2:
dissect_nfs_fh3() does not initialize fh_hash. - This may be because of a failure case or other special case for dissect_nfs_fh3().
hide
|
|
 |
| 649 | | | if (check_col(pinfo->cinfo, COL_INFO)) { |
Event 6:
Taking true branch. check_col(...) evaluates to true.
hide
|
|
| 650 | | | col_append_fstr(pinfo->cinfo, COL_INFO, " FH:0x%08x", fh_hash); |
Uninitialized Variable
fh_hash was not initialized. The issue can occur if the highlighted code executes. See related event 2. Show: All events | Only primary events |
|
| |