(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-per.c) |
| |
| 924 | | | dissect_per_object_identifier(tvbuff_t *tvb, guint32 offset, asn1_ctx_t *actx _U_, proto_tree *tree, int hf_index, tvbuff_t **value_tvb) |
| 925 | | | { |
| 926 | | | guint length; |
| 927 | | | const char *str; |
| 928 | | | tvbuff_t *val_tvb = NULL; |
| 929 | | | *hfi; |
| 930 | | | |
| 931 | | | DEBUG_ENTRY("dissect_per_object_identifier"); |
| 932 | | | |
| 933 | [+] | | offset = dissect_per_length_determinant(tvb, offset, actx, tree, hf_per_object_identifier_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
|
|
 |
| 934 | | | if (actx->aligned) BYTE_ALIGN_OFFSET(offset);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-per.c |
| |
120 | #define BYTE_ALIGN_OFFSET(offset) if(offset&0x07){offset=(offset&0xfffffff8)+8;} |
| |
|
Event 8:
Taking true branch. actx->aligned evaluates to true.
hide
Event 9:
Skipping " if". offset & 7 evaluates to false.
hide
|
|
| 935 | | | val_tvb = new_octet_aligned_subset(tvb, offset, actx, 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 |
|
| |