From 30053695a7bd6f29ae6b6553a10c6ec37d134adb Mon Sep 17 00:00:00 2001 From: Kevin Day Date: Wed, 13 Jul 2022 07:05:32 -0500 Subject: [PATCH] Bugfix: Delimits are not being applied for IKI variables. The controller program is not applying the delimits for would-be-valid IKI variables. This becomes a huge problem when these would-be-valid IKI variables are passed to the fake program. If the would-be-valid IKI variables are properly delimited, then the fake program would see them as valid IKI variables. --- level_3/controller/c/rule/private-rule.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/level_3/controller/c/rule/private-rule.c b/level_3/controller/c/rule/private-rule.c index 7ae1c89..1b48e9d 100644 --- a/level_3/controller/c/rule/private-rule.c +++ b/level_3/controller/c/rule/private-rule.c @@ -162,6 +162,11 @@ extern "C" { return status; } + + // Apply the IKI delimits to the buffer. + for (f_array_length_t j = 0; j < action->ikis.array[action->ikis.used].delimits.used; ++j) { + action->parameters.array[action->parameters.used].string[action->ikis.array[action->ikis.used].delimits.array[j]] = f_iki_syntax_placeholder_s.string[0]; + } // for } ++action->parameters.used; @@ -311,6 +316,11 @@ extern "C" { return status; } + + // Apply the IKI delimits to the buffer. + for (f_array_length_t j = 0; j < actions->array[actions->used].ikis.array[0].delimits.used; ++j) { + actions->array[actions->used].parameters.array[0].string[actions->array[actions->used].ikis.array[0].delimits.array[j]] = f_iki_syntax_placeholder_s.string[0]; + } // for } actions->array[actions->used].ikis.used = 1; @@ -621,6 +631,11 @@ extern "C" { return status; } + + // Apply the IKI delimits to the buffer. + for (f_array_length_t j = 0; j < actions->array[actions->used].ikis.array[0].delimits.used; ++j) { + actions->array[actions->used].parameters.array[0].string[actions->array[actions->used].ikis.array[0].delimits.array[j]] = f_iki_syntax_placeholder_s.string[0]; + } // for } actions->array[actions->used].ikis.used = 1; -- 1.8.3.1