-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing Sanity Check for malloc() in catch.hpp #610
Comments
What kind of a "sanity check"? All multiplications/length seem to be correct. |
@nabijaczleweli |
Though this really should be |
This should be a smart pointer :v |
@dogbert2 - you are technically correct (which is the best kind of correct). However I don't think it's a big deal here. This is called immediately on entering @kirbyfan64 and @nabijaczleweli bear in mind this is Objective-C code (well, technically it's C code in an Objective-C context, reflecting over Objective-C code). That memory handling needs to interact with ARC (Automatic Reference Counting) - and also stick around for the lifetime of the program since instances of the Class object are kept around. I'm sure it could be cleaned up but it's tricky stuff that's been "just working" for years now without any need to touch it. |
I agree with Phil here, if things went wrong so soon, then there is nothing to do, except maybe explicitly exit. |
Missing Sanity Check for malloc() in catch.hpp
There appears to be a missing sanity check for malloc in directory
'src/catch', file 'catch.hpp' as the code segment below shows:
The text was updated successfully, but these errors were encountered: