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
bfb1b641
Commit
bfb1b641
authored
3 years ago
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
db/update/InotifyUpdate: fix use-after-free bug
Regression by commit
2d8847f4
parent
72ba98c4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
NEWS
NEWS
+2
-0
InotifyUpdate.cxx
src/db/update/InotifyUpdate.cxx
+1
-1
No files found.
NEWS
View file @
bfb1b641
...
@@ -2,6 +2,8 @@ ver 0.23.3 (not yet released)
...
@@ -2,6 +2,8 @@ ver 0.23.3 (not yet released)
* protocol
* protocol
- add optional position parameter to "add" and "playlistadd"
- add optional position parameter to "add" and "playlistadd"
- allow range in "playlistdelete"
- allow range in "playlistdelete"
* database
- inotify: fix use-after-free bug
* output
* output
- alsa: add option "stop_dsd_silence" to work around DSD DAC noise
- alsa: add option "stop_dsd_silence" to work around DSD DAC noise
* macOS: fix libfmt related build failure
* macOS: fix libfmt related build failure
...
...
This diff is collapsed.
Click to expand it.
src/db/update/InotifyUpdate.cxx
View file @
bfb1b641
...
@@ -282,7 +282,7 @@ InotifyUpdate::InotifyCallback(int wd, unsigned mask,
...
@@ -282,7 +282,7 @@ InotifyUpdate::InotifyCallback(int wd, unsigned mask,
(
mask
&
IN_ISDIR
)
!=
0
)
{
(
mask
&
IN_ISDIR
)
!=
0
)
{
/* a sub directory was changed: register those in
/* a sub directory was changed: register those in
inotify */
inotify */
const
Path
root_path
=
root
->
name
;
const
auto
root_path
=
root
->
name
;
const
auto
path_fs
=
uri_fs
.
IsNull
()
const
auto
path_fs
=
uri_fs
.
IsNull
()
?
root_path
?
root_path
...
...
This diff is collapsed.
Click to expand it.
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