Skip to content

Commit

Permalink
74 codeql (#13563)
Browse files Browse the repository at this point in the history
* CodeQL fix

* Change files
  • Loading branch information
marlenecota committed Aug 13, 2024
1 parent 4f5aa72 commit 1c85683
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "CodeQL fix",
"packageName": "react-native-windows",
"email": "1422161+marlenecota@users.noreply.github.com",
"dependentChangeType": "patch"
}
4 changes: 2 additions & 2 deletions vnext/Common/Utilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ string EncodeBase64(string_view text) noexcept {
std::copy(encode_base64(bytes.cbegin()), encode_base64(bytes.cend()), ostream_iterator<char>(oss));

// https://unix.stackexchange.com/questions/631501
auto padLength = (4 - (oss.tellp() % 4)) % 4;
for (auto i = 0; i < padLength; ++i) {
size_t padLength = (4 - (oss.tellp() % 4)) % 4;
for (size_t i = 0; i < padLength; ++i) {
oss << '=';
}

Expand Down

0 comments on commit 1c85683

Please sign in to comment.