View Revisions: Issue #1175

Summary 0001175: bareos crashes with invalid character in ACL
Revision 2020-02-06 12:34 by arogge
Description Bareos detects invalid character in the ACL correctly, but instead of canceling the configuration-loading it aborts with an exception.

---
bareos-dbcheck crashes with:

realloc(): invalid pointer
Aborted

gdb revealed that the crash happens in this line because of an invalid character '(':
https://github.com/bareos/bareos/blob/b911f9bb4bb0013fccd60d03f20134406f60f301/core/src/lib/edit.cc#L614

According to the config, ACLs may use regular expressions. So please allow following symbols: ()[]*+\

This bug leads to the BackupCatalog job failing with above error message.
Revision 2020-02-06 11:35 by Gabscap
Description bareos-dbcheck crashes with:

realloc(): invalid pointer
Aborted

gdb revealed that the crash happens in this line because of an invalid character '(':
https://github.com/bareos/bareos/blob/b911f9bb4bb0013fccd60d03f20134406f60f301/core/src/lib/edit.cc#L614

According to the config, ACLs may use regular expressions. So please allow following symbols: ()[]*+\

This bug leads to the BackupCatalog job failing with above error message.