(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-per.c) |
| |
| 832 | | | dissect_per_constrained_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, int min_len, int max_len, gboolean has_extension _U_) |
| 833 | | | { |
| 834 | | | proto_item *item; |
| 835 | | | proto_tree *tree; |
| 836 | | | guint32 old_offset=offset; |
| 837 | | | guint32 length; |
| 838 | | | *hfi; |
| 839 | | | |
| 840 | | | DEBUG_ENTRY("dissect_per_constrained_sequence_of"); |
| 841 | | | |
| 842 | | | |
| 843 | | | |
| 844 | | | |
| 845 | | | if(has_extension){ |
Event 1:
Skipping " if". has_extension evaluates to false.
hide
|
|
| 846 | | | gboolean extension_present; |
| 847 | | | offset=dissect_per_boolean(tvb, offset, actx, parent_tree, hf_per_extension_present_bit, &extension_present); |
| 848 | | | if (!display_internal_per_fields) PROTO_ITEM_SET_HIDDEN(actx->created_item);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
319 | #define PROTO_ITEM_SET_HIDDEN(proto_item) \ |
320 | ((proto_item) ? FI_SET_FLAG((proto_item)->finfo, FI_HIDDEN) : 0) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
246 | #define FI_SET_FLAG(fi, flag) (fi->flags = fi->flags | flag) |
| |
|
| 849 | | | if(extension_present){ |
| 850 | | | |
| 851 | | | |
| 852 | | | |
| 853 | | | |
| 854 | | | proto_tree_add_text(parent_tree, tvb, (offset>>3), 1, "dissect_per_constrained_sequence_of with extension is not handled"); |
| 855 | | | } |
| 856 | | | } |
| 857 | | | |
| 858 | | | |
| 859 | | | if((min_len==max_len) && (min_len<65536)){ |
Event 2:
Skipping " if". - min_len == max_len evaluates to true.
- min_len < 65536 evaluates to false.
hide
|
|
| 860 | | | length=min_len; |
| 861 | | | goto call_sohelper; |
| 862 | | | } |
| 863 | | | |
| 864 | | | |
| 865 | | | if ((max_len >= 65536) || (max_len == NO_BOUND)) { |
Event 3:
Taking true branch. max_len >= 65536 evaluates to true.
hide
|
|
| 866 | | | |
| 867 | [+] | | offset=dissect_per_length_determinant(tvb, offset, actx, parent_tree, hf_per_sequence_of_length, &length); |
Event 4:
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
|
|
 |
| 868 | | | goto call_sohelper; |
| 869 | | | } |
| 870 | | | |
| 871 | | | |
| 872 | | | offset=dissect_per_constrained_integer(tvb, offset, actx, |
| 873 | | | parent_tree, hf_per_sequence_of_length, min_len, max_len, |
| 874 | | | &length, FALSE); |
| 875 | | | if (!display_internal_per_fields) PROTO_ITEM_SET_HIDDEN(actx->created_item);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
319 | #define PROTO_ITEM_SET_HIDDEN(proto_item) \ |
320 | ((proto_item) ? FI_SET_FLAG((proto_item)->finfo, FI_HIDDEN) : 0) |
| |
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/proto.h |
| |
246 | #define FI_SET_FLAG(fi, flag) (fi->flags = fi->flags | flag) |
| |
|
| 876 | | | |
| 877 | | | call_sohelper: |
| 878 | | | hfi = proto_registrar_get_nth(hf_index); |
| 879 | | | 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)==) |
| |
|
Event 11:
Taking true branch. hfi->type == FT_UINT8 evaluates to true.
hide
|
|
| 880 | | | item = proto_tree_add_uint(parent_tree, hf_index, tvb, offset>>3, 0, length); |
Uninitialized Variable
length was not initialized. The issue can occur if the highlighted code executes. See related event 4. Show: All events | Only primary events |
|
| |