Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
8ecb5ba1
Commit
8ecb5ba1
authored
Jan 29, 2009
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix buffer overflows.
parent
5339bb3f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
src/libvlc.c
src/libvlc.c
+2
-2
src/playlist/loadsave.c
src/playlist/loadsave.c
+2
-2
src/stream_output/sdp.c
src/stream_output/sdp.c
+1
-1
No files found.
src/libvlc.c
View file @
8ecb5ba1
...
...
@@ -1438,8 +1438,8 @@ static void Usage( libvlc_int_t *p_this, char const *psz_search )
#endif
char
psz_spaces_text
[
PADDING_SPACES
+
LINE_START
+
1
];
char
psz_spaces_longtext
[
LINE_START
+
3
];
char
psz_format
[
sizeof
(
COLOR_FORMAT_STRING
)];
char
psz_format_bool
[
sizeof
(
COLOR_FORMAT_STRING_BOOL
)];
char
psz_format
[
sizeof
(
COLOR_FORMAT_STRING
)
+
1
];
char
psz_format_bool
[
sizeof
(
COLOR_FORMAT_STRING_BOOL
)
+
1
];
char
psz_buffer
[
10000
];
char
psz_short
[
4
];
int
i_width
=
ConsoleWidth
()
-
(
PADDING_SPACES
+
LINE_START
+
1
);
...
...
src/playlist/loadsave.c
View file @
8ecb5ba1
...
...
@@ -212,11 +212,11 @@ int playlist_MLDump( playlist_t *p_playlist )
if
(
!
config_GetInt
(
p_playlist
,
"media-library"
)
)
return
VLC_SUCCESS
;
if
(
!
psz_datadir
)
/* XXX: This should never happen */
{
msg_Err
(
p_playlist
,
"no data directory, cannot save media library"
)
;
msg_Err
(
p_playlist
,
"no data directory, cannot save media library"
);
return
VLC_EGENERIC
;
}
char
psz_dirname
[
strlen
(
psz_datadir
)
+
sizeof
(
DIR_SEP
"ml.xspf"
)
];
char
psz_dirname
[
strlen
(
psz_datadir
)
+
sizeof
(
DIR_SEP
"ml.xspf"
)
+
1
];
strcpy
(
psz_dirname
,
psz_datadir
);
free
(
psz_datadir
);
if
(
config_CreateDir
(
(
vlc_object_t
*
)
p_playlist
,
psz_dirname
)
)
...
...
src/stream_output/sdp.c
View file @
8ecb5ba1
...
...
@@ -267,7 +267,7 @@ char *vlc_sdp_Start (vlc_object_t *obj, const char *cfgpref,
if
(
cfglen
>
100
)
return
NULL
;
char
varname
[
cfglen
+
sizeof
(
"description"
)],
*
subvar
=
varname
+
cfglen
;
char
varname
[
cfglen
+
sizeof
(
"description"
)
+
1
],
*
subvar
=
varname
+
cfglen
;
strcpy
(
varname
,
cfgpref
);
strcpy
(
subvar
,
"name"
);
...
...
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