Files
Gaurav Pande ec7e8c371d server/etcdserver/txn: treat a zero-length range_end as a single key
mkGteRange passed a zero-length but non-nil range end through unchanged,
and the MVCC index served it as an open-ended range, while the auth
check treats a zero-length range end as a single key. A non-nil empty
range end can reach it from a hand-crafted request on branches whose
protobuf decoder keeps a present-but-empty field as []byte{}, or from
an in-process caller on any branch.

Normalize a zero-length range end to nil so the logic is correct
regardless of the decoder. "\x00" still maps to []byte{} (the >= key
form).

Signed-off-by: Gaurav Pande <garvpande11235@gmail.com>
2026-12-02 23:02:56 +05:30
..
2026-10-08 18:18:46 +02:00
2026-11-11 13:18:48 -06:00
2026-07-30 13:41:30 +03:00
2026-05-20 16:14:19 +08:00
2025-05-30 12:58:01 +02:00