mirror of
https://github.com/vgough/encfs.git
synced 2024-11-21 23:43:26 +01:00
Bugfix: Segfault when running paranoid config in verbose mode
When "external IV chaining" is enabled, cipherName_ parameter may be NULL, resulting in segfault in verbose log attempt
This commit is contained in:
parent
4d952b74d8
commit
37cf68c8c5
@ -100,7 +100,9 @@ static bool setIV(const std::shared_ptr<FileIO> &io, uint64_t iv) {
|
||||
bool FileNode::setName(const char *plaintextName_, const char *cipherName_,
|
||||
uint64_t iv, bool setIVFirst) {
|
||||
// Lock _lock( mutex );
|
||||
VLOG(1) << "calling setIV on " << cipherName_;
|
||||
if (cipherName_)
|
||||
VLOG(1) << "calling setIV on " << cipherName_;
|
||||
|
||||
if (setIVFirst) {
|
||||
if (fsConfig->config->externalIVChaining && !setIV(io, iv)) return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user