(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-gsm_bsslap.c) |
| |
| 698 | | | dissect_gsm_bsslap_ms_pos_cmd(tvbuff_t *tvb, proto_tree *tree, int offset) |
| 699 | | | { |
| 700 | | | guint32 curr_offset; |
| 701 | | | guint32 consumed; |
| 702 | | | guint curr_len; |
| 703 | | | |
| 704 | | | curr_offset = offset; |
| 705 | | | curr_len = tvb_length_remaining(tvb,offset); |
| 706 | | | |
| 707 | | | |
| 708 | | | ELEM_MAND_TV(BSSLAP_PARAM_RRLP_FLAG, GSM_A_PDU_TYPE_BSSLAP, DE_BLAP_RRLP_FLG,"flag");
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 | } |
| |
|
| 709 | | | |
| 710 | | | ELEM_MAND_TV(BSSLAP_PARAM_RRLP_IE, GSM_A_PDU_TYPE_BSSLAP, DE_BLAP_RRLP_IE,"RRLP Info");
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 | } |
| |
|
Unused Value
The value assigned to curr_offset is never subsequently used on any execution path. |
|
| 711 | | | return; |
| 712 | | | } |
| |