From a8b38f6acce07479810584eead55472c764bc430 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sun, 17 Nov 2013 13:36:32 -0500 Subject: [PATCH] oob struct Signed-off-by: Mathieu Desnoyers --- .../fail/out-of-bound-struct/dummystream-fail | 1 + .../stream/fail/out-of-bound-struct/metadata | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 tests/1.8/regression/stream/fail/out-of-bound-struct/dummystream-fail create mode 100644 tests/1.8/regression/stream/fail/out-of-bound-struct/metadata diff --git a/tests/1.8/regression/stream/fail/out-of-bound-struct/dummystream-fail b/tests/1.8/regression/stream/fail/out-of-bound-struct/dummystream-fail new file mode 100644 index 0000000..fc7e07c --- /dev/null +++ b/tests/1.8/regression/stream/fail/out-of-bound-struct/dummystream-fail @@ -0,0 +1 @@ +ÁüÁ*d \ No newline at end of file diff --git a/tests/1.8/regression/stream/fail/out-of-bound-struct/metadata b/tests/1.8/regression/stream/fail/out-of-bound-struct/metadata new file mode 100644 index 0000000..b1310ec --- /dev/null +++ b/tests/1.8/regression/stream/fail/out-of-bound-struct/metadata @@ -0,0 +1,19 @@ +/* CTF 1.8 */ +typealias integer { size = 8; align = 8; signed = false; base = 10; } := uint8_t; +typealias integer { size = 32; align = 32; signed = false; base = hex; } := uint32_t; + +trace { + major = 0; + minor = 1; + uuid = "2a6422d0-6cee-11e0-8c08-cb07d7b3a564"; + byte_order = le; + packet.header := struct { + uint32_t magic; + uint8_t uuid[16]; + }; +}; + +event { + name = string; + fields := struct { struct { uint32_t blah; } s; }; +}; -- 2.34.1