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
8d3d27eb
Commit
8d3d27eb
authored
May 30, 2015
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dr_48.c: Fix Fix CID #17251
parent
752b3e28
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/descriptors/dr_48.c
src/descriptors/dr_48.c
+7
-3
No files found.
src/descriptors/dr_48.c
View file @
8d3d27eb
...
@@ -116,10 +116,14 @@ dvbpsi_descriptor_t * dvbpsi_GenServiceDr(dvbpsi_service_dr_t * p_decoded,
...
@@ -116,10 +116,14 @@ dvbpsi_descriptor_t * dvbpsi_GenServiceDr(dvbpsi_service_dr_t * p_decoded,
if
(
p_decoded
->
i_service_name_length
>
252
)
if
(
p_decoded
->
i_service_name_length
>
252
)
p_decoded
->
i_service_name_length
=
252
;
p_decoded
->
i_service_name_length
=
252
;
/* FIXME: is this correct? A descriptor cannot be more then 255 bytes due to
* the function prototype definition */
uint8_t
i_size
=
0
;
int
i_length
=
3
+
p_decoded
->
i_service_name_length
+
p_decoded
->
i_service_provider_name_length
;
i_size
=
(
i_length
>=
UINT8_MAX
)
?
255
:
i_length
;
/* Create the descriptor */
/* Create the descriptor */
dvbpsi_descriptor_t
*
p_descriptor
=
dvbpsi_descriptor_t
*
p_descriptor
=
dvbpsi_NewDescriptor
(
0x48
,
i_size
,
NULL
);
dvbpsi_NewDescriptor
(
0x48
,
3
+
p_decoded
->
i_service_name_length
+
p_decoded
->
i_service_provider_name_length
,
NULL
);
if
(
!
p_descriptor
)
if
(
!
p_descriptor
)
return
NULL
;
return
NULL
;
...
...
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