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
cb4fdac4
Commit
cb4fdac4
authored
Oct 05, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist/cue/parser: fix nullptr dereference
Closes
https://github.com/MusicPlayerDaemon/MPD/issues/974
parent
ac46a843
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
NEWS
NEWS
+1
-1
CueParser.cxx
src/playlist/cue/CueParser.cxx
+3
-1
No files found.
NEWS
View file @
cb4fdac4
...
...
@@ -3,7 +3,7 @@ ver 0.22.1 (not yet released)
- alsa: don't deadlock when the ALSA driver is buggy
- jack, pulse: reduce the delay when stopping or pausing playback
* playlist
- cue: fix
crash bug
- cue: fix
two crash bugs
ver 0.22 (2020/09/23)
* protocol
...
...
src/playlist/cue/CueParser.cxx
View file @
cb4fdac4
...
...
@@ -262,7 +262,9 @@ CueParser::Feed2(char *p) noexcept
if
(
previous
!=
nullptr
&&
previous
->
GetStartTime
().
ToMS
()
<
(
unsigned
)
position_ms
)
previous
->
SetEndTime
(
SongTime
::
FromMS
(
position_ms
));
current
->
SetStartTime
(
SongTime
::
FromMS
(
position_ms
));
if
(
current
!=
nullptr
)
current
->
SetStartTime
(
SongTime
::
FromMS
(
position_ms
));
if
(
strcmp
(
nr
,
"00"
)
!=
0
||
previous
==
nullptr
)
ignore_index
=
true
;
}
...
...
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