summaryrefslogtreecommitdiff
path: root/tests/fuzz
Commit message (Collapse)AuthorAgeFilesLines
* fix serialization being different on macmoneromooo-monero2021-03-051-1/+1
| | | | | | | | | | | | On Mac, size_t is a distinct type from uint64_t, and some types (in wallet cache as well as cold/hot wallet transfer data) use pairs/containers with size_t as fields. Mac would save those as full size, while other platforms would save them as varints. Might apply to other platforms where the types are distinct. There's a nasty hack for backward compatibility, which can go after a couple forks.
* add a max levin packet size by command typemoneromooo-monero2021-01-031-0/+1
|
* Add aggressive restrictions to pre-handshake p2p buffer limitLee Clagett2020-12-291-0/+2
|
* wallet: allow signing a message with spend or view keymoneromooo-monero2020-08-281-2/+2
|
* replace most boost serialization with existing monero serializationmoneromooo-monero2020-08-172-8/+8
| | | | | | | | | | | | | | | | | | | | | | This reduces the attack surface for data that can come from malicious sources (exported output and key images, multisig transactions...) since the monero serialization is already exposed to the outside, and the boost lib we were using had a few known crashers. For interoperability, a new load-deprecated-formats wallet setting is added (off by default). This allows loading boost format data if there is no alternative. It will likely go at some point, along with the ability to load those. Notably, the peer lists file still uses the boost serialization code, as the data it stores is define in epee, while the new serialization code is in monero, and migrating it was fairly hairy. Since this file is local and not obtained from anyone else, the marginal risk is minimal, but it could be migrated later if needed. Some tests and tools also do, this will stay as is for now.
* wallet2_api: implement runtime proxy configurationxiphon2020-07-203-3/+3
|
* Merge pull request #6512Alexander Blair2020-07-1915-15/+15
|\ | | | | | | 5ef0607da Update copyright year to 2020 (SomaticFanatic)
| * Update copyright year to 2020SomaticFanatic2020-05-0615-15/+15
| | | | | | | | Update copyright year to 2020
* | fuzz_tests: fix init check in oss-fuzz modemoneromooo-monero2020-06-141-1/+1
| |
* | fix leaks in fuzz testsmoneromooo-monero2020-06-144-17/+34
| |
* | fuzz_tests: add a tx extra fuzz testmoneromooo-monero2020-06-142-0/+58
| |
* | fuzz_tests: refactor and add OSS-Fuzz compatibilitymoneromooo-monero2020-05-1515-538/+226
|/
* Allow wallet2.h to run in WebAssemblywoodser2020-04-151-0/+5
| | | | | | | - Add abstract_http_client.h which http_client.h extends. - Replace simple_http_client with abstract_http_client in wallet2, message_store, message_transporter, and node_rpc_proxy. - Import and export wallet data in wallet2. - Use #if defined __EMSCRIPTEN__ directives to skip incompatible code.
* Add ref-counted buffer byte_slice. Currently used for sending TCP data.Lee Clagett2019-07-161-2/+2
|
* Added socks proxy (tor/i2pd/kovri) support to walletLee Clagett2019-03-253-3/+3
|
* Merge pull request #5274Riccardo Spagni2019-03-243-3/+3
|\ | | | | | | dc0c0c91 tests: disable wallet SSL init for tests involving wallet2 (moneromooo-monero)
| * tests: disable wallet SSL init for tests involving wallet2moneromooo-monero2019-03-123-3/+3
| |
* | Update 2019 copyrightbinaryFate2019-03-0515-15/+15
|/
* epee: better network buffer data structuremoneromooo-monero2018-12-231-4/+4
| | | | avoids pointless allocs and memcpy
* wallet2: only export necessary outputs and key imagesmoneromooo-monero2018-11-041-1/+1
| | | | | and disable annoying test that requires ridiculous amounts of skullduggery every time some format changes
* Catch more exceptions in dtorsmoneromooo-monero2018-10-0212-0/+24
| | | | Misc coverity reports
* Merge pull request #4459Riccardo Spagni2018-09-291-0/+4
| | | | | | | | | | | | | | | | | | | | | | | bcf3f6af fuzz_tests: catch unhandled exceptions (moneromooo-monero) 3ebd05d4 miner: restore stream flags after changing them (moneromooo-monero) a093092e levin_protocol_handler_async: do not propagate exception through dtor (moneromooo-monero) 1eebb82b net_helper: do not propagate exceptions through dtor (moneromooo-monero) fb6a3630 miner: do not propagate exceptions through dtor (moneromooo-monero) 2e2139ff epee: do not propagate exception through dtor (moneromooo-monero) 0749a8bd db_lmdb: do not propagate exceptions in dtor (moneromooo-monero) 1b0afeeb wallet_rpc_server: exit cleanly on unhandled exceptions (moneromooo-monero) 418a9936 unit_tests: catch unhandled exceptions (moneromooo-monero) ea7f9543 threadpool: do not propagate exceptions through the dtor (moneromooo-monero) 6e855422 gen_multisig: nice exit on unhandled exception (moneromooo-monero) 53df2deb db_lmdb: catch error in mdb_stat calls during migration (moneromooo-monero) e67016dd blockchain_blackball: catch failure to commit db transaction (moneromooo-monero) 661439f4 mlog: don't remove old logs if we failed to rename the current file (moneromooo-monero) 5fdcda50 easylogging++: test for NULL before dereference (moneromooo-monero) 7ece1550 performance_test: fix bad last argument calling add_arg (moneromooo-monero) a085da32 unit_tests: add check for page size > 0 before dividing (moneromooo-monero) d8b1ec8b unit_tests: use std::shared_ptr to shut coverity up about leaks (moneromooo-monero) 02563bf4 simplewallet: top level exception catcher to print nicer messages (moneromooo-monero) c57a65b2 blockchain_blackball: fix shift range for 32 bit archs (moneromooo-monero)
* Merge pull request #4254Riccardo Spagni2018-09-141-0/+4
|\ | | | | | | de905d4b fuzz_tests: use __AFL_INIT when available (moneromooo-monero)
| * fuzz_tests: use __AFL_INIT when availablemoneromooo-monero2018-08-131-0/+4
| | | | | | | | alleged to speed things up
* | fuzz_tests: add a bulletproof fuzz testmoneromooo-monero2018-09-112-0/+85
| |
* | fuzz: set address properlystoffu2018-08-141-0/+1
|/
* epee: adaptive connection timeout systemmoneromooo-monero2018-06-101-0/+1
| | | | | | | | | | | a connection's timeout is halved for every extra connection from the same host. Also keep track of when we don't need to use a connection anymore, so we can close it and free the resource for another connection. Also use the longer timeout for non routable local addresses.
* fuzz_tests: set small subaddress lookahead for speedmoneromooo-monero2018-03-143-0/+3
|
* Stagenetstoffu2018-03-053-4/+4
|
* Code modifications to integrate Ledger HW device into monero-wallet-cli.cslashm2018-03-041-0/+5
| | | | | | | | | | | | | | | | | | | The basic approach it to delegate all sensitive data (master key, secret ephemeral key, key derivation, ....) and related operations to the device. As device has low memory, it does not keep itself the values (except for view/spend keys) but once computed there are encrypted (with AES are equivalent) and return back to monero-wallet-cli. When they need to be manipulated by the device, they are decrypted on receive. Moreover, using the client for storing the value in encrypted form limits the modification in the client code. Those values are transfered from one C-structure to another one as previously. The code modification has been done with the wishes to be open to any other hardware wallet. To achieve that a C++ class hw::Device has been introduced. Two initial implementations are provided: the "default", which remaps all calls to initial Monero code, and the "Ledger", which delegates all calls to Ledger device.
* fuzz_tests: fix an uninitialized var in setupmoneromooo-monero2018-02-021-2/+3
| | | | | | and comment it out, it's only used to generate a starting test case Coverity 182506
* Tests: Fix building of two fuzz tests on WindowsiDunk54002018-01-281-0/+2
|
* Readd copyright starting datexmr-eric2018-01-2613-13/+13
|
* Update 2018 copyrightxmr-eric2018-01-2614-14/+14
|
* Merge pull request #2963Riccardo Spagni2018-01-023-27/+3
|\ | | | | | | 0e19a394 tests: test wallets don't need a dummy temp file anymore (moneromooo-monero)
| * tests: test wallets don't need a dummy temp file anymoremoneromooo-monero2017-12-193-27/+3
| |
* | tests: add levin fuzz testmoneromooo-monero2017-12-232-0/+359
| |
* | tests: add http client fuzz testmoneromooo-monero2017-12-232-0/+112
| |
* | add parse_url fuzz testmoneromooo-monero2017-12-232-0/+87
| |
* | tests: add base58 fuzz testmoneromooo-monero2017-12-232-0/+86
| |
* | tests: don't init stuff we don't need in fuzz tests - fastermoneromooo-monero2017-12-231-32/+1
| |
* | add load_from_binary/load_from_json fuzzersmoneromooo-monero2017-12-233-0/+176
|/
* move includes around to lessen overall loadmoneromooo-monero2017-12-166-5/+6
|
* move cryptonote command line options to cryptonote_coremoneromooo-monero2017-11-144-4/+0
| | | | Those have no reason to be in a generic module
* Initialize openssl on startupmoneromooo-monero2017-10-211-0/+2
|
* Subaddresseskenshi842017-10-071-3/+2
|
* Revert "Cleanup test impact of moving blockchain_db_types()"Howard Chu2017-08-291-10/+0
| | | | This reverts commit 3dd34a49efd2954b0a5eb020abd168d9379b98c4.
* Cleanup test impact of moving blockchain_db_types()Howard Chu2017-08-221-0/+10
|
* Add fuzz testing using american fuzzy lopmoneromooo-monero2017-06-248-0/+682
Existing tests: block, transaction, signature, cold outputs, cold transaction. Data for these is in tests/data/fuzz. A convenience shell script is in contrib/fuzz_testing/fuzz.sh, eg: contrib/fuzz_testing/fuzz.sh signature The fuzzer will run indefinitely, ^C to stop. Fuzzing is currently supported for GCC only. I can't get CLANG to build Monero here as it dies on some system headers, so if someone wants to make it work on both, that'd be great. In particular, the __AFL_LOOP construct should be made to work so that a given run can fuzz multiple inputs, as the C++ load time is substantial.