memset int with sizeof; o(m) memory need tracking status correctly