RIC-1044: Add array size checks

Change-Id: Ie16b754eb88043bd987600d5b9461a3ce20b44cf
Signed-off-by: tchyang <tzy5088@psu.edu>
2 files changed