Check build parameters at compile time: V4_PORTS above 16 overflows the port-status bits #20

Open
opened 2026-11-06 16:01:23 +00:00 by rajames · 0 comments
Owner

v4/src/fabric.c:290 shifts 1u << (V4_PORTS + k); V4_PORTS is a build parameter (v4/include/v4/node.h:42), and above 16 the shift is undefined. A static assert would catch it.

`v4/src/fabric.c:290` shifts `1u << (V4_PORTS + k)`; `V4_PORTS` is a build parameter (`v4/include/v4/node.h:42`), and above 16 the shift is undefined. A static assert would catch it.
rajames added the
priority
nice
kind
bug
area/v4
labels 2026-11-06 16:01:23 +00:00
rajames added the
status
backlog
label 2026-11-06 19:06:37 +00:00
Sign in to join this conversation.