clang-analyzer-security.PointerSub

Check for pointer subtractions on two pointers pointing to different memory chunks.

The clang-analyzer-security.PointerSub check is an alias, please see Clang Static Analyzer Available Checkers for more information.