You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(nut11): getNSigsRefund defaults to 1 on empty-values tag (review #238)
Copilot review: getNSigsRefund() called values.get(0) without an emptiness
check. The deserializers accept a key-only tag array (size 1), which yields an
empty values list and would throw IndexOutOfBoundsException — a DoS vector via
a crafted secret. Now returns the default 1 when the tag is present but carries
no value, matching the tag-absent path. Regression test added.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments