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
3fa87d3c
Commit
3fa87d3c
authored
Dec 24, 2014
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dr_a1.c: limit number of elements
parent
1993da77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/descriptors/dr_a1.c
src/descriptors/dr_a1.c
+3
-0
No files found.
src/descriptors/dr_a1.c
View file @
3fa87d3c
...
@@ -99,6 +99,9 @@ dvbpsi_descriptor_t* dvbpsi_GenServiceLocationDr(
...
@@ -99,6 +99,9 @@ dvbpsi_descriptor_t* dvbpsi_GenServiceLocationDr(
dvbpsi_service_location_dr_t
*
p_decoded
,
dvbpsi_service_location_dr_t
*
p_decoded
,
bool
b_duplicate
)
bool
b_duplicate
)
{
{
if
(
p_decoded
->
i_number_elements
>
42
)
p_decoded
->
i_number_elements
=
42
;
uint8_t
i_desc_length
=
3
+
p_decoded
->
i_number_elements
*
6
;
uint8_t
i_desc_length
=
3
+
p_decoded
->
i_number_elements
*
6
;
dvbpsi_descriptor_t
*
p_descriptor
=
dvbpsi_NewDescriptor
(
0xa1
,
i_desc_length
,
NULL
);
dvbpsi_descriptor_t
*
p_descriptor
=
dvbpsi_NewDescriptor
(
0xa1
,
i_desc_length
,
NULL
);
if
(
!
p_descriptor
)
if
(
!
p_descriptor
)
...
...
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