Fix out of bound test
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 10 Nov 2022 17:06:48 +0000 (12:06 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 10 Nov 2022 17:06:48 +0000 (12:06 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
src/test.c

index e4bb1eafdc657df82db377116d83654e72b9b546..77b5961aabbc51f6bec6f65af9138491055b0a90 100644 (file)
@@ -1920,7 +1920,7 @@ void test_gather_vla_flex(void)
 {
        side_event_cond(my_provider_event_gathervlaflex) {
                struct testgathervlaflex *mystruct =
-                       (struct testgathervlaflex *) malloc(sizeof(*mystruct) + VLAFLEXLEN + sizeof(uint64_t));
+                       (struct testgathervlaflex *) malloc(sizeof(*mystruct) + VLAFLEXLEN * sizeof(uint64_t));
 
                mystruct->len = VLAFLEXLEN;
                mystruct->otherfield = 0;
This page took 0.023763 seconds and 4 git commands to generate.