mirror of
https://github.com/vgough/encfs.git
synced 2025-06-24 05:51:51 +02:00
Log offending filename "too small" errors
This commit is contained in:
parent
5e834968b2
commit
68485500fd
@ -184,7 +184,11 @@ int BlockNameIO::decodeName(const char *encodedName, int length, uint64_t *iv,
|
|||||||
int decodedStreamLen = decLen256 - 2;
|
int decodedStreamLen = decLen256 - 2;
|
||||||
|
|
||||||
// don't bother trying to decode files which are too small
|
// don't bother trying to decode files which are too small
|
||||||
if (decodedStreamLen < _bs) throw ERROR("Filename too small to decode");
|
if (decodedStreamLen < _bs)
|
||||||
|
{
|
||||||
|
rDebug("Rejecting filename '%s'", encodedName);
|
||||||
|
throw ERROR("Filename too small to decode");
|
||||||
|
}
|
||||||
|
|
||||||
BUFFER_INIT(tmpBuf, 32, (unsigned int)length);
|
BUFFER_INIT(tmpBuf, 32, (unsigned int)length);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user