-
Notifications
You must be signed in to change notification settings - Fork 13.3k
UMM_CALLOC doesn't check for NULL allocation #4207
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
Comments
earlephilhower
added a commit
to earlephilhower/Arduino
that referenced
this issue
Jan 21, 2018
Calloc was calling memset(0) on NULL when its implicit malloc failed, causing a crash in UMM. Instead, only do the memset if the memory allocation succeeds. Fixes issue esp8266#4207
earlephilhower
added a commit
to earlephilhower/Arduino
that referenced
this issue
Jan 21, 2018
Calloc was calling memset(0) on NULL when its implicit malloc failed, causing a crash in UMM. Instead, only do the memset if the memory allocation succeeds. Fixes issue esp8266#4207
igrr
pushed a commit
that referenced
this issue
Jan 21, 2018
Calloc was calling memset(0) on NULL when its implicit malloc failed, causing a crash in UMM. Instead, only do the memset if the memory allocation succeeds. Fixes issue #4207
Closing, this was merged. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Found in debug of #4134
Arduino/cores/esp8266/umm_malloc/umm_malloc.c
Line 1688 in 0fe7259
UMM_CALLOC does an alloc then memset(0), but doesn't check the malloc succeeded, leading to a crash in UMM.
The text was updated successfully, but these errors were encountered: