coverity#1194927 allocation too small for type

Change-Id: I6ddf12cee4ea6d170c791a79014bb8400ab7d779
coverity#1194928 allocation too small for type

Change-Id: I4d1a3838ef95906b69bf52ba0d04c56859201db8
coverity#1194891 Copy-paste error

Change-Id: I79c5587725850fc14a54f827b931959fbadaf566