mirror of
https://github.com/monero-project/monero.git
synced 2025-01-08 10:52:03 +02:00
15538f7e3f
The Bug: 1. Construct `byte_slice.portion_` with `epee::span(buffer)` which copies a pointer to the SSO buffer to `byte_slice.portion_` 2. It constructs `byte_slice.storage_` with `std::move(buffer)` (normally this swap pointers, but SSO means a memcpy and clear on the original SSO buffer) 3. `slice.data()` returns a pointer from `slice.portion_` that points to the original SSO cleared buffer, `slice.storage_` has the actual string. |
||
---|---|---|
.. | ||
abstract_http_client.cpp | ||
buffer.cpp | ||
byte_slice.cpp | ||
byte_stream.cpp | ||
CMakeLists.txt | ||
connection_basic.cpp | ||
hex.cpp | ||
http_auth.cpp | ||
int-util.cpp | ||
levin_base.cpp | ||
memwipe.c | ||
mlocker.cpp | ||
mlog.cpp | ||
net_helper.cpp | ||
net_ssl.cpp | ||
net_utils_base.cpp | ||
network_throttle-detail.cpp | ||
network_throttle.cpp | ||
readline_buffer.cpp | ||
string_tools.cpp | ||
wipeable_string.cpp |