[libdvbpsi-devel] [Git][videolan/libdvbpsi][master] 3 commits: sis: handle allocation failure
Jean-Paul Saman
gitlab at videolan.org
Thu May 24 09:54:28 CEST 2018
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 <aman at tmm1.net>
Signed-off-by: Jean-Paul Saman <jpsaman at videolan.org>
- - - - -
311cd26e by Aman Gupta at 2018-05-24T09:26:03+02:00
Signed-off-by: Aman Gupta <aman at tmm1.net>
Signed-off-by: Jean-Paul Saman <jpsaman at videolan.org>
- - - - -
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.
More information about the libdvbpsi-devel
mailing list