Description
Shared C libraries can be loaded and called from legacy Python 2 programs. Ctypes lets developers create C-compatible data structures and invoke native functions without compiling a separate extension.
Native calls run with the process privileges and can crash or corrupt memory if used incorrectly. Use only trusted libraries and validate buffers, pointers, and argument types.