Empty if Statement at pcapng.c:616 |
No properties have been set. edit properties |
Jump to warning location ↓ | warning details... |
| |
pcapng_read_if_descr_block (/home/sate/Testcases/c/cve/wireshark-1.2.0/wiretap/pcapng.c)![]() | ||||||
![]() | ||||||
606 | exponent = (guint8)(wblock->data.if_descr.if_tsresol & 0x7f); | |||||
607 | if (((base == 2) && (exponent < 64)) || ((base == 10) && (exponent < 20))) { | |||||
608 | result = 1; | |||||
609 | for (i = 0; i < exponent; i++) { | |||||
610 | result *= base; | |||||
611 | } | |||||
612 | time_units_per_second = result; | |||||
613 | } else { | |||||
614 | time_units_per_second = G_MAXUINT64; | |||||
615 | } | |||||
616 | if (time_units_per_second > (((guint64)1) << 32)) {
| |||||
617 | pcapng_debug0("pcapng_open: time conversion might be inaccurate"); | |||||
618 | } | |||||
619 | pcapng_debug1("pcapng_read_if_descr_block: if_tsresol %u", wblock->data.if_descr.if_tsresol); | |||||
620 | } else { | |||||
621 | pcapng_debug1("pcapng_read_if_descr_block: if_tsresol length %u not 1 as expected", oh.option_length); | |||||
622 | } | |||||
623 | break; | |||||
624 | case(11): /* if_filter */ | |||||
625 | if(oh.option_length > 0 && oh.option_length < sizeof(option_content)) { | |||||
626 | wblock->data.if_descr.if_filter = g_strndup(option_content, sizeof(option_content)); | |||||
![]() |