Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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
vlc-gpu
Commits
2b790c3e
Commit
2b790c3e
authored
Jan 17, 2011
by
Harry Sintonen
Committed by
Jean-Baptiste Kempf
Jan 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle early termination properly in StripTags
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
f62e6d6e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
modules/codec/subsdec.c
modules/codec/subsdec.c
+3
-0
modules/codec/subsusf.c
modules/codec/subsusf.c
+3
-0
No files found.
modules/codec/subsdec.c
View file @
2b790c3e
...
...
@@ -640,6 +640,9 @@ static char *StripTags( char *psz_subtitle )
*
psz_text
++
=
*
psz_subtitle
;
}
/* Security fix: Account for the case where input ends early */
if
(
*
psz_subtitle
==
'\0'
)
break
;
psz_subtitle
++
;
}
*
psz_text
=
'\0'
;
...
...
modules/codec/subsusf.c
View file @
2b790c3e
...
...
@@ -1072,6 +1072,9 @@ static char *StripTags( char *psz_subtitle )
*
psz_text
++
=
*
psz_subtitle
;
}
/* Security fix: Account for the case where input ends early */
if
(
*
psz_subtitle
==
'\0'
)
break
;
psz_subtitle
++
;
}
*
psz_text
=
'\0'
;
...
...
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