View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001281 | bareos-core | director | public | 2020-11-27 17:05 | 2020-12-11 17:44 |
Reporter | franku | Assigned To | pstorz | ||
Priority | high | Severity | crash | Reproducibility | random |
Status | closed | Resolution | fixed | ||
Summary | 0001281: Director crashes on memory access violation in CloseMemoryPool() and is_regex() | ||||
Description | The director Daemon crashes randomly either in CloseMemoryPool or in is_regex when attempting to read out of page memory. This results in a segmentation fault. | ||||
Steps To Reproduce | Probably happens more likely when update bvfs using .bvfs_update using the WebUi. | ||||
Tags | No tags attached. | ||||
bareos: master cc448f9c 2020-11-25 13:14 Committer: franku Ported: N/A Details Diff |
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. |
Affected Issues 0001281 |
|
mod - CHANGELOG.md | Diff File | ||
mod - core/src/dird/ua_acl.cc | Diff File | ||
mod - core/src/lib/mem_pool.cc | Diff File | ||
bareos: bareos-18.2 6953c14c 2020-11-25 13:14 Committer: franku Ported: N/A Details Diff |
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. |
Affected Issues 0001281 |
|
mod - core/src/dird/ua_acl.cc | Diff File | ||
mod - core/src/lib/mem_pool.cc | Diff File | ||
bareos: bareos-19.2 1a8cbe85 2020-11-25 13:14 Committer: franku Ported: N/A Details Diff |
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. |
Affected Issues 0001281 |
|
mod - core/src/dird/ua_acl.cc | Diff File | ||
mod - core/src/lib/mem_pool.cc | Diff File |
Date Modified | Username | Field | Change |
---|---|---|---|
2020-11-27 17:05 | franku | New Issue | |
2020-11-30 09:44 | franku | Summary | Director crash in CloseMemoryPool() and is_regex() buffer overrun => Director crashes on memory access violation in CloseMemoryPool() and is_regex() |
2020-11-30 12:40 | franku | Assigned To | => franku |
2020-11-30 12:40 | franku | Status | new => assigned |
2020-11-30 15:36 | franku | Relationship added | related to 0001261 |
2020-11-30 15:36 | franku | Relationship added | related to 0001260 |
2020-11-30 15:45 | arogge | Relationship added | related to 0001282 |
2020-12-02 19:19 | franku | Status | assigned => resolved |
2020-12-02 19:19 | franku | Resolution | open => fixed |
2020-12-02 19:22 | franku | Changeset attached | => bareos master cc448f9c |
2020-12-02 19:22 | franku | Changeset attached | => bareos bareos-18.2 6953c14c |
2020-12-02 19:22 | franku | Changeset attached | => bareos bareos-19.2 1a8cbe85 |
2020-12-02 19:22 | pstorz | Note Added: 0004061 | |
2020-12-02 19:22 | pstorz | Assigned To | franku => pstorz |
2020-12-11 17:44 | arogge | Status | resolved => closed |