Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed use after free in ModSecurity::processContentOffset
- Use after free issue detected with Address Sanitizer while running the reading_logs_with_offset example. - Keeps reference to last element in vars vector with vars.back(). Then it removes the element from vars calling vars.pop_back() which invalidates the reference, but it's accessed later in the function. - Fixed by copying the value instead.
- Loading branch information