Commit Graph

1609 Commits

Author SHA1 Message Date
Kris Nuttycombe ec88817b72 zcashd release 5.4.2
Notable changes
 ===============
 
 This hotfix remediates memory exhaustion vulnerabilities that zcashd inherited
 as a fork of bitcoind. These bugs could allow an attacker to use peer-to-peer
 messages to fill the memory of a node, resulting in a crash.
 -----BEGIN PGP SIGNATURE-----
 
 iQGzBAABCgAdFiEEX8Nd8pnYcf0pobEL9FXpuSAjoYsFAmP1DKQACgkQ9FXpuSAj
 oYt2jQv+IurleLqEbtBW2ajDYDIkcMu+asEtHCk3B6GELykKaFMgHYTffFBmuyJ+
 5GdoX685Rn6r8BxK6K1u129A9ztY7K0JpVeDA75tN5WLBj9twLdNaODfCLg5EjlZ
 UtxTNnynQ0MX5Uv7pt1DAM+++OKYujUHypaajgZ9ttqpSHZl3Z2ye0/HFEc4023p
 VH13CvU/3R4JLkFENi49rbS49LFfVuQrhAQoOPlCf3xoWbUYIdmWWZa/HOJV3g0e
 3mqC+rhz97GVylLI4LJrm3v0tLeEUIuu+fdAziWfuWrBlB4jQ5p4L5trDHiQoqWB
 5Qt5tjJKHHLnHHSyLcFFaes12tjPfrn9PBxYDPyfFAHIGf0WEiy36+6G5P7jpjYj
 OXLAmBPBIRBgZf9LJIHrgvqQynfGe9vaWgCArWWgSC8wZ2hWlM7pZRhCe+uw35R1
 e5AfZjvbXj6gR+1631Mhl84e6xkGXe24szzuZDrUCqLBJpTb1JNLRh1OtT8zDN0t
 MfKtnE3W
 =AXAQ
 -----END PGP SIGNATURE-----

Merge tag 'v5.4.2' into hotfix-v5.4.2

zcashd release 5.4.2

Notable changes
===============

This hotfix remediates memory exhaustion vulnerabilities that zcashd inherited
as a fork of bitcoind. These bugs could allow an attacker to use peer-to-peer
messages to fill the memory of a node, resulting in a crash.
2023-03-13 06:19:46 -06:00
Jack Grigg a62fcddba2 qa: Import Rust crate audits from ChromeOS 2023-03-10 00:30:13 +00:00
Jack Grigg bf37cd6317 qa: Replace Firefox audits with aggregated Mozilla audits in registry 2023-03-10 00:29:44 +00:00
Kris Nuttycombe 9b17b45da5 Apply suggestions from code review
Co-authored-by: str4d <thestr4d@gmail.com>
2023-03-09 10:39:13 -07:00
Kris Nuttycombe 0d8118b1ed Add information about deprecated features to `deprecationinfo` results.
Fixes #6422
2023-03-09 10:33:29 -07:00
Kris Nuttycombe 71e80c8656 Postpone dependency updates for v5.4.2 hotfix. 2023-02-20 19:54:51 -07:00
Jack Grigg 4ad081714f qa: Postpone LevelDB 1.23 2023-02-17 04:37:37 +00:00
Jack Grigg 245f9666ff `cargo update` 2023-02-17 04:36:20 +00:00
Jack Grigg fe05310e37 qa: Import Rust crate audits from ISRG 2023-02-16 21:28:52 +00:00
Jack Grigg 5cc37d59a4 `cargo vet regenerate imports` 2023-02-16 21:27:57 +00:00
Jack Grigg e738af6a27 depends: `native_zstd 1.5.4` 2023-02-16 21:25:02 +00:00
Jack Grigg e775c13c4f depends: `cxx 1.0.91`
This also partially reverts zcash/zcash@d3b434eb0f
so we now check in a lockfile for `cxxbridge`.
2023-02-16 21:25:02 +00:00
Jack Grigg 942189fc20 qa: Handle commit IDs correctly to `updatecheck.py` 2023-02-16 19:11:34 +00:00
Jack Grigg ed9b9f8a18 qa: Fix `google/leveldb` tag parsing in `updatecheck.py`
The `v` prefix has been dropped from tags starting with 1.21.
2023-02-16 18:41:41 +00:00
Jack Grigg a0b4b2c25f qa: Fix year in postponement lines 2023-02-16 18:39:30 +00:00
Jack Grigg 06e4ef83ec depends: Update Clang / libcxx to LLVM 15.0.6
- We update Windows cross-compile builds to 15.0.7 because binaries are
  provided for it, but not currently for any other platform we need.
