Commit 1887dece by Abseil Team Committed by Copybara-Service

Remove obsolete RFC 3548 from escaping.cc's Base64UnescapeInternal. (Note that…

Remove obsolete RFC 3548 from escaping.cc's Base64UnescapeInternal. (Note that the proper non-obsolete RFC 4648 is already listed in escaping.h's Base64Escape() documentation)

PiperOrigin-RevId: 494821805
Change-Id: Id3bffcb968a7c865c9a6bcbf241870c3674601ba
parent 553491a5
......@@ -784,9 +784,7 @@ template <typename String>
bool Base64UnescapeInternal(const char* src, size_t slen, String* dest,
const signed char* unbase64) {
// Determine the size of the output string. Base64 encodes every 3 bytes into
// 4 characters. any leftover chars are added directly for good measure.
// This is documented in the base64 RFC:
// https://datatracker.ietf.org/doc/html/rfc3548
// 4 characters. Any leftover chars are added directly for good measure.
const size_t dest_len = 3 * (slen / 4) + (slen % 4);
strings_internal::STLStringResizeUninitialized(dest, dest_len);
......
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