Fix critical memory corruption bug in core
Fix critical memory corruption bug in core

rlei/fastd-android,fpletz/fastd,fpletz/fastd,rlei/fastd-android,rlei/fastd-android,rlei/fastd-android,fpletz/fastd,fpletz/fastd,rlei/fastd-android,fpletz/fastd