[Privoxy-commits] [privoxy] 04/08: cgi_edit_actions_for_url(): Assert that the multi action index is valid
User Git
git at git.privoxy.org
Sat Sep 9 11:55:18 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 a9e76d892e6427effc7fd2a55fddbf1c58c14106
Author: Fabian Keil <fk at fabiankeil.de>
AuthorDate: Sat Sep 9 08:16:08 2023 +0200
cgi_edit_actions_for_url(): Assert that the multi action index is valid
---
cgiedit.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/cgiedit.c b/cgiedit.c
index 1af01c10..2ae42e1f 100644
--- a/cgiedit.c
+++ b/cgiedit.c
@@ -2901,6 +2901,7 @@ jb_err cgi_edit_actions_for_url(struct client_state *csp,
const int multi_action_index = action_type_info[type].multi_action_index;
assert(type < MAX_FILTER_TYPES);
+ assert(multi_action_index < ACTION_MULTI_COUNT);
filter_name = cur_line->data.action->multi_add[multi_action_index]->first;
while ((filter_name != NULL)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list