Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
471fa3a8
Commit
471fa3a8
authored
Oct 10, 2008
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix potential static array overflow (CID 40 and 192)
parent
6357ef21
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
modules/demux/ps.h
modules/demux/ps.h
+2
-2
modules/demux/ts.c
modules/demux/ts.c
+2
-2
No files found.
modules/demux/ps.h
View file @
471fa3a8
...
...
@@ -344,10 +344,10 @@ static inline int ps_pkt_parse_system( block_t *p_pkt, ps_psm_t *p_psm,
/* Parse a PES (and skip i_skip_extra in the payload) */
static
inline
int
ps_pkt_parse_pes
(
block_t
*
p_pes
,
int
i_skip_extra
)
{
uint8_t
header
[
3
0
];
uint8_t
header
[
3
4
];
unsigned
int
i_skip
=
0
;
memcpy
(
header
,
p_pes
->
p_buffer
,
__MIN
(
p_pes
->
i_buffer
,
3
0
)
);
memcpy
(
header
,
p_pes
->
p_buffer
,
__MIN
(
p_pes
->
i_buffer
,
3
4
)
);
switch
(
header
[
3
]
)
{
...
...
modules/demux/ts.c
View file @
471fa3a8
...
...
@@ -1664,7 +1664,7 @@ static void PIDClean( es_out_t *out, ts_pid_t *pid )
static
void
ParsePES
(
demux_t
*
p_demux
,
ts_pid_t
*
pid
)
{
block_t
*
p_pes
=
pid
->
es
->
p_pes
;
uint8_t
header
[
3
0
];
uint8_t
header
[
3
4
];
int
i_pes_size
=
0
;
int
i_skip
=
0
;
mtime_t
i_dts
=
-
1
;
...
...
@@ -1679,7 +1679,7 @@ static void ParsePES( demux_t *p_demux, ts_pid_t *pid )
pid
->
es
->
pp_last
=
&
pid
->
es
->
p_pes
;
/* FIXME find real max size */
i_max
=
block_ChainExtract
(
p_pes
,
header
,
3
0
);
i_max
=
block_ChainExtract
(
p_pes
,
header
,
3
4
);
if
(
header
[
0
]
!=
0
||
header
[
1
]
!=
0
||
header
[
2
]
!=
1
)
...
...
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