Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check error code returned from vImageBoxConvolve_ARGB8888
Summary: Changelog: [internal] If value returned from `vImageBoxConvolve_ARGB8888` is negative, an error occurred. Converting a negative number to `unsigned long` produces a large positive number (larger than memory). Trying to allocate that much memory fails, malloc returns NULL, and abort triggered inside `RCTBlurredImageWithRadius`. To fix this we need to check for return value from `vImageBoxConvolve_ARGB8888`. Documentation: https://developer.apple.com/documentation/accelerate/1515945-vimageboxconvolve_argb8888?language=objc Reviewed By: JoshuaGross Differential Revision: D25055827 fbshipit-source-id: 2c46ae6eea5cfcc95c2b552c7cd2bc60125fd24a
- Loading branch information