]> Kevux Git Server - fll/commitdiff
Security: Incorrect variable printed in private_fl_directory_do_recurse().
authorKevin Day <Kevin@kevux.org>
Sun, 9 Mar 2025 20:57:58 +0000 (15:57 -0500)
committerKevin Day <Kevin@kevux.org>
Sun, 9 Mar 2025 20:57:58 +0000 (15:57 -0500)
This bug is considered a security issue because it is printing potentially unused memory addresses.

level_1/fl_directory/c/private-directory.c

index 42b9eac3c0421c362e0f7b030205b858d89b72b9..bd79bb56b0fb6ae2abe7b77ad3f376c67c06bc13 100644 (file)
@@ -132,7 +132,7 @@ extern "C" {
               recurse->action(recurse, list[k]->array[i], flag_actions[j] | flags[k]);
 
               if (F_status_is_error(recurse->state.status)) {
-                private_inline_fl_directory_do_handle(recurse, recurse->listing.directory.array[i], flag_actions[j] | flags[k]);
+                private_inline_fl_directory_do_handle(recurse, list[k]->array[i], flag_actions[j] | flags[k]);
                 if (F_status_is_error(recurse->state.status)) break;
               }