(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-gsm_a_rr.c) |
| |
| 7358 | | | dtap_rr_paging_req_type_1(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint len) |
| 7359 | | | { |
| 7360 | | | guint32 curr_offset; |
| 7361 | | | guint32 consumed; |
| 7362 | | | guint curr_len; |
| 7363 | | | |
| 7364 | | | curr_offset = offset; |
| 7365 | | | curr_len = len; |
| 7366 | | | lower_nibble = FALSE; |
| 7367 | | | |
| 7368 | | | |
| 7369 | | | ELEM_MAND_V_SHORT(GSM_A_PDU_TYPE_RR, DE_RR_PAGE_MODE);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-gsm_a_common.h |
| |
507 | #define ELEM_MAND_V_SHORT(EMV_pdu_type, EMV_elem_idx) \ |
508 | {\ |
509 | if ((consumed = elem_v_short(tvb, tree, EMV_pdu_type, EMV_elem_idx, curr_offset)) > 0) \ |
510 | { \ |
511 | curr_offset += consumed; \ |
512 | curr_len -= consumed; \ |
513 | } \ |
514 | else \ |
515 | { \ |
516 | /* Mandatory, but nothing we can do */ \ |
517 | } \ |
518 | if (curr_len <= 0) return; \ |
519 | } |
| |
|
| 7370 | | | |
| 7371 | | | |
| 7372 | | | ELEM_MAND_V_SHORT(GSM_A_PDU_TYPE_RR, DE_RR_CHNL_NEEDED);
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-gsm_a_common.h |
| |
507 | #define ELEM_MAND_V_SHORT(EMV_pdu_type, EMV_elem_idx) \ |
508 | {\ |
509 | if ((consumed = elem_v_short(tvb, tree, EMV_pdu_type, EMV_elem_idx, curr_offset)) > 0) \ |
510 | { \ |
511 | curr_offset += consumed; \ |
512 | curr_len -= consumed; \ |
513 | } \ |
514 | else \ |
515 | { \ |
516 | /* Mandatory, but nothing we can do */ \ |
517 | } \ |
518 | if (curr_len <= 0) return; \ |
519 | } |
| |
|
| 7373 | | | |
| 7374 | | | |
| 7375 | | | ELEM_MAND_LV(GSM_A_PDU_TYPE_COMMON, DE_MID, " - Mobile Identity 1");
x /home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-gsm_a_common.h |
| |
465 | #define ELEM_MAND_LV(EML_pdu_type, EML_elem_idx, EML_elem_name_addition) \ |
466 | {\ |
467 | if ((consumed = elem_lv(tvb, tree, EML_pdu_type, EML_elem_idx, curr_offset, curr_len, EML_elem_name_addition)) > 0) \ |
468 | { \ |
469 | curr_offset += consumed; \ |
470 | curr_len -= consumed; \ |
471 | } \ |
472 | else \ |
473 | { \ |
474 | /* Mandatory, but nothing we can do */ \ |
475 | } \ |
476 | if (curr_len <= 0) return; \ |
477 | } |
| |
|
| 7376 | | | |
| 7377 | | | |
| 7378 | | | ELEM_OPT_TLV(0x17, GSM_A_PDU_TYPE_COMMON, DE_MID, " - Mobile Identity 2");
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 | } |
| |
|
| 7379 | | | |
| 7380 | | | |
| 7381 | | | ELEM_MAND_V(GSM_A_PDU_TYPE_RR, DE_RR_P1_REST_OCT);
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 | } |
| |
|
Unused Value
The value assigned to curr_offset is never subsequently used on any execution path. |
|
| 7382 | | | |
| 7383 | | | } |
| |