Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
546da072
Commit
546da072
authored
Oct 11, 2013
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: ogg: fix integer overflow
parent
33f3309f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/demux/oggseek.c
modules/demux/oggseek.c
+3
-3
No files found.
modules/demux/oggseek.c
View file @
546da072
...
...
@@ -864,8 +864,8 @@ int64_t oggseek_read_page( demux_t *p_demux )
demux_sys_t
*
p_ogg
=
p_demux
->
p_sys
;
uint8_t
header
[
PAGE_HEADER_BYTES
+
255
];
int
i_nsegs
;
int
i_in_pos
;
int
i
;
int64_t
i_in_pos
;
int64_t
i_result
;
int
i_page_size
;
char
*
buf
;
...
...
@@ -919,8 +919,8 @@ int64_t oggseek_read_page( demux_t *p_demux )
if
(
ogg_sync_pageout
(
&
p_ogg
->
oy
,
&
p_ogg
->
current_page
)
!=
1
)
{
msg_Err
(
p_demux
,
"Got invalid packet, read %"
PRId64
" of %i: %s
"
,
i_result
,
i_page_size
,
buf
);
msg_Err
(
p_demux
,
"Got invalid packet, read %"
PRId64
" of %i: %s
%"
PRId64
,
i_result
,
i_page_size
,
buf
,
i_in_pos
);
return
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