Commit 0b1c6c6d authored by Jean-Paul Saman's avatar Jean-Paul Saman

tables/sis.c: Dereference null pointer (CID 17263)

The wrong pointer was checked for having a null value leading to the
null pointer dereference bug.
parent 2e5781e4
...@@ -114,7 +114,7 @@ void dvbpsi_sis_detach(dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extens ...@@ -114,7 +114,7 @@ void dvbpsi_sis_detach(dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extens
i_extension = 0; i_extension = 0;
dvbpsi_demux_subdec_t* p_subdec; dvbpsi_demux_subdec_t* p_subdec;
p_subdec = dvbpsi_demuxGetSubDec(p_demux, i_table_id, i_extension); p_subdec = dvbpsi_demuxGetSubDec(p_demux, i_table_id, i_extension);
if (p_demux == NULL) if (p_subdec == NULL)
{ {
dvbpsi_error(p_dvbpsi, "SIS Decoder", dvbpsi_error(p_dvbpsi, "SIS Decoder",
"No such SIS decoder (table_id == 0x%02x," "No such SIS decoder (table_id == 0x%02x,"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment