-
Notifications
You must be signed in to change notification settings - Fork 609
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
Deal with mocks that do direct referencing of instance variables. #443
base: master
Are you sure you want to change the base?
Conversation
c7b3b28
to
a4d7168
Compare
Out of all of my outstanding PRs, this is probably the one that will be the hardest to maintain and is also likely the one that will fix the most weird memory corruption issues that people can run into using OCMock. |
This is not a feature, but fixes potential crashing bugs, so would be a good candidate for pulling into master ASAP. |
Erik, are you waiting on me for anything here? This one is painful to maintain. |
This should help with spurious build failures on Travis.
Reallocate class and partial mocks based on the size of the object they are mocking. For class mocks allow direct referencing of instance variables. For Partial mocks fills the space with 0xEC and will throw an exception if we detect that an instance variable has been written to. The value 0xEB will intentionally likely cause crashes if the memory is read.
Reallocate class and partial mocks based on the size of the object they are mocking.
For class mocks allow direct referencing of instance variables.
For Partial mocks fills the space with 0xEC and will throw an exception if we detect that an instance variable has been written to. The value 0xEB will intentionally likely cause crashes if the memory is read.
Potential "fix" fox #440