diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-01-17 11:37:02 +0100 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-02-19 11:54:01 +0000 |
| commit | 0936819b9f980bde731cb6191677f9aa2cbfd9aa (patch) | |
| tree | b74c312a9583de951ca05cd7d29cf95eecdc6eeb /sys | |
| parent | 6a0e921ff20bf0952f7d8364d7af3552dd5f7598 (diff) | |
prog: test len calculation of structs with conditions
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/test/test.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/test/test.txt b/sys/test/test.txt index 788eb8484..c59b9d3d3 100644 --- a/sys/test/test.txt +++ b/sys/test/test.txt @@ -517,6 +517,18 @@ parent_union [ test$length34(a0 ptr[in, parent_union_struct]) +struct_with_condition { + f1 int32 + f2 int32 (if[value[f1] == 0x1]) +} [packed] + +len_of_cond_struct { + f1 len[f2, int32] + f2 struct_with_condition +} + +test$length35(a0 ptr[in, len_of_cond_struct]) + # Big endian test$end0(a0 ptr[in, syz_end_int_struct]) |
