(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-per.c) |
| |
| 547 | | | dissect_per_sequence_of(tvbuff_t *tvb, guint32 offset, asn1_ctx_t *actx, proto_tree *parent_tree, int hf_index, gint ett_index, const per_sequence_t *seq) |
| 548 | | | { |
| 549 | | | proto_item *item; |
| 550 | | | proto_tree *tree; |
| 551 | | | guint32 old_offset=offset; |
| 552 | | | guint32 length; |
| 553 | | | *hfi; |
| 554 | | | |
| 555 | | | DEBUG_ENTRY("dissect_per_sequence_of"); |
| 556 | | | |
| 557 | | | |
| 558 | | | |
| 559 | | | |
| 560 | [+] | | offset=dissect_per_length_determinant(tvb, offset, actx, parent_tree, hf_per_sequence_of_length, &length); |
Event 1:
dissect_per_length_determinant() does not initialize length. - This may be because of a failure case or other special case for dissect_per_length_determinant().
hide
|
|
 |
| 561 | | | |
| 562 | | | hfi = proto_registrar_get_nth(hf_index); |
| 563 | | | if (IS_FT_UINT(hfi->type)) {
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/ftypes/ftypes.h |
| |
70 | #define IS_FT_UINT(ft) ((ft)==FT_UINT8||(ft)==FT_UINT16||(ft)==FT_UINT24||(ft)==FT_UINT32||(ft)==FT_UINT64||(ft)==) |
| |
|
| 564 | | | item = proto_tree_add_uint(parent_tree, hf_index, tvb, offset>>3, 0, length); |
| 565 | | | proto_item_append_text(item, (length==1)?" item":" items"); |
| 566 | | | } else { |
| 567 | | | item=proto_tree_add_item(parent_tree, hf_index, tvb, offset>>3, 0, FALSE); |
| 568 | | | } |
| 569 | | | tree=proto_item_add_subtree(item, ett_index); |
| 570 | | | |
| 571 | | | offset=dissect_per_sequence_of_helper(tvb, offset, actx, tree, seq->func, *seq->p_id, length); |
Uninitialized Variable
length was not initialized. The issue can occur if the highlighted code executes. See related event 1. Show: All events | Only primary events |
|
| |