Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
23d08820
Commit
23d08820
authored
Oct 07, 2019
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
db/update/Walk: fix crash when music_directory is not a directory
Add a runtime sanity check to avoid the assertion failure. Closes
https://github.com/MusicPlayerDaemon/MPD/issues/660
parent
b9b906ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
NEWS
NEWS
+2
-0
Walk.cxx
src/db/update/Walk.cxx
+6
-0
No files found.
NEWS
View file @
23d08820
ver 0.21.16 (not yet released)
ver 0.21.16 (not yet released)
* update
- fix crash when music_directory is not a directory
ver 0.21.15 (2019/09/25)
ver 0.21.15 (2019/09/25)
* decoder
* decoder
...
...
src/db/update/Walk.cxx
View file @
23d08820
...
@@ -493,6 +493,12 @@ UpdateWalk::Walk(Directory &root, const char *path, bool discard) noexcept
...
@@ -493,6 +493,12 @@ UpdateWalk::Walk(Directory &root, const char *path, bool discard) noexcept
if
(
!
GetInfo
(
storage
,
""
,
info
))
if
(
!
GetInfo
(
storage
,
""
,
info
))
return
false
;
return
false
;
if
(
!
info
.
IsDirectory
())
{
FormatError
(
update_domain
,
"Not a directory: %s"
,
storage
.
MapUTF8
(
""
).
c_str
());
return
false
;
}
ExcludeList
exclude_list
;
ExcludeList
exclude_list
;
UpdateDirectory
(
root
,
exclude_list
,
info
);
UpdateDirectory
(
root
,
exclude_list
,
info
);
...
...
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