All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix bug in arecord --max-file-time where the file size could overflow 32 bits
@ 2017-06-23 18:35 Gilliland, Scott M
  2017-06-26 15:06 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Gilliland, Scott M @ 2017-06-23 18:35 UTC (permalink / raw)
  To: alsa-devel

From: Scott Gilliland <scott.gilliland@gatech.edu>

Fix bug in arecord --max-file-time where the file size could overflow 32 bits

Signed-off-by: Scott Gilliland <scott.gilliland@gatech.edu>
---
 aplay/aplay.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aplay/aplay.c b/aplay/aplay.c
index f793c82..00af662 100644
--- a/aplay/aplay.c
+++ b/aplay/aplay.c
@@ -3027,7 +3027,7 @@ static void capture(char *orig_name)
        if (count == 0)
                count = LLONG_MAX;
        /* compute the number of bytes per file */
-       max_file_size = max_file_time *
+       max_file_size = (long long) max_file_time *
                snd_pcm_format_size(hwparams.format,
                                    hwparams.rate * hwparams.channels);
        /* WAVE-file should be even (I'm not sure), but wasting one byte
-- 
2.11.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix bug in arecord --max-file-time where the file size could overflow 32 bits
  2017-06-23 18:35 [PATCH] Fix bug in arecord --max-file-time where the file size could overflow 32 bits Gilliland, Scott M
@ 2017-06-26 15:06 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2017-06-26 15:06 UTC (permalink / raw)
  To: Gilliland, Scott M; +Cc: alsa-devel

On Fri, 23 Jun 2017 20:35:03 +0200,
Gilliland, Scott M wrote:
> 
> From: Scott Gilliland <scott.gilliland@gatech.edu>
> 
> Fix bug in arecord --max-file-time where the file size could overflow 32 bits
> 
> Signed-off-by: Scott Gilliland <scott.gilliland@gatech.edu>

Applied, thanks.


Takashi

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-26 15:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-23 18:35 [PATCH] Fix bug in arecord --max-file-time where the file size could overflow 32 bits Gilliland, Scott M
2017-06-26 15:06 ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.