Commit e9412594 authored by mshabunin's avatar mshabunin

Persistence: fixed valgrind warning in base64 decoder

parent c48d7f86
...@@ -7513,6 +7513,8 @@ bool base64::base64_valid(uint8_t const * src, size_t off, size_t cnt) ...@@ -7513,6 +7513,8 @@ bool base64::base64_valid(uint8_t const * src, size_t off, size_t cnt)
return false; return false;
if (cnt == 0U) if (cnt == 0U)
cnt = std::strlen(reinterpret_cast<char const *>(src)); cnt = std::strlen(reinterpret_cast<char const *>(src));
if (cnt == 0U)
return false;
if (cnt & 0x3U) if (cnt & 0x3U)
return false; return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment