Skip to content

Commit 2dddf66

Browse files
committed
test_memcpy, test_memset: Test len=1 and len=0
1 parent 80f8bce commit 2dddf66

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

tests/test_memcpy.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ def memcpy_get_shellcode(temp_dir_path, compiler_arch, memcpy_helper, copy_len):
6767
100,
6868
200,
6969
0x1000,
70+
0,
71+
1,
7072
2,
7173
3,
7274
100

tests/test_memset.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,8 @@ def memset_get_shellcode(temp_dir_path, compiler_arch, memset_helper, copy_bytes
7373
@pytest.mark.parametrize('copy_len', [
7474
100,
7575
200,
76+
0,
77+
1,
7678
2,
7779
3,
7880
8,

0 commit comments

Comments
 (0)