coverity: add a check variable for get size function