diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-01-19 21:20:37 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-01-19 21:20:37 +0100 |
| commit | 5d49e42c4457cc6d9a200658eb837bafa759f354 (patch) | |
| tree | fc56f09dd143dc1e1a76315dac0f5f944abfdbb1 /sys | |
| parent | 828afa57275a7d0131ab3959da6ab9c6e61a9072 (diff) | |
| parent | 243c4bf89cf66d2cda30d27850eb48bb82eb0863 (diff) | |
Merge pull request #111 from xairy/length-fix
Length calculation fixes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/test.txt | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/sys/test.txt b/sys/test.txt index 65415dd41..e36af549d 100644 --- a/sys/test.txt +++ b/sys/test.txt @@ -182,6 +182,9 @@ syz_test$length14(a0 ptr[inout, syz_length_large_struct], a1 ptr[inout, len[a0, syz_test$length15(a0 int16, a1 len[a0]) syz_test$length16(a0 ptr[in, syz_length_bytesize_struct]) +syz_test$length17(a0 ptr[in, syz_length_bytesize2_struct]) +syz_test$length18(a0 ptr[in, syz_length_bytesize3_struct]) +syz_test$length19(a0 ptr[in, syz_length_bf_struct]) syz_length_flags = 0, 1 @@ -262,6 +265,40 @@ syz_length_bytesize_struct { f5 bytesize8[f0, int8] } +syz_length_bytesize2_struct { + f0 int64 + f1 bytesize[f0, int8] + f2 bytesize2[f0, int8] + f3 bytesize4[f0, int8] + f4 bytesize8[f0, int8] +} + +syz_length_bytesize3_struct { + f0 int32 + f1 bytesize[parent, int8] + f2 bytesize2[parent, int8] + f3 bytesize4[parent, int8] + f4 bytesize8[parent, int8] +} + +syz_length_bf_struct_inner { + f0 int32:10 + f1 int32:10 + f2 int32:10 + f3 int32:32 + f4 int32:16 + f5 int32:16 + f6 int32:10 + f7 len[parent, int32] +} + +syz_length_bf_struct { + f0 syz_length_bf_struct_inner + f1 len[f0, int8] + f2 bytesize[f0, int8] + f3 bytesize4[f0, int8] +} + # Big endian syz_test$end0(a0 ptr[in, syz_end_int_struct]) |
