[PATCH] D126254: Add support for decoding base64.

Greg Clayton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 31 22:39:53 PDT 2022


clayborg updated this revision to Diff 433282.
clayborg added a comment.

Updated the code to not pass over the input twice. We now check for invalid '=' characters in the decoding loop. Also changed how we strip extra bytes from the end of the decoded input by looking at the back of the Input string since we already detect invalid '=' characters in the main string and would have returned an error already.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D126254/new/

https://reviews.llvm.org/D126254

Files:
  llvm/include/llvm/Support/Base64.h
  llvm/unittests/Support/Base64Test.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126254.433282.patch
Type: text/x-patch
Size: 8001 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220601/32e038f7/attachment.bin>


More information about the llvm-commits mailing list