Skip to content
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

crash on memory allocation #26

Closed
rgrover opened this issue Jan 29, 2015 · 3 comments
Closed

crash on memory allocation #26

rgrover opened this issue Jan 29, 2015 · 3 comments

Comments

@rgrover
Copy link
Contributor

rgrover commented Jan 29, 2015

http://developer.mbed.org/forum/mbed/topic/433/?page=2#comment-27122

@rainierwolfcastle
Copy link

ARM Internal Ref: IOTSFW-1037

@ghost
Copy link

ghost commented Jan 12, 2016

can this still be reproduced?

@pan-
Copy link
Member

pan- commented Jan 14, 2016

Not an issue, operator new will never return NULL if it is not the nothrow version of the operator which is called:

#include <new>

struct Foo {};

//  In this form, new never return NULL if there is no memory left.
// Instead it will call std::abort 
Foo* fooCannotBeNULL = new Foo;

//  In this form, new will return NULL if there is no memory left.
Foo* fooCanBeNULL = new(std::nothrow) Foo;

@pan- pan- closed this as completed Jan 14, 2016
jacobrosenthal pushed a commit to jacobrosenthal/ble that referenced this issue Dec 24, 2017
Correct ARMmbed#11 by reseting the hci device during initialization
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants