Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
6eedf20f
Commit
6eedf20f
authored
Mar 19, 2010
by
Christophe Mutricy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid integer overflow
parent
9b944bbb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
modules/demux/asf/libasf.c
modules/demux/asf/libasf.c
+1
-1
modules/demux/avi/libavi.c
modules/demux/avi/libavi.c
+1
-1
modules/demux/mp4/libmp4.c
modules/demux/mp4/libmp4.c
+1
-1
No files found.
modules/demux/asf/libasf.c
View file @
6eedf20f
...
...
@@ -1487,7 +1487,7 @@ static void ASF_ObjectDumpDebug( vlc_object_t *p_obj,
psz_name
=
ASF_ObjectDumpDebugInfo
[
i
].
psz_name
;
char
str
[
512
];
if
(
i_level
*
5
+
1
>=
sizeof
(
str
)
)
if
(
i_level
>=
(
sizeof
(
str
)
-
1
)
/
5
)
return
;
memset
(
str
,
' '
,
sizeof
(
str
)
);
...
...
modules/demux/avi/libavi.c
View file @
6eedf20f
...
...
@@ -803,7 +803,7 @@ static void AVI_ChunkDumpDebug_level( vlc_object_t *p_obj,
avi_chunk_t
*
p_child
;
char
str
[
512
];
if
(
i_level
*
5
+
1
>=
sizeof
(
str
)
)
if
(
i_level
>=
(
sizeof
(
str
)
-
1
)
/
5
)
return
;
memset
(
str
,
' '
,
sizeof
(
str
)
);
...
...
modules/demux/mp4/libmp4.c
View file @
6eedf20f
...
...
@@ -2895,7 +2895,7 @@ static void __MP4_BoxDumpStructure( stream_t *s,
unsigned
int
i
;
char
str
[
512
];
if
(
i_level
*
5
+
1
>=
sizeof
(
str
)
)
if
(
i_level
>=
(
sizeof
(
str
)
-
1
)
/
5
)
return
;
memset
(
str
,
' '
,
sizeof
(
str
)
);
...
...
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