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
..
CMakeLists.txt tests: fix build for wow 2020-05-15 22:01:56 +08:00
account.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
address_from_url.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
aligned.cpp unit_tests: add unit test for alloc alignment being a power of 2 2018-10-08 11:36:42 +00:00
apply_permutation.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
base58.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
block_queue.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
block_reward.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
blockchain_db.cpp Removed Berkeley DB and db switching logic 2019-09-16 16:18:05 +02:00
bootstrap_node_selector.cpp daemon: auto public nodes - cache and prioritize most stable nodes 2020-02-28 08:06:43 +00:00
bulletproofs.cpp unit_tests: remove invalid bulletproofs unit test 2019-12-01 15:40:59 +00:00
canonical_amounts.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
chacha.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
checkpoints.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
command_line.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
crypto.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
decompose_amount_into_digits.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
device.cpp ringct: remove unused senderPk from ecdhTuple 2019-01-22 23:17:42 +00:00
difficulty.cpp difficulty: fix check_hash on big endian 2019-09-04 14:53:53 +00:00
dns_resolver.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
epee_boosted_tcp_server.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
epee_levin_protocol_handler_async.cpp unit_tests: fix levin unit test on big endian 2019-09-04 14:53:58 +00:00
epee_utils.cpp ByteSlice: Fix persisting ptr to std::moved SSO buffer 2020-05-25 13:07:28 +03:00
expect.cpp Adding expect<T> - a value-or-error implementation 2018-09-12 22:44:34 +00:00
fee.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
get_xtype_from_string.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
hardfork.cpp testdb: add override keyword where missing 2019-04-17 10:26:25 +09:00
hashchain.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
hmac_keccak.cpp unit_tests: fix missing test names 2020-02-18 23:56:21 +00:00
http.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
is_hdd.cpp Merge pull request #4424 2018-09-29 22:19:44 +02:00
json_serialization.cpp Add byte_stream for zero-copy serialization, and add support in ZMQ-JSON. 2020-05-09 11:35:23 +03:00
keccak.cpp unit_tests: fix missing test names 2020-02-18 23:56:21 +00:00
levin.cpp unit_tests: fix gcc+ warning 2020-05-04 17:45:02 +03:00
lmdb.cpp Adding classes, functions, and utilities for common LMDB operations. 2019-03-19 17:52:26 +00:00
logging.cpp Properly format multiline logs 2019-09-16 16:58:01 +00:00
long_term_block_weight.cpp unit_tests/long_term_block_weight: some tweaks that seem to make more sense 2019-04-09 20:21:45 +09:00
main.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
memwipe.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
mlocker.cpp Merge pull request #4459 2018-09-29 22:20:38 +02:00
mnemonics.cpp use crypto::rand instead of libc rand in a few tests 2019-05-10 14:15:35 +00:00
mul_div.cpp remove empty statements 2020-02-17 11:55:15 -05:00
multiexp.cpp unit tests: replace global var with lambda returning static local var 2019-09-09 11:44:06 +09:00
multisig.cpp Added socks proxy (tor/i2pd/kovri) support to wallet 2019-03-25 01:35:13 +00:00
net.cpp Use byte_slice for sending zmq messages - removes data copy within zmq 2020-05-04 10:13:38 +03:00
node_server.cpp Merge pull request #6214 2020-03-31 13:32:55 -05:00
notify.cpp unit_tests: remove leftover debug print 2019-02-01 19:14:55 +00:00
output_distribution.cpp unit_tests: Fix uninitialized values 2019-08-27 09:17:34 +02:00
output_selection.cpp Merge pull request #5652 2019-08-15 17:13:18 -05:00
parse_amount.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
pruning.cpp Pruning 2019-01-22 20:30:51 +00:00
random.cpp crypto: remove slight bias in key generation due to modulo 2018-07-05 09:18:01 +01:00
ringct.cpp Bulletproofs: verification speedup 2020-05-04 17:45:02 +03:00
ringdb.cpp unit_tests: fix ringdb unit tests 2019-10-04 21:11:46 +00:00
rolling_median.cpp Replace std::random_shuffle with std::shuffle 2019-08-15 16:33:15 +02:00
rpc_version_str.cpp rpc: Only show version string if it matches expected pattern 2019-11-12 18:19:24 -07:00
serialization.cpp wallet: do not split integrated addresses in address book api 2020-01-26 00:03:53 +00:00
sha256.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
slow_memmem.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
subaddress.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
test_notifier.cpp unit_tests: add a notifier test 2018-10-01 09:14:20 +00:00
test_peerlist.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
test_protocol_pack.cpp Changed the use of boost:value_initialized for C++ list initializer 2019-09-02 14:16:29 +02:00
test_tx_utils.cpp remove empty statements 2020-02-17 11:55:15 -05:00
threadpool.cpp threadpool: allow leaf functions to run concurrently 2018-06-26 22:15:22 +01:00
unbound.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
unit_tests_utils.h Update 2019 copyright 2019-03-05 22:05:34 +01:00
uri.cpp wallet2: reject standalone short payment IDs in monero: URI API 2019-05-01 18:41:39 +00:00
varint.cpp remove unused code 2019-04-29 20:52:40 +00:00
vercmp.cpp Update 2019 copyright 2019-03-05 22:05:34 +01:00
wipeable_string.cpp wipeable_string: split - treat CR, LF and Tabs as separators 2020-02-12 21:16:07 +00:00
zmq_rpc.cpp Fixed bug in ZMQ JSON-RPC method field 2019-11-18 12:59:41 +00:00