cwe-191-integer-underflow

Official

Prevent 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.subtractExact to 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 required

Components

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.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.