(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-nfs.c) |
| |
| 4938 | | | dissect_nfs3_create_call(tvbuff_t *tvb, int offset, packet_info *pinfo, |
| 4939 | | | proto_tree* tree) |
| 4940 | | | { |
| 4941 | | | guint32 mode; |
| 4942 | | | guint32 hash; |
| 4943 | | | char *name=NULL; |
| 4944 | | | |
| 4945 | [+] | | offset = dissect_diropargs3 (tvb, offset, pinfo, tree, "where", &hash, &name); |
Event 1:
dissect_diropargs3() does not initialize hash. - This may be because of a failure case or other special case for dissect_diropargs3().
hide
|
|
 |
| 4946 | | | offset = dissect_createmode3(tvb, offset, tree, &mode); |
| 4947 | | | switch (mode) { |
Event 9:
mode evaluates to 0.
hide
|
|
| 4948 | | | case UNCHECKED: |
| 4949 | | | case GUARDED: |
| 4950 | | | offset = dissect_sattr3(tvb, offset, tree, "obj_attributes"); |
| 4951 | | | break; |
| 4952 | | | case EXCLUSIVE: |
| 4953 | | | offset = dissect_createverf3(tvb, offset, tree); |
| 4954 | | | break; |
| 4955 | | | } |
| 4956 | | | |
| 4957 | [+] | | if (check_col(pinfo->cinfo, COL_INFO)) { |
 |
| 4958 | | | col_append_fstr(pinfo->cinfo, COL_INFO,", DH:0x%08x/%s Mode:%s", hash, name, val_to_str(mode, names_createmode3, "Unknown Mode:%u")); |
Uninitialized Variable
hash was not initialized. The issue can occur if the highlighted code executes. See related events 1 and 3. Show: All events | Only primary events |
|
| |