Skip to content

Commit

Permalink
Updated modp_b64, cpp-base64, cppcodec, polfosol, picobase64 and chro…
Browse files Browse the repository at this point in the history
…mium
  • Loading branch information
gaspardpetit committed Jun 8, 2024
1 parent b7dc1d9 commit ee6b02d
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion libs/IMUtility
Submodule IMUtility updated 192 files
2 changes: 1 addition & 1 deletion libs/ReneNyffenegger/cpp-base64
Submodule cpp-base64 updated 4 files
+6 −2 Makefile
+11 −11 base64.cpp
+1 −1 base64.h
+17 −0 test.cpp
2 changes: 1 addition & 1 deletion libs/chromium/modp_b64
Submodule modp_b64 updated from ca6144 to 5090e7
2 changes: 1 addition & 1 deletion libs/cppcodec
2 changes: 1 addition & 1 deletion libs/picobase64
Submodule picobase64 updated 1 files
+5 −1 picobase64.h
2 changes: 1 addition & 1 deletion src/IMUtility/polfosol_imutility.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ std::string Base64_encode(unsigned char *bytes, size_t len)
size_t d = len % 3;
std::string str64(4 * (int(d > 0) + len / 3), '=');

Base64_encode(bytes, len, (char*)&str64[0], str64.size());
Base64_encode((char*)bytes, len, (char*)&str64[0], str64.size());

return str64;
}
Expand Down
4 changes: 2 additions & 2 deletions src/modp_b64_chromium/modp_b64_chromium.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ struct B64_Adapt
return encoded;
}

static std::string decode(size_t(*func)(char* dest, const char* src, size_t len), const std::string &encoded)
static std::string decode(size_t(*func)(char* dest, const char* src, size_t len, ModpDecodePolicy policy), const std::string &encoded)
{
size_t decLen = GetDecodedLength(encoded);
std::string decoded(decLen, '\0');
func((char*)&decoded[0], (const char*)&encoded[0], encoded.length());
func((char*)&decoded[0], (const char*)&encoded[0], encoded.length(), ModpDecodePolicy::kStrict);
return decoded;
}
};
Expand Down

0 comments on commit ee6b02d

Please sign in to comment.