go-ethereum/rlp
Felix Lange 4f38a76438
rlp: validate and cache element count in RawList (#33840)
This changes `RawList` to ensure the count of items is always valid.
Lists with invalid structure, i.e. ones where an element exceeds the
size of the container, are now detected during decoding of the `RawList`
and thus cannot exist.

Also remove `RawList.Empty` since it is now fully redundant, and
`Iterator.Count` since it returns incorrect results in the presence of
invalid input. There are no callers of these methods (yet).
2026-02-13 21:52:47 +01:00
..
internal/rlpstruct all: fix docstrings 2022-10-04 09:18:02 +02:00
rlpgen rlp/rlpgen: implement package renaming support (#31148) 2025-08-01 18:30:48 +02:00
decode.go rlp: remove workaround for Value.Bytes (#32433) 2025-08-15 14:08:27 +02:00
decode_tail_test.go all: update license information 2016-04-15 09:48:05 +02:00
decode_test.go rlp: fix typo in decode test message (#32554) 2025-09-09 09:56:53 +08:00
doc.go build: upgrade to go 1.19 (#25726) 2022-09-10 13:25:40 +02:00
encbuffer.go rlp: refactor to use maths.ReadBits (#32432) 2025-08-21 09:37:08 +08:00
encbuffer_example_test.go rlp/rlpgen: RLP encoder code generator (#24251) 2022-02-16 18:14:12 +01:00
encode.go rlp: validate and cache element count in RawList (#33840) 2026-02-13 21:52:47 +01:00
encode_test.go rlp: remove duplicate optionalAndTailField test case (#32614) 2025-09-15 16:16:06 +02:00
encoder_example_test.go rlp/rlpgen: RLP encoder code generator (#24251) 2022-02-16 18:14:12 +01:00
iterator.go rlp: validate and cache element count in RawList (#33840) 2026-02-13 21:52:47 +01:00
iterator_test.go rlp: add RawList for working with un-decoded lists (#33755) 2026-02-04 20:16:24 +01:00
raw.go rlp: validate and cache element count in RawList (#33840) 2026-02-13 21:52:47 +01:00
raw_test.go rlp: validate and cache element count in RawList (#33840) 2026-02-13 21:52:47 +01:00
typecache.go rlp: using maps.Clone (#29434) 2024-04-02 10:47:15 +02:00