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
94e765fa
Commit
94e765fa
authored
Dec 01, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Really fix the real overflow
parent
3b3a30cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
modules/demux/real.c
modules/demux/real.c
+8
-7
No files found.
modules/demux/real.c
View file @
94e765fa
...
...
@@ -921,14 +921,14 @@ static void ReadRealIndex( demux_t *p_demux )
msg_Dbg
(
p_demux
,
"Real Index : num : %d "
,
i_index_count
);
if
(
i_index_count
==
0
)
if
(
i_index_count
>
(
0xffffffff
/
sizeof
(
rm_index_t
)
)
)
return
;
if
(
GetDWBE
(
&
buffer
[
16
]
)
>
0
)
msg_Dbg
(
p_demux
,
"Real Index: Does next index exist? %d "
,
GetDWBE
(
&
buffer
[
16
]
)
);
p_sys
->
p_index
=
calloc
(
i_index_count
+
1
,
sizeof
(
rm_index_t
)
);
p_sys
->
p_index
=
malloc
(
(
i_index_count
+
1
)
*
sizeof
(
rm_index_t
)
);
if
(
p_sys
->
p_index
==
NULL
)
return
;
...
...
@@ -947,12 +947,13 @@ static void ReadRealIndex( demux_t *p_demux )
p_sys
->
p_index
[
i
].
time_offset
=
GetDWBE
(
&
buffer
[
2
]
);
p_sys
->
p_index
[
i
].
file_offset
=
GetDWBE
(
&
buffer
[
6
]
);
p_sys
->
p_index
[
i
].
frame_index
=
GetDWBE
(
&
buffer
[
10
]
);
msg_Dbg
(
p_demux
,
"Real Index: time %d file %d frame %d "
,
p_sys
->
p_index
[
i
].
time_offset
,
p_sys
->
p_index
[
i
].
fil
e_offset
,
p_sys
->
p_index
[
i
].
frame_index
);
msg_Dbg
(
p_demux
,
"Real Index: time %"
PRIu32
" file %"
PRIu32
" frame %"
PRIu32
,
p_sys
->
p_index
[
i
].
tim
e_offset
,
p_sys
->
p_index
[
i
].
file_offset
,
p_sys
->
p_index
[
i
].
frame_index
);
}
memset
(
p_sys
->
p_index
+
i_index_count
,
0
,
sizeof
(
rm_index_t
)
);
}
/*****************************************************************************
...
...
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