PPFL
PPFL copied to clipboard
add: check conditions before input array access
I found there are some directly array access without buffer size check in darknet_ta.c. Since params[i].memref is from insecure REE, there may be a secure risk that the input buffer size may less than TEE code needed. I add a check condition before array access to avoid this issue. Please kindly accept the pull request.