From 46fddc0d478f4a16e48dcb4acdaca83f3ceb3768 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sun, 17 Nov 2013 13:30:33 -0500 Subject: [PATCH] oob float Signed-off-by: Mathieu Desnoyers --- .../fail/out-of-bound-float/dummystream | 1 + .../stream/fail/out-of-bound-float/metadata | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 tests/1.8/regression/stream/fail/out-of-bound-float/dummystream create mode 100644 tests/1.8/regression/stream/fail/out-of-bound-float/metadata diff --git a/tests/1.8/regression/stream/fail/out-of-bound-float/dummystream b/tests/1.8/regression/stream/fail/out-of-bound-float/dummystream new file mode 100644 index 0000000..5ea947a --- /dev/null +++ b/tests/1.8/regression/stream/fail/out-of-bound-float/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-float/metadata b/tests/1.8/regression/stream/fail/out-of-bound-float/metadata new file mode 100644 index 0000000..4af47a3 --- /dev/null +++ b/tests/1.8/regression/stream/fail/out-of-bound-float/metadata @@ -0,0 +1,20 @@ +/* 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; +typealias floating_point { exp_dig = 8; mant_dig = 24; align = 32; } := float; + +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 { float blah; }; +}; -- 2.34.1