OSDN Git Service

Fix preventing from heap overwrite in capture command
authorRyszard Grzesica <ryszard.grzesica@sonymobile.com>
Fri, 17 Jan 2014 10:40:16 +0000 (11:40 +0100)
committerTakeshi Aimi <takeshi.aimi@sonymobile.com>
Wed, 19 Feb 2014 17:01:35 +0000 (02:01 +0900)
commitabb7b17613fff41433cda94207eb535c9fed8fba
tree1ccb9a72843f7b023cbd9b5365fc6c424b672dc7
parent80b72e6f4202ce26facbe51b8739814bca198a2c
Fix preventing from heap overwrite in capture command

There was heap usage error in case of stop of audio framework while
capturePoint was negative. Pointer to reply data was moved but
final silence write was done using original buffer size.
Now silence set is done at the beginning under the condition
that framework has stopped.

Change-Id: I7dab1e922f1813e5fbfd4a64c8b0d15d9465520c
media/libeffects/visualizer/EffectVisualizer.cpp