wownero/tests/unit_tests
Doyle e0a9633557
ByteSlice: Fix persisting ptr to std::moved SSO buffer
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.
2020-05-25 13:07:28 +03:00
..
account.cpp
address_from_url.cpp
aligned.cpp
apply_permutation.cpp
base58.cpp
block_queue.cpp
block_reward.cpp
blockchain_db.cpp
bootstrap_node_selector.cpp
bulletproofs.cpp
canonical_amounts.cpp
chacha.cpp
checkpoints.cpp
CMakeLists.txt
command_line.cpp
crypto.cpp
decompose_amount_into_digits.cpp
device.cpp
difficulty.cpp
dns_resolver.cpp
epee_boosted_tcp_server.cpp
epee_levin_protocol_handler_async.cpp
epee_utils.cpp
expect.cpp
fee.cpp
get_xtype_from_string.cpp
hardfork.cpp
hashchain.cpp
hmac_keccak.cpp
http.cpp
is_hdd.cpp
json_serialization.cpp
keccak.cpp
levin.cpp
lmdb.cpp
logging.cpp
long_term_block_weight.cpp
main.cpp
memwipe.cpp
mlocker.cpp
mnemonics.cpp
mul_div.cpp
multiexp.cpp
multisig.cpp
net.cpp
node_server.cpp
notify.cpp
output_distribution.cpp
output_selection.cpp
parse_amount.cpp
pruning.cpp
random.cpp
ringct.cpp
ringdb.cpp
rolling_median.cpp
rpc_version_str.cpp
serialization.cpp
sha256.cpp
slow_memmem.cpp
subaddress.cpp
test_notifier.cpp
test_peerlist.cpp
test_protocol_pack.cpp
test_tx_utils.cpp
threadpool.cpp
unbound.cpp
unit_tests_utils.h
uri.cpp
varint.cpp
vercmp.cpp
wipeable_string.cpp
zmq_rpc.cpp