Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
VideoLAN
libdvdread
Commits
a0b8b3e4
Commit
a0b8b3e4
authored
May 20, 2015
by
Petri Hintukainen
Committed by
Jean-Baptiste Kempf
May 20, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix possible buffer overflow
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
2b77f469
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/dvd_reader.c
src/dvd_reader.c
+3
-2
No files found.
src/dvd_reader.c
View file @
a0b8b3e4
...
@@ -498,8 +498,9 @@ static dvd_reader_t *DVDOpenCommon( const char *ppath,
...
@@ -498,8 +498,9 @@ static dvd_reader_t *DVDOpenCommon( const char *ppath,
}
}
if
(
path_copy
[
0
]
==
'\0'
)
{
if
(
path_copy
[
0
]
==
'\0'
)
{
path_copy
[
0
]
=
'/'
;
free
(
path_copy
);
path_copy
[
1
]
=
'\0'
;
if
(
!
(
path_copy
=
strdup
(
"/"
)
)
)
goto
DVDOpen_error
;
}
}
#if defined(__APPLE__)
#if defined(__APPLE__)
...
...
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