forked from pool/alsa-utils
Takashi Iwai
fa525f71d0
- Backport upstream fixes for aplay signal handling and alsactl possible buffer overflow of readlink(): 0004-aplay-Fix-type-for-signal-flag.patch 0005-aplay-Fix-uninterruptible-aplay.patch 0006-alsactl-terminate-readlink-result-string.patch OBS-URL: https://build.opensuse.org/request/show/316472 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/alsa-utils?expand=0&rev=118
30 lines
879 B
Diff
30 lines
879 B
Diff
From 9aa5c271f4eb2e3481b4a5076eb025242215ad7f Mon Sep 17 00:00:00 2001
|
|
From: Takashi Iwai <tiwai@suse.de>
|
|
Date: Wed, 29 Apr 2015 18:01:07 +0200
|
|
Subject: [PATCH] aplay: Fix type for signal flag
|
|
|
|
A flag used in signal handlers has to be a special atomic type,
|
|
volatile sig_atomic_t.
|
|
|
|
Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
|
---
|
|
aplay/aplay.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/aplay/aplay.c b/aplay/aplay.c
|
|
index e58e1bcbdd7e..dfa1a0a95867 100644
|
|
--- a/aplay/aplay.c
|
|
+++ b/aplay/aplay.c
|
|
@@ -107,7 +107,7 @@ static snd_pcm_stream_t stream = SND_PCM_STREAM_PLAYBACK;
|
|
static int mmap_flag = 0;
|
|
static int interleaved = 1;
|
|
static int nonblock = 0;
|
|
-static int in_aborting = 0;
|
|
+static volatile sig_atomic_t in_aborting = 0;
|
|
static u_char *audiobuf = NULL;
|
|
static snd_pcm_uframes_t chunk_size = 0;
|
|
static unsigned period_time = 0;
|
|
--
|
|
2.4.5
|
|
|