OSDN Git Service

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>
Sat, 20 Jun 2015 01:00:25 +0000 (18:00 -0700)
commit0f714a464d2425afe00d6450535e763131b40844
treee949a4874b50e193734fb3541e9011d3a7e54cb6
parent3ecc9db40b1fb9c7f807a5892e5c9625aac1fb06
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