common: security for performance component

The fix is designed to return an error in the case of event duplication.

CVE: CVE-2016-3768
Bug: 28172137

Change-Id: I482382d0623a06e302a15756f4fa3838cd1c9c36
Reviewed-on: http://mcrd1-22-pc.corpnet.asus/code-review/master/237863
Tested-by: Yu-Hao Lin <yu-hao_lin@asus.com>
Reviewed-by: Yu-Hao Lin <yu-hao_lin@asus.com>
Reviewed-by: Eric1 Lin <Eric1_Lin@asus.com>
2 files changed