Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bitstream
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
bitstream
Commits
a0b7103f
Commit
a0b7103f
authored
Sep 02, 2010
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* dvb/si.h: Fix segfault with malformed text fields.
parent
28fd54b3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dvb/si.h
dvb/si.h
+1
-1
No files found.
dvb/si.h
View file @
a0b7103f
...
@@ -207,7 +207,7 @@ static inline char *dvb_string_get(const uint8_t *p_string, size_t i_length,
...
@@ -207,7 +207,7 @@ static inline char *dvb_string_get(const uint8_t *p_string, size_t i_length,
if
(
i_length
)
{
if
(
i_length
)
{
const
char
*
psz_encoding
=
dvb_string_get_encoding
(
&
p_string
,
const
char
*
psz_encoding
=
dvb_string_get_encoding
(
&
p_string
,
&
i_length
);
&
i_length
);
if
(
!*
psz_encoding
||
!
i_length
)
{
if
(
psz_encoding
==
NULL
||
!
i_length
)
{
/* try one-byte charset */
/* try one-byte charset */
char
*
psz_string
=
malloc
(
i_length
+
1
);
char
*
psz_string
=
malloc
(
i_length
+
1
);
memcpy
(
psz_string
,
p_string
,
i_length
);
memcpy
(
psz_string
,
p_string
,
i_length
);
...
...
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