facebook / fishhook

A library that enables dynamically rebinding symbols in Mach-O binaries running on iOS.
BSD 3-Clause "New" or "Revised" License
5.17k stars 965 forks source link

Prevent nullptr derefence on failed allocation #52

Closed megCanicalKb closed 6 years ago

megCanicalKb commented 6 years ago

Addresses the nullptr dereference introduced in https://github.com/facebook/fishhook/commit/06cfb582bd9279879894bfd9cc9e562cc6e4b01e when fixing a memory leak.