Prevent OOB when appending no bytes to a fluxmap.

This commit is contained in:
David Given
2020-05-14 10:40:49 +02:00
parent 2b53ac057c
commit 9a5958f80b

View File

@@ -4,6 +4,9 @@
Fluxmap& Fluxmap::appendBytes(const Bytes& bytes)
{
if (bytes.size() == 0)
return *this;
return appendBytes(&bytes[0], bytes.size());
}