Skip to content

Commit

Permalink
safeMemcpyUnsafeSrc
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Hamilton <[email protected]>
  • Loading branch information
RyanTheOptimist committed Mar 1, 2024
1 parent 6c0a232 commit 5fcca3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/common/quic/envoy_quic_stream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ namespace {
// Returns a new `unique_ptr<char[]>` containing the characters copied from `str`.
std::unique_ptr<char[]> dataFromString(const std::string& str) {
auto data = std::make_unique<char[]>(str.length());
memcpy(&data[0], str.data(), str.length());
safeMemcpyUnsafeSrc(&data[0], str.data());
return data;
}

Expand Down

0 comments on commit 5fcca3a

Please sign in to comment.