mirror of
https://github.com/luxfi/vm.git
synced 2026-10-30 15:13:40 +00:00
fix/zap-shape-hardening
Replaces copy(id[:], wireBytes) — which silently zero-pads/truncates a wrong-length field into a different ID — with the canonical length-validating ids.ToID/ToNodeID constructors, on both the server handlers (handleInitialize + 5 block-ID handlers) and the client response decoders (Initialize/BuildBlock/ParseBlock/GetBlock). Also rejects a negative MaxBlocksNum before it sizes a slice cap. Drops a dead nodeID var. Co-authored-by: Hanzo Dev <[email protected]>
Description
Virtual machine types and interfaces for Lux blockchain
113 MiB
Languages
Go
100%