(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-nfs.c) |
| |
| 5101 | | | dissect_nfs3_mknod_call(tvbuff_t *tvb, int offset, packet_info *pinfo, |
| 5102 | | | proto_tree* tree) |
| 5103 | | | { |
| 5104 | | | guint32 type; |
| 5105 | | | guint32 hash; |
| 5106 | | | char *name=NULL; |
| 5107 | | | const char *type_str; |
| 5108 | | | |
| 5109 | [+] | | 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
|
|
 |
| 5110 | | | offset = dissect_ftype3(tvb, offset, tree, hf_nfs_ftype3, &type); |
| 5111 | | | switch (type) { |
Event 9:
type evaluates to 6.
hide
|
|
| 5112 | | | case NF3CHR: |
| 5113 | | | case NF3BLK: |
| 5114 | | | offset = dissect_sattr3(tvb, offset, tree, "dev_attributes"); |
| 5115 | | | offset = dissect_specdata3(tvb, offset, tree, "spec"); |
| 5116 | | | break; |
| 5117 | | | case NF3SOCK: |
| 5118 | | | case NF3FIFO: |
| 5119 | | | offset = dissect_sattr3(tvb, offset, tree, "pipe_attributes"); |
| 5120 | | | break; |
| 5121 | | | default: |
| 5122 | | | |
| 5123 | | | break; |
| 5124 | | | } |
| 5125 | | | |
| 5126 | | | type_str=val_to_str(type, names_nfs_ftype3, "Unknown type:%u"); |
| 5127 | [+] | | if (check_col(pinfo->cinfo, COL_INFO)) { |
 |
| 5128 | | | col_append_fstr(pinfo->cinfo, COL_INFO,", FH:0x%08x/%s %s", hash, name, type_str); |
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 |
|
| |