Skip to content

Conversation

marcstern
Copy link

'current_targets' is allocated in ruleset->mp.
'rule->p1' is a copy of current_targets, but we strdup it in the same memory pool as 'current_targets'. So, simply assign 'current_targets' to 'rule->p1'.

'current_targets' is allocated in ruleset->mp.
'rule->p1' is a copy of current_targets, but we strdup it in the same memory pool as 'current_targets'.
So, simply assign 'current_targets' to 'rule->p1'.
@martinhsv martinhsv added the 2.x Related to ModSecurity version 2.x label Sep 11, 2023
@marcstern marcstern merged commit 7dae977 into owasp-modsecurity:v2/master Feb 1, 2024
@marcstern marcstern deleted the v2/mst/optim3 branch February 1, 2024 09:52
@marcstern marcstern restored the v2/mst/optim3 branch June 7, 2024 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.x Related to ModSecurity version 2.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants