Skip to content

Commit

Permalink
Merge of #11515
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] committed Sep 19, 2024
2 parents 691f67d + ac94638 commit 9ffb5e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/libutil/util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1640,8 +1640,9 @@ std::string base64Decode(std::string_view s)
if (c == '\n') continue;

char digit = base64DecodeChars[(unsigned char) c];
if (digit == npos)
throw Error("invalid character in Base64 string: '%c'", c);
if (digit == npos) {
throw Error("invalid character in Base64 string: '%c' in '%s'", c, s.data());
}

bits += 6;
d = d << 6 | digit;
Expand Down

0 comments on commit 9ffb5e3

Please sign in to comment.