Skip to content

Conversation

mhightower83
Copy link
Contributor

Fixes #8481 (comment)

umm_calloc, now fails on extra-large request.

Added code to handle multiply overflow in umm_calloc.
Added code to handle add overflow in umm_poison_*

Copy link
Collaborator

@d-a-v d-a-v left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@mhightower83
Copy link
Contributor Author

@d-a-v I have one more push coming. I missed the calloc entry that libc uses. I am not sure if this is just overkill.

@d-a-v d-a-v merged commit e6fc76a into esp8266:master Feb 12, 2022
@mhightower83 mhightower83 deleted the pr-calloc-overflow branch April 21, 2022 19:35
hasenradball pushed a commit to hasenradball/Arduino that referenced this pull request Nov 18, 2024
Added code to handle multiply overflow in calloc. Added code to handle add overflow in umm_poison_*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants