matisse-common: libril: Fix OOB vulnerability in setGsm/CdmaSmsBroadcastConfigInfo

Error if length > 25

Test: lunch cf_x86_phone-userdebug && mm
Bug: 144046782
[haggertk: Header update only, code is in msm8226-common]
Change-Id: I18f9745174762a52fc20bfc7273c6b3fd2118da5

Change-Id: Ia6dcbbfe11f8c49e5f7c7949304b86034bb63d35
This commit is contained in:
Sarah Chin 2020-02-03 12:38:02 -08:00 committed by matteo0026
parent f99cdc89af
commit 655bb03718
1 changed files with 1 additions and 0 deletions

View File

@ -108,6 +108,7 @@ extern "C" {
#define MAX_BANDS 8
#define MAX_CHANNELS 32
#define MAX_RADIO_ACCESS_NETWORKS 8
#define MAX_BROADCAST_SMS_CONFIG_INFO 25
typedef void * RIL_Token;