- We update native x84_64 macOS builds to 15.0.4 because no 15.0.6
  binaries are provided, and the 15.0.7 ones appear to be targeted at a
  newer Darwin version.
- We keep FreeBSD on 14.0.6 because no Clang 15 binaries are provided,
  and as FreeBSD is a Tier 3 platform it doesn't block us from upgrading
  the remaining platforms.
2023-02-16 16:02:37 +00:00
str4d efa2dc70e8
Merge pull request #6417 from sellout/rpc-tests-interrupt-context
Show in-progress tests when rpc-tests is interrupted
2023-02-14 15:14:44 +00:00
Kris Nuttycombe 0b9f76c36c
Merge pull request #6430 from zcash/hotfix-v5.4.1
Back-merge of hotfix-v5.4.1
2023-02-13 16:24:30 -07:00
Jack Grigg 7628ec7dfa Postpone dependency updates for v5.4.1 2023-02-13 18:05:35 +00:00
Jack Grigg 1ceb4c19cc qa: Extend `wallet_deprecation` to test `allowdeprecated` in config file
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2023-02-10 23:57:05 +00:00
Jack Grigg 8dd3e6135d qa: Refactor `wallet_deprecation` test to extract common logic
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2023-02-10 23:57:05 +00:00
Greg Pfeil 3178296c38
Make extra newline more explicit
Co-authored-by: Kris Nuttycombe <kris@nutty.land>
2023-02-09 13:51:46 -07:00
Greg Pfeil cbc0511cd2
Show in-progress tests when rpc-tests is interrupted
Interrupting rpc-tests (e.g., with Ctrl-c) will print a list of the tests that were running when the
interrupt was received. This is useful for identifying tests that aren’t terminating.

For example:
```
wallet_broadcast.py:
Pass: True, Duration: 62 s

.................
zmq_test.py:
Pass: True, Duration: 29 s

.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................^C
The following tests were running when interrupted:
• mempool_reorg.py

Traceback (most recent call last):
...
```
2023-02-09 09:53:24 -07:00
Charlie O'Keefe 251432966f
Merge pull request #6401 from nuttycom/version-5.4.0-back_merge
Back-merge version-5.4.0 changes to `master`.
2023-02-02 15:36:12 -07:00
Kris Nuttycombe 5fb4385c5a Postpone rustcxx and native_cxxbridge versions 1.0.89 2023-02-01 17:28:38 -07:00
Kris Nuttycombe 141d7c29d3
Merge pull request #6236 from zcash/fix_tar_extractall
Adding tarfile member sanitization to extractall()
2023-02-01 16:33:34 -07:00
Jack Grigg 51d62c652d qa: Add RPC test reproducing the Orchard reindex issue
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
Co-authored-by: Kris Nuttycombe <kris@nutty.land>
2023-01-31 00:28:30 +00:00
Daira Hopwood 2afaa88c01 Postpone updates for 5.4.0.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
2023-01-27 21:55:38 +00:00
Kris Nuttycombe 95e3447b96 Fix potential path or symlink traversal
Use `realpath` instead of `abspath` and remove unused `safe_extract` arguments & defaults.

