Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

analyze/invalid-cpp-unsafe-cast

This happens when cpp/unsafe-cast is malformed or when even an unsafe C-style cast cannot be formed for the given types.

Mitigations

Call cpp/unsafe-cast with exactly a target type and a value. Make sure the cast is actually possible.