Patched unsafe code