Reviewed with @daira @str4d @sellout
2023-01-27 14:08:02 -07:00
TrellixVulnTeam 543df3797a Adding tarfile member sanitization to extractall() 2023-01-27 14:08:01 -07:00
Kris Nuttycombe 069159b8c1 Merge commit '267ddf8efe36cc799c4c31772a8883ea332ef55b' into version-5.4.0 2023-01-26 09:30:33 -07:00
Kris Nuttycombe 214c3007f5 Enable tests of chain supply & transparent pool balance. 2023-01-24 02:13:05 +00:00
Jack Grigg 0ff03e9693 depends: Postpone cxx update 2023-01-24 02:12:55 +00:00
str4d 0e931a9397
Merge pull request #4470 from oxarbitrage/issue4294
Add transparent value pool to RPC calls
2023-01-23 21:55:00 +00:00
Kris Nuttycombe 0f886c32fe Apply suggestions from code review
Co-authored-by: str4d <thestr4d@gmail.com>
2023-01-23 13:23:20 -07:00
Kris Nuttycombe 193b22b754 Apply suggestions from code review
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2023-01-22 11:33:23 -07:00
Kris Nuttycombe 2fd52ada51 Apply suggestions from code review
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2023-01-22 09:10:03 -07:00
Alfredo Garcia 486817498f Add chain supply and transparent value to block index.
Co-authored-by: Jack Grigg <jack@z.cash>
Co-authored-by: Kris Nuttycombe <kris@nutty.land>
Co-authored-by: Daira Hopwood <daira@jacaranda.org>
2023-01-22 09:10:03 -07:00
Jack Grigg 267ddf8efe qa: Enable RPC test execution to be overridden from Python
`run_tests` now takes a (subclass of) `RPCTestHandler` as its first
argument, and returns `True` if all tests passed instead of calling
`sys.exit`. This enables RPC tests to be run from Python and the
execution of individual tests to be customised:

```python
import importlib
import sys
sys.path.append('qa/pull-tester')
rpc_tests = importlib.import_module('rpc-tests')

src_dir = '.'
build_dir = '.'
exeext = ''

class MyTestHandler(rpc_tests.RPCTestHandler):
    def start_test(self, args, stdout, stderr):
        print('Starting test!')
        return subprocess.Popen(
            args,
            universal_newlines=True,
            stdout=stdout,
            stderr=stderr)

test_list = ['test_to_run.py']

all_passed = rpc_tests.run_tests(MyTestHandler, test_list, src_dir, build_dir, exeext)
```
2023-01-20 13:50:41 +00:00
str4d 9e1efad2d1
Merge pull request #6312 from str4d/6308-backport-6898
Backport `CreateNewBlock` rewrite
2023-01-19 21:47:20 +00:00
Jack Grigg e490b7ff4f qa: Update show_help RPC test 2023-01-13 02:57:39 +00:00
Jack Grigg 0de7a08c86 cargo update 2023-01-13 00:33:13 +00:00
Jack Grigg e91fe01387 depends: Update cxx to 1.0.83 2023-01-13 00:33:13 +00:00
Jack Grigg 9208bdaadd qa: Postpone LLVM 15 and CCache 4.7 updates 2023-01-13 00:33:13 +00:00
Jack Grigg 0e33a7b313 depends: utfcpp 3.2.3 2023-01-13 00:33:13 +00:00
Jack Grigg 0d17460c85 depends: Add tl_expected to update checker 2023-01-13 00:33:13 +00:00
str4d 94f28896f8
Merge pull request #5301 from str4d/cmake-depends
Add CMake to depends system
2023-01-12 21:34:03 +00:00
str4d a2623afe9f
Merge pull request #6299 from zcash/ci_add_heaptrack_benchmark
Update performance-measurements.sh with Heaptrack
2023-01-12 19:19:07 +00:00
mdr0id 08dc78bcc5 update memory targets with heaptrack 2023-01-12 07:18:23 -08:00
Jack Grigg a742ad4c62 depends: Add package for native_cmake 3.25.1
This removes the need for users to install cmake themselves to build.
2023-01-12 02:10:22 +00:00