(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-gsm_bsslap.c) |
| |
| 677 | | | dissect_gsm_bsslap_ta_layer3(tvbuff_t *tvb, proto_tree *tree, int offset) |
| 678 | | | { |
| 679 | | | guint32 curr_offset; |
| 680 | | | guint32 consumed; |
| 681 | | | guint curr_len; |
| 682 | | | |
| 683 | | | curr_offset = offset; |
| 684 | | | curr_len = tvb_length_remaining(tvb,offset); |
| 685 | | | |
| 686 | | | |
| 687 | | | ELEM_MAND_TV(BSSLAP_PARAM_TIMING_ADVANCE, GSM_A_PDU_TYPE_BSSLAP, DE_BLAP_TA, "");
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-gsm_a_common.h |
| |
415 | #define ELEM_MAND_TV(EMT_iei, EMT_pdu_type, EMT_elem_idx, EMT_elem_name_addition) \ |
416 | {\ |
417 | if ((consumed = elem_tv(tvb, tree, (guint8) EMT_iei, EMT_pdu_type, EMT_elem_idx, curr_offset, EMT_elem_name_addition)) > 0) \ |
418 | { \ |
419 | curr_offset += consumed; \ |
420 | curr_len -= consumed; \ |
421 | } \ |
422 | else \ |
423 | { \ |
424 | proto_tree_add_text(tree, \ |
425 | tvb, curr_offset, 0, \ |
426 | "Missing Mandatory element (0x%02x) %s%s, rest of dissection is suspect", \ |
427 | EMT_iei, \ |
428 | get_gsm_a_msg_string(EMT_pdu_type, EMT_elem_idx), \ |
429 | (EMT_elem_name_addition == NULL) || (EMT_elem_name_addition[0] == '\0') ? "" : EMT_elem_name_addition \ |
430 | ); \ |
431 | } \ |
432 | if (curr_len <= 0) return; \ |
433 | } |
| |
|
| 688 | | | |
| 689 | | | ELEM_OPT_TLV(BSSLAP_PARAM_MEASUREMENT_REPORT, GSM_A_PDU_TYPE_BSSLAP, DE_BLAP_MEAS_REP, " BSSLAP");
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 | } |
| |
|
| 690 | | | |
| 691 | | | ELEM_OPT_TLV(BSSLAP_PARAM_ENHANCED_MEASUREMENT_REPORT, GSM_A_PDU_TYPE_BSSLAP, DE_BLAP_ENH_MEAS_REP, "");
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 | } |
| |
|
| 692 | | | |
| 693 | | | ELEM_OPT_TLV(BSSLAP_PARAM_CELL_IDENTITY_LIST, GSM_A_PDU_TYPE_BSSLAP, DE_BLAP_CELL_ID_LIST, "-Measured Cell");
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 | } |
| |
|
Unused Value
The value assigned to curr_offset is never subsequently used on any execution path. |
|
| 694 | | | return; |
| 695 | | | } |
| |