]> Kevux Git Server - fll/commitdiff
Bugfix: Delimits are not being applied for IKI variables.
authorKevin Day <thekevinday@gmail.com>
Wed, 13 Jul 2022 12:05:32 +0000 (07:05 -0500)
committerKevin Day <thekevinday@gmail.com>
Wed, 13 Jul 2022 12:05:32 +0000 (07:05 -0500)
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

index 7ae1c8908811feccb44bbdc1061c5cf57788d799..1b48e9d53d0b4c80cce74cd2204600eb1c019a2c 100644 (file)
@@ -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;