cwe-369-divide-by-zero

Official

Prevent divide by zero errors in Java.

AuthorDevelopersCoffee
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the critical security vulnerability of "Divide By Zero" (CWE-369) in Java applications, preventing runtime crashes and potential exploits.

Core Features & Use Cases

  • Vulnerability Identification: Detects patterns where division by a variable that could be zero occurs.
  • Secure Code Transformation: Provides a deterministic fix by implementing checks for zero divisors before performing division.
  • Use Case: When a SAST tool flags a "Divide By Zero" vulnerability in your Java codebase, use this skill to automatically apply the recommended secure coding practice.

Quick Start

Use the cwe-369-divide-by-zero skill to fix a divide by zero vulnerability in the provided Java code snippet.

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-369-divide-by-zero
Download link: https://github.com/DevelopersCoffee/java-cwe-security-skills/archive/main.zip#cwe-369-divide-by-zero

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.