(/home/sate/Testcases/c/cve/wireshark-1.2.0/wiretap/iptrace.c) |
| |
| 500 | | | (int encap, const guint8 *pd, guint32 len, |
| 501 | | | union *, guint8 *) |
| 502 | | | { |
| 503 | | | char if_text[9]; |
| 504 | | | char *decimal; |
| 505 | | | int Vpi = 0; |
| 506 | | | int Vci = 0; |
| 507 | | | |
| 508 | | | switch (encap) { |
| 509 | | | |
| 510 | | | case WTAP_ENCAP_ATM_PDUS: |
| 511 | | | |
| 512 | | | memcpy(if_text, &[20], 8); |
| 513 | | | if_text[8] = '\0'; |
| 514 | | | decimal = strchr(if_text, '.'); |
| 515 | | | if (decimal) { |
| 516 | | | *decimal = '\0'; |
| 517 | | | Vpi = (int)strtoul(if_text, NULL, 10); |
| 518 | | | decimal++; |
| 519 | | | Vci = (int)strtoul(decimal, NULL, 10); |
Unreachable Computation
The highlighted code will not execute under any circumstances. This may be because of: |
|
| 520 | | | } |
| 521 | | | |
| 522 | | | |
| 523 | | | |
| 524 | | | |
| 525 | | | |
| 526 | | | ->atm.channel = [29]; |
| 527 | | | |
| 528 | | | ->atm.vpi = Vpi; |
| 529 | | | ->atm.vci = Vci; |
| 530 | | | |
| 531 | | | |
| 532 | | | |
| 533 | | | |
| 534 | | | |
| 535 | | | atm_guess_traffic_type(pd, len, ); |
| 536 | | | |
| 537 | | | |
| 538 | | | ->atm.flags = 0; |
| 539 | | | ->atm.cells = 0; |
| 540 | | | ->atm.aal5t_u2u = 0; |
| 541 | | | ->atm.aal5t_len = 0; |
| 542 | | | ->atm.aal5t_chksum = 0; |
| 543 | | | break; |
| 544 | | | |
| 545 | | | case WTAP_ENCAP_ETHERNET: |
| 546 | | | |
| 547 | | | ->eth.fcs_len = 0; |
| 548 | | | break; |
| 549 | | | } |
| 550 | | | } |
| |