diff --git a/README.md b/README.md index d4bbc52..7335c25 100644 --- a/README.md +++ b/README.md @@ -107,6 +107,4 @@ sudo apt install gcc-9-mips-linux-gnu binutils-multiarch ## Known issues -### Memcpy - -1. memcpy is not working for copylen=1 +Currently none! diff --git a/tests/test_memcpy.py b/tests/test_memcpy.py index 5398f1f..66d398d 100644 --- a/tests/test_memcpy.py +++ b/tests/test_memcpy.py @@ -67,6 +67,8 @@ def memcpy_get_shellcode(temp_dir_path, compiler_arch, memcpy_helper, copy_len): 100, 200, 0x1000, + 0, + 1, 2, 3, 100 diff --git a/tests/test_memset.py b/tests/test_memset.py index def5781..94357bd 100644 --- a/tests/test_memset.py +++ b/tests/test_memset.py @@ -60,7 +60,7 @@ def memset_get_shellcode(temp_dir_path, compiler_arch, memset_helper, copy_bytes copy_bytes ), ], - 0x1000 * len(copy_bytes), + 0x1000, base_address=helper.shellcode_address ) @@ -73,6 +73,8 @@ def memset_get_shellcode(temp_dir_path, compiler_arch, memset_helper, copy_bytes @pytest.mark.parametrize('copy_len', [ 100, 200, + 0, + 1, 2, 3, 8,