bareos: bareos-19.2 1a8cbe85

Author Committer Branch Timestamp Parent
pstorz franku bareos-19.2 2020-11-25 13:14 bareos-19.2 9ca8acb1 Pending
Affected Issues  0001281: Director crashes on memory access violation in CloseMemoryPool() and is_regex()
Changeset dir: fix two potential memory access violations

Fixes 0001281: 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.
mod - core/src/dird/ua_acl.cc Diff File
mod - core/src/lib/mem_pool.cc Diff File