cwe-191-integer-underflow
OfficialPrevent integer underflow in Java.
AuthorDevelopersCoffee
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill addresses the critical security vulnerability of Integer Underflow (CWE-191) in Java applications, preventing potential crashes or unexpected behavior.
Core Features & Use Cases
- Vulnerability Identification: Detects patterns leading to integer underflow in Java code.
- Secure Code Transformation: Provides deterministic fixes to mitigate the vulnerability.
- Use Case: Automatically refactor Java code snippets that perform subtractions on integer variables to include checks or use
Math.subtractExactto prevent underflow.
Quick Start
Use the cwe-191-integer-underflow skill to secure the provided Java code snippet against integer underflow.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: cwe-191-integer-underflow Download link: https://github.com/DevelopersCoffee/java-cwe-security-skills/archive/main.zip#cwe-191-integer-underflow Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.