Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
6eedf20f
Commit
6eedf20f
authored
Mar 19, 2010
by
Christophe Mutricy
Browse files
Avoid integer overflow
parent
9b944bbb
Changes
3
Hide whitespace changes
Inline
Side-by-side
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
Supports
Markdown
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