Add block size limit #5

Open
opened 2025-03-06 10:00:58 +03:00 by sergeych · 0 comments
Owner

To prevent attacks by block size limits, it is possible to add maxBlockSize parameter controlled at the blockDevice level. This effectively limit too long blocks which can reduce or block concurrency in the channel.

Transport device should check block size as early as possible and throw exception, and the protocol driver should drop connection with specific reporting.

For example, if block device uses framed block with a leading size, is should check it as soon as the size is decoded. As such framing prevent loading blocks with excessive size, it

To prevent attacks by block size limits, it is possible to add maxBlockSize parameter controlled at the blockDevice level. This effectively limit too long blocks which can reduce or block concurrency in the channel. Transport device should check block size as early as possible and throw exception, and the protocol driver should drop connection with specific reporting. For example, if block device uses framed block with a leading size, is should check it as soon as the size is decoded. As such framing prevent loading blocks with excessive size, it
sergeych added the
enhancement
label 2025-03-06 10:00:58 +03:00
sergeych self-assigned this 2025-03-06 10:00:59 +03:00
Sign in to join this conversation.
No Milestone
No project
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SergeychWorks/kiloparsec#5
No description provided.