Integer Overflow / Underflow
Detects arithmetic operations that can overflow or underflow integer bounds, leading to heap overflows, logic bypasses, or unexpected behavior.
от zakirkun★ 40 звёзд на GitHub
Установить Integer Overflow / Underflow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Integer Overflow / Underflow
Overview
Integer overflow occurs when arithmetic results exceed the data type's maximum value. In C/C++:
- Signed integer overflow is undefined behavior (UB) — compilers can optimize it away
- Unsigned overflow wraps around (e.g.,
0 - 1 = UINT_MAX)
Common exploitable scenarios:
- Heap overflow:
malloc(user_len + 4)— ifuser_len = UINT_MAX - 3, result wraps to small allocation - Loop condition bypass:
for (i = 0; i <= MAX_INT; i++)— wraps to 0 - Signed/unsigned mismatch:
if (len < MAX)wherelenis unsigned andMAXis signed
Remediation
- Validate input sizes before arithmetic operations
- Use safe integer libraries (
SafeInt,checked_arithmetic) - Use compiler sanitizers (UBSan, ASan) to detect overflow
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- patterns.yaml
FAQ
Что делает скилл Integer Overflow / Underflow?
Detects arithmetic operations that can overflow or underflow integer bounds, leading to heap overflows, logic bypasses, or unexpected behavior.
Как установить скилл Integer Overflow / Underflow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Integer Overflow / Underflow запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…