Skip to content

Commit 5eeb524

Browse files
committed
flamenco, gossip: fix OOB on voter-in link
1 parent d5446c8 commit 5eeb524

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/discof/gossip/fd_gossip_tile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,7 @@ during_frag( fd_gossip_tile_ctx_t * ctx,
446446
}
447447

448448
if( in_kind == IN_KIND_VOTER ) {
449-
if( FD_UNLIKELY( chunk<in_ctx->chunk0 || chunk>in_ctx->wmark || sz>USHORT_MAX ) ) {
449+
if( FD_UNLIKELY( chunk<in_ctx->chunk0 || chunk>in_ctx->wmark || sz>FD_TXN_MTU ) ) {
450450
FD_LOG_ERR(( "chunk %lu %lu corrupt, not in range [%lu,%lu]", chunk, sz, in_ctx->chunk0, in_ctx->wmark ));
451451
}
452452

0 commit comments

Comments
 (0)