(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-dcom.c) |
| |
| 1457 | | | dissect_dcom_UUID(tvbuff_t *tvb, int offset, |
| 1458 | | | packet_info *pinfo, proto_tree *tree, guint8 *drep, |
| 1459 | | | int hfindex, e_uuid_t *pdata) |
| 1460 | | | { |
| 1461 | | | const gchar *uuid_name; |
| 1462 | | | *hfi; |
| 1463 | | | e_uuid_t uuid; |
| 1464 | | | |
| 1465 | | | |
| 1466 | | | |
| 1467 | | | offset = dissect_ndr_uuid_t(tvb, offset, pinfo, NULL, drep, |
| 1468 | [+] | | hfindex, &uuid); |
Event 1:
dissect_ndr_uuid_t() does not initialize uuid. - This may be because of a failure case or other special case for dissect_ndr_uuid_t().
hide
|
|
 |
| 1469 | | | |
| 1470 | | | |
| 1471 | | | hfi = proto_registrar_get_nth(hfindex); |
| 1472 | [+] | | uuid_name = guids_get_uuid_name(&uuid);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/guid-utils.h |
| |
57 | #define guids_get_uuid_name(uuid) guids_get_guid_name((e_guid_t *) (uuid)) |
| |
|
Event 3:
guids_get_guid_name() does not initialize uuid. - This may be because of a failure case or other special case for guids_get_guid_name().
hide
|
|
 |
| 1473 | | | if(uuid_name) { |
Event 5:
Taking false branch. uuid_name evaluates to false.
hide
|
|
| 1474 | | | proto_tree_add_guid_format(tree, hfindex, tvb, offset-16, 16, (e_guid_t *) &uuid, |
| 1475 | | | "%s: %s (%08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x)", |
| 1476 | | | hfi->name, uuid_name, |
| 1477 | | | uuid.Data1, uuid.Data2, uuid.Data3, |
| 1478 | | | uuid.Data4[0], uuid.Data4[1], |
| 1479 | | | uuid.Data4[2], uuid.Data4[3], |
| 1480 | | | uuid.Data4[4], uuid.Data4[5], |
| 1481 | | | uuid.Data4[6], uuid.Data4[7]); |
| 1482 | | | } else { |
| 1483 | | | proto_tree_add_guid_format(tree, hfindex, tvb, offset-16, 16, (e_guid_t *) &uuid, |
| 1484 | | | "%s: %08x-%04x-%04x-%02x%02x-%02x%02x%02x%02x%02x%02x", |
| 1485 | | | hfi->name, |
| 1486 | | | uuid.Data1, uuid.Data2, uuid.Data3, |
| 1487 | | | uuid.Data4[0], uuid.Data4[1], |
| 1488 | | | uuid.Data4[2], uuid.Data4[3], |
| 1489 | | | uuid.Data4[4], uuid.Data4[5], |
| 1490 | | | uuid.Data4[6], uuid.Data4[7]); |
Uninitialized Variable
uuid was not initialized. The issue can occur if the highlighted code executes. See related events 1 and 3. Show: All events | Only primary events |
|
| |