[Privoxy-commits] [privoxy] 05/08: action_render_string_actions_template(): Assert that the multi action index is valid

User Git git at git.privoxy.org
Sat Sep 9 11:55:19 CEST 2023


This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch master
in repository privoxy.

commit b7fc04be25a78ee9ce60135e3e1b41b5f5acf83a
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Sat Sep 9 08:17:52 2023 +0200

    action_render_string_actions_template(): Assert that the multi action index is valid
---
 cgiedit.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/cgiedit.c b/cgiedit.c
index 2ae42e1f..adcc01de 100644
--- a/cgiedit.c
+++ b/cgiedit.c
@@ -4518,6 +4518,8 @@ static jb_err action_render_string_actions_template(struct map *exports,
        struct list_entry *list;
    };
 
+   assert(type->multi_action_index < ACTION_MULTI_COUNT);
+
    struct action_multi desc[] = {
        { 'y', action->multi_add[type->multi_action_index][0].first },
        { 'n', action->multi_remove[type->multi_action_index][0].first }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Privoxy-commits mailing list