memory overwrite test for sm4