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
6de92bb4
Commit
6de92bb4
authored
Feb 09, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pcm/Order: fix size calculation with 8 channels
This was a buffer overflow bug which could cause MPD crahes when playing back 8 channels with the ALSA output plugin. Closes #216
parent
c801936e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
NEWS
NEWS
+2
-0
Order.cxx
src/pcm/Order.cxx
+1
-1
No files found.
NEWS
View file @
6de92bb4
ver 0.20.17 (not yet released)
* output
- alsa: fix crash bug with 8 channels
* fix real-time and idle scheduling with Musl
ver 0.20.16 (2018/02/03)
...
...
src/pcm/Order.cxx
View file @
6de92bb4
...
...
@@ -88,7 +88,7 @@ static inline ConstBuffer<V>
ToAlsaChannelOrder71
(
PcmBuffer
&
buffer
,
ConstBuffer
<
V
>
src
)
{
auto
dest
=
buffer
.
GetT
<
V
>
(
src
.
size
);
ToAlsaChannelOrder71
(
dest
,
src
.
data
,
src
.
size
/
6
);
ToAlsaChannelOrder71
(
dest
,
src
.
data
,
src
.
size
/
8
);
return
{
dest
,
src
.
size
};
}
...
...
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