Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
5631d280
Commit
5631d280
authored
Apr 13, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
spudec: fix potential buffer underflow
parent
fed414c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
modules/codec/spudec/parse.c
modules/codec/spudec/parse.c
+7
-4
No files found.
modules/codec/spudec/parse.c
View file @
5631d280
...
...
@@ -623,10 +623,13 @@ static int ParseRLE( decoder_t *p_dec,
int
i
,
i_inner
=
-
1
,
i_shade
=
-
1
;
/* Set the border color */
if
(
i_border
!=
-
1
)
{
p_spu_data
->
pi_yuv
[
i_border
][
0
]
=
0x00
;
p_spu_data
->
pi_yuv
[
i_border
][
1
]
=
0x80
;
p_spu_data
->
pi_yuv
[
i_border
][
2
]
=
0x80
;
stats
[
i_border
]
=
0
;
}
/* Find the inner colors */
for
(
i
=
0
;
i
<
4
&&
i_inner
==
-
1
;
i
++
)
...
...
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