Browse Source

biss: fix help and validate EMM with table_id > 0x81

master
Rafaël Carré 6 years ago
parent
commit
7aeaceb420
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      ebu/biss.h

+ 4
- 2
ebu/biss.h View File

@ -43,9 +43,10 @@ extern "C"
#endif #endif
/***************************************************************************** /*****************************************************************************
* Conditional Access Table
* Entitlement Management Message Table
*****************************************************************************/ *****************************************************************************/
#define BISSCA_EMM_TABLE_ID 0x81 #define BISSCA_EMM_TABLE_ID 0x81
#define BISSCA_EMM_TABLE_ID_LAST 0x8f
#define BISSCA_EMM_HEADER_SIZE PSI_HEADER_SIZE_SYNTAX1 #define BISSCA_EMM_HEADER_SIZE PSI_HEADER_SIZE_SYNTAX1
#define BISSCA_EMM_CIPHER_RSA_2048_OAEP 0 #define BISSCA_EMM_CIPHER_RSA_2048_OAEP 0
@ -188,7 +189,8 @@ static inline bool bissca_emm_validate(const uint8_t *p_emm)
if (!psi_get_syntax(p_emm) || psi_get_section(p_emm) if (!psi_get_syntax(p_emm) || psi_get_section(p_emm)
|| psi_get_lastsection(p_emm) || psi_get_lastsection(p_emm)
|| psi_get_tableid(p_emm) != BISSCA_EMM_TABLE_ID)
|| psi_get_tableid(p_emm) < BISSCA_EMM_TABLE_ID
|| psi_get_tableid(p_emm) > BISSCA_EMM_TABLE_ID_LAST)
return false; return false;
if (i_section_size < BISSCA_EMM_HEADER_SIZE + 6 if (i_section_size < BISSCA_EMM_HEADER_SIZE + 6

Loading…
Cancel
Save