maxRangeLength constant
int
const maxRangeLength
The maximum number of IDs that a single range is expanded to.
A (malicious) server could otherwise send e.g. VANISHED 1:4294967295
and make the client allocate gigabytes of memory.
Implementation
static const int maxRangeLength = 16 * 1024 * 1024;