Unreachable Data Flow at packet-h223.c:822 |
No properties have been set. edit properties |
Jump to warning location ↓ | warning details... |
| |
mux_element_sublist_size (/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-h223.c)![]() | ||||||
![]() | ||||||
807 | static guint32 mux_element_sublist_size( h223_mux_element* me ) | |||||
808 | { | |||||
809 | h223_mux_element *current_me = me; | |||||
810 | guint32 length = 0; | |||||
811 | while ( current_me ) { | |||||
812 | current_me = current_me->next; | |||||
813 | if ( current_me->sublist ) | |||||
814 | length += current_me->repeat_count * mux_element_sublist_size( current_me->sublist ); | |||||
815 | else | |||||
816 | length += current_me->repeat_count; | |||||
817 | } | |||||
818 | if ( length == 0 ) { /* should never happen, but to avoid infinite loops... */ | |||||
819 | DISSECTOR_ASSERT_NOT_REACHED(); | |||||
820 | length = 1; | |||||
821 | } | |||||
822 | return length;
| |||||
823 | } | |||||
![]() |