Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dir: fix two potential memory access violations
Fixes #1281: Director crashes on memory access violation in CloseMemoryPool() and is_regex() mem_pool: Remove calculation of the variables "count" and "bytes" which caused the crash while the results are not used at all. Also reduces variable scope and removes a pointless cast. ua_acl: fix is_regex() function, replace error-prone and buggy function with simpler c++-based string-handling.
- Loading branch information
Showing
2 changed files
with
8 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters