coverity#1242806 untrusted pointer read

Change-Id: Ib92e1a22d7d25f4498272731af12c485937f38ef
coverity#1242811 untrusted pointer read

Change-Id: I74c29a39367e7781e5e6cf9795c7176ef599f97e