forked from rubenslte/android_kernel_samsung_msm8226
msm: vidc: Validate userspace buffer count
Makesure the number of buffers count is less than the maximum limit to avoid structure overflow errors. Change-Id: Icf3850de36325637ae43ac95f1c8f0f63e201d31 CRs-fixed: 563694 Signed-off-by: Pachika, Vikas Reddy <vpachi@codeaurora.org> [haggertk]: Note partial commit due to Samsung removing the define in their code drop. CVE-2014-9778 Signed-off-by: Kevin F. Haggerty <haggertk@lineageos.org>
This commit is contained in:
committed by
Francescodario Cuzzocrea
parent
adc4c8d4a8
commit
ef8b470435
@@ -20,6 +20,7 @@
|
||||
#define VIDC_MAX_NUM_CLIENTS 4
|
||||
#define MAX_VIDEO_NUM_OF_BUFF 100
|
||||
#define MAX_META_BUFFERS 32
|
||||
#define MAX_MV_BUFFERS 32
|
||||
|
||||
enum buffer_dir {
|
||||
BUFFER_TYPE_INPUT,
|
||||
|
||||
Reference in New Issue
Block a user