From the general audit, both still on dev:
- libevent's max_headers_size defaults to unlimited, and the request line and headers are buffered
before the -rpcallowip check or authentication runs, so one connection could grow the node's memory
with every byte it sent. Capped at 8 KiB. Regtest: a 9 KiB header and a 10 KiB request line now get
400 (the old binary accepted the first and processed the second); normal calls are unaffected.
qa/rpc-tests/httpbasics.py gains a request-line case.
- getblocktemplate left cs_main with LEAVE_CRITICAL_SECTION around CreateNewBlockWithKey. If that
threw (a wallet or BDB fault), the enclosing scoped lock's destructor unlocked an already unlocked
mutex while unwinding, which aborts the node with nothing logged. It now re-enters cs_main first,
so the error reaches the caller. Regtest: getblocktemplate returns templates as before.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Any projects which want to use Hush code from now on will need to be licensed as
GPLv3 or we will send the lawyers: https://www.softwarefreedom.org/
Notably, Komodo (KMD) is licensed as GPLv2 and is no longer compatible to receive
code changes, without causing legal issues. MIT projects, such as Zcash, also cannot pull
in changes from the Hush Full Node without permission from The Hush Developers,
which may in some circumstances grant an MIT license on a case-by-case basis.