[openEuler-5.10-LTS 496/501] tee: add overflow check in register_shm_helper()