(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-nlm.c) |
| |
| 370 | | | dissect_lock(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int version, int offset) |
| 371 | | | { |
| 372 | | | proto_item* lock_item = NULL; |
| 373 | | | proto_tree* lock_tree = NULL; |
| 374 | | | guint32 fh_hash, svid, start_offset=0, end_offset=0; |
| 375 | | | |
| 376 | | | if (tree) { |
Event 1:
Skipping " if". tree evaluates to false.
hide
|
|
| 377 | | | lock_item = proto_tree_add_item(tree, hf_nlm_lock, tvb, |
| 378 | | | offset, -1, FALSE); |
| 379 | | | if (lock_item) |
| 380 | | | lock_tree = proto_item_add_subtree(lock_item, ett_nlm_lock); |
| 381 | | | } |
| 382 | | | |
| 383 | | | offset = dissect_rpc_string(tvb,lock_tree, |
| 384 | | | hf_nlm_lock_caller_name, offset, NULL); |
| 385 | [+] | | 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
|
|
 |
| 386 | | | if (check_col(pinfo->cinfo, COL_INFO)) { |
Event 6:
Taking true branch. check_col(...) evaluates to true.
hide
|
|
| 387 | | | 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 |
|
| |