(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-gsm_a_rr.c) |
| |
| 7157 | | | dtap_rr_ho_cpte(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len) |
| 7158 | | | { |
| 7159 | | | guint32 curr_offset; |
| 7160 | | | guint32 consumed; |
| 7161 | | | guint curr_len; |
| 7162 | | | curr_offset = offset; |
| 7163 | | | curr_len = len; |
| 7164 | | | |
| 7165 | | | |
| 7166 | | | ELEM_MAND_V(GSM_A_PDU_TYPE_RR, DE_RR_CAUSE);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-gsm_a_common.h |
| |
493 | #define ELEM_MAND_V(EMV_pdu_type, EMV_elem_idx) \ |
494 | {\ |
495 | if ((consumed = elem_v(tvb, tree, EMV_pdu_type, EMV_elem_idx, curr_offset)) > 0) \ |
496 | { \ |
497 | curr_offset += consumed; \ |
498 | curr_len -= consumed; \ |
499 | } \ |
500 | else \ |
501 | { \ |
502 | /* Mandatory, but nothing we can do */ \ |
503 | } \ |
504 | if (curr_len <= 0) return; \ |
505 | } |
| |
|
| 7167 | | | |
| 7168 | | | |
| 7169 | | | ELEM_OPT_TLV(0x77,GSM_A_PDU_TYPE_RR, DE_RR_MOB_TIME_DIFF, " - Mobile Observed Time Difference");
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-gsm_a_common.h |
| |
395 | #define ELEM_OPT_TLV(EOT_iei, EOT_pdu_type, EOT_elem_idx, EOT_elem_name_addition) \ |
396 | {\ |
397 | if ((consumed = elem_tlv(tvb, tree, (guint8) EOT_iei, EOT_pdu_type, EOT_elem_idx, curr_offset, curr_len, EOT_elem_name_addition)) > 0) \ |
398 | { \ |
399 | curr_offset += consumed; \ |
400 | curr_len -= consumed; \ |
401 | } \ |
402 | if (curr_len <= 0) return; \ |
403 | } |
| |
|
| 7170 | | | |
| 7171 | | | (len, curr_offset - offset);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-gsm_a_common.h |
| |
201 | #define (edc_len, edc_max_len) \ |
202 | if (((edc_len) > (edc_max_len))||lower_nibble) \ |
203 | { \ |
204 | proto_tree_add_text(tree, tvb, \ |
205 | curr_offset, (edc_len) - (edc_max_len), " Data"); \ |
206 | curr_offset += ((edc_len) - (edc_max_len)); \ |
207 | } |
| |
|
Unused Value
The value assigned to curr_offset is never subsequently used on any execution path. |
|
| 7172 | | | |
| 7173 | | | } |
| |