mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Persistence: fixed valgrind warning in base64 decoder
This commit is contained in:
parent
c48d7f86ba
commit
e941259434
@ -7513,6 +7513,8 @@ bool base64::base64_valid(uint8_t const * src, size_t off, size_t cnt)
|
||||
return false;
|
||||
if (cnt == 0U)
|
||||
cnt = std::strlen(reinterpret_cast<char const *>(src));
|
||||
if (cnt == 0U)
|
||||
return false;
|
||||
if (cnt & 0x3U)
|
||||
return false;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user