OSDN Git Service

DO NOT MERGE - audio effects: fix heap overflow
authorEric Laurent <elaurent@google.com>
Fri, 19 Jun 2015 22:33:57 +0000 (15:33 -0700)
committerEric Laurent <elaurent@google.com>
Tue, 23 Jun 2015 00:40:18 +0000 (00:40 +0000)
commit29b83cbb9018e53a18cf6e0fb34893f9774dcb96
treec17fd5e1cd3b7e6be790d902a31ea2af520a548c
parent6ff53b96235bf99cdc1023b99d44f1c4cade1c0a
DO NOT MERGE - audio effects: fix heap overflow

Check consistency of effect command reply sizes before
copying to reply address.

Also add null pointer check on reply size.
Also remove unused parameter warning.

Bug: 21953516.
Change-Id: I4cf00c12eaed696af28f3b7613f7e36f47a160c4
media/libeffects/downmix/EffectDownmix.c
media/libeffects/loudness/EffectLoudnessEnhancer.cpp
media/libeffects/lvm/wrapper/Bundle/EffectBundle.cpp
media/libeffects/lvm/wrapper/Reverb/EffectReverb.cpp
media/libeffects/preprocessing/PreProcessing.cpp
media/libeffects/visualizer/EffectVisualizer.cpp