Fix 32 Coverity issues ( 17 remains)

Signed-off-by: Yunlu Zhang <Yunlu.Zhang@synopsys.com>