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
b0002e3b
Commit
b0002e3b
authored
Nov 04, 2020
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filter/chain: copy the child name
filter_chain_parse() passes a temporary string pointer which results in a use-after-free in the PreparedChainFilter::Child::Open() error message.
parent
27c589da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
NEWS
NEWS
+2
-0
ChainFilterPlugin.cxx
src/filter/plugins/ChainFilterPlugin.cxx
+3
-2
No files found.
NEWS
View file @
b0002e3b
ver 0.22.3 (not yet released)
* playlist
- add option "as_directory", making CUE file expansion optional
* filter
- fix garbage after "Audio format not supported by filter" message
ver 0.22.2 (2020/10/28)
* database
...
...
src/filter/plugins/ChainFilterPlugin.cxx
View file @
b0002e3b
...
...
@@ -28,6 +28,7 @@
#include <cassert>
#include <list>
#include <memory>
#include <string>
class
ChainFilter
final
:
public
Filter
{
struct
Child
{
...
...
@@ -72,7 +73,7 @@ private:
class
PreparedChainFilter
final
:
public
PreparedFilter
{
struct
Child
{
const
char
*
name
;
const
std
::
string
name
;
std
::
unique_ptr
<
PreparedFilter
>
filter
;
Child
(
const
char
*
_name
,
...
...
@@ -105,7 +106,7 @@ PreparedChainFilter::Child::Open(const AudioFormat &prev_audio_format)
if
(
conv_audio_format
!=
prev_audio_format
)
throw
FormatRuntimeError
(
"Audio format not supported by filter '%s': %s"
,
name
,
name
.
c_str
()
,
ToString
(
prev_audio_format
).
c_str
());
return
new_filter
;
...
...
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