• Jean-Paul Saman's avatar
    src/dvbpsi.c: fix segmentation fault in dvbpsi_decoder_psi_section_add() · 9ae00f93
    Jean-Paul Saman authored
    When p->i_number == p_section->i_number AND p_prev == NULL, then the function
    will crash with a segmentation fault. In this case the first element in the linked
    list is going to be replaced. The pointer p_prev does not point to a valid sections,
    since p is the first element in the list. To solve this case it needs to be treated
    seperate.
    9ae00f93
dvbpsi.c 25.6 KB