Skip to main content

contrib-op-shape-inference-memory-safety

Audit and fix out-of-range output writes in ONNX Runtime operator shape-inference functions. Use when reviewing or fixing a contrib (or standard) op TypeAndShapeInference where a getNumOutputs() guard precedes a write to a higher output index - optional trailing outputs make a smaller output count schema-valid, so getOutputType(index) can run one past the declared outputs at Graph::Resolve.

Jump to install

Source facts

Repository
microsoft/onnxruntime
Last source activity
June 30, 2026 at 20:52
Detected SKILL.md language
English
Stars
21,398
Forks
4,135

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.