From bbff9babea9f8076c85b67205e87e6ddaeae2436 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sun, 17 Nov 2013 13:25:15 -0500 Subject: [PATCH] oob string Signed-off-by: Mathieu Desnoyers --- .../fail/out-of-bound-string/dummystream | 1 + .../stream/fail/out-of-bound-string/metadata | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 tests/1.8/regression/stream/fail/out-of-bound-string/dummystream create mode 100644 tests/1.8/regression/stream/fail/out-of-bound-string/metadata diff --git a/tests/1.8/regression/stream/fail/out-of-bound-string/dummystream b/tests/1.8/regression/stream/fail/out-of-bound-string/dummystream new file mode 100644 index 0000000..5ea947a --- /dev/null +++ b/tests/1.8/regression/stream/fail/out-of-bound-string/dummystream @@ -0,0 +1 @@ +ÁüÁ*d"ÐlîàŒË׳¥dB \ No newline at end of file diff --git a/tests/1.8/regression/stream/fail/out-of-bound-string/metadata b/tests/1.8/regression/stream/fail/out-of-bound-string/metadata new file mode 100644 index 0000000..1ec76fd --- /dev/null +++ b/tests/1.8/regression/stream/fail/out-of-bound-string/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 = evname; + fields := struct { string blah; }; +}; -- 2.34.1