(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-smb-browse.c) |
| |
| 455 | | | dissect_smb_server_type_flags(tvbuff_t *tvb, int offset, packet_info *pinfo, |
| 456 | | | proto_tree *parent_tree, guint8 *drep, |
| 457 | | | gboolean infoflag) |
| 458 | | | { |
| 459 | | | proto_tree *tree = NULL; |
| 460 | | | proto_item *item = NULL; |
| 461 | | | guint32 flags; |
| 462 | | | int i; |
| 463 | | | |
| 464 | | | if (drep != NULL) { |
Event 1:
Taking true branch. drep != (void *)0 evaluates to true.
hide
|
|
| 465 | | | |
| 466 | | | |
| 467 | | | |
| 468 | | | |
| 469 | | | |
| 470 | | | |
| 471 | | | |
| 472 | | | |
| 473 | | | |
| 474 | | | offset = dissect_ndr_uint32( |
| 475 | [+] | | tvb, offset, pinfo, NULL, drep, hf_server_type, &flags); |
Event 2:
dissect_ndr_uint32() does not initialize flags. - This may be because of a failure case or other special case for dissect_ndr_uint32().
hide
|
|
 |
| 476 | | | } else { |
| 477 | | | |
| 478 | | | |
| 479 | | | |
| 480 | | | |
| 481 | | | |
| 482 | | | |
| 483 | | | flags = tvb_get_letohl(tvb, offset); |
| 484 | | | offset += 4; |
| 485 | | | } |
| 486 | | | |
| 487 | | | if (parent_tree) { |
Event 4:
Taking true branch. parent_tree evaluates to true.
hide
|
|
| 488 | | | item = proto_tree_add_uint(parent_tree, hf_server_type, tvb, offset-4, 4, flags); |
Uninitialized Variable
flags was not initialized. The issue can occur if the highlighted code executes. See related event 2. Show: All events | Only primary events |
|
| |