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
99536307
Commit
99536307
authored
Jan 11, 2016
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NIT: test boundary in dvbpsi_nit_sections_decode() (Fix CID: #72720)
parent
0b0d556a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
src/tables/nit.c
src/tables/nit.c
+5
-3
No files found.
src/tables/nit.c
View file @
99536307
...
...
@@ -453,7 +453,7 @@ void dvbpsi_nit_sections_gather(dvbpsi_t *p_dvbpsi,
void
dvbpsi_nit_sections_decode
(
dvbpsi_nit_t
*
p_nit
,
dvbpsi_psi_section_t
*
p_section
)
{
uint8_t
*
p_byte
,
*
p_end
;
uint8_t
*
p_byte
,
*
p_end
;
while
(
p_section
)
{
...
...
@@ -461,8 +461,10 @@ void dvbpsi_nit_sections_decode(dvbpsi_nit_t* p_nit,
p_byte
=
p_section
->
p_payload_start
+
2
;
p_end
=
p_byte
+
(((
uint16_t
)(
p_section
->
p_payload_start
[
0
]
&
0x0f
)
<<
8
)
|
p_section
->
p_payload_start
[
1
]);
if
(
p_end
>
p_section
->
p_payload_end
)
p_end
=
p_section
->
p_payload_end
;
while
(
p_byte
+
2
<
=
p_end
)
while
(
p_byte
+
2
<
p_end
)
{
uint8_t
i_tag
=
p_byte
[
0
];
uint8_t
i_length
=
p_byte
[
1
];
...
...
@@ -479,7 +481,7 @@ void dvbpsi_nit_sections_decode(dvbpsi_nit_t* p_nit,
p_byte
+=
2
;
/* - TSs */
while
(
p_byte
+
6
<
=
p_end
)
while
(
p_byte
+
6
<
p_end
)
{
uint8_t
*
p_end2
;
/* descriptor loop end */
...
...
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