objc-reentrancy-audit

Audit Objective-C and Objective-C++ code for re-entrancy vulnerabilities using ripgrep.

Updated Jul 26, 2026
One-click install
npx skills add https://github.com/jvalinsky/garazyk --skill objc-reentrancy-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: objc-reentrancy-audit
Source: https://github.com/jvalinsky/garazyk/tree/main/skills/objc-reentrancy-audit
Command: npx skills add https://github.com/jvalinsky/garazyk --skill objc-reentrancy-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps identify and prevent re-entrancy bugs in Objective-C and Objective-C++ code, which can lead to crashes, deadlocks, and inconsistent application state.

Core Features & Use Cases

  • Re-entrancy Pattern Detection: Scans code for common re-entrancy hazards like callbacks under locks, notification/KVO recursion, and synchronous queue re-entry.
  • Prioritized Triage: Provides a triage system (P0-P3) to focus on the most critical issues first.
  • Use Case: When investigating a crash that occurs intermittently or seems related to concurrent operations, use this skill to quickly pinpoint potential re-entrancy issues in the affected Objective-C codebase.

Quick Start

Run the re-entrancy scan script on the current directory and output results to /tmp/objc-reentrancy-audit.

Frequently Asked Questions about objc-reentrancy-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find re-entrancy bugs in Objective-C code causing intermittent crashes?

To find re-entrancy bugs in Objective-C, you can run a static analysis scan using ripgrep to identify hazardous patterns like callbacks under locks, KVO recursion, and synchronous queue re-entry. This pinpoints synchronization issues causing intermittent crashes.

What is a re-entrancy vulnerability in Objective-C and how does it cause deadlocks?

A re-entrancy vulnerability in Objective-C occurs when code re-enters a partially updated state during concurrent operations, often via notification cycles or callbacks within synchronization primitives. This unsafe re-entry leads to deadlocks, crashes, and inconsistent application state.

Can I audit Objective-C++ code for notification and KVO cycles using static analysis?

Yes, you can audit Objective-C++ code for notification and KVO cycles using static analysis. The scan specifically targets these recursive call loops and delegate ordering issues by identifying dispatch synchronization sites and callback patterns.

How do I triage re-entrancy hazards found during an Objective-C code audit?

You triage re-entrancy hazards during an Objective-C code audit using a prioritized P0-P3 system. This triage system helps you focus on the most critical synchronization and inconsistent state debugging issues first, streamlining crash analysis.

Does this re-entrancy audit require any specific dependencies or setup?

The re-entrancy audit requires no specific dependencies to set up. It uses built-in scripts to perform static analysis with ripgrep on your current directory and outputs the triage results directly to a temporary folder.

What is the best way to detect synchronous queue re-entry into partially updated states?

The best way to detect synchronous queue re-entry into partially updated states is to run a static analysis scan that identifies dispatch synchronization sites. This locates re-entrancy vulnerabilities where callbacks execute before state updates complete.