Add post-release from upstream to reject buffers of zero size
Fabian Greffrath
1 year, 11 months ago
|
0 |
From a65ecabd13a6b991781d75856e1b6870ce00fc70 Mon Sep 17 00:00:00 2001
|
|
1 |
From: David Korczynski <david@adalogics.com>
|
|
2 |
Date: Thu, 15 Jul 2021 20:49:44 +0100
|
|
3 |
Subject: [PATCH 2/2] Reject buffers of zero size
|
|
4 |
|
|
5 |
---
|
|
6 |
libfaad/decoder.c | 2 +-
|
|
7 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
8 |
|
|
9 |
diff --git a/libfaad/decoder.c b/libfaad/decoder.c
|
|
10 |
index c3bbf4c..132cdd8 100644
|
|
11 |
--- a/libfaad/decoder.c
|
|
12 |
+++ b/libfaad/decoder.c
|
|
13 |
@@ -271,7 +271,7 @@ long NeAACDecInit(NeAACDecHandle hpDecoder,
|
|
14 |
NeAACDecStruct* hDecoder = (NeAACDecStruct*)hpDecoder;
|
|
15 |
|
|
16 |
|
|
17 |
- if ((hDecoder == NULL) || (samplerate == NULL) || (channels == NULL))
|
|
18 |
+ if ((hDecoder == NULL) || (samplerate == NULL) || (channels == NULL) || (buffer_size == 0))
|
|
19 |
return -1;
|
|
20 |
|
|
21 |
hDecoder->sf_index = get_sr_index(hDecoder->config.defSampleRate);
|
|
22 |
--
|
|
23 |
2.33.0
|
|
24 |
|
|
0 |
0002-Reject-buffers-of-zero-size.patch
|