projects
/
platform
/
upstream
/
pulseaudio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68d2bcc
)
echo-cancel: Fix echo-cancel-test's argument number checking
author
Stefan Huber
<s.huber@bct-electronic.com>
Tue, 18 Dec 2012 12:52:30 +0000
(13:52 +0100)
committer
Tanu Kaskinen
<tanuk@iki.fi>
Thu, 20 Dec 2012 08:13:56 +0000
(10:13 +0200)
Argument argv[5] is accessed when argc>4, which leads to an invalid
access for argc==5. Fix this.
Signed-off-by: Stefan Huber <s.huber@bct-electronic.com>
Acked-by: Peter Meerwald <p.meerwald@bct-electronic.com>
src/modules/echo-cancel/module-echo-cancel.c
patch
|
blob
|
history
diff --git
a/src/modules/echo-cancel/module-echo-cancel.c
b/src/modules/echo-cancel/module-echo-cancel.c
index
26ac30b
..
f7c7276
100644
(file)
--- a/
src/modules/echo-cancel/module-echo-cancel.c
+++ b/
src/modules/echo-cancel/module-echo-cancel.c
@@
-2108,7
+2108,7
@@
int main(int argc, char* argv[]) {
goto fail;
if (!u.ec->init(u.core, u.ec, &source_ss, &source_map, &sink_ss, &sink_map, &u.blocksize,
- (argc >
4
) ? argv[5] : NULL )) {
+ (argc >
5
) ? argv[5] : NULL )) {
pa_log("Failed to init AEC engine");
goto fail;
}