sthal: fix static analysis issues

- Use %pK instead of %p to avoid info leak.
- Avoid null pointer dereference.
- Check for integer overflow during addition.

Change-Id: Ifdfbf5025c19c554ec1ff60f2cfb95a98c9ced7e
2 files changed