You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge bitcoin#31917: fuzz: provide more realistic values to the base58(check) decoders
d5537c1 fuzz: make sure DecodeBase58(Check) is called with valid values more often (Lőrinc)
bad1433 fuzz: Always restrict base conversion input lengths (Lőrinc)
Pull request description:
This is a follow-up to bitcoin#30746, expanding coverage by:
* restricting every input for the base58 conversions, capping max sizes to `100` instead of `1000` or all available input (suggested by marcofleon in bitcoin#30746 (comment)) since most actual usage has lengths of e.g. `21`, `34`, `78`.
* providing more valid values to the decoder (suggested by maflcko in bitcoin#30746 (comment)) by randomly providing a random input or a valid encoded one; this also enables unifying the roundtrip tests to a single roundtrip per fuzz.
ACKs for top commit:
mzumsande:
Code Review / lightly tested ACK d5537c1
maflcko:
review ACK d5537c1 🚛
Tree-SHA512: 50365654cdac8a38708a7475eaa43396642b7337e2ee8999374c3faafff4f05457abc1a54c701211e0ed24d36c12af77bcad17b49695699be42664f2be660659
0 commit comments