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(interface): validate Borsh string lengths in unpack() to prevent SBF heap abort (#87)
* fix(interface): validate Borsh string lengths in unpack() to prevent SBF heap abort
Forged u32 length prefixes in Initialize/UpdateField/RemoveKey payloads could
trigger an oversized allocation in try_from_slice that aborts on the 32 KiB SBF
heap. Validate each string length against the remaining buffer before
deserializing, returning InvalidInstructionData for malformed payloads.
Closessolana-program/token-2022#1152
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
* ci: add "oversized" and "SBF" to spellcheck dictionary
The doc comment on check_borsh_string uses both words; cargo spellcheck
flagged them. They're a correct word and a known acronym (SBF sits
alongside TLV, APY, DAO already in the dict).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments