[Git][videolan/libdvbpsi][master] 3 commits: sis: handle allocation failure
Jean-Paul Saman <[email protected]> Thu, 24 May 2018 09:54:28 +0200
| Newsgroups | gmane.comp.video.videolan.libdvbpsi.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============3381832108285397615== Content-Type: multipart/alternative; boundary="--==_mimepart_5b066fb410a01_80a83fa1216a64ac304124"; charset=UTF-8 Content-Transfer-Encoding: 7bit ----==_mimepart_5b066fb410a01_80a83fa1216a64ac304124 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Jean-Paul Saman pushed to branch master at VideoLAN / libdvbpsi Commits: 7986740e by Jean-Paul Saman at 2018-05-24T09:20:28+02:00 sis: handle allocation failure - - - - - 2bf10d9c by Aman Gupta at 2018-05-24T09:25:16+02:00 Signed-off-by: Aman Gupta <[email protected]> Signed-off-by: Jean-Paul Saman <[email protected]> - - - - - 311cd26e by Aman Gupta at 2018-05-24T09:26:03+02:00 Signed-off-by: Aman Gupta <[email protected]> Signed-off-by: Jean-Paul Saman <[email protected]> - - - - - 3 changed files: - bootstrap - src/tables/atsc_mgt.h - src/tables/sis.c Changes: ===================================== bootstrap ===================================== --- a/bootstrap +++ b/bootstrap @@ -36,7 +36,7 @@ aclocalflags="`sed -ne 's/^[ \t]*ACLOCAL_AMFLAGS[ \t]*=//p' Makefile.am`" # Check for automake amvers="no" -for v in 15 14 13 12 11 10 9 8 7 6 5; do +for v in 16 15 14 13 12 11 10 9 8 7 6 5; do if automake-1.${v} --version >/dev/null 2>&1; then amvers="-1.${v}" break ===================================== src/tables/atsc_mgt.h ===================================== --- a/src/tables/atsc_mgt.h +++ b/src/tables/atsc_mgt.h @@ -129,8 +129,8 @@ __attribute__((deprecated,unused)) inline bool dvbpsi_atsc_AttachMGT(dvbpsi_t *p_dvbpsi, uint8_t i_table_id, uint16_t i_extension, dvbpsi_atsc_mgt_callback pf_callback, void* p_priv) { - dvbpsi_atsc_mgt_attach(p_dvbpsi, i_table_id, i_extension, - pf_callback, p_priv); + return dvbpsi_atsc_mgt_attach(p_dvbpsi, i_table_id, i_extension, + pf_callback, p_priv); } /***************************************************************************** ===================================== src/tables/sis.c ===================================== --- a/src/tables/sis.c +++ b/src/tables/sis.c @@ -968,6 +968,8 @@ static uint32_t dvbpsi_sis_generate_splice_cmd_bandwidth_reservation(uint8_t *p_ dvbpsi_psi_section_t *dvbpsi_sis_sections_generate(dvbpsi_t *p_dvbpsi, dvbpsi_sis_t* p_sis) { dvbpsi_psi_section_t * p_current = dvbpsi_NewPSISection(1024); + if (!p_current) + return NULL; p_current->i_table_id = 0xFC; p_current->b_syntax_indicator = false; View it on GitLab: https://code.videolan.org/videolan/libdvbpsi/compare/2e65fd5bd0681a0722c614f0636016307d4b7c6e...311cd26e0014aa8b42d3ef1b82b595abcb45b58f --- View it on GitLab: https://code.videolan.org/videolan/libdvbpsi/compare/2e65fd5bd0681a0722c614f0636016307d4b7c6e...311cd26e0014aa8b42d3ef1b82b595abcb45b58f You're receiving this email because of your account on code.videolan.org. ----==_mimepart_5b066fb410a01_80a83fa1216a64ac304124-- --===============3381832108285397615== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KbGliZHZicHNp LWRldmVsIG1haWxpbmcgbGlzdApsaWJkdmJwc2ktZGV2ZWxAdmlkZW9sYW4ub3JnCmh0dHBzOi8v bWFpbG1hbi52aWRlb2xhbi5vcmcvbGlzdGluZm8vbGliZHZicHNpLWRldmVsCg== --===============3381832108285397615==--