tables/tot.c: Dereference a null pointer (CID 17262)
[email protected] (Jean-Paul Saman) Wed, 16 Apr 2014 15:53:32 +0200 (CEST)
| Newsgroups | gmane.comp.video.videolan.libdvbpsi.devel |
|---|---|
| Message-ID | <[email protected]> |
libdvbpsi | branch: master | Jean-Paul Saman <[email protected]> | Fri Apr 11 15:52:53 2014 +0200| [a34a11269dd66f219978a1e72e1573e83944de2f] | committer: Jean-Paul Saman tables/tot.c: Dereference a null pointer (CID 17262) The pointer to p_subdec should have been evaluated on line 119. > http://git.videolan.org/gitweb.cgi/libdvbpsi.git/?a=commit;h=a34a11269dd66f219978a1e72e1573e83944de2f --- src/tables/tot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tables/tot.c b/src/tables/tot.c index 9cde087..18b2ba7 100644 --- a/src/tables/tot.c +++ b/src/tables/tot.c @@ -116,7 +116,7 @@ void dvbpsi_tot_detach(dvbpsi_t* p_dvbpsi, uint8_t i_table_id, i_extension = 0; /* NOTE: force to 0 when handling TDT/TOT */ p_subdec = dvbpsi_demuxGetSubDec(p_demux, i_table_id, i_extension); - if (p_demux == NULL) + if (p_subdec == NULL) { dvbpsi_error(p_dvbpsi, "TDT/TOT Decoder", "No such TDT/TOT decoder (table_id == 0x%02x," _______________________________________________ libdvbpsi-devel mailing list [email protected] https://mailman.videolan.org/listinfo/libdvbpsi-devel