[Tizen] Add more guard code to detect memory corruption