moneromooo-monero
5cd6fda1ee
portable_storage: better sanity checking
3 years ago
Alexander Blair
16c780d568
Merge pull request #7250
...
61b6e4cc6
Add aggressive restrictions to pre-handshake p2p buffer limit (Lee Clagett)
3 years ago
Alexander Blair
175aa2497a
Merge pull request #7243
...
8e2caf3fb
portable_storage: check object limit where appropriate (moneromooo)
3 years ago
Alexander Blair
5917aec4a1
Merge pull request #7220
...
20bdbd7aa
portable_storage: forbid unnamed sections (xiphon)
3 years ago
moneromooo
8e2caf3fb4
portable_storage: check object limit where appropriate
...
also fix pedantic off by one in check
3 years ago
Alexander Blair
88b7bc394e
Merge pull request #7218
...
353f93ee1
portable_storage: remove array element limit (moneromooo-monero)
3 years ago
Alexander Blair
d4636a9258
Merge pull request #7207
...
f7ab8bc6d
ssl: buffered handshake detection (anon)
3 years ago
xiphon
20bdbd7aab
portable_storage: forbid unnamed sections
4 years ago
moneromooo-monero
353f93ee1a
portable_storage: remove array element limit
...
some people don't want it
4 years ago
anon
f7ab8bc6d4
ssl: buffered handshake detection
4 years ago
moneromooo-monero
bc97eb8a33
portable_storage: remove overly aggressive cutoff
4 years ago
Alexander Blair
7438617bbf
Merge pull request #7192
...
95575cda6
epee: fix some issues using connections after shutdown (moneromooo-monero)
4 years ago
Alexander Blair
bc9fce0d32
Merge pull request #7190
...
7f407c027
portable_storage: add some sanity checks on data size (moneromooo-monero)
4 years ago
Alexander Blair
b9e444da5e
Merge pull request #7098
...
c0c75ac19
Fixed issues found by static analysis (SChernykh)
4 years ago
moneromooo-monero
95575cda6e
epee: fix some issues using connections after shutdown
4 years ago
moneromooo-monero
7f407c0274
portable_storage: add some sanity checks on data size
...
especially when allocated size is >> serialized data size
4 years ago
Lee Clagett
187b4d7521
Restrict duplicate keys in epee binary format
4 years ago
Lee Clagett
61b6e4cc67
Add aggressive restrictions to pre-handshake p2p buffer limit
4 years ago
Lee Clagett
4978f69d7a
Fix byte_stream::put_n
4 years ago
codesoap
f2ad539f5f
readline_buffer: Avoid consecutive duplicates in the history
4 years ago
Alexander Blair
1e9483a2d5
Merge pull request #7009
...
7414e2bac
Change epee binary output from std::stringstream to byte_stream (Lee Clagett)
4 years ago
Alexander Blair
6bddd54f9d
Merge pull request #7003
...
08eb0949f
Change to more efficient allocation strategy in byte_stream (Lee Clagett)
4 years ago
SChernykh
c0c75ac19d
Fixed issues found by static analysis
...
- rolling_median: tried to free uninitialized pointer in a constructor
- net_node.inl: erase-remove idiom was used incorrectly. remove_if doesn't actually remove elements, see http://cpp.sh/6fcjv
- bulletproofs.cc: call to sizeof() instead of vector.size(), luckily it only impacts performance and not code logic there
4 years ago
moneromooo
ff7fdf6db2
protocol: drop peers that don't reply to queries
4 years ago
moneromooo
89e984d93b
keep only the last seen node on a given host in the white list
4 years ago
luigi1111
cda966078d
Merge pull request #6999
...
c5f6629
epee: tighten the URL parsing regexp a little (moneromooo-monero)
4 years ago
moneromooo-monero
c5f6629f4a
epee: tighten the URL parsing regexp a little
...
fixes massive amounts of time spent on pathological inputs
Found by OSS-Fuzz
4 years ago
xiphon
60bc676c14
epee: readline_buffer - fix thread safety, fix sync() after stop()
4 years ago
Lee Clagett
08eb0949f3
Change to more efficient allocation strategy in byte_stream
4 years ago
Lee Clagett
249eae5f4a
Allow byte_stream->byte_slice conversion to shrink unused buffer space
4 years ago
Lee Clagett
7414e2bac1
Change epee binary output from std::stringstream to byte_stream
4 years ago
Lee Clagett
b641e0a2c0
Add clear method to byte_stream
4 years ago
Alexander Blair
43a4fd9e16
Merge pull request #6736
...
05ad4fa39
epee: further defending against exceptions in command handlers (moneromooo-monero)
4 years ago
Alexander Blair
d73b1b6560
Merge pull request #6727
...
13eee1d6a
rpc: reject wrong sized txid (moneromooo-monero)
92e6b7df2
easylogging++: fix crash with reentrant logging (moneromooo-monero)
6dd95d530
epee: guard against exceptions in RPC handlers (moneromooo-monero)
90016ad74
blockchain: guard against exceptions in add_new_block/children (moneromooo-monero)
4 years ago
Alexander Blair
7db379cc82
Merge pull request #6720
...
86abf558c
epee: Remove unused functions in local_ip.h (Jean Pierre Dudey)
4 years ago
Alexander Blair
10ad0d7eb2
Merge pull request #6718
...
85efc88c1
Fix overflow issue in epee:misc_utils::rolling_median_t and median(), with unit test (koe)
4 years ago
Alexander Blair
01b512f3a9
Merge pull request #6716
...
76c16822d
wallet2_api: implement runtime proxy configuration (xiphon)
4 years ago
moneromooo-monero
05ad4fa397
epee: further defending against exceptions in command handlers
4 years ago
moneromooo-monero
6dd95d5308
epee: guard against exceptions in RPC handlers
4 years ago
rbrunner7
fb31167b12
Wallet, daemon: From 'help_advanced' back to 'help', and new 'apropos' command
4 years ago
koe
85efc88c1e
Fix overflow issue in epee:misc_utils::rolling_median_t and median(), with unit test
4 years ago
Jean Pierre Dudey
86abf558cb
epee: Remove unused functions in local_ip.h
...
Signed-off-by: Jean Pierre Dudey <me@jeandudey.tech>
4 years ago
xiphon
76c16822d0
wallet2_api: implement runtime proxy configuration
4 years ago
Alexander Blair
9871fefbf9
Merge pull request #6565
...
72cdfa4a2
fix a few typos in error messages (moneromooo-monero)
4 years ago
Alexander Blair
3ba6c7fd30
Merge pull request #6516
...
8656a8c9f
remove double includes (sumogr)
4 years ago
Alexander Blair
a0d179e528
Merge pull request #6512
...
5ef0607da
Update copyright year to 2020 (SomaticFanatic)
4 years ago
luigi1111
803f58553b
Merge pull request #6675
...
3721d56
epee: fix array underflow in unicode parsing (moneromooo-monero)
4 years ago
luigi1111
be170c485c
Merge pull request #6584
...
78d435a
rpc: don't display invalid json errors on default log level (moneromooo-monero)
4 years ago
luigi1111
35e2520115
Merge pull request #6559
...
15538f7
ByteSlice: Fix persisting ptr to std::moved SSO buffer (Doy-lee)
4 years ago
moneromooo-monero
3721d5688f
epee: fix array underflow in unicode parsing
...
Reported by minerscan
Also independently found by OSS-Fuzz just recently
4 years ago
luigi1111
e27604ff10
Merge pull request #6539
...
85164a8
epee: use memwipe rather than memset for md5 secrets (moneromooo-monero)
4 years ago
luigi1111
967285a9fa
Merge pull request #6522
...
29e563b
Fixed bugs for take_slice and byte_stream->byte_slice (vtnerd)
4 years ago
Lee Clagett
7aeb503547
Fix boost <1.60 compilation and fix boost 1.73+ warnings
4 years ago
moneromooo-monero
78d435a5fa
rpc: don't display invalid json errors on default log level
...
It's not something the user needs to know, and will display
attacker controlled data
4 years ago
Doyle
15538f7e3f
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.
4 years ago
moneromooo-monero
72cdfa4a20
fix a few typos in error messages
...
Reported by adrelanos
4 years ago
moneromooo-monero
85164a8daf
epee: use memwipe rather than memset for md5 secrets
...
That's used by HTTP auth now
4 years ago
selsta
f35ced6d7f
build: fix boost 1.73 compatibility
4 years ago
Lee Clagett
29e563bb1e
Fixed bugs for take_slice and byte_stream->byte_slice
4 years ago
sumogr
8656a8c9ff
remove double includes
4 years ago
SomaticFanatic
5ef0607da6
Update copyright year to 2020
...
Update copyright year to 2020
4 years ago
Lee Clagett
c26c93019a
Add byte_stream for zero-copy serialization, and add support in ZMQ-JSON.
4 years ago
luigi1111
c9b800a787
Merge pull request #6446
...
e509ede
trezor: adapt to new passphrase mechanism (ph4r05)
4 years ago
Dusan Klinec
e509ede2aa
trezor: adapt to new passphrase mechanism
...
- choice where to enter passphrase is now made on the host
- use wipeable string in the comm stack
- wipe passphrase memory
- protocol optimizations, prepare for new firmware version
- minor fixes and improvements
- tests fixes, HF12 support
4 years ago
luigi1111
00ede0038d
Merge pull request #6387
...
0dbdba8
epee: avoid spamming 'Generating SSL certificate' in the logs (xiphon)
4 years ago
luigi1111
d86d1a4d29
Merge pull request #6370
...
3031deb
Bump downloaded boost version to 1.72 (omartijn)
6079042
Use boost::asio::ssl::context::sslv23 for backwards compatibility (omartijn)
4 years ago
luigi1111
cfc0f4a7fa
Merge pull request #6351
...
81c5943
Remove temporary std::string creation in some hex->bin calls (vtnerd)
5fcc23a
Move hex->bin conversion to monero copyright files and with less includes (vtnerd)
3387f0e
Reduce template bloat in hex->bin for ZMQ json (vtnerd)
4 years ago
luigi1111
c4f75fe898
Merge pull request #6339
...
c61abf8
remove empty statements (shopglobal)
4 years ago
luigi1111
292e2d8f28
Merge pull request #6335
...
0078ce7
wipeable_string: split - treat CR, LF and Tabs as separators (xiphon)
4 years ago
Lee Clagett
da99157462
Use byte_slice for sending zmq messages - removes data copy within zmq
4 years ago
luigi1111
06c81b6527
Merge pull request #6359
...
f9441c5
Fixed string_ref usage bug in epee::from_hex::vector (vtnerd)
4 years ago
woodser
87d75584e8
Allow wallet2.h to run in WebAssembly
...
- 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.
4 years ago
moneromooo-monero
21fe6a289b
p2p: fix frequent weak_ptr exception on connection
...
When a handshake fails, it can fail due to timeout or destroyed
connection, in which case the connection will be, or already is,
closed, and we don't want to do it twice.
Additionally, when closing a connection directly from the top
level code, ensure the connection is gone from the m_connects
list so it won't be used again.
AFAICT this is now clean in netstat, /proc/PID/fd and print_cn.
This fixes a noisy (but harmless) exception.
4 years ago
luigi1111
6c7d928f19
Merge pull request #6336
...
760ecf2
console_handler: do not let exception past the dor (moneromooo-monero)
09c8111
threadpool: lock mutex in create (moneromooo-monero)
e377977
tx_pool: catch theoretical error in get_block_reward (moneromooo-monero)
4 years ago
luigi1111
48b244dcd4
Merge pull request #6311
...
5002a03
Explicitly define copy assignment operator (omartijn)
4 years ago
Lee Clagett
f9441c5759
Fixed string_ref usage bug in epee::from_hex::vector
4 years ago
xiphon
0dbdba876e
epee: avoid spamming 'Generating SSL certificate' in the logs
4 years ago
Alexander Blair
820ab9fdea
Merge pull request #6273
...
0f78b06e
Various improvements to the ZMQ JSON-RPC handling: (Lee Clagett)
4 years ago
Alexander Blair
857abc368c
Merge pull request #6244
...
352bd132
abstract_tcp_server2: guard against negative timeouts (moneromooo-monero)
4 years ago
Alexander Blair
092a57df99
Merge pull request #6243
...
4771a7ae
p2p: remove obsolete local time in handshake (moneromooo-monero)
2fbbc4a2
p2p: avoid sending the same peer list over and over (moneromooo-monero)
3004835b
epee: remove backward compatible endian specific address serialization (moneromooo-monero)
39a343d7
p2p: remove backward compatible peer list (moneromooo-monero)
60631802
p2p: simplify last_seen serialization now we have optional stores (moneromooo-monero)
9467b2e4
cryptonote_protocol: omit top 64 bits of difficulty when 0 (moneromooo-monero)
b595583f
serialization: do not write optional fields with default value (moneromooo-monero)
5f98b46d
p2p: remove obsolete local time from TIMED_SYNC (moneromooo-monero)
4 years ago
Martijn Otto
6079042cce
Use boost::asio::ssl::context::sslv23 for backwards compatibility
...
All the insecure protocols that this enables are then disabled, so they
cannot be actually used. The end-result is the same.
4 years ago
Lee Clagett
5fcc23ae0a
Move hex->bin conversion to monero copyright files and with less includes
4 years ago
Lee Clagett
81c5943453
Remove temporary std::string creation in some hex->bin calls
4 years ago
Lee Clagett
0f78b06e8c
Various improvements to the ZMQ JSON-RPC handling:
...
- Finding handling function in ZMQ JSON-RPC now uses binary search
- Temporary `std::vector`s in JSON output now use `epee::span` to
prevent allocations.
- Binary -> hex in JSON output no longer allocates temporary buffer
- C++ structs -> JSON skips intermediate DOM creation, and instead
write directly to an output stream.
4 years ago
Alexander Blair
944e8a4542
Merge pull request #6220
...
a9bdc6e4
Improved performance for epee serialization: (Lee Clagett)
4 years ago
Alexander Blair
8d5e043981
Merge pull request #6205
...
021cf733
ssl: server-side: allow multiple version of TLS (Bertrand Jacquin)
4 years ago
Interchained
c61abf87c0
remove empty statements
...
Cleaning up a little around the code base.
4 years ago
xiphon
0078ce7fac
wipeable_string: split - treat CR, LF and Tabs as separators
4 years ago
moneromooo-monero
760ecf2ac8
console_handler: do not let exception past the dor
...
Coverity 208373
4 years ago
Alexander Blair
5e384f21b5
Merge pull request #6184
...
2d1afceb
net_ssl: load default certificates in CA mode on Windows (moneromooo-monero)
4 years ago
Alexander Blair
a62f7dc573
Merge pull request #6182
...
e896cca8
epee: reorder a couple init list fields to match declaration (moneromooo-monero)
4 years ago
Martijn Otto
5002a0343f
Explicitly define copy assignment operator
...
The implicit copy assignment operator was deprecated because the class
has an explicit copy constructor. According to the standard:
The generation of the implicitly-defined copy assignment operator is
deprecated (since C++11) if T has a user-declared destructor or
user-declared copy constructor.
Recent versions of gcc (9.1+) and clang (10.0) warn about this.
4 years ago
moneromooo-monero
3004835b51
epee: remove backward compatible endian specific address serialization
4 years ago
moneromooo-monero
b595583f3d
serialization: do not write optional fields with default value
4 years ago
moneromooo-monero
56a4469ef3
network: log traffic and add a simple traffic analysis script
4 years ago
Alexander Blair
8039fd4cab
Merge pull request #6143
...
6efeefbc
epee: set application/json MIME type on json errors (moneromooo-monero)
4 years ago
Alexander Blair
f1ca98a7ef
Merge pull request #6133
...
b2ad757f
Replace memset with memwipe. (Bert Peters)
4 years ago
Alexander Blair
fbc15de2cd
Merge pull request #6125
...
584d057f
epee: fix console_handlers_binder race, wait for thread to finish (xiphon)
4 years ago
Alexander Blair
fe736070d2
Merge pull request #6120
...
feef1c6a
epee: fix peer ids being truncated on display (moneromooo-monero)
4 years ago
moneromooo-monero
352bd13254
abstract_tcp_server2: guard against negative timeouts
5 years ago