(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-mapi.c) |
| |
| 9203 | | | mapi_dissect_bitmap_ulEventType(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_) |
| 9204 | | | { |
| 9205 | | | proto_item *item = NULL; |
| 9206 | | | proto_tree *tree = NULL; |
| 9207 | | | |
| 9208 | | | guint16 flags; |
| 9209 | | | ALIGN_TO_2_BYTES;
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcerpc-nt.h |
| |
59 | #define ALIGN_TO_2_BYTES \ |
60 | { dcerpc_info *xzdi; \ |
61 | xzdi=pinfo->private_data; \ |
62 | if(!xzdi->conformant_run) { \ |
63 | if(offset&0x01) { \ |
64 | offset=(offset&0xfffffffe)+2; \ |
65 | } \ |
66 | } \ |
67 | } |
| |
|
Event 1:
Skipping " if". xzdi->conformant_run evaluates to true.
hide
|
|
| 9210 | | | |
| 9211 | | | if (parent_tree) { |
Event 2:
Skipping " if". parent_tree evaluates to false.
hide
|
|
| 9212 | | | item = proto_tree_add_item(parent_tree, hf_index, tvb, offset, 2, TRUE); |
| 9213 | | | tree = proto_item_add_subtree(item,ett_mapi_ulEventType); |
| 9214 | | | } |
| 9215 | | | |
| 9216 | [+] | | offset = dissect_ndr_uint16(tvb, offset, pinfo, NULL, drep, -1, &flags); |
Event 3:
dissect_ndr_uint16() does not initialize flags. - This may be because of a failure case or other special case for dissect_ndr_uint16().
hide
|
|
 |
| 9217 | | | proto_item_append_text(item, ": "); |
| 9218 | | | |
| 9219 | | | if (!flags) |
Uninitialized Variable
flags was not initialized. The issue can occur if the highlighted code executes. See related event 3. Show: All events | Only primary events |
|
| |