coverity fix
digest and size update