-
Notifications
You must be signed in to change notification settings - Fork 63
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
If there's no memory available, is this properly returned by the allocating functions? #87
Comments
Check, this is not working correctly.
This will lead to a fault (reboot) rather than |
Which malloc/calloc is used?
Here In
If we search for the implementation of
Indeed the |
Next question, but on topic. :-) How to solve this?
|
+ Implement _sbrk that has access to the correct heap/stack variables. Fixes issue #87. Might need some more extended love to check all memory conditions. Also, somehow indicating that there is something fishy going on on a Crownstone would be good as well. Perhaps this information can be stored somehow on flash without the need for a call to malloc.
Is this still there? |
There are calls to
malloc
as well asnew
. In the past we used our own allocation function that returned NULL when memory could not be allocated. It is wise to check that this functionality is still operational.The text was updated successfully, but these errors were encountered: