Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libdvbpsi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
libdvbpsi
Commits
3d18f673
Commit
3d18f673
authored
Jun 27, 2015
by
Daniel Kamil Kozar
Committed by
Jean-Paul Saman
Jul 23, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip the rest of an EIT section if any descriptor's length exceeds event size
parent
9866f587
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
3 deletions
+15
-3
src/tables/eit.c
src/tables/eit.c
+13
-2
src/tables/eit_private.h
src/tables/eit_private.h
+2
-1
No files found.
src/tables/eit.c
View file @
3d18f673
...
@@ -495,7 +495,8 @@ void dvbpsi_eit_sections_gather(dvbpsi_t *p_dvbpsi, dvbpsi_decoder_t *p_private_
...
@@ -495,7 +495,8 @@ void dvbpsi_eit_sections_gather(dvbpsi_t *p_dvbpsi, dvbpsi_decoder_t *p_private_
p_eit_decoder
->
b_current_valid
=
true
;
p_eit_decoder
->
b_current_valid
=
true
;
/* Decode the sections */
/* Decode the sections */
dvbpsi_eit_sections_decode
(
p_eit_decoder
->
p_building_eit
,
dvbpsi_eit_sections_decode
(
p_dvbpsi
,
p_eit_decoder
->
p_building_eit
,
p_eit_decoder
->
p_sections
);
p_eit_decoder
->
p_sections
);
/* signal the new EIT */
/* signal the new EIT */
...
@@ -512,7 +513,8 @@ void dvbpsi_eit_sections_gather(dvbpsi_t *p_dvbpsi, dvbpsi_decoder_t *p_private_
...
@@ -512,7 +513,8 @@ void dvbpsi_eit_sections_gather(dvbpsi_t *p_dvbpsi, dvbpsi_decoder_t *p_private_
*****************************************************************************
*****************************************************************************
* EIT decoder.
* EIT decoder.
*****************************************************************************/
*****************************************************************************/
void
dvbpsi_eit_sections_decode
(
dvbpsi_eit_t
*
p_eit
,
void
dvbpsi_eit_sections_decode
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_eit_t
*
p_eit
,
dvbpsi_psi_section_t
*
p_section
)
dvbpsi_psi_section_t
*
p_section
)
{
{
uint8_t
*
p_byte
,
*
p_end
;
uint8_t
*
p_byte
,
*
p_end
;
...
@@ -555,9 +557,18 @@ void dvbpsi_eit_sections_decode(dvbpsi_eit_t* p_eit,
...
@@ -555,9 +557,18 @@ void dvbpsi_eit_sections_decode(dvbpsi_eit_t* p_eit,
uint8_t
i_length
=
p_byte
[
1
];
uint8_t
i_length
=
p_byte
[
1
];
if
(
i_length
+
2
<=
p_ev_end
-
p_byte
)
if
(
i_length
+
2
<=
p_ev_end
-
p_byte
)
dvbpsi_eit_event_descriptor_add
(
p_event
,
i_tag
,
i_length
,
p_byte
+
2
);
dvbpsi_eit_event_descriptor_add
(
p_event
,
i_tag
,
i_length
,
p_byte
+
2
);
else
{
dvbpsi_error
(
p_dvbpsi
,
"EIT decoder"
,
"failed decoding "
"section %d : descriptor size exceeds event size"
,
p_section
->
i_number
);
goto
next_section
;
}
p_byte
+=
2
+
i_length
;
p_byte
+=
2
+
i_length
;
}
}
}
}
next_section:
p_section
=
p_section
->
p_next
;
p_section
=
p_section
->
p_next
;
}
}
}
}
...
...
src/tables/eit_private.h
View file @
3d18f673
...
@@ -61,7 +61,8 @@ void dvbpsi_eit_sections_gather(dvbpsi_t *p_dvbpsi,
...
@@ -61,7 +61,8 @@ void dvbpsi_eit_sections_gather(dvbpsi_t *p_dvbpsi,
*****************************************************************************
*****************************************************************************
* EIT decoder.
* EIT decoder.
*****************************************************************************/
*****************************************************************************/
void
dvbpsi_eit_sections_decode
(
dvbpsi_eit_t
*
p_eit
,
void
dvbpsi_eit_sections_decode
(
dvbpsi_t
*
p_dvbpsi
,
dvbpsi_eit_t
*
p_eit
,
dvbpsi_psi_section_t
*
p_section
);
dvbpsi_psi_section_t
*
p_section
);
#else
#else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment